607 lines
16 KiB
Smali
607 lines
16 KiB
Smali
.class public final Lv1/b;
|
|
.super Ljava/lang/Object;
|
|
.source "InputConnectionCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"PrivateConstructorForUtilityClass"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lv1/b$d;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Ljava/lang/String; = "InputConnectionCompat"
|
|
|
|
.field public static final b:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
.field public static final c:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
.field public static final d:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
.field public static final e:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
.field public static final f:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
.field public static final g:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
.field public static final h:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
.field public static final i:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
.field public static final j:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
.field public static final k:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
.field public static final l:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
.field public static final m:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
.field public static final n:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
|
|
|
|
.field public static final o:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
|
|
|
|
.field public static final p:I = 0x1
|
|
|
|
.field public static final q:Ljava/lang/String; = "androidx.core.view.extra.INPUT_CONTENT_INFO"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Lv1/c;ILandroid/os/Bundle;)Z
|
|
.locals 7
|
|
.param p0 # Landroid/view/inputmethod/InputConnection;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/view/inputmethod/EditorInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lv1/c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Lv1/c;->b()Landroid/content/ClipDescription;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lv1/a;->a(Landroid/view/inputmethod/EditorInfo;)[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
const/4 v5, 0x1
|
|
|
|
if-ge v4, v2, :cond_1
|
|
|
|
aget-object v6, v1, v4
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v6}, Landroid/content/ClipDescription;->hasMimeType(Ljava/lang/String;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
move v0, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v3
|
|
|
|
:goto_1
|
|
if-nez v0, :cond_2
|
|
|
|
return v3
|
|
|
|
.line 4
|
|
:cond_2
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x19
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
.line 5
|
|
invoke-virtual {p2}, Lv1/c;->f()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/inputmethod/InputContentInfo;
|
|
|
|
.line 6
|
|
invoke-interface {p0, p1, p3, p4}, Landroid/view/inputmethod/InputConnection;->commitContent(Landroid/view/inputmethod/InputContentInfo;ILandroid/os/Bundle;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 7
|
|
:cond_3
|
|
invoke-static {p1}, Lv1/a;->e(Landroid/view/inputmethod/EditorInfo;)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
return v3
|
|
|
|
:cond_4
|
|
move v3, v5
|
|
|
|
.line 8
|
|
:cond_5
|
|
new-instance p1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {p1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
const-string v0, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const-string v0, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
.line 9
|
|
:goto_2
|
|
invoke-virtual {p2}, Lv1/c;->a()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
.line 10
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
const-string v0, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
const-string v0, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
.line 11
|
|
:goto_3
|
|
invoke-virtual {p2}, Lv1/c;->b()Landroid/content/ClipDescription;
|
|
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const-string v0, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
const-string v0, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
.line 13
|
|
:goto_4
|
|
invoke-virtual {p2}, Lv1/c;->c()Landroid/net/Uri;
|
|
|
|
move-result-object p2
|
|
|
|
.line 14
|
|
invoke-virtual {p1, v0, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
const-string p2, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
const-string p2, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
.line 15
|
|
:goto_5
|
|
invoke-virtual {p1, p2, p3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
const-string p2, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
goto :goto_6
|
|
|
|
:cond_a
|
|
const-string p2, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
.line 16
|
|
:goto_6
|
|
invoke-virtual {p1, p2, p4}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
if-eqz v3, :cond_b
|
|
|
|
const-string p2, "android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
goto :goto_7
|
|
|
|
:cond_b
|
|
const-string p2, "androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
.line 17
|
|
:goto_7
|
|
invoke-interface {p0, p2, p1}, Landroid/view/inputmethod/InputConnection;->performPrivateCommand(Ljava/lang/String;Landroid/os/Bundle;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(Landroid/view/View;)Lv1/b$d;
|
|
.locals 1
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
new-instance v0, Lv1/b$c;
|
|
|
|
invoke-direct {v0, p0}, Lv1/b$c;-><init>(Landroid/view/View;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static c(Landroid/view/View;Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 0
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/view/inputmethod/InputConnection;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/inputmethod/EditorInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lv1/b;->b(Landroid/view/View;)Lv1/b$d;
|
|
|
|
move-result-object p0
|
|
|
|
.line 2
|
|
invoke-static {p1, p2, p0}, Lv1/b;->d(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Lv1/b$d;)Landroid/view/inputmethod/InputConnection;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static d(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Lv1/b$d;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 3
|
|
.param p0 # Landroid/view/inputmethod/InputConnection;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/view/inputmethod/EditorInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lv1/b$d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const-string v0, "inputConnection must be non-null"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lr1/h;->e(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "editorInfo must be non-null"
|
|
|
|
.line 2
|
|
invoke-static {p1, v0}, Lr1/h;->e(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "onCommitContentListener must be non-null"
|
|
|
|
.line 3
|
|
invoke-static {p2, v0}, Lr1/h;->e(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x19
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
.line 5
|
|
new-instance p1, Lv1/b$a;
|
|
|
|
invoke-direct {p1, p0, v1, p2}, Lv1/b$a;-><init>(Landroid/view/inputmethod/InputConnection;ZLv1/b$d;)V
|
|
|
|
return-object p1
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {p1}, Lv1/a;->a(Landroid/view/inputmethod/EditorInfo;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
array-length p1, p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-object p0
|
|
|
|
.line 8
|
|
:cond_1
|
|
new-instance p1, Lv1/b$b;
|
|
|
|
invoke-direct {p1, p0, v1, p2}, Lv1/b$b;-><init>(Landroid/view/inputmethod/InputConnection;ZLv1/b$d;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static e(Ljava/lang/String;Landroid/os/Bundle;Lv1/b$d;)Z
|
|
.locals 7
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lv1/b$d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const-string v1, "androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
.line 1
|
|
invoke-static {v1, p0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move p0, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v1, "android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
|
|
|
|
.line 2
|
|
invoke-static {v1, p0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_b
|
|
|
|
const/4 p0, 0x1
|
|
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
:try_start_0
|
|
const-string v2, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v2, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
|
|
|
|
.line 3
|
|
:goto_1
|
|
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/os/ResultReceiver;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
:try_start_1
|
|
const-string v3, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-string v3, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_URI"
|
|
|
|
.line 4
|
|
:goto_2
|
|
invoke-virtual {p1, v3}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/net/Uri;
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
const-string v4, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const-string v4, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
|
|
|
|
.line 5
|
|
:goto_3
|
|
invoke-virtual {p1, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/content/ClipDescription;
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
const-string v5, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
const-string v5, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
|
|
|
|
.line 6
|
|
:goto_4
|
|
invoke-virtual {p1, v5}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Landroid/net/Uri;
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
const-string v6, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
const-string v6, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
|
|
|
|
.line 7
|
|
:goto_5
|
|
invoke-virtual {p1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v6
|
|
|
|
if-eqz p0, :cond_7
|
|
|
|
const-string p0, "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
const-string p0, "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
|
|
|
|
.line 8
|
|
:goto_6
|
|
invoke-virtual {p1, p0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/os/Bundle;
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
.line 9
|
|
new-instance p1, Lv1/c;
|
|
|
|
invoke-direct {p1, v3, v4, v5}, Lv1/c;-><init>(Landroid/net/Uri;Landroid/content/ClipDescription;Landroid/net/Uri;)V
|
|
|
|
.line 10
|
|
invoke-interface {p2, p1, v6, p0}, Lv1/b$d;->a(Lv1/c;ILandroid/os/Bundle;)Z
|
|
|
|
move-result v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:cond_8
|
|
if-eqz v2, :cond_9
|
|
|
|
.line 11
|
|
invoke-virtual {v2, v0, v1}, Landroid/os/ResultReceiver;->send(ILandroid/os/Bundle;)V
|
|
|
|
:cond_9
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_7
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
move-object v2, v1
|
|
|
|
:goto_7
|
|
if-eqz v2, :cond_a
|
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/os/ResultReceiver;->send(ILandroid/os/Bundle;)V
|
|
|
|
.line 12
|
|
:cond_a
|
|
throw p0
|
|
|
|
:cond_b
|
|
return v0
|
|
.end method
|