Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
package com.google.android.gms.internal.drive;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* loaded from: classes3.dex */
public class zza implements IInterface {
private final IBinder zza;
private final String zzb;
public zza(IBinder iBinder, String str) {
this.zza = iBinder;
this.zzb = str;
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this.zza;
}
public final Parcel zza() {
Parcel obtain = Parcel.obtain();
obtain.writeInterfaceToken(this.zzb);
return obtain;
}
public final Parcel zza(int i, Parcel parcel) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
try {
this.zza.transact(i, parcel, obtain, 0);
obtain.readException();
return obtain;
} catch (RuntimeException e) {
obtain.recycle();
throw e;
}
} finally {
parcel.recycle();
}
}
public final void zzb(int i, Parcel parcel) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
this.zza.transact(i, parcel, obtain, 0);
obtain.readException();
} finally {
parcel.recycle();
obtain.recycle();
}
}
public final void zzc(int i, Parcel parcel) throws RemoteException {
try {
this.zza.transact(1, parcel, null, 1);
} finally {
parcel.recycle();
}
}
}

View File

@@ -0,0 +1,39 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.drive.Metadata;
import com.google.android.gms.drive.metadata.MetadataField;
import com.google.android.gms.drive.metadata.internal.MetadataBundle;
import com.ironsource.v8;
/* loaded from: classes3.dex */
public final class zzaa extends Metadata {
private final MetadataBundle zzdt;
public zzaa(MetadataBundle metadataBundle) {
this.zzdt = metadataBundle;
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return this.zzdt != null;
}
@Override // com.google.android.gms.drive.Metadata
public final <T> T zza(MetadataField<T> metadataField) {
return (T) this.zzdt.zza(metadataField);
}
public final String toString() {
String valueOf = String.valueOf(this.zzdt);
StringBuilder sb = new StringBuilder(valueOf.length() + 17);
sb.append("Metadata [mImpl=");
sb.append(valueOf);
sb.append(v8.i.e);
return sb.toString();
}
@Override // com.google.android.gms.common.data.Freezable
public final /* synthetic */ Metadata freeze() {
return new zzaa(this.zzdt.zzbf());
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.internal.drive;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.VisibleForTesting;
import com.google.android.gms.drive.DriveId;
@SafeParcelable.Class(creator = "DeleteResourceRequestCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes3.dex */
public final class zzab extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzab> CREATOR = new zzac();
@SafeParcelable.Field(id = 2)
private final DriveId zzdd;
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzdd, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@SafeParcelable.Constructor
@VisibleForTesting
public zzab(@SafeParcelable.Param(id = 2) DriveId driveId) {
this.zzdd = driveId;
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.internal.drive;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
public final class zzac implements Parcelable.Creator<zzab> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzab[] newArray(int i) {
return new zzab[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzab createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
DriveId driveId = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
if (SafeParcelReader.getFieldId(readHeader) == 2) {
driveId = (DriveId) SafeParcelReader.createParcelable(parcel, readHeader, DriveId.CREATOR);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzab(driveId);
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.VisibleForTesting;
@SafeParcelable.Class(creator = "DisconnectRequestCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes3.dex */
public final class zzad extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzad> CREATOR = new zzae();
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
SafeParcelWriter.finishObjectHeader(parcel, SafeParcelWriter.beginObjectHeader(parcel));
}
@SafeParcelable.Constructor
@VisibleForTesting
public zzad() {
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes3.dex */
public final class zzae implements Parcelable.Creator<zzad> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzad[] newArray(int i) {
return new zzad[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzad createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
SafeParcelReader.getFieldId(readHeader);
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzad();
}
}

View File

@@ -0,0 +1,76 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.CreateFileActivityBuilder;
import com.google.android.gms.drive.Drive;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.OpenFileActivityBuilder;
import com.google.android.gms.drive.query.Query;
@Deprecated
/* loaded from: classes3.dex */
public final class zzaf implements DriveApi {
@Override // com.google.android.gms.drive.DriveApi
public final PendingResult<DriveApi.MetadataBufferResult> query(GoogleApiClient googleApiClient, Query query) {
if (query == null) {
throw new IllegalArgumentException("Query must be provided.");
}
return googleApiClient.enqueue(new zzag(this, googleApiClient, query));
}
@Override // com.google.android.gms.drive.DriveApi
public final PendingResult<DriveApi.DriveContentsResult> newDriveContents(GoogleApiClient googleApiClient) {
return googleApiClient.enqueue(new zzah(this, googleApiClient, DriveFile.MODE_WRITE_ONLY));
}
@Override // com.google.android.gms.drive.DriveApi
public final PendingResult<DriveApi.DriveIdResult> fetchDriveId(GoogleApiClient googleApiClient, String str) {
return googleApiClient.enqueue(new zzai(this, googleApiClient, str));
}
@Override // com.google.android.gms.drive.DriveApi
public final DriveFolder getRootFolder(GoogleApiClient googleApiClient) {
zzaw zzawVar = (zzaw) googleApiClient.getClient(Drive.CLIENT_KEY);
if (!zzawVar.zzag()) {
throw new IllegalStateException("Client is not yet connected");
}
DriveId zzae = zzawVar.zzae();
if (zzae != null) {
return new zzbs(zzae);
}
return null;
}
@Override // com.google.android.gms.drive.DriveApi
public final DriveFolder getAppFolder(GoogleApiClient googleApiClient) {
zzaw zzawVar = (zzaw) googleApiClient.getClient(Drive.CLIENT_KEY);
if (!zzawVar.zzag()) {
throw new IllegalStateException("Client is not yet connected");
}
DriveId zzaf = zzawVar.zzaf();
if (zzaf != null) {
return new zzbs(zzaf);
}
return null;
}
@Override // com.google.android.gms.drive.DriveApi
public final PendingResult<Status> requestSync(GoogleApiClient googleApiClient) {
return googleApiClient.execute(new zzaj(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DriveApi
public final OpenFileActivityBuilder newOpenFileActivityBuilder() {
return new OpenFileActivityBuilder();
}
@Override // com.google.android.gms.drive.DriveApi
public final CreateFileActivityBuilder newCreateFileActivityBuilder() {
return new CreateFileActivityBuilder();
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.query.Query;
/* loaded from: classes3.dex */
final class zzag extends zzar {
private final /* synthetic */ Query zzdu;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzag(zzaf zzafVar, GoogleApiClient googleApiClient, Query query) {
super(googleApiClient);
this.zzdu = query;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgq(this.zzdu), new zzas(this));
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.DriveFile;
/* loaded from: classes3.dex */
final class zzah extends zzam {
private final /* synthetic */ int zzdv = DriveFile.MODE_WRITE_ONLY;
public zzah(zzaf zzafVar, GoogleApiClient googleApiClient, int i) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzr(this.zzdv), new zzak(this));
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
final class zzai extends zzap {
private final /* synthetic */ String zzdw;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzai(zzaf zzafVar, GoogleApiClient googleApiClient, String str) {
super(googleApiClient);
this.zzdw = str;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzek(DriveId.zza(this.zzdw), false), new zzan(this));
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzaj extends zzav {
public zzaj(zzaf zzafVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgy(this));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DriveApi;
/* loaded from: classes3.dex */
final class zzak extends zzl {
private final BaseImplementation.ResultHolder<DriveApi.DriveContentsResult> zzdx;
public zzak(BaseImplementation.ResultHolder<DriveApi.DriveContentsResult> resultHolder) {
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfh zzfhVar) throws RemoteException {
this.zzdx.setResult(new zzal(Status.RESULT_SUCCESS, new zzbi(zzfhVar.zzes)));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzal(status, null));
}
}

View File

@@ -0,0 +1,35 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Releasable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveContents;
/* loaded from: classes3.dex */
final class zzal implements Releasable, DriveApi.DriveContentsResult {
private final Status zzdy;
private final DriveContents zzo;
public zzal(Status status, DriveContents driveContents) {
this.zzdy = status;
this.zzo = driveContents;
}
@Override // com.google.android.gms.drive.DriveApi.DriveContentsResult
public final DriveContents getDriveContents() {
return this.zzo;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
@Override // com.google.android.gms.common.api.Releasable
public final void release() {
DriveContents driveContents = this.zzo;
if (driveContents != null) {
driveContents.zzj();
}
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
/* loaded from: classes3.dex */
abstract class zzam extends zzau<DriveApi.DriveContentsResult> {
public zzam(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzal(status, null);
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DriveApi;
/* loaded from: classes3.dex */
final class zzan extends zzl {
private final BaseImplementation.ResultHolder<DriveApi.DriveIdResult> zzdx;
public zzan(BaseImplementation.ResultHolder<DriveApi.DriveIdResult> resultHolder) {
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfy zzfyVar) throws RemoteException {
this.zzdx.setResult(new zzao(Status.RESULT_SUCCESS, new zzaa(zzfyVar.zzdn).getDriveId()));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfn zzfnVar) throws RemoteException {
this.zzdx.setResult(new zzao(Status.RESULT_SUCCESS, zzfnVar.zzdd));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzao(status, null));
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
final class zzao implements DriveApi.DriveIdResult {
private final Status zzdy;
private final DriveId zzk;
public zzao(Status status, DriveId driveId) {
this.zzdy = status;
this.zzk = driveId;
}
@Override // com.google.android.gms.drive.DriveApi.DriveIdResult
public final DriveId getDriveId() {
return this.zzk;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
/* loaded from: classes3.dex */
abstract class zzap extends zzau<DriveApi.DriveIdResult> {
public zzap(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzao(status, null);
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.MetadataBuffer;
/* loaded from: classes3.dex */
public final class zzaq implements DriveApi.MetadataBufferResult {
private final Status zzdy;
private final MetadataBuffer zzdz;
private final boolean zzea;
public zzaq(Status status, MetadataBuffer metadataBuffer, boolean z) {
this.zzdy = status;
this.zzdz = metadataBuffer;
this.zzea = z;
}
@Override // com.google.android.gms.drive.DriveApi.MetadataBufferResult
public final MetadataBuffer getMetadataBuffer() {
return this.zzdz;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
@Override // com.google.android.gms.common.api.Releasable
public final void release() {
MetadataBuffer metadataBuffer = this.zzdz;
if (metadataBuffer != null) {
metadataBuffer.release();
}
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveApi;
/* loaded from: classes3.dex */
abstract class zzar extends zzau<DriveApi.MetadataBufferResult> {
public zzar(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzaq(status, null, false);
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.MetadataBuffer;
/* loaded from: classes3.dex */
final class zzas extends zzl {
private final BaseImplementation.ResultHolder<DriveApi.MetadataBufferResult> zzdx;
public zzas(BaseImplementation.ResultHolder<DriveApi.MetadataBufferResult> resultHolder) {
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzft zzftVar) throws RemoteException {
this.zzdx.setResult(new zzaq(Status.RESULT_SUCCESS, new MetadataBuffer(zzftVar.zzii), zzftVar.zzea));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzaq(status, null, false));
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.internal.drive;
import android.annotation.SuppressLint;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Status;
@SuppressLint({"MissingRemoteException"})
/* loaded from: classes3.dex */
final class zzat extends zzav {
public zzat(GoogleApiClient googleApiClient, Status status) {
super(googleApiClient);
setResult((zzat) status);
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* bridge */ /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
}
}

View File

@@ -0,0 +1,13 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.Drive;
/* loaded from: classes3.dex */
public abstract class zzau<R extends Result> extends BaseImplementation.ApiMethodImpl<R, zzaw> {
public zzau(GoogleApiClient googleApiClient) {
super(Drive.CLIENT_KEY, googleApiClient);
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
/* loaded from: classes3.dex */
public abstract class zzav extends zzau<Status> {
public zzav(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return status;
}
}

View File

@@ -0,0 +1,238 @@
package com.google.android.gms.internal.drive;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Looper;
import android.os.Process;
import android.os.RemoteException;
import com.google.android.gms.common.GooglePlayServicesUtilLight;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.ClientSettings;
import com.google.android.gms.common.internal.GmsClient;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import com.google.android.gms.common.util.UidVerifier;
import com.google.android.gms.common.util.VisibleForTesting;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.events.ChangeListener;
import com.google.android.gms.drive.events.DriveEventService;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public final class zzaw extends GmsClient<zzeo> {
private final String zzeb;
protected final boolean zzec;
private volatile DriveId zzed;
private volatile DriveId zzee;
private volatile boolean zzef;
@VisibleForTesting
private final Map<DriveId, Map<ChangeListener, zzee>> zzeg;
@VisibleForTesting
private final Map<com.google.android.gms.drive.events.zzd, zzee> zzeh;
@VisibleForTesting
private final Map<DriveId, Map<com.google.android.gms.drive.events.zzl, zzee>> zzei;
@VisibleForTesting
private final Map<DriveId, Map<com.google.android.gms.drive.events.zzl, zzee>> zzej;
private final Bundle zzz;
public zzaw(Context context, Looper looper, ClientSettings clientSettings, GoogleApiClient.ConnectionCallbacks connectionCallbacks, GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener, Bundle bundle) {
super(context, looper, 11, clientSettings, connectionCallbacks, onConnectionFailedListener);
this.zzef = false;
this.zzeg = new HashMap();
this.zzeh = new HashMap();
this.zzei = new HashMap();
this.zzej = new HashMap();
this.zzeb = clientSettings.getRealClientPackageName();
this.zzz = bundle;
Intent intent = new Intent(DriveEventService.ACTION_HANDLE_EVENT);
intent.setPackage(context.getPackageName());
List<ResolveInfo> queryIntentServices = context.getPackageManager().queryIntentServices(intent, 0);
int size = queryIntentServices.size();
if (size == 0) {
this.zzec = false;
return;
}
if (size != 1) {
String action = intent.getAction();
StringBuilder sb = new StringBuilder(String.valueOf(action).length() + 72);
sb.append("AndroidManifest.xml can only define one service that handles the ");
sb.append(action);
sb.append(" action");
throw new IllegalStateException(sb.toString());
}
ServiceInfo serviceInfo = queryIntentServices.get(0).serviceInfo;
if (serviceInfo.exported) {
this.zzec = true;
return;
}
String str = serviceInfo.name;
StringBuilder sb2 = new StringBuilder(String.valueOf(str).length() + 60);
sb2.append("Drive event service ");
sb2.append(str);
sb2.append(" must be exported in AndroidManifest.xml");
throw new IllegalStateException(sb2.toString());
}
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final int getMinApkVersion() {
return GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final String getServiceDescriptor() {
return "com.google.android.gms.drive.internal.IDriveService";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final String getStartServiceAction() {
return "com.google.android.gms.drive.ApiService.START";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final boolean requiresAccount() {
return true;
}
public final DriveId zzae() {
return this.zzed;
}
public final DriveId zzaf() {
return this.zzee;
}
public final boolean zzag() {
return this.zzef;
}
public final boolean zzah() {
return this.zzec;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final boolean requiresSignIn() {
return (getContext().getPackageName().equals(this.zzeb) && UidVerifier.isGooglePlayServicesUid(getContext(), Process.myUid())) ? false : true;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final Bundle getGetServiceRequestExtraArgs() {
String packageName = getContext().getPackageName();
Preconditions.checkNotNull(packageName);
Preconditions.checkState(!getClientSettings().getAllRequestedScopes().isEmpty());
Bundle bundle = new Bundle();
if (!packageName.equals(this.zzeb)) {
bundle.putString("proxy_package_name", this.zzeb);
}
bundle.putAll(this.zzz);
return bundle;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final void disconnect() {
if (isConnected()) {
try {
((zzeo) getService()).zza(new zzad());
} catch (RemoteException unused) {
}
}
super.disconnect();
synchronized (this.zzeg) {
this.zzeg.clear();
}
synchronized (this.zzeh) {
this.zzeh.clear();
}
synchronized (this.zzei) {
this.zzei.clear();
}
synchronized (this.zzej) {
this.zzej.clear();
}
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final void onPostInitHandler(int i, IBinder iBinder, Bundle bundle, int i2) {
if (bundle != null) {
bundle.setClassLoader(zzaw.class.getClassLoader());
this.zzed = (DriveId) bundle.getParcelable("com.google.android.gms.drive.root_id");
this.zzee = (DriveId) bundle.getParcelable("com.google.android.gms.drive.appdata_id");
this.zzef = true;
}
super.onPostInitHandler(i, iBinder, bundle, i2);
}
public final PendingResult<Status> zza(GoogleApiClient googleApiClient, DriveId driveId, ChangeListener changeListener) {
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(1, driveId));
Preconditions.checkNotNull(changeListener, ServiceSpecificExtraArgs.CastExtraArgs.LISTENER);
Preconditions.checkState(isConnected(), "Client must be connected");
synchronized (this.zzeg) {
try {
Map<ChangeListener, zzee> map = this.zzeg.get(driveId);
if (map == null) {
map = new HashMap<>();
this.zzeg.put(driveId, map);
}
zzee zzeeVar = map.get(changeListener);
if (zzeeVar == null) {
zzeeVar = new zzee(getLooper(), getContext(), 1, changeListener);
map.put(changeListener, zzeeVar);
} else if (zzeeVar.zzg(1)) {
return new zzat(googleApiClient, Status.RESULT_SUCCESS);
}
zzeeVar.zzf(1);
return googleApiClient.execute(new zzax(this, googleApiClient, new zzj(1, driveId), zzeeVar));
} catch (Throwable th) {
throw th;
}
}
}
public final PendingResult<Status> zzb(GoogleApiClient googleApiClient, DriveId driveId, ChangeListener changeListener) {
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(1, driveId));
Preconditions.checkState(isConnected(), "Client must be connected");
Preconditions.checkNotNull(changeListener, ServiceSpecificExtraArgs.CastExtraArgs.LISTENER);
synchronized (this.zzeg) {
try {
Map<ChangeListener, zzee> map = this.zzeg.get(driveId);
if (map == null) {
return new zzat(googleApiClient, Status.RESULT_SUCCESS);
}
zzee remove = map.remove(changeListener);
if (remove == null) {
return new zzat(googleApiClient, Status.RESULT_SUCCESS);
}
if (map.isEmpty()) {
this.zzeg.remove(driveId);
}
return googleApiClient.execute(new zzay(this, googleApiClient, new zzgs(driveId, 1), remove));
} catch (Throwable th) {
throw th;
}
}
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final /* synthetic */ IInterface createServiceInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.drive.internal.IDriveService");
if (queryLocalInterface instanceof zzeo) {
return (zzeo) queryLocalInterface;
}
return new zzep(iBinder);
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzax extends zzav {
private final /* synthetic */ zzj zzek;
private final /* synthetic */ zzee zzel;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzax(zzaw zzawVar, GoogleApiClient googleApiClient, zzj zzjVar, zzee zzeeVar) {
super(googleApiClient);
this.zzek = zzjVar;
this.zzel = zzeeVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(this.zzek, this.zzel, (String) null, new zzgy(this));
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzay extends zzav {
private final /* synthetic */ zzee zzel;
private final /* synthetic */ zzgs zzem;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzay(zzaw zzawVar, GoogleApiClient googleApiClient, zzgs zzgsVar, zzee zzeeVar) {
super(googleApiClient);
this.zzem = zzgsVar;
this.zzel = zzeeVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(this.zzem, this.zzel, (String) null, new zzgy(this));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzaz extends zzav {
private final /* synthetic */ zzj zzek;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzaz(zzaw zzawVar, GoogleApiClient googleApiClient, zzj zzjVar) {
super(googleApiClient);
this.zzek = zzjVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(this.zzek, (zzes) null, (String) null, new zzgy(this));
}
}

View File

@@ -0,0 +1,37 @@
package com.google.android.gms.internal.drive;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* loaded from: classes3.dex */
public class zzb extends Binder implements IInterface {
private static zzd zzc;
public zzb(String str) {
attachInterface(this, str);
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public boolean dispatchTransaction(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
return false;
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i > 16777215) {
if (super.onTransact(i, parcel, parcel2, i2)) {
return true;
}
} else {
parcel.enforceInterface(getInterfaceDescriptor());
}
return dispatchTransaction(i, parcel, parcel2, i2);
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
final class zzba extends zzav {
private final /* synthetic */ DriveId zzen;
private final /* synthetic */ int zzeo = 1;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzba(zzaw zzawVar, GoogleApiClient googleApiClient, DriveId driveId, int i) {
super(googleApiClient);
this.zzen = driveId;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgs(this.zzen, this.zzeo), (zzes) null, (String) null, new zzgy(this));
}
}

View File

@@ -0,0 +1,58 @@
package com.google.android.gms.internal.drive;
import android.app.Activity;
import android.content.Context;
import android.content.IntentSender;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.drive.CreateFileActivityOptions;
import com.google.android.gms.drive.Drive;
import com.google.android.gms.drive.DriveClient;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.OpenFileActivityOptions;
import com.google.android.gms.drive.TransferPreferences;
import com.google.android.gms.tasks.Task;
/* loaded from: classes3.dex */
public final class zzbb extends DriveClient {
public zzbb(@NonNull Context context, @Nullable Drive.zza zzaVar) {
super(context, zzaVar);
}
public zzbb(@NonNull Activity activity, @Nullable Drive.zza zzaVar) {
super(activity, zzaVar);
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<DriveId> getDriveId(@NonNull String str) {
Preconditions.checkNotNull(str, "resourceId must not be null");
return doRead(new zzbc(this, str));
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<IntentSender> newOpenFileActivityIntentSender(OpenFileActivityOptions openFileActivityOptions) {
return doRead(new zzbf(this, openFileActivityOptions));
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<IntentSender> newCreateFileActivityIntentSender(CreateFileActivityOptions createFileActivityOptions) {
return doRead(new zzbg(this, createFileActivityOptions));
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<Void> requestSync() {
return doWrite(new zzbh(this));
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<TransferPreferences> getUploadPreferences() {
return doRead(new zzbd(this));
}
@Override // com.google.android.gms.drive.DriveClient
public final Task<Void> setUploadPreferences(@NonNull TransferPreferences transferPreferences) {
Preconditions.checkNotNull(transferPreferences, "transferPreferences cannot be null.");
return doWrite(new zzbe(this, transferPreferences));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbc extends TaskApiCall<zzaw, DriveId> {
private final /* synthetic */ String zzdw;
public zzbc(zzbb zzbbVar, String str) {
this.zzdw = str;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveId> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzek(DriveId.zza(this.zzdw), false), new zzhl(taskCompletionSource));
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.TransferPreferences;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbd extends TaskApiCall<zzaw, TransferPreferences> {
public zzbd(zzbb zzbbVar) {
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<TransferPreferences> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zzb(new zzhm(taskCompletionSource));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.TransferPreferences;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbe extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ TransferPreferences zzep;
public zzbe(zzbb zzbbVar, TransferPreferences transferPreferences) {
this.zzep = transferPreferences;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgu(new zzei(this.zzep)), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import android.content.IntentSender;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.OpenFileActivityOptions;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbf extends TaskApiCall<zzaw, IntentSender> {
private final /* synthetic */ OpenFileActivityOptions zzeq;
public zzbf(zzbb zzbbVar, OpenFileActivityOptions openFileActivityOptions) {
this.zzeq = openFileActivityOptions;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<IntentSender> taskCompletionSource) throws RemoteException {
zzeo zzeoVar = (zzeo) zzawVar.getService();
OpenFileActivityOptions openFileActivityOptions = this.zzeq;
taskCompletionSource.setResult(zzeoVar.zza(new zzgm(openFileActivityOptions.zzba, openFileActivityOptions.zzbb, openFileActivityOptions.zzbd, openFileActivityOptions.zzbe)));
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.internal.drive;
import android.content.IntentSender;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.CreateFileActivityOptions;
import com.google.android.gms.drive.metadata.internal.MetadataBundle;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbg extends TaskApiCall<zzaw, IntentSender> {
private final /* synthetic */ CreateFileActivityOptions zzer;
public zzbg(zzbb zzbbVar, CreateFileActivityOptions createFileActivityOptions) {
this.zzer = createFileActivityOptions;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<IntentSender> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
zzeo zzeoVar = (zzeo) zzawVar2.getService();
this.zzer.zzde.zza(zzawVar2.getContext());
CreateFileActivityOptions createFileActivityOptions = this.zzer;
MetadataBundle metadataBundle = createFileActivityOptions.zzde;
int intValue = createFileActivityOptions.zzdk.intValue();
CreateFileActivityOptions createFileActivityOptions2 = this.zzer;
taskCompletionSource.setResult(zzeoVar.zza(new zzu(metadataBundle, intValue, createFileActivityOptions2.zzba, createFileActivityOptions2.zzbd, Integer.valueOf(createFileActivityOptions2.zzdl))));
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzbh extends TaskApiCall<zzaw, Void> {
public zzbh(zzbb zzbbVar) {
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,150 @@
package com.google.android.gms.internal.drive;
import android.os.ParcelFileDescriptor;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.GmsLogger;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.IOUtils;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.MetadataChangeSet;
import java.io.InputStream;
import java.io.OutputStream;
/* loaded from: classes3.dex */
public final class zzbi implements DriveContents {
private static final GmsLogger zzbz = new GmsLogger("DriveContentsImpl", "");
private final Contents zzes;
private boolean closed = false;
private boolean zzet = false;
private boolean zzeu = false;
public zzbi(Contents contents) {
this.zzes = (Contents) Preconditions.checkNotNull(contents);
}
@Override // com.google.android.gms.drive.DriveContents
public final Contents zzi() {
return this.zzes;
}
@Override // com.google.android.gms.drive.DriveContents
public final boolean zzk() {
return this.closed;
}
@Override // com.google.android.gms.drive.DriveContents
public final DriveId getDriveId() {
return this.zzes.getDriveId();
}
@Override // com.google.android.gms.drive.DriveContents
public final int getMode() {
return this.zzes.getMode();
}
@Override // com.google.android.gms.drive.DriveContents
public final ParcelFileDescriptor getParcelFileDescriptor() {
if (this.closed) {
throw new IllegalStateException("Contents have been closed, cannot access the output stream.");
}
return this.zzes.getParcelFileDescriptor();
}
@Override // com.google.android.gms.drive.DriveContents
public final InputStream getInputStream() {
if (this.closed) {
throw new IllegalStateException("Contents have been closed, cannot access the input stream.");
}
if (this.zzes.getMode() != 268435456) {
throw new IllegalStateException("getInputStream() can only be used with contents opened with MODE_READ_ONLY.");
}
if (this.zzet) {
throw new IllegalStateException("getInputStream() can only be called once per Contents instance.");
}
this.zzet = true;
return this.zzes.getInputStream();
}
@Override // com.google.android.gms.drive.DriveContents
public final OutputStream getOutputStream() {
if (this.closed) {
throw new IllegalStateException("Contents have been closed, cannot access the output stream.");
}
if (this.zzes.getMode() != 536870912) {
throw new IllegalStateException("getOutputStream() can only be used with contents opened with MODE_WRITE_ONLY.");
}
if (this.zzeu) {
throw new IllegalStateException("getOutputStream() can only be called once per Contents instance.");
}
this.zzeu = true;
return this.zzes.getOutputStream();
}
@Override // com.google.android.gms.drive.DriveContents
public final PendingResult<DriveApi.DriveContentsResult> reopenForWrite(GoogleApiClient googleApiClient) {
if (this.closed) {
throw new IllegalStateException("DriveContents already closed.");
}
if (this.zzes.getMode() != 268435456) {
throw new IllegalStateException("reopenForWrite can only be used with DriveContents opened with MODE_READ_ONLY.");
}
zzj();
return googleApiClient.enqueue(new zzbj(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DriveContents
public final PendingResult<Status> commit(GoogleApiClient googleApiClient, @Nullable MetadataChangeSet metadataChangeSet) {
return zza(googleApiClient, metadataChangeSet, null);
}
@Override // com.google.android.gms.drive.DriveContents
public final PendingResult<Status> commit(GoogleApiClient googleApiClient, @Nullable MetadataChangeSet metadataChangeSet, @Nullable ExecutionOptions executionOptions) {
return zza(googleApiClient, metadataChangeSet, executionOptions == null ? null : com.google.android.gms.drive.zzn.zza(executionOptions));
}
private final PendingResult<Status> zza(GoogleApiClient googleApiClient, @Nullable MetadataChangeSet metadataChangeSet, @Nullable com.google.android.gms.drive.zzn zznVar) {
if (zznVar == null) {
zznVar = (com.google.android.gms.drive.zzn) new com.google.android.gms.drive.zzp().build();
}
if (this.zzes.getMode() == 268435456) {
throw new IllegalStateException("Cannot commit contents opened with MODE_READ_ONLY");
}
if (ExecutionOptions.zza(zznVar.zzn()) && !this.zzes.zzb()) {
throw new IllegalStateException("DriveContents must be valid for conflict detection.");
}
zznVar.zza(googleApiClient);
if (this.closed) {
throw new IllegalStateException("DriveContents already closed.");
}
if (getDriveId() == null) {
throw new IllegalStateException("Only DriveContents obtained through DriveFile.open can be committed.");
}
if (metadataChangeSet == null) {
metadataChangeSet = MetadataChangeSet.zzax;
}
zzj();
return googleApiClient.execute(new zzbk(this, googleApiClient, metadataChangeSet, zznVar));
}
@Override // com.google.android.gms.drive.DriveContents
public final void discard(GoogleApiClient googleApiClient) {
if (this.closed) {
throw new IllegalStateException("DriveContents already closed.");
}
zzj();
((zzbm) googleApiClient.execute(new zzbm(this, googleApiClient))).setResultCallback(new zzbl(this));
}
@Override // com.google.android.gms.drive.DriveContents
public final void zzj() {
IOUtils.closeQuietly(this.zzes.getParcelFileDescriptor());
this.closed = true;
}
}

View File

@@ -0,0 +1,27 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
final class zzbj extends zzam {
private final /* synthetic */ zzbi zzev;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbj(zzbi zzbiVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzev = zzbiVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
Contents contents;
zzeo zzeoVar = (zzeo) zzawVar.getService();
DriveId driveId = this.zzev.getDriveId();
contents = this.zzev.zzes;
zzeoVar.zza(new zzgj(driveId, DriveFile.MODE_WRITE_ONLY, contents.getRequestId()), new zzgl(this, null));
}
}

View File

@@ -0,0 +1,40 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.drive.metadata.internal.MetadataBundle;
/* loaded from: classes3.dex */
final class zzbk extends zzav {
private final /* synthetic */ zzbi zzev;
private final /* synthetic */ MetadataChangeSet zzew;
private final /* synthetic */ com.google.android.gms.drive.zzn zzex;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbk(zzbi zzbiVar, GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet, com.google.android.gms.drive.zzn zznVar) {
super(googleApiClient);
this.zzev = zzbiVar;
this.zzew = metadataChangeSet;
this.zzex = zznVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
Contents contents;
Contents contents2;
Contents contents3;
zzaw zzawVar2 = zzawVar;
this.zzew.zzq().zza(zzawVar2.getContext());
zzeo zzeoVar = (zzeo) zzawVar2.getService();
contents = this.zzev.zzes;
DriveId driveId = contents.getDriveId();
MetadataBundle zzq = this.zzew.zzq();
contents2 = this.zzev.zzes;
int requestId = contents2.getRequestId();
contents3 = this.zzev.zzes;
zzeoVar.zza(new zzm(driveId, zzq, requestId, contents3.zzb(), this.zzex), new zzgy(this));
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.GmsLogger;
/* loaded from: classes3.dex */
final class zzbl implements ResultCallback<Status> {
public zzbl(zzbi zzbiVar) {
}
@Override // com.google.android.gms.common.api.ResultCallback
public final /* synthetic */ void onResult(Status status) {
GmsLogger gmsLogger;
Status status2 = status;
if (status2.isSuccess()) {
return;
}
gmsLogger = zzbi.zzbz;
gmsLogger.efmt("DriveContentsImpl", "Error discarding contents, status: %s", status2);
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.Contents;
/* loaded from: classes3.dex */
final class zzbm extends zzav {
private final /* synthetic */ zzbi zzev;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbm(zzbi zzbiVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzev = zzbiVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
Contents contents;
zzeo zzeoVar = (zzeo) zzawVar.getService();
contents = this.zzev.zzes;
zzeoVar.zza(new zzo(contents.getRequestId(), false), new zzgy(this));
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveId;
/* loaded from: classes3.dex */
public final class zzbn extends zzdp implements DriveFile {
public zzbn(DriveId driveId) {
super(driveId);
}
@Override // com.google.android.gms.drive.DriveFile
public final PendingResult<DriveApi.DriveContentsResult> open(GoogleApiClient googleApiClient, int i, @Nullable DriveFile.DownloadProgressListener downloadProgressListener) {
if (i != 268435456 && i != 536870912 && i != 805306368) {
throw new IllegalArgumentException("Invalid mode provided.");
}
return googleApiClient.enqueue(new zzbo(this, googleApiClient, i, downloadProgressListener == null ? null : new zzbp(googleApiClient.registerListener(downloadProgressListener))));
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.internal.ICancelToken;
import com.google.android.gms.drive.DriveFile;
/* loaded from: classes3.dex */
final class zzbo extends zzam {
private final /* synthetic */ int zzdv;
private final /* synthetic */ DriveFile.DownloadProgressListener zzey;
private final /* synthetic */ zzbn zzez;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbo(zzbn zzbnVar, GoogleApiClient googleApiClient, int i, DriveFile.DownloadProgressListener downloadProgressListener) {
super(googleApiClient);
this.zzez = zzbnVar;
this.zzdv = i;
this.zzey = downloadProgressListener;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
setCancelToken(ICancelToken.Stub.asInterface(((zzeo) zzawVar.getService()).zza(new zzgj(this.zzez.getDriveId(), this.zzdv, 0), new zzgl(this, this.zzey)).zzgs));
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.drive.DriveFile;
/* loaded from: classes3.dex */
final class zzbp implements DriveFile.DownloadProgressListener {
private final ListenerHolder<DriveFile.DownloadProgressListener> zzfa;
public zzbp(ListenerHolder<DriveFile.DownloadProgressListener> listenerHolder) {
this.zzfa = listenerHolder;
}
@Override // com.google.android.gms.drive.DriveFile.DownloadProgressListener
public final void onProgress(long j, long j2) {
this.zzfa.notifyListener(new zzbq(this, j, j2));
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.drive.DriveFile;
/* loaded from: classes3.dex */
final class zzbq implements ListenerHolder.Notifier<DriveFile.DownloadProgressListener> {
private final /* synthetic */ long zzfb;
private final /* synthetic */ long zzfc;
public zzbq(zzbp zzbpVar, long j, long j2) {
this.zzfb = j;
this.zzfc = j2;
}
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public final void onNotifyListenerFailed() {
}
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public final /* synthetic */ void notifyListener(DriveFile.DownloadProgressListener downloadProgressListener) {
downloadProgressListener.onProgress(this.zzfb, this.zzfc);
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.internal.drive;
/* loaded from: classes3.dex */
public final class zzbr {
}

View File

@@ -0,0 +1,115 @@
package com.google.android.gms.internal.drive;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.drive.query.Filters;
import com.google.android.gms.drive.query.Query;
import com.google.android.gms.drive.query.SearchableField;
/* loaded from: classes3.dex */
public final class zzbs extends zzdp implements DriveFolder {
public zzbs(DriveId driveId) {
super(driveId);
}
@Override // com.google.android.gms.drive.DriveFolder
public final PendingResult<DriveApi.MetadataBufferResult> listChildren(GoogleApiClient googleApiClient) {
return queryChildren(googleApiClient, null);
}
@Override // com.google.android.gms.drive.DriveFolder
public final PendingResult<DriveApi.MetadataBufferResult> queryChildren(GoogleApiClient googleApiClient, Query query) {
return new zzaf().query(googleApiClient, zza(query, getDriveId()));
}
public static Query zza(@Nullable Query query, @NonNull DriveId driveId) {
Query.Builder addFilter = new Query.Builder().addFilter(Filters.in(SearchableField.PARENTS, driveId));
if (query != null) {
if (query.getFilter() != null) {
addFilter.addFilter(query.getFilter());
}
addFilter.setPageToken(query.getPageToken());
addFilter.setSortOrder(query.getSortOrder());
}
return addFilter.build();
}
@Override // com.google.android.gms.drive.DriveFolder
public final PendingResult<DriveFolder.DriveFileResult> createFile(GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet, @Nullable DriveContents driveContents) {
return createFile(googleApiClient, metadataChangeSet, driveContents, null);
}
@Override // com.google.android.gms.drive.DriveFolder
public final PendingResult<DriveFolder.DriveFileResult> createFile(GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet, @Nullable DriveContents driveContents, @Nullable ExecutionOptions executionOptions) {
if (executionOptions == null) {
executionOptions = new ExecutionOptions.Builder().build();
}
ExecutionOptions executionOptions2 = executionOptions;
if (executionOptions2.zzn() != 0) {
throw new IllegalStateException("May not set a conflict strategy for new file creation.");
}
if (metadataChangeSet == null) {
throw new IllegalArgumentException("MetadataChangeSet must be provided.");
}
com.google.android.gms.drive.metadata.internal.zzk zzg = com.google.android.gms.drive.metadata.internal.zzk.zzg(metadataChangeSet.getMimeType());
if (zzg != null && zzg.isFolder()) {
throw new IllegalArgumentException("May not create folders using this method. Use DriveFolder.createFolder() instead of mime type application/vnd.google-apps.folder");
}
executionOptions2.zza(googleApiClient);
if (driveContents != null) {
if (!(driveContents instanceof zzbi)) {
throw new IllegalArgumentException("Only DriveContents obtained from the Drive API are accepted.");
}
if (driveContents.getDriveId() != null) {
throw new IllegalArgumentException("Only DriveContents obtained through DriveApi.newDriveContents are accepted for file creation.");
}
if (driveContents.zzk()) {
throw new IllegalArgumentException("DriveContents are already closed.");
}
}
zzb(metadataChangeSet);
int zza = zza(driveContents, com.google.android.gms.drive.metadata.internal.zzk.zzg(metadataChangeSet.getMimeType()));
com.google.android.gms.drive.metadata.internal.zzk zzg2 = com.google.android.gms.drive.metadata.internal.zzk.zzg(metadataChangeSet.getMimeType());
return googleApiClient.execute(new zzbt(this, googleApiClient, metadataChangeSet, zza, (zzg2 == null || !zzg2.zzbh()) ? 0 : 1, executionOptions2));
}
public static void zzb(MetadataChangeSet metadataChangeSet) {
if (metadataChangeSet == null) {
throw new IllegalArgumentException("MetadataChangeSet must be provided.");
}
com.google.android.gms.drive.metadata.internal.zzk zzg = com.google.android.gms.drive.metadata.internal.zzk.zzg(metadataChangeSet.getMimeType());
if (zzg != null) {
if (zzg.zzbh() || zzg.isFolder()) {
throw new IllegalArgumentException("May not create shortcut files using this method. Use DriveFolder.createShortcutFile() instead.");
}
}
}
public static int zza(@Nullable DriveContents driveContents, @Nullable com.google.android.gms.drive.metadata.internal.zzk zzkVar) {
if (driveContents == null) {
return (zzkVar == null || !zzkVar.zzbh()) ? 1 : 0;
}
int requestId = driveContents.zzi().getRequestId();
driveContents.zzj();
return requestId;
}
@Override // com.google.android.gms.drive.DriveFolder
public final PendingResult<DriveFolder.DriveFolderResult> createFolder(GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet) {
if (metadataChangeSet == null) {
throw new IllegalArgumentException("MetadataChangeSet must be provided.");
}
if (metadataChangeSet.getMimeType() != null && !metadataChangeSet.getMimeType().equals(DriveFolder.MIME_TYPE)) {
throw new IllegalArgumentException("The mimetype must be of type application/vnd.google-apps.folder");
}
return googleApiClient.execute(new zzbu(this, googleApiClient, metadataChangeSet));
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.MetadataChangeSet;
/* loaded from: classes3.dex */
final class zzbt extends zzby {
private final /* synthetic */ MetadataChangeSet zzfd;
private final /* synthetic */ int zzfe;
private final /* synthetic */ int zzff;
private final /* synthetic */ ExecutionOptions zzfg;
private final /* synthetic */ zzbs zzfh;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbt(zzbs zzbsVar, GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet, int i, int i2, ExecutionOptions executionOptions) {
super(googleApiClient);
this.zzfh = zzbsVar;
this.zzfd = metadataChangeSet;
this.zzfe = i;
this.zzff = i2;
this.zzfg = executionOptions;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzfd.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzw(this.zzfh.getDriveId(), this.zzfd.zzq(), this.zzfe, this.zzff, this.zzfg), new zzbv(this));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.MetadataChangeSet;
/* loaded from: classes3.dex */
final class zzbu extends zzca {
private final /* synthetic */ MetadataChangeSet zzfd;
private final /* synthetic */ zzbs zzfh;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzbu(zzbs zzbsVar, GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet) {
super(googleApiClient);
this.zzfh = zzbsVar;
this.zzfd = metadataChangeSet;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzfd.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzy(this.zzfh.getDriveId(), this.zzfd.zzq()), new zzbw(this));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
final class zzbv extends zzl {
private final BaseImplementation.ResultHolder<DriveFolder.DriveFileResult> zzdx;
public zzbv(BaseImplementation.ResultHolder<DriveFolder.DriveFileResult> resultHolder) {
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfn zzfnVar) throws RemoteException {
this.zzdx.setResult(new zzbx(Status.RESULT_SUCCESS, new zzbn(zzfnVar.zzdd)));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzbx(status, null));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
final class zzbw extends zzl {
private final BaseImplementation.ResultHolder<DriveFolder.DriveFolderResult> zzdx;
public zzbw(BaseImplementation.ResultHolder<DriveFolder.DriveFolderResult> resultHolder) {
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfn zzfnVar) throws RemoteException {
this.zzdx.setResult(new zzbz(Status.RESULT_SUCCESS, new zzbs(zzfnVar.zzdd)));
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzbz(status, null));
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
final class zzbx implements DriveFolder.DriveFileResult {
private final Status zzdy;
private final DriveFile zzfi;
public zzbx(Status status, DriveFile driveFile) {
this.zzdy = status;
this.zzfi = driveFile;
}
@Override // com.google.android.gms.drive.DriveFolder.DriveFileResult
public final DriveFile getDriveFile() {
return this.zzfi;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
abstract class zzby extends zzau<DriveFolder.DriveFileResult> {
public zzby(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzbx(status, null);
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
final class zzbz implements DriveFolder.DriveFolderResult {
private final Status zzdy;
private final DriveFolder zzfj;
public zzbz(Status status, DriveFolder driveFolder) {
this.zzdy = status;
this.zzfj = driveFolder;
}
@Override // com.google.android.gms.drive.DriveFolder.DriveFolderResult
public final DriveFolder getDriveFolder() {
return this.zzfj;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
}

View File

@@ -0,0 +1,45 @@
package com.google.android.gms.internal.drive;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
/* loaded from: classes3.dex */
public class zzc {
private static final ClassLoader zzd = zzc.class.getClassLoader();
private zzc() {
}
public static boolean zza(Parcel parcel) {
return parcel.readInt() != 0;
}
public static void writeBoolean(Parcel parcel, boolean z) {
parcel.writeInt(z ? 1 : 0);
}
public static <T extends Parcelable> T zza(Parcel parcel, Parcelable.Creator<T> creator) {
if (parcel.readInt() == 0) {
return null;
}
return creator.createFromParcel(parcel);
}
public static void zza(Parcel parcel, Parcelable parcelable) {
if (parcelable == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcelable.writeToParcel(parcel, 0);
}
}
public static void zza(Parcel parcel, IInterface iInterface) {
if (iInterface == null) {
parcel.writeStrongBinder(null);
} else {
parcel.writeStrongBinder(iInterface.asBinder());
}
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DriveFolder;
/* loaded from: classes3.dex */
abstract class zzca extends zzau<DriveFolder.DriveFolderResult> {
public zzca(GoogleApiClient googleApiClient) {
super(googleApiClient);
}
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzbz(status, null);
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DrivePreferencesApi;
import com.google.android.gms.drive.FileUploadPreferences;
@Deprecated
/* loaded from: classes3.dex */
public final class zzcb implements DrivePreferencesApi {
@Override // com.google.android.gms.drive.DrivePreferencesApi
public final PendingResult<DrivePreferencesApi.FileUploadPreferencesResult> getFileUploadPreferences(GoogleApiClient googleApiClient) {
return googleApiClient.enqueue(new zzcc(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DrivePreferencesApi
public final PendingResult<Status> setFileUploadPreferences(GoogleApiClient googleApiClient, FileUploadPreferences fileUploadPreferences) {
if (!(fileUploadPreferences instanceof zzei)) {
throw new IllegalArgumentException("Invalid preference value");
}
return googleApiClient.execute(new zzcd(this, googleApiClient, (zzei) fileUploadPreferences));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzcc extends zzcg {
private final /* synthetic */ zzcb zzfk;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcc(zzcb zzcbVar, GoogleApiClient googleApiClient) {
super(zzcbVar, googleApiClient);
this.zzfk = zzcbVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zzb(new zzce(this.zzfk, this, null));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzcd extends zzav {
private final /* synthetic */ zzei zzfl;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcd(zzcb zzcbVar, GoogleApiClient googleApiClient, zzei zzeiVar) {
super(googleApiClient);
this.zzfl = zzeiVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgu(this.zzfl), new zzgy(this));
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.BaseImplementation;
import com.google.android.gms.drive.DrivePreferencesApi;
/* loaded from: classes3.dex */
final class zzce extends zzl {
private final BaseImplementation.ResultHolder<DrivePreferencesApi.FileUploadPreferencesResult> zzdx;
private final /* synthetic */ zzcb zzfk;
private zzce(zzcb zzcbVar, BaseImplementation.ResultHolder<DrivePreferencesApi.FileUploadPreferencesResult> resultHolder) {
this.zzfk = zzcbVar;
this.zzdx = resultHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(zzfj zzfjVar) throws RemoteException {
this.zzdx.setResult(new zzcf(this.zzfk, Status.RESULT_SUCCESS, zzfjVar.zzhw, null));
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(Status status) throws RemoteException {
this.zzdx.setResult(new zzcf(this.zzfk, status, null, 0 == true ? 1 : 0));
}
public /* synthetic */ zzce(zzcb zzcbVar, BaseImplementation.ResultHolder resultHolder, zzcc zzccVar) {
this(zzcbVar, resultHolder);
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DrivePreferencesApi;
import com.google.android.gms.drive.FileUploadPreferences;
/* loaded from: classes3.dex */
final class zzcf implements DrivePreferencesApi.FileUploadPreferencesResult {
private final Status zzdy;
private final FileUploadPreferences zzfm;
private zzcf(zzcb zzcbVar, Status status, FileUploadPreferences fileUploadPreferences) {
this.zzdy = status;
this.zzfm = fileUploadPreferences;
}
@Override // com.google.android.gms.drive.DrivePreferencesApi.FileUploadPreferencesResult
public final FileUploadPreferences getFileUploadPreferences() {
return this.zzfm;
}
@Override // com.google.android.gms.common.api.Result
public final Status getStatus() {
return this.zzdy;
}
public /* synthetic */ zzcf(zzcb zzcbVar, Status status, FileUploadPreferences fileUploadPreferences, zzcc zzccVar) {
this(zzcbVar, status, fileUploadPreferences);
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.DrivePreferencesApi;
/* loaded from: classes3.dex */
abstract class zzcg extends zzau<DrivePreferencesApi.FileUploadPreferencesResult> {
private final /* synthetic */ zzcb zzfk;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcg(zzcb zzcbVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzfk = zzcbVar;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.android.gms.common.api.internal.BasePendingResult
public /* synthetic */ Result createFailedResult(Status status) {
return new zzcf(this.zzfk, status, null, 0 == true ? 1 : 0);
}
}

View File

@@ -0,0 +1,283 @@
package com.google.android.gms.internal.drive;
import android.app.Activity;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import com.google.android.gms.drive.Drive;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.drive.DriveResourceClient;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.Metadata;
import com.google.android.gms.drive.MetadataBuffer;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.drive.events.ListenerToken;
import com.google.android.gms.drive.events.OnChangeListener;
import com.google.android.gms.drive.events.OpenFileCallback;
import com.google.android.gms.drive.query.Query;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.Task;
import java.util.ArrayList;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
/* loaded from: classes3.dex */
public final class zzch extends DriveResourceClient {
private static final AtomicInteger zzfn = new AtomicInteger();
public zzch(@NonNull Context context, @Nullable Drive.zza zzaVar) {
super(context, zzaVar);
}
public zzch(@NonNull Activity activity, @Nullable Drive.zza zzaVar) {
super(activity, zzaVar);
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveFolder> getRootFolder() {
return doRead(new zzck(this));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveFolder> getAppFolder() {
return doRead(new zzco(this));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<MetadataBuffer> query(@NonNull Query query) {
Preconditions.checkNotNull(query, "query cannot be null.");
return doRead(new zzcz(this, query));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Metadata> getMetadata(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource, "DriveResource must not be null");
Preconditions.checkNotNull(driveResource.getDriveId(), "Resource's DriveId must not be null");
return doRead(new zzdc(this, driveResource, false));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Metadata> updateMetadata(@NonNull DriveResource driveResource, @NonNull MetadataChangeSet metadataChangeSet) {
Preconditions.checkNotNull(driveResource.getDriveId());
Preconditions.checkNotNull(metadataChangeSet);
return doWrite(new zzdd(this, metadataChangeSet, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<MetadataBuffer> listParents(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
return doRead(new zzde(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> setParents(@NonNull DriveResource driveResource, @NonNull Set<DriveId> set) {
Preconditions.checkNotNull(driveResource.getDriveId());
Preconditions.checkNotNull(set);
return doWrite(new zzdf(this, driveResource, new ArrayList(set)));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> delete(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
return doWrite(new zzcl(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> trash(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
return doWrite(new zzcm(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> untrash(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
return doWrite(new zzcn(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<ListenerToken> addChangeListener(@NonNull DriveResource driveResource, @NonNull OnChangeListener onChangeListener) {
Preconditions.checkNotNull(driveResource.getDriveId());
Preconditions.checkNotNull(onChangeListener, ServiceSpecificExtraArgs.CastExtraArgs.LISTENER);
zzdi zzdiVar = new zzdi(this, onChangeListener, driveResource.getDriveId());
int incrementAndGet = zzfn.incrementAndGet();
StringBuilder sb = new StringBuilder(27);
sb.append("OnChangeListener");
sb.append(incrementAndGet);
final ListenerHolder<L> registerListener = registerListener(zzdiVar, sb.toString());
return doRegisterEventListener(new zzcp(this, registerListener, driveResource, zzdiVar), new zzcq(this, registerListener.getListenerKey(), driveResource, zzdiVar)).continueWith(new Continuation(registerListener) { // from class: com.google.android.gms.internal.drive.zzci
private final ListenerHolder zzfo;
{
this.zzfo = registerListener;
}
@Override // com.google.android.gms.tasks.Continuation
public final Object then(Task task) {
return zzch.zza(this.zzfo, task);
}
});
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Boolean> removeChangeListener(@NonNull ListenerToken listenerToken) {
Preconditions.checkNotNull(listenerToken, "Token is required to unregister listener.");
if (listenerToken instanceof zzg) {
return doUnregisterEventListener(((zzg) listenerToken).zzad());
}
throw new IllegalStateException("Could not recover key from ListenerToken");
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> addChangeSubscription(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(1, driveResource.getDriveId()));
return doWrite(new zzcr(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> removeChangeSubscription(@NonNull DriveResource driveResource) {
Preconditions.checkNotNull(driveResource.getDriveId());
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(1, driveResource.getDriveId()));
return doWrite(new zzcs(this, driveResource));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveContents> openFile(@NonNull DriveFile driveFile, int i) {
zze(i);
return doRead(new zzct(this, driveFile, i));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<ListenerToken> openFile(@NonNull DriveFile driveFile, int i, @NonNull OpenFileCallback openFileCallback) {
zze(i);
int incrementAndGet = zzfn.incrementAndGet();
StringBuilder sb = new StringBuilder(27);
sb.append("OpenFileCallback");
sb.append(incrementAndGet);
ListenerHolder<L> registerListener = registerListener(openFileCallback, sb.toString());
ListenerHolder.ListenerKey listenerKey = registerListener.getListenerKey();
final zzg zzgVar = new zzg(listenerKey);
return doRegisterEventListener(new zzcu(this, registerListener, driveFile, i, zzgVar, registerListener), new zzcv(this, listenerKey, zzgVar)).continueWith(new Continuation(zzgVar) { // from class: com.google.android.gms.internal.drive.zzcj
private final zzg zzfp;
{
this.zzfp = zzgVar;
}
@Override // com.google.android.gms.tasks.Continuation
public final Object then(Task task) {
return zzch.zza(this.zzfp, task);
}
});
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Boolean> cancelOpenFileCallback(@NonNull ListenerToken listenerToken) {
if (!(listenerToken instanceof zzg)) {
throw new IllegalArgumentException("Unrecognized ListenerToken");
}
return doUnregisterEventListener(((zzg) listenerToken).zzad());
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveContents> createContents() {
Preconditions.checkArgument(true, "Contents can only be created in MODE_WRITE_ONLY or MODE_READ_WRITE.");
return doWrite(new zzcw(this, DriveFile.MODE_WRITE_ONLY));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveContents> reopenContentsForWrite(@NonNull DriveContents driveContents) {
Preconditions.checkArgument(!driveContents.zzk(), "DriveContents is already closed");
Preconditions.checkArgument(driveContents.getMode() == 268435456, "This method can only be called on contents that are currently opened in MODE_READ_ONLY.");
driveContents.zzj();
return doRead(new zzcx(this, driveContents));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> commitContents(@NonNull DriveContents driveContents, @Nullable MetadataChangeSet metadataChangeSet) {
return commitContents(driveContents, metadataChangeSet, (com.google.android.gms.drive.zzn) new com.google.android.gms.drive.zzp().build());
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> commitContents(@NonNull DriveContents driveContents, @Nullable MetadataChangeSet metadataChangeSet, @NonNull ExecutionOptions executionOptions) {
Preconditions.checkNotNull(executionOptions, "Execution options cannot be null.");
Preconditions.checkArgument(!driveContents.zzk(), "DriveContents is already closed");
Preconditions.checkArgument(driveContents.getMode() != 268435456, "Cannot commit contents opened in MODE_READ_ONLY.");
Preconditions.checkNotNull(driveContents.getDriveId(), "Only DriveContents obtained through DriveFile.open can be committed.");
com.google.android.gms.drive.zzn zza = com.google.android.gms.drive.zzn.zza(executionOptions);
if (ExecutionOptions.zza(zza.zzn()) && !driveContents.zzi().zzb()) {
throw new IllegalStateException("DriveContents must be valid for conflict detection.");
}
if (metadataChangeSet == null) {
metadataChangeSet = MetadataChangeSet.zzax;
}
return doWrite(new zzcy(this, zza, driveContents, metadataChangeSet));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<Void> discardContents(@NonNull DriveContents driveContents) {
Preconditions.checkArgument(!driveContents.zzk(), "DriveContents is already closed");
driveContents.zzj();
return doWrite(new zzda(this, driveContents));
}
private static void zze(int i) {
if (i != 268435456 && i != 536870912 && i != 805306368) {
throw new IllegalArgumentException("Invalid openMode provided");
}
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<MetadataBuffer> listChildren(@NonNull DriveFolder driveFolder) {
Preconditions.checkNotNull(driveFolder, "folder cannot be null.");
return query(zzbs.zza((Query) null, driveFolder.getDriveId()));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<MetadataBuffer> queryChildren(@NonNull DriveFolder driveFolder, @NonNull Query query) {
Preconditions.checkNotNull(driveFolder, "folder cannot be null.");
Preconditions.checkNotNull(query, "query cannot be null.");
return query(zzbs.zza(query, driveFolder.getDriveId()));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveFile> createFile(@NonNull DriveFolder driveFolder, @NonNull MetadataChangeSet metadataChangeSet, @Nullable DriveContents driveContents) {
return createFile(driveFolder, metadataChangeSet, driveContents, new ExecutionOptions.Builder().build());
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveFile> createFile(@NonNull DriveFolder driveFolder, @NonNull MetadataChangeSet metadataChangeSet, @Nullable DriveContents driveContents, @NonNull ExecutionOptions executionOptions) {
zzbs.zzb(metadataChangeSet);
return doWrite(new zzdh(driveFolder, metadataChangeSet, driveContents, executionOptions, null));
}
@Override // com.google.android.gms.drive.DriveResourceClient
public final Task<DriveFolder> createFolder(@NonNull DriveFolder driveFolder, @NonNull MetadataChangeSet metadataChangeSet) {
Preconditions.checkNotNull(metadataChangeSet, "MetadataChangeSet must be provided.");
if (metadataChangeSet.getMimeType() != null && !metadataChangeSet.getMimeType().equals(DriveFolder.MIME_TYPE)) {
throw new IllegalArgumentException("The mimetype must be of type application/vnd.google-apps.folder");
}
return doWrite(new zzdb(this, metadataChangeSet, driveFolder));
}
public static final /* synthetic */ ListenerToken zza(zzg zzgVar, Task task) throws Exception {
if (task.isSuccessful()) {
return zzgVar;
}
throw task.getException();
}
public static final /* synthetic */ ListenerToken zza(ListenerHolder listenerHolder, Task task) throws Exception {
if (task.isSuccessful()) {
return new zzg(listenerHolder.getListenerKey());
}
throw task.getException();
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzck extends TaskApiCall<zzaw, DriveFolder> {
public zzck(zzch zzchVar) {
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveFolder> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
if (zzawVar2.zzae() == null) {
taskCompletionSource.setException(new ApiException(new Status(10, "Drive#SCOPE_FILE must be requested")));
} else {
taskCompletionSource.setResult(new zzbs(zzawVar2.zzae()));
}
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcl extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
public zzcl(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzab(this.zzfq.getDriveId()), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcm extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
public zzcm(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzhb(this.zzfq.getDriveId()), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcn extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
public zzcn(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzhd(this.zzfq.getDriveId()), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzco extends TaskApiCall<zzaw, DriveFolder> {
public zzco(zzch zzchVar) {
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveFolder> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
if (zzawVar2.zzaf() == null) {
taskCompletionSource.setException(new ApiException(new Status(10, "Drive#SCOPE_APPFOLDER must be requested")));
} else {
taskCompletionSource.setResult(new zzbs(zzawVar2.zzaf()));
}
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.api.internal.RegisterListenerMethod;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcp extends RegisterListenerMethod<zzaw, zzdi> {
private final /* synthetic */ DriveResource zzfq;
private final /* synthetic */ zzdi zzfr;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcp(zzch zzchVar, ListenerHolder listenerHolder, DriveResource driveResource, zzdi zzdiVar) {
super(listenerHolder);
this.zzfq = driveResource;
this.zzfr = zzdiVar;
}
@Override // com.google.android.gms.common.api.internal.RegisterListenerMethod
public final /* synthetic */ void registerListener(zzaw zzawVar, TaskCompletionSource taskCompletionSource) throws RemoteException {
zzee zzeeVar;
zzeo zzeoVar = (zzeo) zzawVar.getService();
zzj zzjVar = new zzj(1, this.zzfq.getDriveId());
zzeeVar = this.zzfr.zzgh;
zzeoVar.zza(zzjVar, zzeeVar, (String) null, new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.api.internal.UnregisterListenerMethod;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcq extends UnregisterListenerMethod<zzaw, zzdi> {
private final /* synthetic */ DriveResource zzfq;
private final /* synthetic */ zzdi zzfr;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcq(zzch zzchVar, ListenerHolder.ListenerKey listenerKey, DriveResource driveResource, zzdi zzdiVar) {
super(listenerKey);
this.zzfq = driveResource;
this.zzfr = zzdiVar;
}
@Override // com.google.android.gms.common.api.internal.UnregisterListenerMethod
public final /* synthetic */ void unregisterListener(zzaw zzawVar, TaskCompletionSource taskCompletionSource) throws RemoteException {
zzee zzeeVar;
zzeo zzeoVar = (zzeo) zzawVar.getService();
zzgs zzgsVar = new zzgs(this.zzfq.getDriveId(), 1);
zzeeVar = this.zzfr.zzgh;
zzeoVar.zza(zzgsVar, zzeeVar, (String) null, new zzhq(taskCompletionSource));
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcr extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
public zzcr(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
if (!zzawVar2.zzec) {
throw new IllegalStateException("Application must define an exported DriveEventService subclass in AndroidManifest.xml to add event subscriptions");
}
((zzeo) zzawVar2.getService()).zza(new zzj(1, this.zzfq.getDriveId()), (zzes) null, (String) null, new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcs extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
public zzcs(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgs(this.zzfq.getDriveId(), 1), (zzes) null, (String) null, new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzct extends TaskApiCall<zzaw, DriveContents> {
private final /* synthetic */ DriveFile zzfs;
private final /* synthetic */ int zzft;
public zzct(zzch zzchVar, DriveFile driveFile, int i) {
this.zzfs = driveFile;
this.zzft = i;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveContents> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgj(this.zzfs.getDriveId(), this.zzft, 0), new zzhi(taskCompletionSource));
}
}

View File

@@ -0,0 +1,34 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.api.internal.RegisterListenerMethod;
import com.google.android.gms.common.internal.ICancelToken;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.events.OpenFileCallback;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcu extends RegisterListenerMethod<zzaw, OpenFileCallback> {
private final /* synthetic */ DriveFile zzfs;
private final /* synthetic */ int zzft;
private final /* synthetic */ zzg zzfu;
private final /* synthetic */ ListenerHolder zzfv;
private final /* synthetic */ zzch zzfw;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcu(zzch zzchVar, ListenerHolder listenerHolder, DriveFile driveFile, int i, zzg zzgVar, ListenerHolder listenerHolder2) {
super(listenerHolder);
this.zzfw = zzchVar;
this.zzfs = driveFile;
this.zzft = i;
this.zzfu = zzgVar;
this.zzfv = listenerHolder2;
}
@Override // com.google.android.gms.common.api.internal.RegisterListenerMethod
public final /* synthetic */ void registerListener(zzaw zzawVar, TaskCompletionSource taskCompletionSource) throws RemoteException {
this.zzfu.setCancelToken(ICancelToken.Stub.asInterface(((zzeo) zzawVar.getService()).zza(new zzgj(this.zzfs.getDriveId(), this.zzft, 0), new zzdk(this.zzfw, this.zzfu, this.zzfv)).zzgs));
taskCompletionSource.setResult(null);
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.api.internal.UnregisterListenerMethod;
import com.google.android.gms.drive.events.OpenFileCallback;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcv extends UnregisterListenerMethod<zzaw, OpenFileCallback> {
private final /* synthetic */ zzg zzfu;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzcv(zzch zzchVar, ListenerHolder.ListenerKey listenerKey, zzg zzgVar) {
super(listenerKey);
this.zzfu = zzgVar;
}
@Override // com.google.android.gms.common.api.internal.UnregisterListenerMethod
public final /* synthetic */ void unregisterListener(zzaw zzawVar, TaskCompletionSource taskCompletionSource) throws RemoteException {
taskCompletionSource.setResult(Boolean.valueOf(this.zzfu.cancel()));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcw extends TaskApiCall<zzaw, DriveContents> {
private final /* synthetic */ int zzdv = DriveFile.MODE_WRITE_ONLY;
public zzcw(zzch zzchVar, int i) {
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveContents> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzr(this.zzdv), new zzhi(taskCompletionSource));
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcx extends TaskApiCall<zzaw, DriveContents> {
private final /* synthetic */ DriveContents zzfx;
public zzcx(zzch zzchVar, DriveContents driveContents) {
this.zzfx = driveContents;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveContents> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgj(this.zzfx.getDriveId(), DriveFile.MODE_WRITE_ONLY, this.zzfx.zzi().getRequestId()), new zzhi(taskCompletionSource));
}
}

View File

@@ -0,0 +1,33 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcy extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ MetadataChangeSet zzew;
private final /* synthetic */ DriveContents zzfx;
private final /* synthetic */ com.google.android.gms.drive.zzn zzfy;
public zzcy(zzch zzchVar, com.google.android.gms.drive.zzn zznVar, DriveContents driveContents, MetadataChangeSet metadataChangeSet) {
this.zzfy = zznVar;
this.zzfx = driveContents;
this.zzew = metadataChangeSet;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
try {
this.zzfy.zza(zzawVar2);
} catch (IllegalStateException e) {
taskCompletionSource.setException(e);
}
this.zzfx.zzj();
this.zzew.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzm(this.zzfx.getDriveId(), this.zzew.zzq(), this.zzfx.zzi().getRequestId(), this.zzfx.zzi().zzb(), this.zzfy), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.MetadataBuffer;
import com.google.android.gms.drive.query.Query;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzcz extends TaskApiCall<zzaw, MetadataBuffer> {
private final /* synthetic */ Query zzdu;
public zzcz(zzch zzchVar, Query query) {
this.zzdu = query;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<MetadataBuffer> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgq(this.zzdu), new zzhn(taskCompletionSource));
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.internal.drive;
/* loaded from: classes3.dex */
public interface zzd {
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzda extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveContents zzfx;
public zzda(zzch zzchVar, DriveContents driveContents) {
this.zzfx = driveContents;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzo(this.zzfx.zzi().getRequestId(), false), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzdb extends TaskApiCall<zzaw, DriveFolder> {
private final /* synthetic */ MetadataChangeSet zzfd;
private final /* synthetic */ DriveFolder zzfz;
public zzdb(zzch zzchVar, MetadataChangeSet metadataChangeSet, DriveFolder driveFolder) {
this.zzfd = metadataChangeSet;
this.zzfz = driveFolder;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveFolder> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzfd.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzy(this.zzfz.getDriveId(), this.zzfd.zzq()), new zzhk(taskCompletionSource));
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.drive.Metadata;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzdc extends TaskApiCall<zzaw, Metadata> {
private final /* synthetic */ DriveResource zzfq;
private final /* synthetic */ boolean zzga = false;
public zzdc(zzch zzchVar, DriveResource driveResource, boolean z) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Metadata> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzek(this.zzfq.getDriveId(), this.zzga), new zzhp(taskCompletionSource));
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.drive.Metadata;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzdd extends TaskApiCall<zzaw, Metadata> {
private final /* synthetic */ MetadataChangeSet zzfd;
private final /* synthetic */ DriveResource zzfq;
public zzdd(zzch zzchVar, MetadataChangeSet metadataChangeSet, DriveResource driveResource) {
this.zzfd = metadataChangeSet;
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Metadata> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzfd.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzhf(this.zzfq.getDriveId(), this.zzfd.zzq()), new zzhp(taskCompletionSource));
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.drive.MetadataBuffer;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzde extends TaskApiCall<zzaw, MetadataBuffer> {
private final /* synthetic */ DriveResource zzfq;
public zzde(zzch zzchVar, DriveResource driveResource) {
this.zzfq = driveResource;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<MetadataBuffer> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzex(this.zzfq.getDriveId()), new zzho(taskCompletionSource));
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.tasks.TaskCompletionSource;
import java.util.List;
/* loaded from: classes3.dex */
final class zzdf extends TaskApiCall<zzaw, Void> {
private final /* synthetic */ DriveResource zzfq;
private final /* synthetic */ List zzgb;
public zzdf(zzch zzchVar, DriveResource driveResource, List list) {
this.zzfq = driveResource;
this.zzgb = list;
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<Void> taskCompletionSource) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgw(this.zzfq.getDriveId(), this.zzgb), new zzhr(taskCompletionSource));
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.internal.drive;
/* loaded from: classes3.dex */
interface zzdg<T> {
void accept(T t);
}

View File

@@ -0,0 +1,61 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.drive.DriveContents;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveFolder;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes3.dex */
final class zzdh extends TaskApiCall<zzaw, DriveFile> {
private final DriveFolder zzfj;
private final MetadataChangeSet zzgc;
private ExecutionOptions zzgd;
private String zzge = null;
private com.google.android.gms.drive.metadata.internal.zzk zzgf;
private final DriveContents zzo;
public zzdh(@NonNull DriveFolder driveFolder, @NonNull MetadataChangeSet metadataChangeSet, @Nullable DriveContents driveContents, @NonNull ExecutionOptions executionOptions, @Nullable String str) {
this.zzfj = driveFolder;
this.zzgc = metadataChangeSet;
this.zzo = driveContents;
this.zzgd = executionOptions;
Preconditions.checkNotNull(driveFolder, "DriveFolder must not be null");
Preconditions.checkNotNull(driveFolder.getDriveId(), "Folder's DriveId must not be null");
Preconditions.checkNotNull(metadataChangeSet, "MetadataChangeSet must not be null");
Preconditions.checkNotNull(executionOptions, "ExecutionOptions must not be null");
com.google.android.gms.drive.metadata.internal.zzk zzg = com.google.android.gms.drive.metadata.internal.zzk.zzg(metadataChangeSet.getMimeType());
this.zzgf = zzg;
if (zzg != null && zzg.isFolder()) {
throw new IllegalArgumentException("May not create folders using this method. Use DriveFolderManagerClient#createFolder() instead of mime type application/vnd.google-apps.folder");
}
if (driveContents != null) {
if (!(driveContents instanceof zzbi)) {
throw new IllegalArgumentException("Only DriveContents obtained from the Drive API are accepted.");
}
if (driveContents.getDriveId() != null) {
throw new IllegalArgumentException("Only DriveContents obtained through DriveApi.newDriveContents are accepted for file creation.");
}
if (driveContents.zzk()) {
throw new IllegalArgumentException("DriveContents are already closed.");
}
}
}
@Override // com.google.android.gms.common.api.internal.TaskApiCall
public final /* synthetic */ void doExecute(zzaw zzawVar, TaskCompletionSource<DriveFile> taskCompletionSource) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzgd.zza(zzawVar2);
MetadataChangeSet metadataChangeSet = this.zzgc;
metadataChangeSet.zzq().zza(zzawVar2.getContext());
int zza = zzbs.zza(this.zzo, this.zzgf);
com.google.android.gms.drive.metadata.internal.zzk zzkVar = this.zzgf;
((zzeo) zzawVar2.getService()).zza(new zzw(this.zzfj.getDriveId(), metadataChangeSet.zzq(), zza, (zzkVar == null || !zzkVar.zzbh()) ? 0 : 1, this.zzgd), new zzhj(taskCompletionSource));
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.internal.drive;
import android.content.Context;
import android.os.Looper;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.events.OnChangeListener;
/* loaded from: classes3.dex */
final class zzdi {
private OnChangeListener zzgg;
private zzee zzgh;
private DriveId zzk;
public zzdi(zzch zzchVar, OnChangeListener onChangeListener, DriveId driveId) {
Preconditions.checkState(com.google.android.gms.drive.events.zzj.zza(1, driveId));
this.zzgg = onChangeListener;
this.zzk = driveId;
Looper looper = zzchVar.getLooper();
Context applicationContext = zzchVar.getApplicationContext();
onChangeListener.getClass();
zzee zzeeVar = new zzee(looper, applicationContext, 1, zzdj.zza(onChangeListener));
this.zzgh = zzeeVar;
zzeeVar.zzf(1);
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.drive.events.ChangeEvent;
import com.google.android.gms.drive.events.ChangeListener;
import com.google.android.gms.drive.events.OnChangeListener;
/* loaded from: classes3.dex */
final /* synthetic */ class zzdj implements ChangeListener {
private final OnChangeListener zzgi;
private zzdj(OnChangeListener onChangeListener) {
this.zzgi = onChangeListener;
}
public static ChangeListener zza(OnChangeListener onChangeListener) {
return new zzdj(onChangeListener);
}
@Override // com.google.android.gms.drive.events.ChangeListener
public final void onChange(ChangeEvent changeEvent) {
this.zzgi.onChange(changeEvent);
}
}

View File

@@ -0,0 +1,88 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.common.internal.ApiExceptionUtil;
import com.google.android.gms.drive.events.ListenerToken;
import com.google.android.gms.drive.events.OpenFileCallback;
/* loaded from: classes3.dex */
final class zzdk extends zzl {
private final /* synthetic */ zzch zzfw;
private final ListenerToken zzgj;
private final ListenerHolder<OpenFileCallback> zzgk;
public zzdk(zzch zzchVar, ListenerToken listenerToken, ListenerHolder<OpenFileCallback> listenerHolder) {
this.zzfw = zzchVar;
this.zzgj = listenerToken;
this.zzgk = listenerHolder;
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(final Status status) throws RemoteException {
zza(new zzdg(this, status) { // from class: com.google.android.gms.internal.drive.zzdl
private final zzdk zzgl;
private final Status zzgm;
{
this.zzgl = this;
this.zzgm = status;
}
@Override // com.google.android.gms.internal.drive.zzdg
public final void accept(Object obj) {
this.zzgl.zza(this.zzgm, (OpenFileCallback) obj);
}
});
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(final zzfl zzflVar) throws RemoteException {
zza(new zzdg(zzflVar) { // from class: com.google.android.gms.internal.drive.zzdm
private final zzfl zzgn;
{
this.zzgn = zzflVar;
}
@Override // com.google.android.gms.internal.drive.zzdg
public final void accept(Object obj) {
zzfl zzflVar2 = this.zzgn;
((OpenFileCallback) obj).onProgress(zzflVar2.zzhy, zzflVar2.zzhz);
}
});
}
@Override // com.google.android.gms.internal.drive.zzl, com.google.android.gms.internal.drive.zzeq
public final void zza(final zzfh zzfhVar) throws RemoteException {
zza(new zzdg(this, zzfhVar) { // from class: com.google.android.gms.internal.drive.zzdn
private final zzdk zzgl;
private final zzfh zzgo;
{
this.zzgl = this;
this.zzgo = zzfhVar;
}
@Override // com.google.android.gms.internal.drive.zzdg
public final void accept(Object obj) {
this.zzgl.zza(this.zzgo, (OpenFileCallback) obj);
}
});
}
private final void zza(zzdg<OpenFileCallback> zzdgVar) {
this.zzgk.notifyListener(new zzdo(this, zzdgVar));
}
public final /* synthetic */ void zza(zzfh zzfhVar, OpenFileCallback openFileCallback) {
openFileCallback.onContents(new zzbi(zzfhVar.zzes));
this.zzfw.cancelOpenFileCallback(this.zzgj);
}
public final /* synthetic */ void zza(Status status, OpenFileCallback openFileCallback) {
openFileCallback.onError(ApiExceptionUtil.fromStatus(status));
this.zzfw.cancelOpenFileCallback(this.zzgj);
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.internal.ListenerHolder;
import com.google.android.gms.drive.events.OpenFileCallback;
/* loaded from: classes3.dex */
final class zzdo implements ListenerHolder.Notifier<OpenFileCallback> {
private final /* synthetic */ zzdg zzgp;
public zzdo(zzdk zzdkVar, zzdg zzdgVar) {
this.zzgp = zzdgVar;
}
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public final void onNotifyListenerFailed() {
}
@Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier
public final /* synthetic */ void notifyListener(OpenFileCallback openFileCallback) {
this.zzgp.accept(openFileCallback);
}
}

View File

@@ -0,0 +1,100 @@
package com.google.android.gms.internal.drive;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.drive.Drive;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.DriveResource;
import com.google.android.gms.drive.MetadataChangeSet;
import com.google.android.gms.drive.events.ChangeListener;
import java.util.ArrayList;
import java.util.Set;
/* loaded from: classes3.dex */
public class zzdp implements DriveResource {
protected final DriveId zzk;
public zzdp(DriveId driveId) {
this.zzk = driveId;
}
@Override // com.google.android.gms.drive.DriveResource
public DriveId getDriveId() {
return this.zzk;
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<DriveResource.MetadataResult> getMetadata(GoogleApiClient googleApiClient) {
return googleApiClient.enqueue(new zzdq(this, googleApiClient, false));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<DriveApi.MetadataBufferResult> listParents(GoogleApiClient googleApiClient) {
return googleApiClient.enqueue(new zzdr(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> setParents(GoogleApiClient googleApiClient, Set<DriveId> set) {
if (set == null) {
throw new IllegalArgumentException("ParentIds must be provided.");
}
return googleApiClient.execute(new zzds(this, googleApiClient, new ArrayList(set)));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<DriveResource.MetadataResult> updateMetadata(GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet) {
if (metadataChangeSet == null) {
throw new IllegalArgumentException("ChangeSet must be provided.");
}
return googleApiClient.execute(new zzdt(this, googleApiClient, metadataChangeSet));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> delete(GoogleApiClient googleApiClient) {
return googleApiClient.execute(new zzdu(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> addChangeListener(GoogleApiClient googleApiClient, ChangeListener changeListener) {
return ((zzaw) googleApiClient.getClient(Drive.CLIENT_KEY)).zza(googleApiClient, this.zzk, changeListener);
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> removeChangeListener(GoogleApiClient googleApiClient, ChangeListener changeListener) {
return ((zzaw) googleApiClient.getClient(Drive.CLIENT_KEY)).zzb(googleApiClient, this.zzk, changeListener);
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> addChangeSubscription(GoogleApiClient googleApiClient) {
zzaw zzawVar = (zzaw) googleApiClient.getClient(Drive.CLIENT_KEY);
zzj zzjVar = new zzj(1, this.zzk);
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(zzjVar.zzda, zzjVar.zzk));
Preconditions.checkState(zzawVar.isConnected(), "Client must be connected");
if (!zzawVar.zzec) {
throw new IllegalStateException("Application must define an exported DriveEventService subclass in AndroidManifest.xml to add event subscriptions");
}
return googleApiClient.execute(new zzaz(zzawVar, googleApiClient, zzjVar));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> removeChangeSubscription(GoogleApiClient googleApiClient) {
zzaw zzawVar = (zzaw) googleApiClient.getClient(Drive.CLIENT_KEY);
DriveId driveId = this.zzk;
Preconditions.checkArgument(com.google.android.gms.drive.events.zzj.zza(1, driveId));
Preconditions.checkState(zzawVar.isConnected(), "Client must be connected");
return googleApiClient.execute(new zzba(zzawVar, googleApiClient, driveId, 1));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> trash(GoogleApiClient googleApiClient) {
return googleApiClient.execute(new zzdv(this, googleApiClient));
}
@Override // com.google.android.gms.drive.DriveResource
public PendingResult<Status> untrash(GoogleApiClient googleApiClient) {
return googleApiClient.execute(new zzdw(this, googleApiClient));
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzdq extends zzea {
private final /* synthetic */ boolean zzga = false;
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdq(zzdp zzdpVar, GoogleApiClient googleApiClient, boolean z) {
super(zzdpVar, googleApiClient, null);
this.zzgq = zzdpVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzek(this.zzgq.zzk, this.zzga), new zzdy(this));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzdr extends zzar {
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdr(zzdp zzdpVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzgq = zzdpVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzex(this.zzgq.zzk), new zzdx(this));
}
}

View File

@@ -0,0 +1,23 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import java.util.List;
/* loaded from: classes3.dex */
final class zzds extends zzav {
private final /* synthetic */ List zzgb;
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzds(zzdp zzdpVar, GoogleApiClient googleApiClient, List list) {
super(googleApiClient);
this.zzgq = zzdpVar;
this.zzgb = list;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzgw(this.zzgq.zzk, this.zzgb), new zzgy(this));
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.drive.MetadataChangeSet;
/* loaded from: classes3.dex */
final class zzdt extends zzea {
private final /* synthetic */ MetadataChangeSet zzfd;
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdt(zzdp zzdpVar, GoogleApiClient googleApiClient, MetadataChangeSet metadataChangeSet) {
super(zzdpVar, googleApiClient, null);
this.zzgq = zzdpVar;
this.zzfd = metadataChangeSet;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
zzaw zzawVar2 = zzawVar;
this.zzfd.zzq().zza(zzawVar2.getContext());
((zzeo) zzawVar2.getService()).zza(new zzhf(this.zzgq.zzk, this.zzfd.zzq()), new zzdy(this));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzdu extends zzav {
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdu(zzdp zzdpVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzgq = zzdpVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzab(this.zzgq.zzk), new zzgy(this));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzdv extends zzav {
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdv(zzdp zzdpVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzgq = zzdpVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzhb(this.zzgq.zzk), new zzgy(this));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.internal.drive;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
/* loaded from: classes3.dex */
final class zzdw extends zzav {
private final /* synthetic */ zzdp zzgq;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzdw(zzdp zzdpVar, GoogleApiClient googleApiClient) {
super(googleApiClient);
this.zzgq = zzdpVar;
}
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ApiMethodImpl
public final /* synthetic */ void doExecute(zzaw zzawVar) throws RemoteException {
((zzeo) zzawVar.getService()).zza(new zzhd(this.zzgq.zzk), new zzgy(this));
}
}

Some files were not shown because too many files have changed in this diff Show More