SecureSharedPreferences$Editor.smali

.class public final Lio/rong/imlib/common/SecureSharedPreferences$Editor;
.super Ljava/lang/Object;
.source "SecureSharedPreferences.java"

# interfaces
.implements Landroid/content/SharedPreferences$Editor;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/rong/imlib/common/SecureSharedPreferences;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "Editor"
.end annotation


# instance fields
.field private mEditor:Landroid/content/SharedPreferences$Editor;

.field final synthetic this$0:Lio/rong/imlib/common/SecureSharedPreferences;


# direct methods
.method private constructor <init>(Lio/rong/imlib/common/SecureSharedPreferences;)V
    .registers 2

    .line 2
    iput-object p1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 3
    # getter for: Lio/rong/imlib/common/SecureSharedPreferences;->mSharedPreferences:Landroid/content/SharedPreferences;
    invoke-static {p1}, Lio/rong/imlib/common/SecureSharedPreferences;->access$100(Lio/rong/imlib/common/SecureSharedPreferences;)Landroid/content/SharedPreferences;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    iput-object p1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    return-void
.end method

.method synthetic constructor <init>(Lio/rong/imlib/common/SecureSharedPreferences;Lio/rong/imlib/common/SecureSharedPreferences$1;)V
    .registers 3

    .line 1
    invoke-direct {p0, p1}, Lio/rong/imlib/common/SecureSharedPreferences$Editor;-><init>(Lio/rong/imlib/common/SecureSharedPreferences;)V

    return-void
.end method


# virtual methods
.method public apply()V
    .registers 2

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V

    return-void
.end method

.method public clear()Landroid/content/SharedPreferences$Editor;
    .registers 2

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public commit()Z
    .registers 2

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    move-result v0

    return v0
.end method

.method public putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
    .registers 5

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    iget-object v1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    invoke-static {p2}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;

    move-result-object p2

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, p2}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;
    .registers 5

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    iget-object v1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    invoke-static {p2}, Ljava/lang/Float;->toString(F)Ljava/lang/String;

    move-result-object p2

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, p2}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
    .registers 5

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    iget-object v1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    invoke-static {p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object p2

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, p2}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;
    .registers 6

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    iget-object v1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    invoke-static {p2, p3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object p2

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, p2}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
    .registers 5

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    iget-object v1, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, p2}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public putStringSet(Ljava/lang/String;Ljava/util/Set;)Landroid/content/SharedPreferences$Editor;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;)",
            "Landroid/content/SharedPreferences$Editor;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 2
    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_9
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1f

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 3
    iget-object v2, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->this$0:Lio/rong/imlib/common/SecureSharedPreferences;

    # invokes: Lio/rong/imlib/common/SecureSharedPreferences;->encryptPreference(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v2, v1}, Lio/rong/imlib/common/SecureSharedPreferences;->access$200(Lio/rong/imlib/common/SecureSharedPreferences;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_9

    .line 4
    :cond_1f
    iget-object p2, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {p2, p1, v0}, Landroid/content/SharedPreferences$Editor;->putStringSet(Ljava/lang/String;Ljava/util/Set;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method

.method public remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
    .registers 3

    .line 1
    iget-object v0, p0, Lio/rong/imlib/common/SecureSharedPreferences$Editor;->mEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0, p1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    return-object p0
.end method