Initial commit
This commit is contained in:
44
sources/com/google/android/gms/internal/common/zza.java
Normal file
44
sources/com/google/android/gms/internal/common/zza.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package com.google.android.gms.internal.common;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zza implements IInterface {
|
||||
private final IBinder a;
|
||||
private final String b;
|
||||
|
||||
protected zza(IBinder iBinder, String str) {
|
||||
this.a = iBinder;
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
protected final Parcel a(int i, Parcel parcel) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
try {
|
||||
this.a.transact(i, parcel, obtain, 0);
|
||||
obtain.readException();
|
||||
return obtain;
|
||||
} catch (RuntimeException e) {
|
||||
obtain.recycle();
|
||||
throw e;
|
||||
}
|
||||
} finally {
|
||||
parcel.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public IBinder asBinder() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
protected final Parcel i() {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
obtain.writeInterfaceToken(this.b);
|
||||
return obtain;
|
||||
}
|
||||
}
|
38
sources/com/google/android/gms/internal/common/zzb.java
Normal file
38
sources/com/google/android/gms/internal/common/zzb.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.google.android.gms.internal.common;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzb extends Binder implements IInterface {
|
||||
protected zzb(String str) {
|
||||
attachInterface(this, str);
|
||||
}
|
||||
|
||||
protected boolean a(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public IBinder asBinder() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // android.os.Binder
|
||||
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
||||
boolean z;
|
||||
if (i > 16777215) {
|
||||
z = super.onTransact(i, parcel, parcel2, i2);
|
||||
} else {
|
||||
parcel.enforceInterface(getInterfaceDescriptor());
|
||||
z = false;
|
||||
}
|
||||
if (z) {
|
||||
return true;
|
||||
}
|
||||
return a(i, parcel, parcel2, i2);
|
||||
}
|
||||
}
|
47
sources/com/google/android/gms/internal/common/zzc.java
Normal file
47
sources/com/google/android/gms/internal/common/zzc.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package com.google.android.gms.internal.common;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzc {
|
||||
static {
|
||||
zzc.class.getClassLoader();
|
||||
}
|
||||
|
||||
private zzc() {
|
||||
}
|
||||
|
||||
public static boolean a(Parcel parcel) {
|
||||
return parcel.readInt() != 0;
|
||||
}
|
||||
|
||||
public static void a(Parcel parcel, boolean z) {
|
||||
parcel.writeInt(z ? 1 : 0);
|
||||
}
|
||||
|
||||
public static <T extends Parcelable> T a(Parcel parcel, Parcelable.Creator<T> creator) {
|
||||
if (parcel.readInt() == 0) {
|
||||
return null;
|
||||
}
|
||||
return creator.createFromParcel(parcel);
|
||||
}
|
||||
|
||||
public static void a(Parcel parcel, Parcelable parcelable) {
|
||||
if (parcelable == null) {
|
||||
parcel.writeInt(0);
|
||||
} else {
|
||||
parcel.writeInt(1);
|
||||
parcelable.writeToParcel(parcel, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static void a(Parcel parcel, IInterface iInterface) {
|
||||
if (iInterface == null) {
|
||||
parcel.writeStrongBinder(null);
|
||||
} else {
|
||||
parcel.writeStrongBinder(iInterface.asBinder());
|
||||
}
|
||||
}
|
||||
}
|
15
sources/com/google/android/gms/internal/common/zze.java
Normal file
15
sources/com/google/android/gms/internal/common/zze.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.internal.common;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zze extends Handler {
|
||||
public zze(Looper looper) {
|
||||
super(looper);
|
||||
}
|
||||
|
||||
public zze(Looper looper, Handler.Callback callback) {
|
||||
super(looper, callback);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user