77 lines
2.5 KiB
Java
77 lines
2.5 KiB
Java
package com.google.android.gms.location;
|
|
|
|
import android.content.Intent;
|
|
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.SafeParcelableSerializer;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class LocationSettingsStates extends AbstractSafeParcelable {
|
|
public static final Parcelable.Creator<LocationSettingsStates> CREATOR = new zzbu();
|
|
private final boolean zza;
|
|
private final boolean zzb;
|
|
private final boolean zzc;
|
|
private final boolean zzd;
|
|
private final boolean zze;
|
|
private final boolean zzf;
|
|
|
|
public LocationSettingsStates(boolean z, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) {
|
|
this.zza = z;
|
|
this.zzb = z2;
|
|
this.zzc = z3;
|
|
this.zzd = z4;
|
|
this.zze = z5;
|
|
this.zzf = z6;
|
|
}
|
|
|
|
public static LocationSettingsStates fromIntent(Intent intent) {
|
|
return (LocationSettingsStates) SafeParcelableSerializer.deserializeFromIntentExtra(intent, "com.google.android.gms.location.LOCATION_SETTINGS_STATES", CREATOR);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeBoolean(parcel, 1, isGpsUsable());
|
|
SafeParcelWriter.writeBoolean(parcel, 2, isNetworkLocationUsable());
|
|
SafeParcelWriter.writeBoolean(parcel, 3, isBleUsable());
|
|
SafeParcelWriter.writeBoolean(parcel, 4, isGpsPresent());
|
|
SafeParcelWriter.writeBoolean(parcel, 5, isNetworkLocationPresent());
|
|
SafeParcelWriter.writeBoolean(parcel, 6, isBlePresent());
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
public final boolean isNetworkLocationUsable() {
|
|
return this.zzb;
|
|
}
|
|
|
|
public final boolean isNetworkLocationPresent() {
|
|
return this.zze;
|
|
}
|
|
|
|
public final boolean isLocationUsable() {
|
|
return this.zza || this.zzb;
|
|
}
|
|
|
|
public final boolean isLocationPresent() {
|
|
return this.zzd || this.zze;
|
|
}
|
|
|
|
public final boolean isGpsUsable() {
|
|
return this.zza;
|
|
}
|
|
|
|
public final boolean isGpsPresent() {
|
|
return this.zzd;
|
|
}
|
|
|
|
public final boolean isBleUsable() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public final boolean isBlePresent() {
|
|
return this.zzf;
|
|
}
|
|
}
|