granularity level: instruction

		.class public final Landroidx/core/view/inputmethod/InputConnectionCompat;
.super Ljava/lang/Object;
.source "InputConnectionCompat.java"

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;
}
.end annotation

.field private static final COMMIT_CONTENT_ACTION:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
.field private static final COMMIT_CONTENT_CONTENT_URI_INTEROP_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_URI"
.field private static final COMMIT_CONTENT_CONTENT_URI_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_URI"
.field private static final COMMIT_CONTENT_DESCRIPTION_INTEROP_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
.field private static final COMMIT_CONTENT_DESCRIPTION_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_DESCRIPTION"
.field private static final COMMIT_CONTENT_FLAGS_INTEROP_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
.field private static final COMMIT_CONTENT_FLAGS_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_FLAGS"
.field private static final COMMIT_CONTENT_INTEROP_ACTION:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
.field private static final COMMIT_CONTENT_LINK_URI_INTEROP_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
.field private static final COMMIT_CONTENT_LINK_URI_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_LINK_URI"
.field private static final COMMIT_CONTENT_OPTS_INTEROP_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
.field private static final COMMIT_CONTENT_OPTS_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_OPTS"
.field private static final COMMIT_CONTENT_RESULT_INTEROP_RECEIVER_KEY:Ljava/lang/String; = "android.support.v13.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
.field private static final COMMIT_CONTENT_RESULT_RECEIVER_KEY:Ljava/lang/String; = "androidx.core.view.inputmethod.InputConnectionCompat.CONTENT_RESULT_RECEIVER"
.field public static final INPUT_CONTENT_GRANT_READ_URI_PERMISSION:I = 0x1


.method public constructor <init>()V
	.locals 0
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static commitContent(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Landroidx/core/view/inputmethod/InputContentInfoCompat;ILandroid/os/Bundle;)Z
	.locals 7

	invoke-virtual {p2}, Landroidx/core/view/inputmethod/InputContentInfoCompat;->getDescription()Landroid/content/ClipDescription;
	move-result-object v0
	invoke-static {p1}, Landroidx/core/view/inputmethod/EditorInfoCompat;->getContentMimeTypes(Landroid/view/inputmethod/EditorInfo;)[Ljava/lang/String;
	move-result-object v1
	array-length v2, v1
	const/4 v3, 0x0
	const/4 v4, 0x0
	:goto_0
	const/4 v5, 0x1
	if-ge v4, v2, :cond_1
	aget-object v6, v1, v4
	invoke-virtual {v0, v6}, Landroid/content/ClipDescription;->hasMimeType(Ljava/lang/String;)Z
	move-result v6
	if-eqz v6, :cond_0
	const/4 v0, 0x1
	goto :goto_1
	:cond_0
	add-int/lit8 v4, v4, 0x1
	goto :goto_0
	:cond_1
	const/4 v0, 0x0
	:goto_1
	if-nez v0, :cond_2
	return v3
	:cond_2
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x19
	if-lt v0, v1, :cond_3
	invoke-virtual {p2}, Landroidx/core/view/inputmethod/InputContentInfoCompat;->unwrap()Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Landroid/view/inputmethod/InputContentInfo;
	invoke-interface {p0, p1, p3, p4}, Landroid/view/inputmethod/InputConnection;->commitContent(Landroid/view/inputmethod/InputContentInfo;ILandroid/os/Bundle;)Z
	move-result p0
	return p0
	:cond_3
	invoke-static {p1}, Landroidx/core/view/inputmethod/EditorInfoCompat;->getProtocol(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
	const/4 v3, 0x1
	: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"
	:goto_2
	invoke-virtual {p2}, Landroidx/core/view/inputmethod/InputContentInfoCompat;->getContentUri()Landroid/net/Uri;
	move-result-object v1
	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"
	:goto_3
	invoke-virtual {p2}, Landroidx/core/view/inputmethod/InputContentInfoCompat;->getDescription()Landroid/content/ClipDescription;
	move-result-object v1
	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"
	:goto_4
	invoke-virtual {p2}, Landroidx/core/view/inputmethod/InputContentInfoCompat;->getLinkUri()Landroid/net/Uri;
	move-result-object p2
	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"
	: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"
	: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"
	: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 createWrapper(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Landroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;)Landroid/view/inputmethod/InputConnection;
	.locals 3

	if-eqz p0, :cond_4
	if-eqz p1, :cond_3
	if-eqz p2, :cond_2
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x19
	const/4 v2, 0x0
	if-lt v0, v1, :cond_0
	new-instance p1, Landroidx/core/view/inputmethod/InputConnectionCompat$1;
	invoke-direct {p1, p0, v2, p2}, Landroidx/core/view/inputmethod/InputConnectionCompat$1;-><init>(Landroid/view/inputmethod/InputConnection;ZLandroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;)V
	return-object p1
	:cond_0
	invoke-static {p1}, Landroidx/core/view/inputmethod/EditorInfoCompat;->getContentMimeTypes(Landroid/view/inputmethod/EditorInfo;)[Ljava/lang/String;
	move-result-object p1
	array-length p1, p1
	if-nez p1, :cond_1
	return-object p0
	:cond_1
	new-instance p1, Landroidx/core/view/inputmethod/InputConnectionCompat$2;
	invoke-direct {p1, p0, v2, p2}, Landroidx/core/view/inputmethod/InputConnectionCompat$2;-><init>(Landroid/view/inputmethod/InputConnection;ZLandroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;)V
	return-object p1
	:cond_2
	new-instance p0, Ljava/lang/IllegalArgumentException;
	const-string p1, "onCommitContentListener must be non-null"
	invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p0
	:cond_3
	new-instance p0, Ljava/lang/IllegalArgumentException;
	const-string p1, "editorInfo must be non-null"
	invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p0
	:cond_4
	new-instance p0, Ljava/lang/IllegalArgumentException;
	const-string p1, "inputConnection must be non-null"
	invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p0
.end method

.method static handlePerformPrivateCommand(Ljava/lang/String;Landroid/os/Bundle;Landroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;)Z
	.locals 7

	const/4 v0, 0x0
	if-nez p1, :cond_0
	return v0
	:cond_0
	const-string v1, "androidx.core.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
	invoke-static {v1, p0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
	move-result v1
	if-eqz v1, :cond_1
	const/4 p0, 0x0
	goto :goto_0
	:cond_1
	const-string v1, "android.support.v13.view.inputmethod.InputConnectionCompat.COMMIT_CONTENT"
	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"
	: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"
	: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"
	: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"
	: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"
	: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"
	: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
	new-instance p1, Landroidx/core/view/inputmethod/InputContentInfoCompat;
	invoke-direct {p1, v3, v4, v5}, Landroidx/core/view/inputmethod/InputContentInfoCompat;-><init>(Landroid/net/Uri;Landroid/content/ClipDescription;Landroid/net/Uri;)V
	invoke-interface {p2, p1, v6, p0}, Landroidx/core/view/inputmethod/InputConnectionCompat$OnCommitContentListener;->onCommitContent(Landroidx/core/view/inputmethod/InputContentInfoCompat;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
	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
	:cond_a
	throw p0
	:cond_b
	return v0
.end method