granularity level: instruction

		.class  Landroidx/core/app/NotificationCompatJellybean;
.super Ljava/lang/Object;
.source "NotificationCompatJellybean.java"


.field static final EXTRA_ALLOW_GENERATED_REPLIES:Ljava/lang/String; = "android.support.allowGeneratedReplies"
.field static final EXTRA_DATA_ONLY_REMOTE_INPUTS:Ljava/lang/String; = "android.support.dataRemoteInputs"
.field private static final KEY_ACTION_INTENT:Ljava/lang/String; = "actionIntent"
.field private static final KEY_ALLOWED_DATA_TYPES:Ljava/lang/String; = "allowedDataTypes"
.field private static final KEY_ALLOW_FREE_FORM_INPUT:Ljava/lang/String; = "allowFreeFormInput"
.field private static final KEY_CHOICES:Ljava/lang/String; = "choices"
.field private static final KEY_DATA_ONLY_REMOTE_INPUTS:Ljava/lang/String; = "dataOnlyRemoteInputs"
.field private static final KEY_EXTRAS:Ljava/lang/String; = "extras"
.field private static final KEY_ICON:Ljava/lang/String; = "icon"
.field private static final KEY_LABEL:Ljava/lang/String; = "label"
.field private static final KEY_REMOTE_INPUTS:Ljava/lang/String; = "remoteInputs"
.field private static final KEY_RESULT_KEY:Ljava/lang/String; = "resultKey"
.field private static final KEY_SEMANTIC_ACTION:Ljava/lang/String; = "semanticAction"
.field private static final KEY_SHOWS_USER_INTERFACE:Ljava/lang/String; = "showsUserInterface"
.field private static final KEY_TITLE:Ljava/lang/String; = "title"
.field public static final TAG:Ljava/lang/String; = "NotificationCompat"
.field private static sActionIconField:Ljava/lang/reflect/Field;
.field private static sActionIntentField:Ljava/lang/reflect/Field;
.field private static sActionTitleField:Ljava/lang/reflect/Field;
.field private static sActionsAccessFailed:Z
.field private static sActionsField:Ljava/lang/reflect/Field;
.field private static final sActionsLock:Ljava/lang/Object;
.field private static sExtrasField:Ljava/lang/reflect/Field;
.field private static sExtrasFieldAccessFailed:Z
.field private static final sExtrasLock:Ljava/lang/Object;


.method static constructor <clinit>()V
	.locals 1

	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	sput-object v0, Landroidx/core/app/NotificationCompatJellybean;->sExtrasLock:Ljava/lang/Object;
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	sput-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
	return-void
.end method

.method private constructor <init>()V
	.locals 0

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

.method public static buildActionExtrasMap(Ljava/util/List;)Landroid/util/SparseArray;
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/List<",
	"Landroid/os/Bundle;",
	">;)",
	"Landroid/util/SparseArray<",
	"Landroid/os/Bundle;",
	">;"
	}
	.end annotation

	invoke-interface {p0}, Ljava/util/List;->size()I
	move-result v0
	const/4 v1, 0x0
	const/4 v2, 0x0
	:goto_0
	if-ge v2, v0, :cond_2
	invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Landroid/os/Bundle;
	if-eqz v3, :cond_1
	if-nez v1, :cond_0
	new-instance v1, Landroid/util/SparseArray;
	invoke-direct {v1}, Landroid/util/SparseArray;-><init>()V
	:cond_0
	invoke-virtual {v1, v2, v3}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
	:cond_1
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:cond_2
	return-object v1
.end method

