66 lines
2.1 KiB
Java
66 lines
2.1 KiB
Java
|
package com.huawei.hms.common.api.internal;
|
||
|
|
||
|
import android.os.Looper;
|
||
|
import com.huawei.hms.common.api.OptionalPendingResult;
|
||
|
import com.huawei.hms.support.api.client.PendingResult;
|
||
|
import com.huawei.hms.support.api.client.Result;
|
||
|
import com.huawei.hms.support.api.client.ResultCallback;
|
||
|
import java.util.concurrent.TimeUnit;
|
||
|
|
||
|
@Deprecated
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class OptionalPendingResultImpl<R extends Result> extends OptionalPendingResult<R> {
|
||
|
private final PendingResult<R> a;
|
||
|
|
||
|
public OptionalPendingResultImpl(PendingResult<R> pendingResult) {
|
||
|
this.a = pendingResult;
|
||
|
}
|
||
|
|
||
|
public final void addStatusListener() {
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final R await() {
|
||
|
return this.a.await();
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final void cancel() {
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.common.api.OptionalPendingResult
|
||
|
public final R get() {
|
||
|
throw new IllegalStateException("Result is not available. Check that isDone() returns true before calling get().");
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final boolean isCanceled() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.common.api.OptionalPendingResult
|
||
|
public final boolean isDone() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final void setResultCallback(ResultCallback<R> resultCallback) {
|
||
|
this.a.setResultCallback(resultCallback);
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final R await(long j, TimeUnit timeUnit) {
|
||
|
return this.a.await(j, timeUnit);
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final void setResultCallback(Looper looper, ResultCallback<R> resultCallback) {
|
||
|
this.a.setResultCallback(looper, resultCallback);
|
||
|
}
|
||
|
|
||
|
@Override // com.huawei.hms.support.api.client.PendingResult
|
||
|
public final void setResultCallback(ResultCallback<R> resultCallback, long j, TimeUnit timeUnit) {
|
||
|
setResultCallback(resultCallback);
|
||
|
}
|
||
|
}
|