110 lines
3 KiB
Smali
110 lines
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 constructor <init>(Landroidx/work/OneTimeWorkRequest$Builder;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p1, Landroidx/work/OneTimeWorkRequest$Builder;->mId:Ljava/util/UUID;
|
|
|
|
iget-object v1, p1, Landroidx/work/OneTimeWorkRequest$Builder;->mWorkSpec:Landroidx/work/impl/model/WorkSpec;
|
|
|
|
iget-object p1, p1, Landroidx/work/OneTimeWorkRequest$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
|
|
.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/OneTimeWorkRequest$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
|
|
.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/OneTimeWorkRequest$Builder;->build()Landroidx/work/WorkRequest;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|