package androidx.work; import android.app.PendingIntent; import android.content.Context; import androidx.lifecycle.LiveData; import androidx.work.impl.WorkManagerImpl; import com.google.common.util.concurrent.ListenableFuture; import java.util.Collections; import java.util.List; import java.util.UUID; import kotlinx.coroutines.flow.Flow; /* loaded from: classes2.dex */ public abstract class WorkManager { /* loaded from: classes2.dex */ public enum UpdateResult { NOT_APPLIED, APPLIED_IMMEDIATELY, APPLIED_FOR_NEXT_RUN } public abstract WorkContinuation beginUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, List work); public abstract WorkContinuation beginWith(List work); public abstract Operation cancelAllWork(); public abstract Operation cancelAllWorkByTag(String tag); public abstract Operation cancelUniqueWork(String uniqueWorkName); public abstract Operation cancelWorkById(UUID id); public abstract PendingIntent createCancelPendingIntent(UUID id); public abstract Operation enqueue(List requests); public abstract Operation enqueueUniquePeriodicWork(String uniqueWorkName, ExistingPeriodicWorkPolicy existingPeriodicWorkPolicy, PeriodicWorkRequest periodicWork); public abstract Operation enqueueUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, List work); public abstract Configuration getConfiguration(); public abstract ListenableFuture getLastCancelAllTimeMillis(); public abstract LiveData getLastCancelAllTimeMillisLiveData(); public abstract ListenableFuture getWorkInfoById(UUID id); public abstract Flow getWorkInfoByIdFlow(UUID id); public abstract LiveData getWorkInfoByIdLiveData(UUID id); public abstract ListenableFuture> getWorkInfos(WorkQuery workQuery); public abstract ListenableFuture> getWorkInfosByTag(String tag); public abstract Flow> getWorkInfosByTagFlow(String tag); public abstract LiveData> getWorkInfosByTagLiveData(String tag); public abstract Flow> getWorkInfosFlow(WorkQuery workQuery); public abstract ListenableFuture> getWorkInfosForUniqueWork(String uniqueWorkName); public abstract Flow> getWorkInfosForUniqueWorkFlow(String uniqueWorkName); public abstract LiveData> getWorkInfosForUniqueWorkLiveData(String uniqueWorkName); public abstract LiveData> getWorkInfosLiveData(WorkQuery workQuery); public abstract Operation pruneWork(); public abstract ListenableFuture updateWork(WorkRequest request); @Deprecated public static WorkManager getInstance() { WorkManagerImpl workManagerImpl = WorkManagerImpl.getInstance(); if (workManagerImpl != null) { return workManagerImpl; } throw new IllegalStateException("WorkManager is not initialized properly. The most likely cause is that you disabled WorkManagerInitializer in your manifest but forgot to call WorkManager#initialize in your Application#onCreate or a ContentProvider."); } public static WorkManager getInstance(Context context) { return WorkManagerImpl.getInstance(context); } public static void initialize(Context context, Configuration configuration) { WorkManagerImpl.initialize(context, configuration); } public static boolean isInitialized() { return WorkManagerImpl.isInitialized(); } public final Operation enqueue(WorkRequest workRequest) { return enqueue(Collections.singletonList(workRequest)); } public final WorkContinuation beginWith(OneTimeWorkRequest work) { return beginWith(Collections.singletonList(work)); } public final WorkContinuation beginUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) { return beginUniqueWork(uniqueWorkName, existingWorkPolicy, Collections.singletonList(work)); } public Operation enqueueUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) { return enqueueUniqueWork(uniqueWorkName, existingWorkPolicy, Collections.singletonList(work)); } }