- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
72 lines
1.7 KiB
Java
72 lines
1.7 KiB
Java
package androidx.work;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.lifecycle.LiveData;
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface Operation {
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public static final State.IN_PROGRESS IN_PROGRESS;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public static final State.SUCCESS SUCCESS;
|
|
|
|
@NonNull
|
|
ListenableFuture getResult();
|
|
|
|
@NonNull
|
|
LiveData<State> getState();
|
|
|
|
static {
|
|
SUCCESS = new State.SUCCESS();
|
|
IN_PROGRESS = new State.IN_PROGRESS();
|
|
}
|
|
|
|
public static abstract class State {
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public State() {
|
|
}
|
|
|
|
public static final class SUCCESS extends State {
|
|
@NonNull
|
|
public String toString() {
|
|
return "SUCCESS";
|
|
}
|
|
|
|
private SUCCESS() {
|
|
}
|
|
}
|
|
|
|
public static final class IN_PROGRESS extends State {
|
|
@NonNull
|
|
public String toString() {
|
|
return "IN_PROGRESS";
|
|
}
|
|
|
|
private IN_PROGRESS() {
|
|
}
|
|
}
|
|
|
|
public static final class FAILURE extends State {
|
|
private final Throwable mThrowable;
|
|
|
|
@NonNull
|
|
public Throwable getThrowable() {
|
|
return this.mThrowable;
|
|
}
|
|
|
|
public FAILURE(@NonNull Throwable th) {
|
|
this.mThrowable = th;
|
|
}
|
|
|
|
@NonNull
|
|
public String toString() {
|
|
return "FAILURE (" + this.mThrowable.getMessage() + ")";
|
|
}
|
|
}
|
|
}
|
|
}
|