g.smali
.class public abstract Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation build Lcom/google/auto/value/AutoValue;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;,
Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;,
Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private a(IJ)J
.registers 10
add-int/lit8 p1, p1, -0x1
const-wide/16 v0, 0x1
cmp-long v2, p2, v0
if-lez v2, :cond_a
move-wide v0, p2
goto :goto_c
:cond_a
const-wide/16 v0, 0x2
:goto_c
const-wide v2, 0x40c3880000000000L # 10000.0
invoke-static {v2, v3}, Ljava/lang/Math;->log(D)D
move-result-wide v2
int-to-long v4, p1
mul-long v0, v0, v4
long-to-double v0, v0
invoke-static {v0, v1}, Ljava/lang/Math;->log(D)D
move-result-wide v0
div-double/2addr v2, v0
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(DD)D
move-result-wide v0
const-wide/high16 v2, 0x4008000000000000L # 3.0
int-to-double v4, p1
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->pow(DD)D
move-result-wide v2
long-to-double p1, p2
invoke-static {p1, p2}, Ljava/lang/Double;->isNaN(D)Z
mul-double v2, v2, p1
mul-double v2, v2, v0
double-to-long p1, v2
return-wide p1
.end method
.method public static b()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
.registers 1
new-instance v0, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;-><init>()V
return-object v0
.end method
.method static d(Lf/b/b/a/i/z/a;Ljava/util/Map;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/b/b/a/i/z/a;",
"Ljava/util/Map<",
"Lf/b/b/a/d;",
"Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;",
">;)",
"Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;"
}
.end annotation
new-instance v0, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;
invoke-direct {v0, p0, p1}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;-><init>(Lf/b/b/a/i/z/a;Ljava/util/Map;)V
return-object v0
.end method
.method public static f(Lf/b/b/a/i/z/a;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;
.registers 8
invoke-static {}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->b()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
move-result-object v0
sget-object v1, Lf/b/b/a/d;->e:Lf/b/b/a/d;
invoke-static {}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
move-result-object v2
const-wide/16 v3, 0x7530
invoke-virtual {v2, v3, v4}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->b(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
const-wide/32 v3, 0x5265c00
invoke-virtual {v2, v3, v4}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->d(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
invoke-virtual {v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;->a(Lf/b/b/a/d;Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
sget-object v1, Lf/b/b/a/d;->g:Lf/b/b/a/d;
invoke-static {}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
move-result-object v2
const-wide/16 v5, 0x3e8
invoke-virtual {v2, v5, v6}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->b(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
invoke-virtual {v2, v3, v4}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->d(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
invoke-virtual {v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;->a(Lf/b/b/a/d;Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
sget-object v1, Lf/b/b/a/d;->f:Lf/b/b/a/d;
invoke-static {}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
move-result-object v2
invoke-virtual {v2, v3, v4}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->b(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
invoke-virtual {v2, v3, v4}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->d(J)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
const/4 v3, 0x2
new-array v3, v3, [Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
sget-object v4, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;->e:Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
const/4 v5, 0x0
aput-object v4, v3, v5
sget-object v4, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;->f:Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
const/4 v5, 0x1
aput-object v4, v3, v5
invoke-static {v3}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->i([Ljava/lang/Object;)Ljava/util/Set;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->c(Ljava/util/Set;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;
invoke-virtual {v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b$a;->a()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;->a(Lf/b/b/a/d;Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
invoke-virtual {v0, p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;->c(Lf/b/b/a/i/z/a;)Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;
invoke-virtual {v0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$a;->b()Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;
move-result-object p0
return-object p0
.end method
.method private static varargs i([Ljava/lang/Object;)Ljava/util/Set;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
new-instance v0, Ljava/util/HashSet;
invoke-static {p0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p0
return-object p0
.end method
.method private j(Landroid/app/job/JobInfo$Builder;Ljava/util/Set;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/app/job/JobInfo$Builder;",
"Ljava/util/Set<",
"Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;",
">;)V"
}
.end annotation
sget-object v0, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;->e:Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
invoke-interface {p2, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_e
const/4 v0, 0x2
invoke-virtual {p1, v0}, Landroid/app/job/JobInfo$Builder;->setRequiredNetworkType(I)Landroid/app/job/JobInfo$Builder;
goto :goto_11
:cond_e
invoke-virtual {p1, v1}, Landroid/app/job/JobInfo$Builder;->setRequiredNetworkType(I)Landroid/app/job/JobInfo$Builder;
:goto_11
sget-object v0, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;->g:Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
invoke-interface {p2, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1c
invoke-virtual {p1, v1}, Landroid/app/job/JobInfo$Builder;->setRequiresCharging(Z)Landroid/app/job/JobInfo$Builder;
:cond_1c
sget-object v0, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;->f:Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$c;
invoke-interface {p2, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_27
invoke-virtual {p1, v1}, Landroid/app/job/JobInfo$Builder;->setRequiresDeviceIdle(Z)Landroid/app/job/JobInfo$Builder;
:cond_27
return-void
.end method
# virtual methods
.method public c(Landroid/app/job/JobInfo$Builder;Lf/b/b/a/d;JI)Landroid/app/job/JobInfo$Builder;
.registers 6
invoke-virtual {p0, p2, p3, p4, p5}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->g(Lf/b/b/a/d;JI)J
move-result-wide p3
invoke-virtual {p1, p3, p4}, Landroid/app/job/JobInfo$Builder;->setMinimumLatency(J)Landroid/app/job/JobInfo$Builder;
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->h()Ljava/util/Map;
move-result-object p3
invoke-interface {p3, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;
invoke-virtual {p2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->c()Ljava/util/Set;
move-result-object p2
invoke-direct {p0, p1, p2}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->j(Landroid/app/job/JobInfo$Builder;Ljava/util/Set;)V
return-object p1
.end method
.method abstract e()Lf/b/b/a/i/z/a;
.end method
.method public g(Lf/b/b/a/d;JI)J
.registers 7
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->e()Lf/b/b/a/i/z/a;
move-result-object v0
invoke-interface {v0}, Lf/b/b/a/i/z/a;->a()J
move-result-wide v0
sub-long/2addr p2, v0
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->h()Ljava/util/Map;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;
invoke-virtual {p1}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->b()J
move-result-wide v0
invoke-direct {p0, p4, v0, v1}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g;->a(IJ)J
move-result-wide v0
invoke-static {v0, v1, p2, p3}, Ljava/lang/Math;->max(JJ)J
move-result-wide p2
invoke-virtual {p1}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;->d()J
move-result-wide v0
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
return-wide p1
.end method
.method abstract h()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Lf/b/b/a/d;",
"Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/g$b;",
">;"
}
.end annotation
.end method