mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-06 10:29:21 +08:00
282 lines
5.6 KiB
Smali
282 lines
5.6 KiB
Smali
|
.class public final Lb/a/c/e;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source ""
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final a:Ljava/lang/ThreadLocal;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/ThreadLocal<",
|
||
|
"Ljava/text/DateFormat;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private static final b:[Ljava/lang/String;
|
||
|
|
||
|
.field private static final c:[Ljava/text/DateFormat;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 3
|
||
|
|
||
|
new-instance v0, Lb/a/c/d;
|
||
|
|
||
|
invoke-direct {v0}, Lb/a/c/d;-><init>()V
|
||
|
|
||
|
sput-object v0, Lb/a/c/e;->a:Ljava/lang/ThreadLocal;
|
||
|
|
||
|
const/16 v0, 0xf
|
||
|
|
||
|
new-array v0, v0, [Ljava/lang/String;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const-string v2, "EEE, dd MMM yyyy HH:mm:ss zzz"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const-string v2, "EEEE, dd-MMM-yy HH:mm:ss zzz"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
const-string v2, "EEE MMM d HH:mm:ss yyyy"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
const-string v2, "EEE, dd-MMM-yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
const-string v2, "EEE, dd-MMM-yyyy HH-mm-ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
const-string v2, "EEE, dd MMM yy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x6
|
||
|
|
||
|
const-string v2, "EEE dd-MMM-yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x7
|
||
|
|
||
|
const-string v2, "EEE dd MMM yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0x8
|
||
|
|
||
|
const-string v2, "EEE dd-MMM-yyyy HH-mm-ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0x9
|
||
|
|
||
|
const-string v2, "EEE dd-MMM-yy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xa
|
||
|
|
||
|
const-string v2, "EEE dd MMM yy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xb
|
||
|
|
||
|
const-string v2, "EEE,dd-MMM-yy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xc
|
||
|
|
||
|
const-string v2, "EEE,dd-MMM-yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xd
|
||
|
|
||
|
const-string v2, "EEE, dd-MM-yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
const/16 v1, 0xe
|
||
|
|
||
|
const-string v2, "EEE MMM d yyyy HH:mm:ss z"
|
||
|
|
||
|
aput-object v2, v0, v1
|
||
|
|
||
|
sput-object v0, Lb/a/c/e;->b:[Ljava/lang/String;
|
||
|
|
||
|
sget-object v0, Lb/a/c/e;->b:[Ljava/lang/String;
|
||
|
|
||
|
array-length v0, v0
|
||
|
|
||
|
new-array v0, v0, [Ljava/text/DateFormat;
|
||
|
|
||
|
sput-object v0, Lb/a/c/e;->c:[Ljava/text/DateFormat;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Ljava/util/Date;)Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lb/a/c/e;->a:Ljava/lang/ThreadLocal;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/text/DateFormat;
|
||
|
|
||
|
invoke-virtual {v0, p0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Ljava/lang/String;)Ljava/util/Date;
|
||
|
.locals 9
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/text/ParsePosition;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-direct {v0, v2}, Ljava/text/ParsePosition;-><init>(I)V
|
||
|
|
||
|
sget-object v3, Lb/a/c/e;->a:Ljava/lang/ThreadLocal;
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Ljava/text/DateFormat;
|
||
|
|
||
|
invoke-virtual {v3, p0, v0}, Ljava/text/DateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/text/ParsePosition;->getIndex()I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
if-ne v4, v5, :cond_1
|
||
|
|
||
|
return-object v3
|
||
|
|
||
|
:cond_1
|
||
|
sget-object v3, Lb/a/c/e;->b:[Ljava/lang/String;
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
:try_start_0
|
||
|
sget-object v4, Lb/a/c/e;->b:[Ljava/lang/String;
|
||
|
|
||
|
array-length v4, v4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v5, v4, :cond_4
|
||
|
|
||
|
sget-object v6, Lb/a/c/e;->c:[Ljava/text/DateFormat;
|
||
|
|
||
|
aget-object v6, v6, v5
|
||
|
|
||
|
if-nez v6, :cond_2
|
||
|
|
||
|
new-instance v6, Ljava/text/SimpleDateFormat;
|
||
|
|
||
|
sget-object v7, Lb/a/c/e;->b:[Ljava/lang/String;
|
||
|
|
||
|
aget-object v7, v7, v5
|
||
|
|
||
|
sget-object v8, Ljava/util/Locale;->US:Ljava/util/Locale;
|
||
|
|
||
|
invoke-direct {v6, v7, v8}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
|
||
|
|
||
|
sget-object v7, Lb/a/d;->o:Ljava/util/TimeZone;
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
|
||
|
|
||
|
sget-object v7, Lb/a/c/e;->c:[Ljava/text/DateFormat;
|
||
|
|
||
|
aput-object v6, v7, v5
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {v0, v2}, Ljava/text/ParsePosition;->setIndex(I)V
|
||
|
|
||
|
invoke-virtual {v6, p0, v0}, Ljava/text/DateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/text/ParsePosition;->getIndex()I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-eqz v7, :cond_3
|
||
|
|
||
|
monitor-exit v3
|
||
|
|
||
|
return-object v6
|
||
|
|
||
|
:cond_3
|
||
|
add-int/lit8 v5, v5, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
monitor-exit v3
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:goto_2
|
||
|
goto :goto_1
|
||
|
.end method
|