358 lines
9.2 KiB
Smali
358 lines
9.2 KiB
Smali
.class public Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.super Lcom/google/android/gms/gcm/Task$Builder;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/gms/gcm/PeriodicTask;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private zzao:J
|
|
|
|
.field private zzap:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/gms/gcm/Task$Builder;-><init>()V
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
.line 2
|
|
iput-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzao:J
|
|
|
|
.line 3
|
|
iput-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 4
|
|
iput-boolean v0, p0, Lcom/google/android/gms/gcm/Task$Builder;->isPersisted:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic zzd(Lcom/google/android/gms/gcm/PeriodicTask$Builder;)J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzao:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static synthetic zze(Lcom/google/android/gms/gcm/PeriodicTask$Builder;)J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Lcom/google/android/gms/gcm/PeriodicTask;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->checkConditions()V
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/google/android/gms/gcm/PeriodicTask;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/gms/gcm/PeriodicTask;-><init>(Lcom/google/android/gms/gcm/PeriodicTask$Builder;Lcom/google/android/gms/gcm/zzk;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic build()Lcom/google/android/gms/gcm/Task;
|
|
.locals 1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->build()Lcom/google/android/gms/gcm/PeriodicTask;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public checkConditions()V
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-super {p0}, Lcom/google/android/gms/gcm/Task$Builder;->checkConditions()V
|
|
|
|
.line 2
|
|
iget-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzao:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v4, v0, v4
|
|
|
|
if-lez v4, :cond_2
|
|
|
|
.line 3
|
|
iget-wide v4, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
cmp-long v2, v4, v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
long-to-float v0, v0
|
|
|
|
const v1, 0x3dcccccd # 0.1f
|
|
|
|
mul-float/2addr v0, v1
|
|
|
|
float-to-long v0, v0
|
|
|
|
.line 4
|
|
iput-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
cmp-long v2, v4, v0
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
.line 5
|
|
iput-wide v0, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
iget-wide v1, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzao:J
|
|
|
|
const/16 v3, 0x42
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v3, "Period set cannot be less than or equal to 0: "
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 7
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Must call setPeriod(long) to establish an execution interval for this periodic task."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public setExtras(Landroid/os/Bundle;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->extras:Landroid/os/Bundle;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setExtras(Landroid/os/Bundle;)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setExtras(Landroid/os/Bundle;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setFlex(J)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-wide p1, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzap:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setPeriod(J)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-wide p1, p0, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->zzao:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setPersisted(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
value = "android.permission.RECEIVE_BOOT_COMPLETED"
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->isPersisted:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setPersisted(Z)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
value = "android.permission.RECEIVE_BOOT_COMPLETED"
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setPersisted(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setRequiredNetwork(I)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->requiredNetworkState:I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setRequiredNetwork(I)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setRequiredNetwork(I)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setRequiresCharging(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->requiresCharging:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setRequiresCharging(Z)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setRequiresCharging(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setService(Ljava/lang/Class;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"+",
|
|
"Lcom/google/android/gms/gcm/GcmTaskService;",
|
|
">;)",
|
|
"Lcom/google/android/gms/gcm/PeriodicTask$Builder;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->gcmTaskService:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setService(Ljava/lang/Class;)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setService(Ljava/lang/Class;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setTag(Ljava/lang/String;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->tag:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setTag(Ljava/lang/String;)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setTag(Ljava/lang/String;)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setUpdateCurrent(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/gms/gcm/Task$Builder;->updateCurrent:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setUpdateCurrent(Z)Lcom/google/android/gms/gcm/Task$Builder;
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/gcm/PeriodicTask$Builder;->setUpdateCurrent(Z)Lcom/google/android/gms/gcm/PeriodicTask$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|