.method private static ensureActionReflectionReadyLocked()Z
	.locals 5

	const-string v0, "Unable to access notification actions"
	const-string v1, "NotificationCompat"
	sget-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	if-eqz v2, :cond_0
	const/4 v0, 0x0
	return v0
	:cond_0
	const/4 v2, 0x1
	:try_start_0
	sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
	if-nez v3, :cond_1
	const-string v3, "android.app.Notification$Action"
	invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object v3
	const-string v4, "icon"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v4
	sput-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionIconField:Ljava/lang/reflect/Field;
	const-string v4, "title"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v4
	sput-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionTitleField:Ljava/lang/reflect/Field;
	const-string v4, "actionIntent"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v3
	sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionIntentField:Ljava/lang/reflect/Field;
	const-class v3, Landroid/app/Notification;
	const-string v4, "actions"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v3
	sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
	invoke-virtual {v3, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
	:try_end_0
	.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_0
	:catch_0
	move-exception v3
	invoke-static {v1, v0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	sput-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	goto :goto_0
	:catch_1
	move-exception v3
	invoke-static {v1, v0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	sput-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	:goto_0
	:cond_1
	sget-boolean v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	xor-int/2addr v0, v2
	return v0
.end method

.method private static fromBundle(Landroid/os/Bundle;)Landroidx/core/app/RemoteInput;
	.locals 9

	const-string v0, "allowedDataTypes"
	invoke-virtual {p0, v0}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
	move-result-object v0
	new-instance v8, Ljava/util/HashSet;
	invoke-direct {v8}, Ljava/util/HashSet;-><init>()V
	if-eqz v0, :cond_0
	invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/String;
	invoke-interface {v8, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_0
	new-instance v0, Landroidx/core/app/RemoteInput;
	const-string v1, "resultKey"
	invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v2
	const-string v1, "label"
	invoke-virtual {p0, v1}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v3
	const-string v1, "choices"
	invoke-virtual {p0, v1}, Landroid/os/Bundle;->getCharSequenceArray(Ljava/lang/String;)[Ljava/lang/CharSequence;
	move-result-object v4
	const-string v1, "allowFreeFormInput"
	invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
	move-result v5
	const/4 v6, 0x0
	const-string v1, "extras"
	invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
	move-result-object v7
	move-object v1, v0
	invoke-direct/range {v1 .. v8}, Landroidx/core/app/RemoteInput;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;[Ljava/lang/CharSequence;ZILandroid/os/Bundle;Ljava/util/Set;)V
	return-object v0
.end method

.method private static fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
	.locals 3

	if-nez p0, :cond_0
	const/4 p0, 0x0
	return-object p0
	:cond_0
	array-length v0, p0
	new-array v0, v0, [Landroidx/core/app/RemoteInput;
	const/4 v1, 0x0
	:goto_0
	array-length v2, p0
	if-ge v1, v2, :cond_1
	aget-object v2, p0, v1
	invoke-static {v2}, Landroidx/core/app/NotificationCompatJellybean;->fromBundle(Landroid/os/Bundle;)Landroidx/core/app/RemoteInput;
	move-result-object v2
	aput-object v2, v0, v1
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-object v0
.end method

.method public static getAction(Landroid/app/Notification;I)Landroidx/core/app/NotificationCompat$Action;
	.locals 5

	sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
	monitor-enter v0
	const/4 v1, 0x0
	:try_start_0
	invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
	move-result-object v2
	if-eqz v2, :cond_1
	aget-object v2, v2, p1
	invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
	move-result-object p0
	if-eqz p0, :cond_0
	const-string v3, "android.support.actionExtras"
	invoke-virtual {p0, v3}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
	move-result-object p0
	if-eqz p0, :cond_0
	invoke-virtual {p0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/os/Bundle;
	goto :goto_0
	:cond_0
	move-object p0, v1
	:goto_0
	sget-object p1, Landroidx/core/app/NotificationCompatJellybean;->sActionIconField:Ljava/lang/reflect/Field;
	invoke-virtual {p1, v2}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
	move-result p1
	sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionTitleField:Ljava/lang/reflect/Field;
	invoke-virtual {v3, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/lang/CharSequence;
	sget-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionIntentField:Ljava/lang/reflect/Field;
	invoke-virtual {v4, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Landroid/app/PendingIntent;
	invoke-static {p1, v3, v2, p0}, Landroidx/core/app/NotificationCompatJellybean;->readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
	move-result-object p0
	:try_end_0
	.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	:try_start_1
	monitor-exit v0
	return-object p0
	:catchall_0
	move-exception p0
	goto :goto_1
	:catch_0
	move-exception p0
	const-string p1, "NotificationCompat"
	const-string v2, "Unable to access notification actions"
	invoke-static {p1, v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	const/4 p0, 0x1
	sput-boolean p0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	:cond_1
	monitor-exit v0
	return-object v1
	:goto_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p0
.end method

.method public static getActionCount(Landroid/app/Notification;)I
	.locals 1

	sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
	move-result-object p0
	if-eqz p0, :cond_0
	array-length p0, p0
	goto :goto_0
	:cond_0
	const/4 p0, 0x0
	:goto_0
	monitor-exit v0
	return p0
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p0
.end method

.method static getActionFromBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
	.locals 14

	const-string v0, "extras"
	invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
	move-result-object v1
	const/4 v2, 0x0
	if-eqz v1, :cond_0
	const-string v3, "android.support.allowGeneratedReplies"
	invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
	move-result v2
	move v10, v2
	goto :goto_0
	:cond_0
	const/4 v10, 0x0
	:goto_0
	new-instance v1, Landroidx/core/app/NotificationCompat$Action;
	const-string v2, "icon"
	invoke-virtual {p0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result v4
	const-string v2, "title"
	invoke-virtual {p0, v2}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v5
	const-string v2, "actionIntent"
	invoke-virtual {p0, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
	move-result-object v2
	move-object v6, v2
	check-cast v6, Landroid/app/PendingIntent;
	invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
	move-result-object v7
	const-string v0, "remoteInputs"
	invoke-static {p0, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
	move-result-object v0
	invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
	move-result-object v8
	const-string v0, "dataOnlyRemoteInputs"
	invoke-static {p0, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
	move-result-object v0
	invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
	move-result-object v9
	const-string v0, "semanticAction"
	invoke-virtual {p0, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result v11
	const-string v0, "showsUserInterface"
	invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
	move-result v12
	const/4 v13, 0x0
	move-object v3, v1
	invoke-direct/range {v3 .. v13}, Landroidx/core/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;[Landroidx/core/app/RemoteInput;ZIZZ)V
	return-object v1
.end method

.method private static getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
	.locals 4

	sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	invoke-static {}, Landroidx/core/app/NotificationCompatJellybean;->ensureActionReflectionReadyLocked()Z
	move-result v1
	const/4 v2, 0x0
	if-nez v1, :cond_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	return-object v2
	:try_start_1
	:cond_0
	sget-object v1, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
	invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, [Ljava/lang/Object;
	check-cast p0, [Ljava/lang/Object;
	:try_end_1
	.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	monitor-exit v0
	return-object p0
	:catch_0
	move-exception p0
	const-string v1, "NotificationCompat"
	const-string v3, "Unable to access notification actions"
	invoke-static {v1, v3, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	const/4 p0, 0x1
	sput-boolean p0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
	monitor-exit v0
	return-object v2
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	throw p0
.end method

.method private static getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
	.locals 3

	invoke-virtual {p0, p1}, Landroid/os/Bundle;->getParcelableArray(Ljava/lang/String;)[Landroid/os/Parcelable;
	move-result-object v0
	instance-of v1, v0, [Landroid/os/Bundle;
	if-nez v1, :cond_1
	if-nez v0, :cond_0
	goto :goto_0
	:cond_0
	array-length v1, v0
	const-class v2, [Landroid/os/Bundle;
	invoke-static {v0, v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
	move-result-object v0
	check-cast v0, [Landroid/os/Bundle;
	invoke-virtual {p0, p1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
	return-object v0
	:cond_1
	:goto_0
	check-cast v0, [Landroid/os/Bundle;
	check-cast v0, [Landroid/os/Bundle;
	return-object v0
.end method

.method static getBundleForAction(Landroidx/core/app/NotificationCompat$Action;)Landroid/os/Bundle;
	.locals 4

	new-instance v0, Landroid/os/Bundle;
	invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getIcon()I
	move-result v1
	const-string v2, "icon"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
	move-result-object v1
	const-string v2, "title"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
	move-result-object v1
	const-string v2, "actionIntent"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
	move-result-object v1
	if-eqz v1, :cond_0
	new-instance v1, Landroid/os/Bundle;
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
	move-result-object v2
	invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
	goto :goto_0
	:cond_0
	new-instance v1, Landroid/os/Bundle;
	invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
	:goto_0
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
	move-result v2
	const-string v3, "android.support.allowGeneratedReplies"
	invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
	const-string v2, "extras"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
	move-result-object v1
	invoke-static {v1}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
	move-result-object v1
	const-string v2, "remoteInputs"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getShowsUserInterface()Z
	move-result v1
	const-string v2, "showsUserInterface"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
	invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getSemanticAction()I
	move-result p0
	const-string v1, "semanticAction"
	invoke-virtual {v0, v1, p0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
	return-object v0
.end method

.method public static getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
	.locals 6

	sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sExtrasLock:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	sget-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
	const/4 v2, 0x0
	if-eqz v1, :cond_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	return-object v2
	:cond_0
	const/4 v1, 0x1
	:try_start_1
	sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
	if-nez v3, :cond_2
	const-class v3, Landroid/app/Notification;
	const-string v4, "extras"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v3
	const-class v4, Landroid/os/Bundle;
	invoke-virtual {v3}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
	move-result-object v5
	invoke-virtual {v4, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
	move-result v4
	if-nez v4, :cond_1
	const-string p0, "NotificationCompat"
	const-string v3, "Notification.extras field is not of type Bundle"
	invoke-static {p0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	sput-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
	:try_end_1
	.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
	.catch Ljava/lang/NoSuchFieldException; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	monitor-exit v0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	return-object v2
	:try_start_3
	:cond_1
	invoke-virtual {v3, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
	sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
	:cond_2
	sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
	invoke-virtual {v3, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Landroid/os/Bundle;
	if-nez v3, :cond_3
	new-instance v3, Landroid/os/Bundle;
	invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
	sget-object v4, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
	invoke-virtual {v4, p0, v3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
	:try_end_3
	.catch Ljava/lang/IllegalAccessException; {:try_start_3 .. :try_end_3} :catch_1
	.catch Ljava/lang/NoSuchFieldException; {:try_start_3 .. :try_end_3} :catch_0
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	:try_start_4
	:cond_3
	monitor-exit v0
	return-object v3
	:catch_0
	move-exception p0
	const-string v3, "NotificationCompat"
	const-string v4, "Unable to access notification extras"
	invoke-static {v3, v4, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	goto :goto_0
	:catch_1
	move-exception p0
	const-string v3, "NotificationCompat"
	const-string v4, "Unable to access notification extras"
	invoke-static {v3, v4, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_0
	sput-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
	monitor-exit v0
	return-object v2
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_0
	throw p0
.end method

.method public static readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
	.locals 12

	const/4 v0, 0x0
	if-eqz p3, :cond_0
	const-string v0, "android.support.remoteInputs"
	invoke-static {p3, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
	move-result-object v0
	invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
	move-result-object v0
	const-string v1, "android.support.dataRemoteInputs"
	invoke-static {p3, v1}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
	move-result-object v1
	invoke-static {v1}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
	move-result-object v1
	const-string v2, "android.support.allowGeneratedReplies"
	invoke-virtual {p3, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
	move-result v2
	move-object v5, v0
	move-object v6, v1
	move v7, v2
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	move-object v5, v0
	move-object v6, v5
	const/4 v7, 0x0
	:goto_0
	new-instance v11, Landroidx/core/app/NotificationCompat$Action;
	const/4 v8, 0x0
	const/4 v9, 0x1
	const/4 v10, 0x0
	move-object v0, v11
	move v1, p0
	move-object v2, p1
	move-object v3, p2
	move-object v4, p3
	invoke-direct/range {v0 .. v10}, Landroidx/core/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;[Landroidx/core/app/RemoteInput;ZIZZ)V
	return-object v11
.end method

.method private static toBundle(Landroidx/core/app/RemoteInput;)Landroid/os/Bundle;
	.locals 3

	new-instance v0, Landroid/os/Bundle;
	invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getResultKey()Ljava/lang/String;
	move-result-object v1
	const-string v2, "resultKey"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getLabel()Ljava/lang/CharSequence;
	move-result-object v1
	const-string v2, "label"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getChoices()[Ljava/lang/CharSequence;
	move-result-object v1
	const-string v2, "choices"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequenceArray(Ljava/lang/String;[Ljava/lang/CharSequence;)V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getAllowFreeFormInput()Z
	move-result v1
	const-string v2, "allowFreeFormInput"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getExtras()Landroid/os/Bundle;
	move-result-object v1
	const-string v2, "extras"
	invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
	invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getAllowedDataTypes()Ljava/util/Set;
	move-result-object p0
	if-eqz p0, :cond_1
	invoke-interface {p0}, Ljava/util/Set;->isEmpty()Z
	move-result v1
	if-nez v1, :cond_1
	new-instance v1, Ljava/util/ArrayList;
	invoke-interface {p0}, Ljava/util/Set;->size()I
	move-result v2
	invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
	invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object p0
	:goto_0
	invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_0
	invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/lang/String;
	invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_0
	const-string p0, "allowedDataTypes"
	invoke-virtual {v0, p0, v1}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
	:cond_1
	return-object v0
.end method

.method private static toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
	.locals 3

	if-nez p0, :cond_0
	const/4 p0, 0x0
	return-object p0
	:cond_0
	array-length v0, p0
	new-array v0, v0, [Landroid/os/Bundle;
	const/4 v1, 0x0
	:goto_0
	array-length v2, p0
	if-ge v1, v2, :cond_1
	aget-object v2, p0, v1
	invoke-static {v2}, Landroidx/core/app/NotificationCompatJellybean;->toBundle(Landroidx/core/app/RemoteInput;)Landroid/os/Bundle;
	move-result-object v2
	aput-object v2, v0, v1
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_1
	return-object v0
.end method

.method public static writeActionAndGetExtras(Landroid/app/Notification$Builder;Landroidx/core/app/NotificationCompat$Action;)Landroid/os/Bundle;
	.locals 3

	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getIcon()I
	move-result v0
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
	move-result-object v1
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
	move-result-object v2
	invoke-virtual {p0, v0, v1, v2}, Landroid/app/Notification$Builder;->addAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;
	new-instance p0, Landroid/os/Bundle;
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
	move-result-object v0
	invoke-direct {p0, v0}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
	move-result-object v0
	if-eqz v0, :cond_0
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
	move-result-object v0
	invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
	move-result-object v0
	const-string v1, "android.support.remoteInputs"
	invoke-virtual {p0, v1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
	:cond_0
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getDataOnlyRemoteInputs()[Landroidx/core/app/RemoteInput;
	move-result-object v0
	if-eqz v0, :cond_1
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getDataOnlyRemoteInputs()[Landroidx/core/app/RemoteInput;
	move-result-object v0
	invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
	move-result-object v0
	const-string v1, "android.support.dataRemoteInputs"
	invoke-virtual {p0, v1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
	:cond_1
	invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
	move-result p1
	const-string v0, "android.support.allowGeneratedReplies"
	invoke-virtual {p0, v0, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
	return-object p0
.end method