content: 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;
  
  public abstract class WorkManager {
      protected WorkManager() {
      }
  
      @Deprecated
      public static WorkManager getInstance() {
          WorkManagerImpl instance = WorkManagerImpl.getInstance();
          if (instance != null) {
              return instance;
          }
          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 final WorkContinuation beginUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) {
          return beginUniqueWork(uniqueWorkName, existingWorkPolicy, (List<OneTimeWorkRequest>) Collections.singletonList(work));
      }
  
      public abstract WorkContinuation beginUniqueWork(String str, ExistingWorkPolicy existingWorkPolicy, List<OneTimeWorkRequest> list);
  
      public final WorkContinuation beginWith(OneTimeWorkRequest work) {
          return beginWith((List<OneTimeWorkRequest>) Collections.singletonList(work));
      }
  
      public abstract WorkContinuation beginWith(List<OneTimeWorkRequest> list);
  
      public abstract Operation cancelAllWork();
  
      public abstract Operation cancelAllWorkByTag(String str);
  
      public abstract Operation cancelUniqueWork(String str);
  
      public abstract Operation cancelWorkById(UUID uuid);
  
      public abstract PendingIntent createCancelPendingIntent(UUID uuid);
  
      public final Operation enqueue(WorkRequest workRequest) {
          return enqueue((List<? extends WorkRequest>) Collections.singletonList(workRequest));
      }
  
      public abstract Operation enqueue(List<? extends WorkRequest> list);
  
      public abstract Operation enqueueUniquePeriodicWork(String str, ExistingPeriodicWorkPolicy existingPeriodicWorkPolicy, PeriodicWorkRequest periodicWorkRequest);
  
      public Operation enqueueUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) {
          return enqueueUniqueWork(uniqueWorkName, existingWorkPolicy, (List<OneTimeWorkRequest>) Collections.singletonList(work));
      }
  
      public abstract Operation enqueueUniqueWork(String str, ExistingWorkPolicy existingWorkPolicy, List<OneTimeWorkRequest> list);
  
      public abstract ListenableFuture<Long> getLastCancelAllTimeMillis();
  
      public abstract LiveData<Long> getLastCancelAllTimeMillisLiveData();
  
      public abstract ListenableFuture<WorkInfo> getWorkInfoById(UUID uuid);
  
      public abstract LiveData<WorkInfo> getWorkInfoByIdLiveData(UUID uuid);
  
      public abstract ListenableFuture<List<WorkInfo>> getWorkInfos(WorkQuery workQuery);
  
      public abstract ListenableFuture<List<WorkInfo>> getWorkInfosByTag(String str);
  
      public abstract LiveData<List<WorkInfo>> getWorkInfosByTagLiveData(String str);
  
      public abstract ListenableFuture<List<WorkInfo>> getWorkInfosForUniqueWork(String str);
  
      public abstract LiveData<List<WorkInfo>> getWorkInfosForUniqueWorkLiveData(String str);
  
      public abstract LiveData<List<WorkInfo>> getWorkInfosLiveData(WorkQuery workQuery);
  
      public abstract Operation pruneWork();
  }
  