granularity level: instruction
.class public final Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.super Ljava/lang/Object;
.source "NotificationCompat.java"
.implements Landroidx/core/app/NotificationCompat$Action$Extender;
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/app/NotificationCompat$Action;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "WearableExtender"
.end annotation
.field private static final DEFAULT_FLAGS:I = 0x1
.field private static final EXTRA_WEARABLE_EXTENSIONS:Ljava/lang/String; = "android.wearable.EXTENSIONS"
.field private static final FLAG_AVAILABLE_OFFLINE:I = 0x1
.field private static final FLAG_HINT_DISPLAY_INLINE:I = 0x4
.field private static final FLAG_HINT_LAUNCHES_ACTIVITY:I = 0x2
.field private static final KEY_CANCEL_LABEL:Ljava/lang/String; = "cancelLabel"
.field private static final KEY_CONFIRM_LABEL:Ljava/lang/String; = "confirmLabel"
.field private static final KEY_FLAGS:Ljava/lang/String; = "flags"
.field private static final KEY_IN_PROGRESS_LABEL:Ljava/lang/String; = "inProgressLabel"
.field private mCancelLabel:Ljava/lang/CharSequence;
.field private mConfirmLabel:Ljava/lang/CharSequence;
.field private mFlags:I
.field private mInProgressLabel:Ljava/lang/CharSequence;
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
iput v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
return-void
.end method
.method public constructor <init>(Landroidx/core/app/NotificationCompat$Action;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
iput v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
move-result-object p1
const-string v1, "android.wearable.EXTENSIONS"
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_0
const-string v1, "flags"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
const-string v0, "inProgressLabel"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v0
iput-object v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
const-string v0, "confirmLabel"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v0
iput-object v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
const-string v0, "cancelLabel"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object p1
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
:cond_0
return-void
.end method
.method private setFlag(IZ)V
.locals 0
if-eqz p2, :cond_0
iget p2, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
or-int/2addr p1, p2
iput p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
goto :goto_0
:cond_0
iget p2, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
not-int p1, p1
and-int/2addr p1, p2
iput p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
:goto_0
return-void
.end method
.method public clone()Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 2
new-instance v0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;
invoke-direct {v0}, Landroidx/core/app/NotificationCompat$Action$WearableExtender;-><init>()V
iget v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
iput v1, v0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
iput-object v1, v0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
iput-object v1, v0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
iput-object v1, v0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
return-object v0
.end method
.method public bridge synthetic clone()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->clone()Landroidx/core/app/NotificationCompat$Action$WearableExtender;
move-result-object v0
return-object v0
.end method
.method public extend(Landroidx/core/app/NotificationCompat$Action$Builder;)Landroidx/core/app/NotificationCompat$Action$Builder;
.locals 3
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
const/4 v2, 0x1
if-eq v1, v2, :cond_0
const-string v2, "flags"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_0
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
if-eqz v1, :cond_1
const-string v2, "inProgressLabel"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
:cond_1
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
if-eqz v1, :cond_2
const-string v2, "confirmLabel"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
:cond_2
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
if-eqz v1, :cond_3
const-string v2, "cancelLabel"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
:cond_3
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action$Builder;->getExtras()Landroid/os/Bundle;
move-result-object v1
const-string v2, "android.wearable.EXTENSIONS"
invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
return-object p1
.end method
.method public getCancelLabel()Ljava/lang/CharSequence;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
return-object v0
.end method
.method public getConfirmLabel()Ljava/lang/CharSequence;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
return-object v0
.end method
.method public getHintDisplayActionInline()Z
.locals 1
iget v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
and-int/lit8 v0, v0, 0x4
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public getHintLaunchesActivity()Z
.locals 1
iget v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
and-int/lit8 v0, v0, 0x2
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public getInProgressLabel()Ljava/lang/CharSequence;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
return-object v0
.end method
.method public isAvailableOffline()Z
.locals 2
iget v0, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mFlags:I
const/4 v1, 0x1
and-int/2addr v0, v1
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public setAvailableOffline(Z)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0, p1}, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->setFlag(IZ)V
return-object p0
.end method
.method public setCancelLabel(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mCancelLabel:Ljava/lang/CharSequence;
return-object p0
.end method
.method public setConfirmLabel(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mConfirmLabel:Ljava/lang/CharSequence;
return-object p0
.end method
.method public setHintDisplayActionInline(Z)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 1
const/4 v0, 0x4
invoke-direct {p0, v0, p1}, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->setFlag(IZ)V
return-object p0
.end method
.method public setHintLaunchesActivity(Z)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0, p1}, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->setFlag(IZ)V
return-object p0
.end method
.method public setInProgressLabel(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Action$WearableExtender;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$Action$WearableExtender;->mInProgressLabel:Ljava/lang/CharSequence;
return-object p0
.end method