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 extends OptionalPendingResult { private final PendingResult a; public OptionalPendingResultImpl(PendingResult 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 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 resultCallback) { this.a.setResultCallback(looper, resultCallback); } @Override // com.huawei.hms.support.api.client.PendingResult public final void setResultCallback(ResultCallback resultCallback, long j, TimeUnit timeUnit) { setResultCallback(resultCallback); } }