Changes of com.discord v1325
This commit is contained in:
parent
d9d9f382c9
commit
3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
.class public final Lcom/franmontiel/persistentcookiejar/BuildConfig;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BuildConfig.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,6 @@
|
|||
.class public interface abstract Lcom/franmontiel/persistentcookiejar/ClearableCookieJar;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ClearableCookieJar.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ld0/q;
|
|
@ -0,0 +1,202 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PersistentCookieJar.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lcom/franmontiel/persistentcookiejar/ClearableCookieJar;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public b:Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
|
||||
.field public c:Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lcom/franmontiel/persistentcookiejar/cache/CookieCache;Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->b:Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
|
||||
iput-object p2, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->c:Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
|
||||
invoke-interface {p2}, Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;->a()Ljava/util/List;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-interface {p1, p2}, Lcom/franmontiel/persistentcookiejar/cache/CookieCache;->addAll(Ljava/util/Collection;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public declared-synchronized a(Ld0/y;Ljava/util/List;)V
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ld0/y;",
|
||||
"Ljava/util/List<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-object p1, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->b:Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
|
||||
invoke-interface {p1, p2}, Lcom/franmontiel/persistentcookiejar/cache/CookieCache;->addAll(Ljava/util/Collection;)V
|
||||
|
||||
iget-object p1, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->c:Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ld0/o;
|
||||
|
||||
iget-boolean v2, v1, Ld0/o;->h:Z
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
invoke-interface {p1, v0}, Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;->b(Ljava/util/Collection;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public declared-synchronized b(Ld0/y;)Ljava/util/List;
|
||||
.locals 9
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ld0/y;",
|
||||
")",
|
||||
"Ljava/util/List<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
new-instance v1, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
iget-object v2, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->b:Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
|
||||
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-eqz v3, :cond_3
|
||||
|
||||
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
check-cast v3, Ld0/o;
|
||||
|
||||
iget-wide v4, v3, Ld0/o;->c:J
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
||||
|
||||
move-result-wide v6
|
||||
|
||||
cmp-long v8, v4, v6
|
||||
|
||||
if-gez v8, :cond_1
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_1
|
||||
if-eqz v4, :cond_2
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
invoke-interface {v2}, Ljava/util/Iterator;->remove()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {v3, p1}, Ld0/o;->a(Ld0/y;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_0
|
||||
|
||||
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
iget-object p1, p0, Lcom/franmontiel/persistentcookiejar/PersistentCookieJar;->c:Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
|
||||
invoke-interface {p1, v0}, Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;->removeAll(Ljava/util/Collection;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-object v1
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw p1
|
||||
.end method
|
|
@ -0,0 +1,27 @@
|
|||
.class public final Lcom/franmontiel/persistentcookiejar/R$string;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/franmontiel/persistentcookiejar/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "string"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final app_name:I = 0x7f1200f6
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,20 @@
|
|||
.class public final Lcom/franmontiel/persistentcookiejar/R;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/franmontiel/persistentcookiejar/R$string;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
30
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/CookieCache.smali
vendored
Normal file
30
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/CookieCache.smali
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
.class public interface abstract Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CookieCache.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Iterable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/lang/Iterable<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract addAll(Ljava/util/Collection;)V
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
149
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/IdentifiableCookie.smali
vendored
Normal file
149
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/IdentifiableCookie.smali
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
.super Ljava/lang/Object;
|
||||
.source "IdentifiableCookie.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public a:Ld0/o;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ld0/o;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 4
|
||||
|
||||
instance-of v0, p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
:cond_0
|
||||
check-cast p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
|
||||
iget-object v0, p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->a:Ljava/lang/String;
|
||||
|
||||
iget-object v2, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v2, v2, Ld0/o;->a:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object v0, p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->d:Ljava/lang/String;
|
||||
|
||||
iget-object v2, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v2, v2, Ld0/o;->d:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object v0, p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->e:Ljava/lang/String;
|
||||
|
||||
iget-object v2, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v2, v2, Ld0/o;->e:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object p1, p1, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-boolean v0, p1, Ld0/o;->f:Z
|
||||
|
||||
iget-object v2, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-boolean v3, v2, Ld0/o;->f:Z
|
||||
|
||||
if-ne v0, v3, :cond_1
|
||||
|
||||
iget-boolean p1, p1, Ld0/o;->i:Z
|
||||
|
||||
iget-boolean v0, v2, Ld0/o;->i:Z
|
||||
|
||||
if-ne p1, v0, :cond_1
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_1
|
||||
return v1
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->a:Ljava/lang/String;
|
||||
|
||||
const/16 v1, 0x20f
|
||||
|
||||
const/16 v2, 0x1f
|
||||
|
||||
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->T(Ljava/lang/String;II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v1, v1, Ld0/o;->d:Ljava/lang/String;
|
||||
|
||||
invoke-static {v1, v0, v2}, Lf/e/c/a/a;->T(Ljava/lang/String;II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-object v1, v1, Ld0/o;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v1, v0, v2}, Lf/e/c/a/a;->T(Ljava/lang/String;II)I
|
||||
|
||||
move-result v0
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
iget-boolean v2, v1, Ld0/o;->f:Z
|
||||
|
||||
xor-int/lit8 v2, v2, 0x1
|
||||
|
||||
add-int/2addr v0, v2
|
||||
|
||||
mul-int/lit8 v0, v0, 0x1f
|
||||
|
||||
iget-boolean v1, v1, Ld0/o;->i:Z
|
||||
|
||||
xor-int/lit8 v1, v1, 0x1
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -0,0 +1,96 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SetCookieCache.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Iterator;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = "SetCookieCacheIterator"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Iterator<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:Ljava/util/Iterator;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/Iterator<",
|
||||
"Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iget-object p1, p1, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->d:Ljava/util/Set;
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;->d:Ljava/util/Iterator;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public hasNext()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;->d:Ljava/util/Iterator;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public next()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;->d:Ljava/util/Iterator;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
|
||||
iget-object v0, v0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;->a:Ld0/o;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public remove()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;->d:Ljava/util/Iterator;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
||||
|
||||
return-void
|
||||
.end method
|
138
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/SetCookieCache.smali
vendored
Normal file
138
com.discord/smali_classes2/com/franmontiel/persistentcookiejar/cache/SetCookieCache.smali
vendored
Normal file
|
@ -0,0 +1,138 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SetCookieCache.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lcom/franmontiel/persistentcookiejar/cache/CookieCache;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:Ljava/util/Set;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/Set<",
|
||||
"Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/util/HashSet;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->d:Ljava/util/Set;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public addAll(Ljava/util/Collection;)V
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ld0/o;
|
||||
|
||||
new-instance v2, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
|
||||
invoke-direct {v2, v1}, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;-><init>(Ld0/o;)V
|
||||
|
||||
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_1
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lcom/franmontiel/persistentcookiejar/cache/IdentifiableCookie;
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->d:Ljava/util/Set;
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;->d:Ljava/util/Set;
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public iterator()Ljava/util/Iterator;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Iterator<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;
|
||||
|
||||
invoke-direct {v0, p0}, Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache$SetCookieCacheIterator;-><init>(Lcom/franmontiel/persistentcookiejar/cache/SetCookieCache;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
|
@ -0,0 +1,38 @@
|
|||
.class public interface abstract Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CookiePersistor.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract a()Ljava/util/List;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/List<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract b(Ljava/util/Collection;)V
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract removeAll(Ljava/util/Collection;)V
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
|
@ -0,0 +1,408 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SerializableCookie.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/io/Serializable;
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final e:Ljava/lang/String;
|
||||
|
||||
.field public static f:J = 0x0L
|
||||
|
||||
.field public static final serialVersionUID:J = -0x77442f0b309f5e9eL
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public transient d:Ld0/o;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
const-class v0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
const-wide/16 v0, -0x1
|
||||
|
||||
sput-wide v0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->f:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private readObject(Ljava/io/ObjectInputStream;)V
|
||||
.locals 13
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;,
|
||||
Ljava/lang/ClassNotFoundException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
move-object v2, v0
|
||||
|
||||
check-cast v2, Ljava/lang/String;
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {v2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {v2}, Lz/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, v2}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_b
|
||||
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
move-object v3, v0
|
||||
|
||||
check-cast v3, Ljava/lang/String;
|
||||
|
||||
const-string v0, "value"
|
||||
|
||||
invoke-static {v3, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {v3}, Lz/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, v3}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_a
|
||||
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readLong()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
const-wide/16 v4, -0x1
|
||||
|
||||
const-wide v6, 0xe677d21fdbffL
|
||||
|
||||
const/4 v8, 0x0
|
||||
|
||||
cmp-long v9, v0, v4
|
||||
|
||||
if-eqz v9, :cond_2
|
||||
|
||||
const-wide/16 v4, 0x0
|
||||
|
||||
cmp-long v9, v0, v4
|
||||
|
||||
if-gtz v9, :cond_0
|
||||
|
||||
const-wide/high16 v0, -0x8000000000000000L
|
||||
|
||||
:cond_0
|
||||
cmp-long v4, v0, v6
|
||||
|
||||
if-lez v4, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
move-wide v6, v0
|
||||
|
||||
:goto_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
move-wide v4, v6
|
||||
|
||||
const/4 v10, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
const/4 v0, 0x0
|
||||
|
||||
move-wide v4, v6
|
||||
|
||||
const/4 v10, 0x0
|
||||
|
||||
:goto_1
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/lang/String;
|
||||
|
||||
const-string v1, "domain"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {v0}, Lz/i/s;->Z(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
const-string v7, "unexpected domain: "
|
||||
|
||||
if-eqz v6, :cond_9
|
||||
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
||||
|
||||
move-result-object v9
|
||||
|
||||
check-cast v9, Ljava/lang/String;
|
||||
|
||||
const-string v11, "path"
|
||||
|
||||
invoke-static {v9, v11}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/4 v11, 0x2
|
||||
|
||||
const-string v12, "/"
|
||||
|
||||
invoke-static {v9, v12, v8, v11}, Lz/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
||||
|
||||
move-result v8
|
||||
|
||||
if-eqz v8, :cond_8
|
||||
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
|
||||
|
||||
move-result v8
|
||||
|
||||
if-eqz v8, :cond_3
|
||||
|
||||
const/4 v8, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
const/4 v8, 0x0
|
||||
|
||||
:goto_2
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
|
||||
|
||||
move-result v11
|
||||
|
||||
if-eqz v11, :cond_4
|
||||
|
||||
const/4 v11, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_4
|
||||
const/4 v11, 0x0
|
||||
|
||||
:goto_3
|
||||
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readBoolean()Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_6
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {v0}, Lz/i/s;->Z(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
if-eqz p1, :cond_5
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
move-object v6, p1
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_5
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-static {v7, v0}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_6
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_4
|
||||
new-instance v0, Ld0/o;
|
||||
|
||||
if-eqz v6, :cond_7
|
||||
|
||||
const/4 v12, 0x0
|
||||
|
||||
move-object v1, v0
|
||||
|
||||
move-object v7, v9
|
||||
|
||||
move v9, v11
|
||||
|
||||
move v11, p1
|
||||
|
||||
invoke-direct/range {v1 .. v12}, Ld0/o;-><init>(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZLkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
iput-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
return-void
|
||||
|
||||
:cond_7
|
||||
new-instance p1, Ljava/lang/NullPointerException;
|
||||
|
||||
const-string v0, "builder.domain == null"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_8
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "path must start with \'/\'"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_9
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-static {v7, v0}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_a
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "value is not trimmed"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_b
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "name is not trimmed"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method private writeObject(Ljava/io/ObjectOutputStream;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->a:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->b:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-boolean v1, v0, Ld0/o;->h:Z
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
iget-wide v0, v0, Ld0/o;->c:J
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const-wide/16 v0, -0x1
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p1, v0, v1}, Ljava/io/ObjectOutputStream;->writeLong(J)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->d:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-object v0, v0, Ld0/o;->e:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-boolean v0, v0, Ld0/o;->f:Z
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-boolean v0, v0, Ld0/o;->g:Z
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
iget-boolean v0, v0, Ld0/o;->i:Z
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeBoolean(Z)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,596 @@
|
|||
.class public Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SharedPrefsCookiePersistor.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lcom/franmontiel/persistentcookiejar/persistence/CookiePersistor;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"CommitPrefEdits"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Landroid/content/SharedPreferences;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/content/Context;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "CookiePersistence"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->a:Landroid/content/SharedPreferences;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static c(Ld0/o;)Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
iget-boolean v1, p0, Ld0/o;->f:Z
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
const-string v1, "https"
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const-string v1, "http"
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, "://"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object v1, p0, Ld0/o;->d:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object v1, p0, Ld0/o;->e:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, "|"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object p0, p0, Ld0/o;->a:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Ljava/util/List;
|
||||
.locals 11
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/List<",
|
||||
"Ld0/o;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->a:Landroid/content/SharedPreferences;
|
||||
|
||||
invoke-interface {v1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
||||
|
||||
iget-object v1, p0, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->a:Landroid/content/SharedPreferences;
|
||||
|
||||
invoke-interface {v1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-eqz v2, :cond_4
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Ljava/util/Map$Entry;
|
||||
|
||||
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Ljava/lang/String;
|
||||
|
||||
new-instance v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
|
||||
|
||||
invoke-direct {v3}, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;-><init>()V
|
||||
|
||||
const-string v3, "Stream not closed in decodeCookie"
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v4
|
||||
|
||||
div-int/lit8 v5, v4, 0x2
|
||||
|
||||
new-array v5, v5, [B
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v6, v4, :cond_1
|
||||
|
||||
div-int/lit8 v7, v6, 0x2
|
||||
|
||||
invoke-virtual {v2, v6}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v8
|
||||
|
||||
const/16 v9, 0x10
|
||||
|
||||
invoke-static {v8, v9}, Ljava/lang/Character;->digit(CI)I
|
||||
|
||||
move-result v8
|
||||
|
||||
shl-int/lit8 v8, v8, 0x4
|
||||
|
||||
add-int/lit8 v10, v6, 0x1
|
||||
|
||||
invoke-virtual {v2, v10}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v10
|
||||
|
||||
invoke-static {v10, v9}, Ljava/lang/Character;->digit(CI)I
|
||||
|
||||
move-result v9
|
||||
|
||||
add-int/2addr v9, v8
|
||||
|
||||
int-to-byte v8, v9
|
||||
|
||||
aput-byte v8, v5, v7
|
||||
|
||||
add-int/lit8 v6, v6, 0x2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
new-instance v2, Ljava/io/ByteArrayInputStream;
|
||||
|
||||
invoke-direct {v2, v5}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
:try_start_0
|
||||
new-instance v5, Ljava/io/ObjectInputStream;
|
||||
|
||||
invoke-direct {v5, v2}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
|
||||
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||||
|
||||
:try_start_1
|
||||
invoke-virtual {v5}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
|
||||
|
||||
iget-object v4, v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
:try_end_1
|
||||
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
|
||||
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
:goto_2
|
||||
:try_start_2
|
||||
invoke-virtual {v5}, Ljava/io/ObjectInputStream;->close()V
|
||||
:try_end_2
|
||||
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:catch_0
|
||||
move-exception v2
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
move-object v4, v5
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:catch_1
|
||||
move-exception v2
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:catch_2
|
||||
move-exception v2
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:catchall_1
|
||||
move-exception v0
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:catch_3
|
||||
move-exception v2
|
||||
|
||||
move-object v5, v4
|
||||
|
||||
:goto_3
|
||||
:try_start_3
|
||||
sget-object v6, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
const-string v7, "ClassNotFoundException in decodeCookie"
|
||||
|
||||
invoke-static {v6, v7, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
if-eqz v5, :cond_2
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catch_4
|
||||
move-exception v2
|
||||
|
||||
move-object v5, v4
|
||||
|
||||
:goto_4
|
||||
sget-object v6, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
const-string v7, "IOException in decodeCookie"
|
||||
|
||||
invoke-static {v6, v7, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||||
|
||||
if-eqz v5, :cond_2
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:goto_5
|
||||
sget-object v5, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v5, v3, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_2
|
||||
:goto_6
|
||||
if-eqz v4, :cond_0
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto/16 :goto_0
|
||||
|
||||
:goto_7
|
||||
if-eqz v4, :cond_3
|
||||
|
||||
:try_start_4
|
||||
invoke-virtual {v4}, Ljava/io/ObjectInputStream;->close()V
|
||||
:try_end_4
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_5
|
||||
|
||||
goto :goto_8
|
||||
|
||||
:catch_5
|
||||
move-exception v1
|
||||
|
||||
sget-object v2, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v2, v3, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_3
|
||||
:goto_8
|
||||
throw v0
|
||||
|
||||
:cond_4
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public b(Ljava/util/Collection;)V
|
||||
.locals 8
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->a:Landroid/content/SharedPreferences;
|
||||
|
||||
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_4
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ld0/o;
|
||||
|
||||
invoke-static {v1}, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->c(Ld0/o;)Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
new-instance v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;
|
||||
|
||||
invoke-direct {v3}, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;-><init>()V
|
||||
|
||||
const-string v4, "Stream not closed in encodeCookie"
|
||||
|
||||
iput-object v1, v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->d:Ld0/o;
|
||||
|
||||
new-instance v1, Ljava/io/ByteArrayOutputStream;
|
||||
|
||||
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:try_start_0
|
||||
new-instance v6, Ljava/io/ObjectOutputStream;
|
||||
|
||||
invoke-direct {v6, v1}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||||
|
||||
:try_start_1
|
||||
invoke-virtual {v6, v3}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
||||
:try_end_1
|
||||
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
:try_start_2
|
||||
invoke-virtual {v6}, Ljava/io/ObjectOutputStream;->close()V
|
||||
:try_end_2
|
||||
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_0
|
||||
move-exception v3
|
||||
|
||||
sget-object v5, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v5, v4, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:goto_1
|
||||
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
||||
|
||||
move-result-object v1
|
||||
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
array-length v4, v1
|
||||
|
||||
mul-int/lit8 v4, v4, 0x2
|
||||
|
||||
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(I)V
|
||||
|
||||
array-length v4, v1
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_2
|
||||
if-ge v5, v4, :cond_1
|
||||
|
||||
aget-byte v6, v1, v5
|
||||
|
||||
and-int/lit16 v6, v6, 0xff
|
||||
|
||||
const/16 v7, 0x10
|
||||
|
||||
if-ge v6, v7, :cond_0
|
||||
|
||||
const/16 v7, 0x30
|
||||
|
||||
invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
:cond_0
|
||||
invoke-static {v6}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
move-object v5, v6
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:catch_1
|
||||
move-exception v1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:catchall_1
|
||||
move-exception p1
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:catch_2
|
||||
move-exception v1
|
||||
|
||||
move-object v6, v5
|
||||
|
||||
:goto_3
|
||||
:try_start_3
|
||||
sget-object v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
const-string v7, "IOException in encodeCookie"
|
||||
|
||||
invoke-static {v3, v7, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||||
|
||||
if-eqz v6, :cond_2
|
||||
|
||||
:try_start_4
|
||||
invoke-virtual {v6}, Ljava/io/ObjectOutputStream;->close()V
|
||||
:try_end_4
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:catch_3
|
||||
move-exception v1
|
||||
|
||||
sget-object v3, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v3, v4, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_2
|
||||
:goto_4
|
||||
invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:goto_5
|
||||
if-eqz v5, :cond_3
|
||||
|
||||
:try_start_5
|
||||
invoke-virtual {v5}, Ljava/io/ObjectOutputStream;->close()V
|
||||
:try_end_5
|
||||
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:catch_4
|
||||
move-exception v0
|
||||
|
||||
sget-object v1, Lcom/franmontiel/persistentcookiejar/persistence/SerializableCookie;->e:Ljava/lang/String;
|
||||
|
||||
invoke-static {v1, v4, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||||
|
||||
:cond_3
|
||||
:goto_6
|
||||
throw p1
|
||||
|
||||
:cond_4
|
||||
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public removeAll(Ljava/util/Collection;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Ld0/o;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->a:Landroid/content/SharedPreferences;
|
||||
|
||||
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ld0/o;
|
||||
|
||||
invoke-static {v1}, Lcom/franmontiel/persistentcookiejar/persistence/SharedPrefsCookiePersistor;->c(Ld0/o;)Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v0, v1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue