what-the-bank/sources/com/google/android/gms/location/LocationSettingsRequest.java

72 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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 java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/* loaded from: classes2.dex */
public final class LocationSettingsRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<LocationSettingsRequest> CREATOR = new zzbs();
private final List zza;
private final boolean zzb;
private final boolean zzc;
/* JADX INFO: Access modifiers changed from: package-private */
public LocationSettingsRequest(List list, boolean z, boolean z2) {
this.zza = list;
this.zzb = z;
this.zzc = z2;
}
@Override // android.os.Parcelable
public final 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);
}
/* loaded from: classes2.dex */
public static final class Builder {
private final ArrayList zza = new ArrayList();
private boolean zzb = false;
private boolean zzc = false;
public final Builder addAllLocationRequests(Collection<LocationRequest> collection) {
for (LocationRequest locationRequest : collection) {
if (locationRequest != null) {
this.zza.add(locationRequest);
}
}
return this;
}
public final Builder addLocationRequest(LocationRequest locationRequest) {
if (locationRequest != null) {
this.zza.add(locationRequest);
}
return this;
}
public final LocationSettingsRequest build() {
return new LocationSettingsRequest(this.zza, this.zzb, this.zzc);
}
public final Builder setNeedBle(boolean z) {
this.zzc = z;
return this;
}
public final Builder setAlwaysShow(boolean z) {
this.zzb = z;
return this;
}
}
}