- 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
78 lines
2.6 KiB
Java
78 lines
2.6 KiB
Java
package com.google.android.gms.common.api;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import com.google.android.gms.common.api.internal.BasePendingResult;
|
|
import com.google.errorprone.annotations.ResultIgnorabilityUnspecified;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class Batch extends BasePendingResult<BatchResult> {
|
|
private int zae;
|
|
private boolean zaf;
|
|
private boolean zag;
|
|
private final PendingResult[] zah;
|
|
private final Object zai;
|
|
|
|
public static final class Builder {
|
|
private final List zaa = new ArrayList();
|
|
private final GoogleApiClient zab;
|
|
|
|
public Builder(@NonNull GoogleApiClient googleApiClient) {
|
|
this.zab = googleApiClient;
|
|
}
|
|
|
|
@NonNull
|
|
@ResultIgnorabilityUnspecified
|
|
public <R extends Result> BatchResultToken<R> add(@NonNull PendingResult<R> pendingResult) {
|
|
BatchResultToken<R> batchResultToken = new BatchResultToken<>(this.zaa.size());
|
|
this.zaa.add(pendingResult);
|
|
return batchResultToken;
|
|
}
|
|
|
|
@NonNull
|
|
public Batch build() {
|
|
return new Batch(this.zaa, this.zab, null);
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ Batch(List list, GoogleApiClient googleApiClient, zac zacVar) {
|
|
super(googleApiClient);
|
|
this.zai = new Object();
|
|
int size = list.size();
|
|
this.zae = size;
|
|
PendingResult[] pendingResultArr = new PendingResult[size];
|
|
this.zah = pendingResultArr;
|
|
if (list.isEmpty()) {
|
|
setResult(new BatchResult(Status.RESULT_SUCCESS, pendingResultArr));
|
|
return;
|
|
}
|
|
for (int i = 0; i < list.size(); i++) {
|
|
PendingResult pendingResult = (PendingResult) list.get(i);
|
|
this.zah[i] = pendingResult;
|
|
pendingResult.addStatusListener(new zab(this));
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.BasePendingResult, com.google.android.gms.common.api.PendingResult
|
|
public void cancel() {
|
|
super.cancel();
|
|
int i = 0;
|
|
while (true) {
|
|
PendingResult[] pendingResultArr = this.zah;
|
|
if (i >= pendingResultArr.length) {
|
|
return;
|
|
}
|
|
pendingResultArr[i].cancel();
|
|
i++;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // com.google.android.gms.common.api.internal.BasePendingResult
|
|
@NonNull
|
|
public BatchResult createFailedResult(@NonNull Status status) {
|
|
return new BatchResult(status, this.zah);
|
|
}
|
|
}
|