125 lines
3.3 KiB
Smali
125 lines
3.3 KiB
Smali
|
.class public final Landroidx/work/OneTimeWorkRequest;
|
||
|
.super Landroidx/work/WorkRequest;
|
||
|
.source "OneTimeWorkRequest.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Landroidx/work/OneTimeWorkRequest$Builder;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroidx/work/OneTimeWorkRequest$Builder;)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p1, Landroidx/work/WorkRequest$Builder;->mId:Ljava/util/UUID;
|
||
|
|
||
|
iget-object v1, p1, Landroidx/work/WorkRequest$Builder;->mWorkSpec:Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
iget-object p1, p1, Landroidx/work/WorkRequest$Builder;->mTags:Ljava/util/Set;
|
||
|
|
||
|
invoke-direct {p0, v0, v1, p1}, Landroidx/work/WorkRequest;-><init>(Ljava/util/UUID;Landroidx/work/impl/model/WorkSpec;Ljava/util/Set;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static from(Ljava/lang/Class;)Landroidx/work/OneTimeWorkRequest;
|
||
|
.locals 1
|
||
|
.param p0 # Ljava/lang/Class;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Landroidx/work/ListenableWorker;",
|
||
|
">;)",
|
||
|
"Landroidx/work/OneTimeWorkRequest;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Landroidx/work/OneTimeWorkRequest$Builder;
|
||
|
|
||
|
invoke-direct {v0, p0}, Landroidx/work/OneTimeWorkRequest$Builder;-><init>(Ljava/lang/Class;)V
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/work/WorkRequest$Builder;->build()Landroidx/work/WorkRequest;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Landroidx/work/OneTimeWorkRequest;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static from(Ljava/util/List;)Ljava/util/List;
|
||
|
.locals 3
|
||
|
.param p0 # Ljava/util/List;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Landroidx/work/ListenableWorker;",
|
||
|
">;>;)",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/OneTimeWorkRequest;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Ljava/lang/Class;
|
||
|
|
||
|
new-instance v2, Landroidx/work/OneTimeWorkRequest$Builder;
|
||
|
|
||
|
invoke-direct {v2, v1}, Landroidx/work/OneTimeWorkRequest$Builder;-><init>(Ljava/lang/Class;)V
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/work/WorkRequest$Builder;->build()Landroidx/work/WorkRequest;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-object v0
|
||
|
.end method
|