Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
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 java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationSettingsRequestCreator")
|
||||
@SafeParcelable.Reserved({4, 5, 1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationSettingsRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<LocationSettingsRequest> CREATOR = new zzz();
|
||||
|
||||
@SafeParcelable.Field(getter = "getLocationRequests", id = 1)
|
||||
private final List zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "false", getter = "alwaysShow", id = 2)
|
||||
private final boolean zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "needBle", id = 3)
|
||||
private final boolean zzc;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private final ArrayList zza = new ArrayList();
|
||||
private boolean zzb = false;
|
||||
private boolean zzc = false;
|
||||
|
||||
public Builder addAllLocationRequests(Collection<LocationRequest> collection) {
|
||||
for (LocationRequest locationRequest : collection) {
|
||||
if (locationRequest != null) {
|
||||
this.zza.add(locationRequest);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addLocationRequest(LocationRequest locationRequest) {
|
||||
if (locationRequest != null) {
|
||||
this.zza.add(locationRequest);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocationSettingsRequest build() {
|
||||
return new LocationSettingsRequest(this.zza, this.zzb, this.zzc);
|
||||
}
|
||||
|
||||
public Builder setAlwaysShow(boolean z3) {
|
||||
this.zzb = z3;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setNeedBle(boolean z3) {
|
||||
this.zzc = z3;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationSettingsRequest(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) boolean z3, @SafeParcelable.Param(id = 3) boolean z4) {
|
||||
this.zza = list;
|
||||
this.zzb = z3;
|
||||
this.zzc = z4;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, Collections.unmodifiableList(this.zza), false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user