42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
|
package com.google.android.gms.internal.base;
|
||
|
|
||
|
import android.os.IInterface;
|
||
|
import android.os.Parcel;
|
||
|
import android.os.Parcelable;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zac {
|
||
|
private static final ClassLoader zaa = zac.class.getClassLoader();
|
||
|
|
||
|
public static <T extends Parcelable> T zaa(Parcel parcel, Parcelable.Creator<T> creator) {
|
||
|
if (parcel.readInt() == 0) {
|
||
|
return null;
|
||
|
}
|
||
|
return creator.createFromParcel(parcel);
|
||
|
}
|
||
|
|
||
|
public static void zab(Parcel parcel, boolean z) {
|
||
|
parcel.writeInt(z ? 1 : 0);
|
||
|
}
|
||
|
|
||
|
public static void zac(Parcel parcel, Parcelable parcelable) {
|
||
|
if (parcelable == null) {
|
||
|
parcel.writeInt(0);
|
||
|
} else {
|
||
|
parcel.writeInt(1);
|
||
|
parcelable.writeToParcel(parcel, 0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void zad(Parcel parcel, IInterface iInterface) {
|
||
|
if (iInterface == null) {
|
||
|
parcel.writeStrongBinder(null);
|
||
|
} else {
|
||
|
parcel.writeStrongBinder(iInterface.asBinder());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private zac() {
|
||
|
}
|
||
|
}
|