2020-11-12 02:11:44 +00:00
.class public L androidx/work/impl/WorkManagerImpl ;
.super L androidx/work/WorkManager ;
.source "WorkManagerImpl.java"
# annotations
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
# static fields
.field public static final MAX_PRE_JOB_SCHEDULER_API_LEVEL : I = 0x16
.field public static final MIN_JOB_SCHEDULER_API_LEVEL : I = 0x17
2020-11-16 22:05:17 +00:00
.field private static sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private static sDelegatedInstance : L androidx/work/impl/WorkManagerImpl ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private static final sLock : L java/lang/Object ;
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-16 22:05:17 +00:00
.field private mConfiguration : L androidx/work/Configuration ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mContext : L android/content/Context ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mForceStopRunnableCompleted : Z
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mPreferenceUtils : L androidx/work/impl/utils/PreferenceUtils ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mProcessor : L androidx/work/impl/Processor ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mRescheduleReceiverResult : L android/content/BroadcastReceiver$PendingResult ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mSchedulers : L java/util/List ;
2020-11-12 02:11:44 +00:00
.annotation system L dalvik/annotation/Signature ;
value = {
"Ljava/util/List<" ,
"Landroidx/work/impl/Scheduler;" ,
">;"
}
.end annotation
.end field
2020-11-16 22:05:17 +00:00
.field private mWorkDatabase : L androidx/work/impl/WorkDatabase ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field private mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
2020-11-12 02:11:44 +00:00
# direct methods
.method public static constructor <clinit> ( ) V
.locals 1
new-instance v0 , L java/lang/Object ;
invoke-direct { v0 } , L java/lang/Object ;-> <init> ( ) V
sput-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) V
.locals 2
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
invoke-virtual { p1 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
sget v1 , L androidx/work/R$bool ;-> workmanager_test_configuration : I
invoke-virtual { v0 , v1 } , L android/content/res/Resources ;-> getBoolean ( I ) Z
move-result v0
invoke-direct { p0 , p1 , p2 , p3 , v0 } , L androidx/work/impl/WorkManagerImpl ;-> <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;Z ) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;) V
.locals 10
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p4 # Landroidx/work/impl/WorkDatabase;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
invoke-direct { p0 } , L androidx/work/WorkManager ;-> <init> ( ) V
invoke-virtual { p1 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object v0
new-instance v1 , L androidx/work/Logger$LogcatLogger ;
invoke-virtual { p2 } , L androidx/work/Configuration ;-> getMinimumLoggingLevel ( ) I
move-result v2
invoke-direct { v1 , v2 } , L androidx/work/Logger$LogcatLogger ;-> <init> ( I ) V
invoke-static { v1 } , L androidx/work/Logger ;-> setLogger ( L androidx/work/Logger ;) V
invoke-virtual { p0 , v0 , p2 , p3 } , L androidx/work/impl/WorkManagerImpl ;-> createSchedulers ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L java/util/List ;
move-result-object v0
new-instance v9 , L androidx/work/impl/Processor ;
move-object v3 , v9
move-object v4 , p1
move-object v5 , p2
move-object v6 , p3
move-object v7 , p4
move-object v8 , v0
invoke-direct/range { v3 . . v8 } , L androidx/work/impl/Processor ;-> <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;L java/util/List ;) V
move-object v3 , p0
invoke-direct/range { v3 . . v9 } , L androidx/work/impl/WorkManagerImpl ;-> internalInit ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;L java/util/List ;L androidx/work/impl/Processor ;) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;L java/util/List ;L androidx/work/impl/Processor ;) V
.locals 0
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p4 # Landroidx/work/impl/WorkDatabase;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p5 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p6 # Landroidx/work/impl/Processor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroid/content/Context;" ,
"Landroidx/work/Configuration;" ,
"Landroidx/work/impl/utils/taskexecutor/TaskExecutor;" ,
"Landroidx/work/impl/WorkDatabase;" ,
"Ljava/util/List<" ,
"Landroidx/work/impl/Scheduler;" ,
">;" ,
"Landroidx/work/impl/Processor;" ,
")V"
}
.end annotation
invoke-direct { p0 } , L androidx/work/WorkManager ;-> <init> ( ) V
invoke-direct/range { p0 . . p6 } , L androidx/work/impl/WorkManagerImpl ;-> internalInit ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;L java/util/List ;L androidx/work/impl/Processor ;) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;Z ) V
.locals 2
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
invoke-virtual { p1 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object v0
invoke-interface { p3 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> getBackgroundExecutor ( ) L androidx/work/impl/utils/SerialExecutor ;
move-result-object v1
invoke-static { v0 , v1 , p4 } , L androidx/work/impl/WorkDatabase ;-> create ( L android/content/Context ;L java/util/concurrent/Executor ;Z ) L androidx/work/impl/WorkDatabase ;
move-result-object p4
invoke-direct { p0 , p1 , p2 , p3 , p4 } , L androidx/work/impl/WorkManagerImpl ;-> <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;) V
return-void
.end method
.method private createWorkContinuationForUniquePeriodicWork ( L java/lang/String ;L androidx/work/ExistingPeriodicWorkPolicy ;L androidx/work/PeriodicWorkRequest ;) L androidx/work/impl/WorkContinuationImpl ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/ExistingPeriodicWorkPolicy;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/PeriodicWorkRequest;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
sget-object v0 , L androidx/work/ExistingPeriodicWorkPolicy ;-> KEEP : L androidx/work/ExistingPeriodicWorkPolicy ;
if-ne p2 , v0 , :cond_0
sget-object p2 , L androidx/work/ExistingWorkPolicy ;-> KEEP : L androidx/work/ExistingWorkPolicy ;
goto :goto_0
:cond_0
sget-object p2 , L androidx/work/ExistingWorkPolicy ;-> REPLACE : L androidx/work/ExistingWorkPolicy ;
:goto_0
new-instance v0 , L androidx/work/impl/WorkContinuationImpl ;
invoke-static { p3 } , L java/util/Collections ;-> singletonList ( L java/lang/Object ;) L java/util/List ;
move-result-object p3
invoke-direct { v0 , p0 , p1 , p2 , p3 } , L androidx/work/impl/WorkContinuationImpl ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;L androidx/work/ExistingWorkPolicy ;L java/util/List ;) V
return-object v0
.end method
.method public static getInstance ( ) L androidx/work/impl/WorkManagerImpl ;
.locals 2
.annotation build L androidx/annotation/Nullable ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation runtime L java/lang/Deprecated ;
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
:try_start_0
sget-object v1 , L androidx/work/impl/WorkManagerImpl ;-> sDelegatedInstance : L androidx/work/impl/WorkManagerImpl ;
if-eqz v1 , :cond_0
monitor-exit v0
return-object v1
:cond_0
sget-object v1 , L androidx/work/impl/WorkManagerImpl ;-> sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw v1
.end method
.method public static getInstance ( L android/content/Context ;) L androidx/work/impl/WorkManagerImpl ;
.locals 2
. param p0 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
:try_start_0
invoke-static { } , L androidx/work/impl/WorkManagerImpl ;-> getInstance ( ) L androidx/work/impl/WorkManagerImpl ;
move-result-object v1
if-nez v1 , :cond_1
invoke-virtual { p0 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object p0
instance-of v1 , p0 , L androidx/work/Configuration$Provider ;
if-eqz v1 , :cond_0
move-object v1 , p0
check-cast v1 , L androidx/work/Configuration$Provider ;
invoke-interface { v1 } , L androidx/work/Configuration$Provider ;-> getWorkManagerConfiguration ( ) L androidx/work/Configuration ;
move-result-object v1
invoke-static { p0 , v1 } , L androidx/work/impl/WorkManagerImpl ;-> initialize ( L android/content/Context ;L androidx/work/Configuration ;) V
invoke-static { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getInstance ( L android/content/Context ;) L androidx/work/impl/WorkManagerImpl ;
move-result-object v1
goto :goto_0
:cond_0
new-instance p0 , L java/lang/IllegalStateException ;
const-string v1 , "WorkManager is not initialized properly. You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider."
invoke-direct { p0 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p0
:cond_1
:goto_0
monitor-exit v0
return-object v1
:catchall_0
move-exception p0
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw p0
.end method
.method public static initialize ( L android/content/Context ;L androidx/work/Configuration ;) V
.locals 4
. param p0 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p1 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
:try_start_0
sget-object v1 , L androidx/work/impl/WorkManagerImpl ;-> sDelegatedInstance : L androidx/work/impl/WorkManagerImpl ;
if-eqz v1 , :cond_1
2020-11-16 22:05:17 +00:00
sget-object v2 , L androidx/work/impl/WorkManagerImpl ;-> sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
if-nez v2 , :cond_0
2020-11-12 02:11:44 +00:00
goto :goto_0
:cond_0
new-instance p0 , L java/lang/IllegalStateException ;
const-string p1 , "WorkManager is already initialized. Did you try to initialize it manually without disabling WorkManagerInitializer? See WorkManager#initialize(Context, Configuration) or the class level Javadoc for more information."
invoke-direct { p0 , p1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p0
:cond_1
:goto_0
if-nez v1 , :cond_3
invoke-virtual { p0 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object p0
sget-object v1 , L androidx/work/impl/WorkManagerImpl ;-> sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
if-nez v1 , :cond_2
new-instance v1 , L androidx/work/impl/WorkManagerImpl ;
new-instance v2 , L androidx/work/impl/utils/taskexecutor/WorkManagerTaskExecutor ;
invoke-virtual { p1 } , L androidx/work/Configuration ;-> getTaskExecutor ( ) L java/util/concurrent/Executor ;
move-result-object v3
invoke-direct { v2 , v3 } , L androidx/work/impl/utils/taskexecutor/WorkManagerTaskExecutor ;-> <init> ( L java/util/concurrent/Executor ;) V
invoke-direct { v1 , p0 , p1 , v2 } , L androidx/work/impl/WorkManagerImpl ;-> <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) V
sput-object v1 , L androidx/work/impl/WorkManagerImpl ;-> sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
:cond_2
sget-object p0 , L androidx/work/impl/WorkManagerImpl ;-> sDefaultInstance : L androidx/work/impl/WorkManagerImpl ;
sput-object p0 , L androidx/work/impl/WorkManagerImpl ;-> sDelegatedInstance : L androidx/work/impl/WorkManagerImpl ;
:cond_3
monitor-exit v0
return-void
:catchall_0
move-exception p0
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw p0
.end method
.method private internalInit ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkDatabase ;L java/util/List ;L androidx/work/impl/Processor ;) V
.locals 0
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p4 # Landroidx/work/impl/WorkDatabase;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p5 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p6 # Landroidx/work/impl/Processor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroid/content/Context;" ,
"Landroidx/work/Configuration;" ,
"Landroidx/work/impl/utils/taskexecutor/TaskExecutor;" ,
"Landroidx/work/impl/WorkDatabase;" ,
"Ljava/util/List<" ,
"Landroidx/work/impl/Scheduler;" ,
">;" ,
"Landroidx/work/impl/Processor;" ,
")V"
}
.end annotation
invoke-virtual { p1 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object p1
iput-object p1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mContext : L android/content/Context ;
iput-object p2 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mConfiguration : L androidx/work/Configuration ;
iput-object p3 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
iput-object p4 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
iput-object p5 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mSchedulers : L java/util/List ;
iput-object p6 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mProcessor : L androidx/work/impl/Processor ;
new-instance p2 , L androidx/work/impl/utils/PreferenceUtils ;
invoke-direct { p2 , p4 } , L androidx/work/impl/utils/PreferenceUtils ;-> <init> ( L androidx/work/impl/WorkDatabase ;) V
iput-object p2 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mPreferenceUtils : L androidx/work/impl/utils/PreferenceUtils ;
const/4 p2 , 0x0
iput-boolean p2 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mForceStopRunnableCompleted : Z
sget p2 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 p3 , 0x18
if-lt p2 , p3 , :cond_1
invoke-virtual { p1 } , L android/content/Context ;-> isDeviceProtectedStorage ( ) Z
move-result p2
if-nez p2 , :cond_0
goto :goto_0
:cond_0
new-instance p1 , L java/lang/IllegalStateException ;
const-string p2 , "Cannot initialize WorkManager in direct boot mode"
invoke-direct { p1 , p2 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_1
:goto_0
iget-object p2 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
new-instance p3 , L androidx/work/impl/utils/ForceStopRunnable ;
invoke-direct { p3 , p1 , p0 } , L androidx/work/impl/utils/ForceStopRunnable ;-> <init> ( L android/content/Context ;L androidx/work/impl/WorkManagerImpl ;) V
invoke-interface { p2 , p3 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
return-void
.end method
.method public static setDelegate ( L androidx/work/impl/WorkManagerImpl ;) V
.locals 1
. param p0 # Landroidx/work/impl/WorkManagerImpl;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
:try_start_0
sput-object p0 , L androidx/work/impl/WorkManagerImpl ;-> sDelegatedInstance : L androidx/work/impl/WorkManagerImpl ;
monitor-exit v0
return-void
:catchall_0
move-exception p0
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw p0
.end method
# virtual methods
.method public beginUniqueWork ( L java/lang/String ;L androidx/work/ExistingWorkPolicy ;L java/util/List ;) L androidx/work/WorkContinuation ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/ExistingWorkPolicy;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
"Landroidx/work/ExistingWorkPolicy;" ,
"Ljava/util/List<" ,
"Landroidx/work/OneTimeWorkRequest;" ,
">;)" ,
"Landroidx/work/WorkContinuation;"
}
.end annotation
invoke-interface { p3 } , L java/util/List ;-> isEmpty ( ) Z
move-result v0
if-nez v0 , :cond_0
new-instance v0 , L androidx/work/impl/WorkContinuationImpl ;
invoke-direct { v0 , p0 , p1 , p2 , p3 } , L androidx/work/impl/WorkContinuationImpl ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;L androidx/work/ExistingWorkPolicy ;L java/util/List ;) V
return-object v0
:cond_0
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string p2 , "beginUniqueWork needs at least one OneTimeWorkRequest."
invoke-direct { p1 , p2 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public beginWith ( L java/util/List ;) L androidx/work/WorkContinuation ;
.locals 1
. param p1 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/util/List<" ,
"Landroidx/work/OneTimeWorkRequest;" ,
">;)" ,
"Landroidx/work/WorkContinuation;"
}
.end annotation
invoke-interface { p1 } , L java/util/List ;-> isEmpty ( ) Z
move-result v0
if-nez v0 , :cond_0
new-instance v0 , L androidx/work/impl/WorkContinuationImpl ;
invoke-direct { v0 , p0 , p1 } , L androidx/work/impl/WorkContinuationImpl ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/util/List ;) V
return-object v0
:cond_0
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string v0 , "beginWith needs at least one OneTimeWorkRequest."
invoke-direct { p1 , v0 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public cancelAllWork ( ) L androidx/work/Operation ;
.locals 2
.annotation build L androidx/annotation/NonNull ;
.end annotation
invoke-static { p0 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> forAll ( L androidx/work/impl/WorkManagerImpl ;) L androidx/work/impl/utils/CancelWorkRunnable ;
move-result-object v0
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v1 , v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
invoke-virtual { v0 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> getOperation ( ) L androidx/work/Operation ;
move-result-object v0
return-object v0
.end method
.method public cancelAllWorkByTag ( L java/lang/String ;) L androidx/work/Operation ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
invoke-static { p1 , p0 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> forTag ( L java/lang/String ;L androidx/work/impl/WorkManagerImpl ;) L androidx/work/impl/utils/CancelWorkRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 , p1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> getOperation ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
.end method
.method public cancelUniqueWork ( L java/lang/String ;) L androidx/work/Operation ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
const/4 v0 , 0x1
invoke-static { p1 , p0 , v0 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> forName ( L java/lang/String ;L androidx/work/impl/WorkManagerImpl ;Z ) L androidx/work/impl/utils/CancelWorkRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 , p1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> getOperation ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
.end method
.method public cancelWorkById ( L java/util/UUID ;) L androidx/work/Operation ;
.locals 1
. param p1 # Ljava/util/UUID;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
invoke-static { p1 , p0 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> forId ( L java/util/UUID ;L androidx/work/impl/WorkManagerImpl ;) L androidx/work/impl/utils/CancelWorkRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 , p1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/CancelWorkRunnable ;-> getOperation ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
.end method
.method public createCancelPendingIntent ( L java/util/UUID ;) L android/app/PendingIntent ;
.locals 3
. param p1 # Ljava/util/UUID;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mContext : L android/content/Context ;
invoke-virtual { p1 } , L java/util/UUID ;-> toString ( ) L java/lang/String ;
move-result-object p1
invoke-static { v0 , p1 } , L androidx/work/impl/foreground/SystemForegroundDispatcher ;-> createCancelWorkIntent ( L android/content/Context ;L java/lang/String ;) L android/content/Intent ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mContext : L android/content/Context ;
const/4 v1 , 0x0
const/high16 v2 , 0x8000000
invoke-static { v0 , v1 , p1 , v2 } , L android/app/PendingIntent ;-> getService ( L android/content/Context ;I L android/content/Intent ;I ) L android/app/PendingIntent ;
move-result-object p1
return-object p1
.end method
.method public createSchedulers ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L java/util/List ;
.locals 3
. param p1 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/Configuration;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroid/content/Context;" ,
"Landroidx/work/Configuration;" ,
"Landroidx/work/impl/utils/taskexecutor/TaskExecutor;" ,
")" ,
"Ljava/util/List<" ,
"Landroidx/work/impl/Scheduler;" ,
">;"
}
.end annotation
const/4 v0 , 0x2
new-array v0 , v0 , [ L androidx/work/impl/Scheduler ;
invoke-static { p1 , p0 } , L androidx/work/impl/Schedulers ;-> createBestAvailableBackgroundScheduler ( L android/content/Context ;L androidx/work/impl/WorkManagerImpl ;) L androidx/work/impl/Scheduler ;
move-result-object v1
const/4 v2 , 0x0
aput-object v1 , v0 , v2
new-instance v1 , L androidx/work/impl/background/greedy/GreedyScheduler ;
invoke-direct { v1 , p1 , p2 , p3 , p0 } , L androidx/work/impl/background/greedy/GreedyScheduler ;-> <init> ( L android/content/Context ;L androidx/work/Configuration ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;L androidx/work/impl/WorkManagerImpl ;) V
const/4 p1 , 0x1
aput-object v1 , v0 , p1
invoke-static { v0 } , L java/util/Arrays ;-> asList ( [ L java/lang/Object ;) L java/util/List ;
move-result-object p1
return-object p1
.end method
.method public enqueue ( L java/util/List ;) L androidx/work/Operation ;
.locals 1
. param p1 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/util/List<" ,
"+" ,
"Landroidx/work/WorkRequest;" ,
">;)" ,
"Landroidx/work/Operation;"
}
.end annotation
invoke-interface { p1 } , L java/util/List ;-> isEmpty ( ) Z
move-result v0
if-nez v0 , :cond_0
new-instance v0 , L androidx/work/impl/WorkContinuationImpl ;
invoke-direct { v0 , p0 , p1 } , L androidx/work/impl/WorkContinuationImpl ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/util/List ;) V
invoke-virtual { v0 } , L androidx/work/impl/WorkContinuationImpl ;-> enqueue ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
:cond_0
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string v0 , "enqueue needs at least one WorkRequest."
invoke-direct { p1 , v0 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public enqueueUniquePeriodicWork ( L java/lang/String ;L androidx/work/ExistingPeriodicWorkPolicy ;L androidx/work/PeriodicWorkRequest ;) L androidx/work/Operation ;
.locals 0
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/ExistingPeriodicWorkPolicy;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Landroidx/work/PeriodicWorkRequest;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
invoke-direct { p0 , p1 , p2 , p3 } , L androidx/work/impl/WorkManagerImpl ;-> createWorkContinuationForUniquePeriodicWork ( L java/lang/String ;L androidx/work/ExistingPeriodicWorkPolicy ;L androidx/work/PeriodicWorkRequest ;) L androidx/work/impl/WorkContinuationImpl ;
move-result-object p1
invoke-virtual { p1 } , L androidx/work/impl/WorkContinuationImpl ;-> enqueue ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
.end method
.method public enqueueUniqueWork ( L java/lang/String ;L androidx/work/ExistingWorkPolicy ;L java/util/List ;) L androidx/work/Operation ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/ExistingWorkPolicy;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
"Landroidx/work/ExistingWorkPolicy;" ,
"Ljava/util/List<" ,
"Landroidx/work/OneTimeWorkRequest;" ,
">;)" ,
"Landroidx/work/Operation;"
}
.end annotation
new-instance v0 , L androidx/work/impl/WorkContinuationImpl ;
invoke-direct { v0 , p0 , p1 , p2 , p3 } , L androidx/work/impl/WorkContinuationImpl ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;L androidx/work/ExistingWorkPolicy ;L java/util/List ;) V
invoke-virtual { v0 } , L androidx/work/impl/WorkContinuationImpl ;-> enqueue ( ) L androidx/work/Operation ;
move-result-object p1
return-object p1
.end method
.method public getApplicationContext ( ) L android/content/Context ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mContext : L android/content/Context ;
return-object v0
.end method
.method public getConfiguration ( ) L androidx/work/Configuration ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mConfiguration : L androidx/work/Configuration ;
return-object v0
.end method
.method public getLastCancelAllTimeMillis ( ) L f/h/b/a/a/a ;
.locals 4
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"()" ,
"Lf/h/b/a/a/a<" ,
"Ljava/lang/Long;" ,
">;"
}
.end annotation
invoke-static { } , L androidx/work/impl/utils/futures/SettableFuture ;-> create ( ) L androidx/work/impl/utils/futures/SettableFuture ;
move-result-object v0
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mPreferenceUtils : L androidx/work/impl/utils/PreferenceUtils ;
iget-object v2 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
new-instance v3 , L androidx/work/impl/WorkManagerImpl$1 ;
invoke-direct { v3 , p0 , v0 , v1 } , L androidx/work/impl/WorkManagerImpl$1 ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L androidx/work/impl/utils/futures/SettableFuture ;L androidx/work/impl/utils/PreferenceUtils ;) V
invoke-interface { v2 , v3 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
return-object v0
.end method
.method public getLastCancelAllTimeMillisLiveData ( ) L androidx/lifecycle/LiveData ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"()" ,
"Landroidx/lifecycle/LiveData<" ,
"Ljava/lang/Long;" ,
">;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mPreferenceUtils : L androidx/work/impl/utils/PreferenceUtils ;
invoke-virtual { v0 } , L androidx/work/impl/utils/PreferenceUtils ;-> getLastCancelAllTimeMillisLiveData ( ) L androidx/lifecycle/LiveData ;
move-result-object v0
return-object v0
.end method
.method public getPreferenceUtils ( ) L androidx/work/impl/utils/PreferenceUtils ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mPreferenceUtils : L androidx/work/impl/utils/PreferenceUtils ;
return-object v0
.end method
.method public getProcessor ( ) L androidx/work/impl/Processor ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mProcessor : L androidx/work/impl/Processor ;
return-object v0
.end method
.method public getSchedulers ( ) L java/util/List ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"()" ,
"Ljava/util/List<" ,
"Landroidx/work/impl/Scheduler;" ,
">;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mSchedulers : L java/util/List ;
return-object v0
.end method
.method public getWorkDatabase ( ) L androidx/work/impl/WorkDatabase ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
return-object v0
.end method
.method public getWorkInfoById ( L java/util/UUID ;) L f/h/b/a/a/a ;
.locals 1
. param p1 # Ljava/util/UUID;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/util/UUID;" ,
")" ,
"Lf/h/b/a/a/a<" ,
"Landroidx/work/WorkInfo;" ,
">;"
}
.end annotation
invoke-static { p0 , p1 } , L androidx/work/impl/utils/StatusRunnable ;-> forUUID ( L androidx/work/impl/WorkManagerImpl ;L java/util/UUID ;) L androidx/work/impl/utils/StatusRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> getBackgroundExecutor ( ) L androidx/work/impl/utils/SerialExecutor ;
move-result-object v0
invoke-virtual { v0 , p1 } , L androidx/work/impl/utils/SerialExecutor ;-> execute ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/StatusRunnable ;-> getFuture ( ) L f/h/b/a/a/a ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfoByIdLiveData ( L java/util/UUID ;) L androidx/lifecycle/LiveData ;
.locals 2
. param p1 # Ljava/util/UUID;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/util/UUID;" ,
")" ,
"Landroidx/lifecycle/LiveData<" ,
"Landroidx/work/WorkInfo;" ,
">;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> workSpecDao ( ) L androidx/work/impl/model/WorkSpecDao ;
move-result-object v0
invoke-virtual { p1 } , L java/util/UUID ;-> toString ( ) L java/lang/String ;
move-result-object p1
invoke-static { p1 } , L java/util/Collections ;-> singletonList ( L java/lang/Object ;) L java/util/List ;
move-result-object p1
invoke-interface { v0 , p1 } , L androidx/work/impl/model/WorkSpecDao ;-> getWorkStatusPojoLiveDataForIds ( L java/util/List ;) L androidx/lifecycle/LiveData ;
move-result-object p1
new-instance v0 , L androidx/work/impl/WorkManagerImpl$2 ;
invoke-direct { v0 , p0 } , L androidx/work/impl/WorkManagerImpl$2 ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;) V
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-static { p1 , v0 , v1 } , L androidx/work/impl/utils/LiveDataUtils ;-> dedupedMappedLiveDataFor ( L androidx/lifecycle/LiveData ;L androidx/arch/core/util/Function ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L androidx/lifecycle/LiveData ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfos ( L androidx/work/WorkQuery ;) L f/h/b/a/a/a ;
.locals 1
. param p1 # Landroidx/work/WorkQuery;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroidx/work/WorkQuery;" ,
")" ,
"Lf/h/b/a/a/a<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
invoke-static { p0 , p1 } , L androidx/work/impl/utils/StatusRunnable ;-> forWorkQuerySpec ( L androidx/work/impl/WorkManagerImpl ;L androidx/work/WorkQuery ;) L androidx/work/impl/utils/StatusRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> getBackgroundExecutor ( ) L androidx/work/impl/utils/SerialExecutor ;
move-result-object v0
invoke-virtual { v0 , p1 } , L androidx/work/impl/utils/SerialExecutor ;-> execute ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/StatusRunnable ;-> getFuture ( ) L f/h/b/a/a/a ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosById ( L java/util/List ;) L androidx/lifecycle/LiveData ;
.locals 2
. param p1 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/util/List<" ,
"Ljava/lang/String;" ,
">;)" ,
"Landroidx/lifecycle/LiveData<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> workSpecDao ( ) L androidx/work/impl/model/WorkSpecDao ;
move-result-object v0
invoke-interface { v0 , p1 } , L androidx/work/impl/model/WorkSpecDao ;-> getWorkStatusPojoLiveDataForIds ( L java/util/List ;) L androidx/lifecycle/LiveData ;
move-result-object p1
sget-object v0 , L androidx/work/impl/model/WorkSpec ;-> WORK_INFO_MAPPER : L androidx/arch/core/util/Function ;
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-static { p1 , v0 , v1 } , L androidx/work/impl/utils/LiveDataUtils ;-> dedupedMappedLiveDataFor ( L androidx/lifecycle/LiveData ;L androidx/arch/core/util/Function ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L androidx/lifecycle/LiveData ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosByTag ( L java/lang/String ;) L f/h/b/a/a/a ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
")" ,
"Lf/h/b/a/a/a<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
invoke-static { p0 , p1 } , L androidx/work/impl/utils/StatusRunnable ;-> forTag ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;) L androidx/work/impl/utils/StatusRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> getBackgroundExecutor ( ) L androidx/work/impl/utils/SerialExecutor ;
move-result-object v0
invoke-virtual { v0 , p1 } , L androidx/work/impl/utils/SerialExecutor ;-> execute ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/StatusRunnable ;-> getFuture ( ) L f/h/b/a/a/a ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosByTagLiveData ( L java/lang/String ;) L androidx/lifecycle/LiveData ;
.locals 2
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
")" ,
"Landroidx/lifecycle/LiveData<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> workSpecDao ( ) L androidx/work/impl/model/WorkSpecDao ;
move-result-object v0
invoke-interface { v0 , p1 } , L androidx/work/impl/model/WorkSpecDao ;-> getWorkStatusPojoLiveDataForTag ( L java/lang/String ;) L androidx/lifecycle/LiveData ;
move-result-object p1
sget-object v0 , L androidx/work/impl/model/WorkSpec ;-> WORK_INFO_MAPPER : L androidx/arch/core/util/Function ;
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-static { p1 , v0 , v1 } , L androidx/work/impl/utils/LiveDataUtils ;-> dedupedMappedLiveDataFor ( L androidx/lifecycle/LiveData ;L androidx/arch/core/util/Function ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L androidx/lifecycle/LiveData ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosForUniqueWork ( L java/lang/String ;) L f/h/b/a/a/a ;
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
")" ,
"Lf/h/b/a/a/a<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
invoke-static { p0 , p1 } , L androidx/work/impl/utils/StatusRunnable ;-> forUniqueWork ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;) L androidx/work/impl/utils/StatusRunnable ;
move-result-object p1
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> getBackgroundExecutor ( ) L androidx/work/impl/utils/SerialExecutor ;
move-result-object v0
invoke-virtual { v0 , p1 } , L androidx/work/impl/utils/SerialExecutor ;-> execute ( L java/lang/Runnable ;) V
invoke-virtual { p1 } , L androidx/work/impl/utils/StatusRunnable ;-> getFuture ( ) L f/h/b/a/a/a ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosForUniqueWorkLiveData ( L java/lang/String ;) L androidx/lifecycle/LiveData ;
.locals 2
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Ljava/lang/String;" ,
")" ,
"Landroidx/lifecycle/LiveData<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> workSpecDao ( ) L androidx/work/impl/model/WorkSpecDao ;
move-result-object v0
invoke-interface { v0 , p1 } , L androidx/work/impl/model/WorkSpecDao ;-> getWorkStatusPojoLiveDataForName ( L java/lang/String ;) L androidx/lifecycle/LiveData ;
move-result-object p1
sget-object v0 , L androidx/work/impl/model/WorkSpec ;-> WORK_INFO_MAPPER : L androidx/arch/core/util/Function ;
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-static { p1 , v0 , v1 } , L androidx/work/impl/utils/LiveDataUtils ;-> dedupedMappedLiveDataFor ( L androidx/lifecycle/LiveData ;L androidx/arch/core/util/Function ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L androidx/lifecycle/LiveData ;
move-result-object p1
return-object p1
.end method
.method public getWorkInfosLiveData ( L androidx/work/WorkQuery ;) L androidx/lifecycle/LiveData ;
.locals 2
. param p1 # Landroidx/work/WorkQuery;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroidx/work/WorkQuery;" ,
")" ,
"Landroidx/lifecycle/LiveData<" ,
"Ljava/util/List<" ,
"Landroidx/work/WorkInfo;" ,
">;>;"
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkDatabase : L androidx/work/impl/WorkDatabase ;
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> rawWorkInfoDao ( ) L androidx/work/impl/model/RawWorkInfoDao ;
move-result-object v0
invoke-static { p1 } , L androidx/work/impl/utils/RawQueries ;-> workQueryToRawQuery ( L androidx/work/WorkQuery ;) L androidx/sqlite/db/SupportSQLiteQuery ;
move-result-object p1
invoke-interface { v0 , p1 } , L androidx/work/impl/model/RawWorkInfoDao ;-> getWorkInfoPojosLiveData ( L androidx/sqlite/db/SupportSQLiteQuery ;) L androidx/lifecycle/LiveData ;
move-result-object p1
sget-object v0 , L androidx/work/impl/model/WorkSpec ;-> WORK_INFO_MAPPER : L androidx/arch/core/util/Function ;
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-static { p1 , v0 , v1 } , L androidx/work/impl/utils/LiveDataUtils ;-> dedupedMappedLiveDataFor ( L androidx/lifecycle/LiveData ;L androidx/arch/core/util/Function ;L androidx/work/impl/utils/taskexecutor/TaskExecutor ;) L androidx/lifecycle/LiveData ;
move-result-object p1
return-object p1
.end method
.method public getWorkTaskExecutor ( ) L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
.locals 1
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
return-object v0
.end method
.method public onForceStopRunnableCompleted ( ) V
.locals 2
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
const/4 v1 , 0x1
:try_start_0
iput-boolean v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mForceStopRunnableCompleted : Z
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mRescheduleReceiverResult : L android/content/BroadcastReceiver$PendingResult ;
if-eqz v1 , :cond_0
invoke-virtual { v1 } , L android/content/BroadcastReceiver$PendingResult ;-> finish ( ) V
const/4 v1 , 0x0
iput-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mRescheduleReceiverResult : L android/content/BroadcastReceiver$PendingResult ;
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw v1
.end method
.method public pruneWork ( ) L androidx/work/Operation ;
.locals 2
.annotation build L androidx/annotation/NonNull ;
.end annotation
new-instance v0 , L androidx/work/impl/utils/PruneWorkRunnable ;
invoke-direct { v0 , p0 } , L androidx/work/impl/utils/PruneWorkRunnable ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;) V
iget-object v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
invoke-interface { v1 , v0 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
invoke-virtual { v0 } , L androidx/work/impl/utils/PruneWorkRunnable ;-> getOperation ( ) L androidx/work/Operation ;
move-result-object v0
return-object v0
.end method
.method public rescheduleEligibleWork ( ) V
.locals 3
sget v0 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v1 , 0x17
if-lt v0 , v1 , :cond_0
invoke-virtual { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object v0
invoke-static { v0 } , L androidx/work/impl/background/systemjob/SystemJobScheduler ;-> cancelAll ( L android/content/Context ;) V
:cond_0
invoke-virtual { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getWorkDatabase ( ) L androidx/work/impl/WorkDatabase ;
move-result-object v0
invoke-virtual { v0 } , L androidx/work/impl/WorkDatabase ;-> workSpecDao ( ) L androidx/work/impl/model/WorkSpecDao ;
move-result-object v0
invoke-interface { v0 } , L androidx/work/impl/model/WorkSpecDao ;-> resetScheduledState ( ) I
invoke-virtual { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getConfiguration ( ) L androidx/work/Configuration ;
move-result-object v0
invoke-virtual { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getWorkDatabase ( ) L androidx/work/impl/WorkDatabase ;
move-result-object v1
invoke-virtual { p0 } , L androidx/work/impl/WorkManagerImpl ;-> getSchedulers ( ) L java/util/List ;
move-result-object v2
invoke-static { v0 , v1 , v2 } , L androidx/work/impl/Schedulers ;-> schedule ( L androidx/work/Configuration ;L androidx/work/impl/WorkDatabase ;L java/util/List ;) V
return-void
.end method
.method public setReschedulePendingResult ( L android/content/BroadcastReceiver$PendingResult ;) V
.locals 2
. param p1 # Landroid/content/BroadcastReceiver$PendingResult;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
sget-object v0 , L androidx/work/impl/WorkManagerImpl ;-> sLock : L java/lang/Object ;
monitor-enter v0
:try_start_0
iput-object p1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mRescheduleReceiverResult : L android/content/BroadcastReceiver$PendingResult ;
iget-boolean v1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mForceStopRunnableCompleted : Z
if-eqz v1 , :cond_0
invoke-virtual { p1 } , L android/content/BroadcastReceiver$PendingResult ;-> finish ( ) V
const/4 p1 , 0x0
iput-object p1 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mRescheduleReceiverResult : L android/content/BroadcastReceiver$PendingResult ;
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
throw p1
.end method
.method public startWork ( L java/lang/String ;) V
.locals 1
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
const/4 v0 , 0x0
invoke-virtual { p0 , p1 , v0 } , L androidx/work/impl/WorkManagerImpl ;-> startWork ( L java/lang/String ;L androidx/work/WorkerParameters$RuntimeExtras ;) V
return-void
.end method
.method public startWork ( L java/lang/String ;L androidx/work/WorkerParameters$RuntimeExtras ;) V
.locals 2
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroidx/work/WorkerParameters$RuntimeExtras;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
new-instance v1 , L androidx/work/impl/utils/StartWorkRunnable ;
invoke-direct { v1 , p0 , p1 , p2 } , L androidx/work/impl/utils/StartWorkRunnable ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;L androidx/work/WorkerParameters$RuntimeExtras ;) V
invoke-interface { v0 , v1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
return-void
.end method
.method public stopForegroundWork ( L java/lang/String ;) V
.locals 3
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
new-instance v1 , L androidx/work/impl/utils/StopWorkRunnable ;
const/4 v2 , 0x1
invoke-direct { v1 , p0 , p1 , v2 } , L androidx/work/impl/utils/StopWorkRunnable ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;Z ) V
invoke-interface { v0 , v1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
return-void
.end method
.method public stopWork ( L java/lang/String ;) V
.locals 3
. param p1 # Ljava/lang/String;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/work/impl/WorkManagerImpl ;-> mWorkTaskExecutor : L androidx/work/impl/utils/taskexecutor/TaskExecutor ;
new-instance v1 , L androidx/work/impl/utils/StopWorkRunnable ;
const/4 v2 , 0x0
invoke-direct { v1 , p0 , p1 , v2 } , L androidx/work/impl/utils/StopWorkRunnable ;-> <init> ( L androidx/work/impl/WorkManagerImpl ;L java/lang/String ;Z ) V
invoke-interface { v0 , v1 } , L androidx/work/impl/utils/taskexecutor/TaskExecutor ;-> executeOnBackgroundThread ( L java/lang/Runnable ;) V
return-void
.end method