jimu-decompiled/sources/com/google/android/gms/common/internal/AuthAccountRequest.java
2025-05-13 19:24:51 +02:00

114 lines
3.9 KiB
Java

package com.google.android.gms.common.internal;
import android.accounts.Account;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.IAccountAccessor;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes.dex */
public class AuthAccountRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<AuthAccountRequest> CREATOR = new zaa();
private final int zale;
@Deprecated
private final IBinder zanw;
private final Scope[] zanx;
private Integer zany;
private Integer zanz;
private Account zax;
AuthAccountRequest(int i, IBinder iBinder, Scope[] scopeArr, Integer num, Integer num2, Account account) {
this.zale = i;
this.zanw = iBinder;
this.zanx = scopeArr;
this.zany = num;
this.zanz = num2;
this.zax = account;
}
public Account getAccount() {
Account account = this.zax;
if (account != null) {
return account;
}
IBinder iBinder = this.zanw;
if (iBinder != null) {
return AccountAccessor.a(IAccountAccessor.Stub.a(iBinder));
}
return null;
}
public Integer getOauthPolicy() {
return this.zany;
}
public Integer getPolicyAction() {
return this.zanz;
}
public Set<Scope> getScopes() {
return new HashSet(Arrays.asList(this.zanx));
}
public AuthAccountRequest setOauthPolicy(Integer num) {
this.zany = num;
return this;
}
public AuthAccountRequest setPolicyAction(Integer num) {
this.zanz = num;
return this;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int a = SafeParcelWriter.a(parcel);
SafeParcelWriter.a(parcel, 1, this.zale);
SafeParcelWriter.a(parcel, 2, this.zanw, false);
SafeParcelWriter.a(parcel, 3, (Parcelable[]) this.zanx, i, false);
SafeParcelWriter.a(parcel, 4, this.zany, false);
SafeParcelWriter.a(parcel, 5, this.zanz, false);
SafeParcelWriter.a(parcel, 6, (Parcelable) this.zax, i, false);
SafeParcelWriter.a(parcel, a);
}
@Deprecated
public AuthAccountRequest(IAccountAccessor iAccountAccessor, Set<Scope> set) {
this(3, iAccountAccessor.asBinder(), (Scope[]) set.toArray(new Scope[set.size()]), null, null, null);
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public AuthAccountRequest(android.accounts.Account r8, java.util.Set<com.google.android.gms.common.api.Scope> r9) {
/*
r7 = this;
int r0 = r9.size()
com.google.android.gms.common.api.Scope[] r0 = new com.google.android.gms.common.api.Scope[r0]
java.lang.Object[] r9 = r9.toArray(r0)
r3 = r9
com.google.android.gms.common.api.Scope[] r3 = (com.google.android.gms.common.api.Scope[]) r3
com.google.android.gms.common.internal.Preconditions.a(r8)
r6 = r8
android.accounts.Account r6 = (android.accounts.Account) r6
r1 = 3
r2 = 0
r4 = 0
r5 = 0
r0 = r7
r0.<init>(r1, r2, r3, r4, r5, r6)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.internal.AuthAccountRequest.<init>(android.accounts.Account, java.util.Set):void");
}
}