package com.google.android.gms.common.stats; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; import java.util.ArrayList; /* loaded from: classes2.dex */ public final class zza implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ Object createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); int i = 0; int i2 = 0; int i3 = 0; int i4 = 0; boolean z = false; long j = 0; long j2 = 0; long j3 = 0; String str = null; ArrayList arrayList = null; String str2 = null; String str3 = null; String str4 = null; String str5 = null; float f = 0.0f; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); switch (SafeParcelReader.getFieldId(readHeader)) { case 1: i = SafeParcelReader.readInt(parcel, readHeader); break; case 2: j = SafeParcelReader.readLong(parcel, readHeader); break; case 3: case 7: case 9: default: SafeParcelReader.skipUnknownField(parcel, readHeader); break; case 4: str = SafeParcelReader.createString(parcel, readHeader); break; case 5: i3 = SafeParcelReader.readInt(parcel, readHeader); break; case 6: arrayList = SafeParcelReader.createStringList(parcel, readHeader); break; case 8: j2 = SafeParcelReader.readLong(parcel, readHeader); break; case 10: str3 = SafeParcelReader.createString(parcel, readHeader); break; case 11: i2 = SafeParcelReader.readInt(parcel, readHeader); break; case 12: str2 = SafeParcelReader.createString(parcel, readHeader); break; case 13: str4 = SafeParcelReader.createString(parcel, readHeader); break; case 14: i4 = SafeParcelReader.readInt(parcel, readHeader); break; case 15: f = SafeParcelReader.readFloat(parcel, readHeader); break; case 16: j3 = SafeParcelReader.readLong(parcel, readHeader); break; case 17: str5 = SafeParcelReader.createString(parcel, readHeader); break; case 18: z = SafeParcelReader.readBoolean(parcel, readHeader); break; } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new WakeLockEvent(i, j, i2, str, i3, arrayList, str2, j2, i4, str3, str4, f, j3, str5, z); } @Override // android.os.Parcelable.Creator public final /* synthetic */ Object[] newArray(int i) { return new WakeLockEvent[i]; } }