package androidx.work.multiprocess; import android.content.Context; import androidx.work.Data; import androidx.work.ExistingPeriodicWorkPolicy; import androidx.work.ExistingWorkPolicy; import androidx.work.ForegroundInfo; import androidx.work.OneTimeWorkRequest; import androidx.work.PeriodicWorkRequest; import androidx.work.WorkContinuation; import androidx.work.WorkInfo; import androidx.work.WorkQuery; import androidx.work.WorkRequest; import androidx.work.impl.WorkManagerImpl; import com.google.common.util.concurrent.ListenableFuture; import java.util.Collections; import java.util.List; import java.util.UUID; /* loaded from: classes2.dex */ public abstract class RemoteWorkManager { public abstract RemoteWorkContinuation beginUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, List work); public abstract RemoteWorkContinuation beginWith(List work); public abstract ListenableFuture cancelAllWork(); public abstract ListenableFuture cancelAllWorkByTag(String tag); public abstract ListenableFuture cancelUniqueWork(String uniqueWorkName); public abstract ListenableFuture cancelWorkById(UUID id); public abstract ListenableFuture enqueue(WorkContinuation continuation); public abstract ListenableFuture enqueue(WorkRequest request); public abstract ListenableFuture enqueue(List requests); public abstract ListenableFuture enqueueUniquePeriodicWork(String uniqueWorkName, ExistingPeriodicWorkPolicy existingPeriodicWorkPolicy, PeriodicWorkRequest periodicWork); public abstract ListenableFuture enqueueUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, List work); public abstract ListenableFuture> getWorkInfos(WorkQuery workQuery); public abstract ListenableFuture setForegroundAsync(String id, ForegroundInfo foregroundInfo); public abstract ListenableFuture setProgress(UUID id, Data data); protected RemoteWorkManager() { } public final ListenableFuture enqueueUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) { return enqueueUniqueWork(uniqueWorkName, existingWorkPolicy, Collections.singletonList(work)); } public final RemoteWorkContinuation beginWith(OneTimeWorkRequest work) { return beginWith(Collections.singletonList(work)); } public final RemoteWorkContinuation beginUniqueWork(String uniqueWorkName, ExistingWorkPolicy existingWorkPolicy, OneTimeWorkRequest work) { return beginUniqueWork(uniqueWorkName, existingWorkPolicy, Collections.singletonList(work)); } public static RemoteWorkManager getInstance(Context context) { RemoteWorkManager remoteWorkManager = WorkManagerImpl.getInstance(context).getRemoteWorkManager(); if (remoteWorkManager != null) { return remoteWorkManager; } throw new IllegalStateException("Unable to initialize RemoteWorkManager"); } }