Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityRecognition {
|
||||
|
||||
@Deprecated
|
||||
public static final Api<Api.ApiOptions.NoOptions> API = com.google.android.gms.internal.location.zzag.zzb;
|
||||
|
||||
@Deprecated
|
||||
public static final ActivityRecognitionApi ActivityRecognitionApi = new com.google.android.gms.internal.location.zzw();
|
||||
|
||||
private ActivityRecognition() {
|
||||
}
|
||||
|
||||
public static ActivityRecognitionClient getClient(Activity activity) {
|
||||
return new com.google.android.gms.internal.location.zzag(activity);
|
||||
}
|
||||
|
||||
public static ActivityRecognitionClient getClient(Context context) {
|
||||
return new com.google.android.gms.internal.location.zzag(context);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ActivityRecognitionApi {
|
||||
PendingResult<Status> removeActivityUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent);
|
||||
|
||||
PendingResult<Status> requestActivityUpdates(GoogleApiClient googleApiClient, long j4, PendingIntent pendingIntent);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.HasApiKey;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ActivityRecognitionClient extends HasApiKey<Api.ApiOptions.NoOptions> {
|
||||
Task<Void> removeActivityTransitionUpdates(PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> removeActivityUpdates(PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> removeSleepSegmentUpdates(PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> requestActivityTransitionUpdates(ActivityTransitionRequest activityTransitionRequest, PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> requestActivityUpdates(long j4, PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> requestSleepSegmentUpdates(PendingIntent pendingIntent, SleepSegmentRequest sleepSegmentRequest);
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ReflectedParcelable;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import com.google.android.gms.common.util.VisibleForTesting;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "ActivityRecognitionResultCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityRecognitionResult extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
public static final Parcelable.Creator<ActivityRecognitionResult> CREATOR = new zzd();
|
||||
|
||||
@SafeParcelable.Field(id = 1)
|
||||
List zza;
|
||||
|
||||
@SafeParcelable.Field(id = 2)
|
||||
long zzb;
|
||||
|
||||
@SafeParcelable.Field(id = 3)
|
||||
long zzc;
|
||||
|
||||
@SafeParcelable.Field(id = 4)
|
||||
int zzd;
|
||||
|
||||
@SafeParcelable.Field(id = 5)
|
||||
Bundle zze;
|
||||
|
||||
@VisibleForTesting
|
||||
public ActivityRecognitionResult(DetectedActivity detectedActivity, long j4, long j5) {
|
||||
this(Collections.singletonList(detectedActivity), j4, j5, 0, null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:5:0x002d A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:7:0x002e */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static com.google.android.gms.location.ActivityRecognitionResult extractResult(android.content.Intent r3) {
|
||||
/*
|
||||
boolean r0 = hasResult(r3)
|
||||
r1 = 0
|
||||
if (r0 != 0) goto L9
|
||||
L7:
|
||||
r0 = r1
|
||||
goto L2b
|
||||
L9:
|
||||
android.os.Bundle r0 = r3.getExtras()
|
||||
if (r0 != 0) goto L10
|
||||
goto L7
|
||||
L10:
|
||||
java.lang.String r2 = "com.google.android.location.internal.EXTRA_ACTIVITY_RESULT"
|
||||
java.lang.Object r0 = r0.get(r2)
|
||||
boolean r2 = r0 instanceof byte[]
|
||||
if (r2 == 0) goto L25
|
||||
byte[] r0 = (byte[]) r0
|
||||
android.os.Parcelable$Creator<com.google.android.gms.location.ActivityRecognitionResult> r2 = com.google.android.gms.location.ActivityRecognitionResult.CREATOR
|
||||
com.google.android.gms.common.internal.safeparcel.SafeParcelable r0 = com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer.deserializeFromBytes(r0, r2)
|
||||
com.google.android.gms.location.ActivityRecognitionResult r0 = (com.google.android.gms.location.ActivityRecognitionResult) r0
|
||||
goto L2b
|
||||
L25:
|
||||
boolean r2 = r0 instanceof com.google.android.gms.location.ActivityRecognitionResult
|
||||
if (r2 == 0) goto L7
|
||||
com.google.android.gms.location.ActivityRecognitionResult r0 = (com.google.android.gms.location.ActivityRecognitionResult) r0
|
||||
L2b:
|
||||
if (r0 == 0) goto L2e
|
||||
return r0
|
||||
L2e:
|
||||
java.util.List r3 = zza(r3)
|
||||
if (r3 == 0) goto L48
|
||||
boolean r0 = r3.isEmpty()
|
||||
if (r0 == 0) goto L3b
|
||||
goto L48
|
||||
L3b:
|
||||
int r0 = r3.size()
|
||||
int r0 = r0 + (-1)
|
||||
java.lang.Object r3 = r3.get(r0)
|
||||
com.google.android.gms.location.ActivityRecognitionResult r3 = (com.google.android.gms.location.ActivityRecognitionResult) r3
|
||||
return r3
|
||||
L48:
|
||||
return r1
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.location.ActivityRecognitionResult.extractResult(android.content.Intent):com.google.android.gms.location.ActivityRecognitionResult");
|
||||
}
|
||||
|
||||
public static boolean hasResult(Intent intent) {
|
||||
if (intent == null) {
|
||||
return false;
|
||||
}
|
||||
if (intent.hasExtra("com.google.android.location.internal.EXTRA_ACTIVITY_RESULT")) {
|
||||
return true;
|
||||
}
|
||||
List zza = zza(intent);
|
||||
return (zza == null || zza.isEmpty()) ? false : true;
|
||||
}
|
||||
|
||||
public static List zza(Intent intent) {
|
||||
if (intent != null && intent.hasExtra("com.google.android.location.internal.EXTRA_ACTIVITY_RESULT_LIST")) {
|
||||
return SafeParcelableSerializer.deserializeIterableFromIntentExtra(intent, "com.google.android.location.internal.EXTRA_ACTIVITY_RESULT_LIST", CREATOR);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static boolean zzb(Bundle bundle, Bundle bundle2) {
|
||||
int length;
|
||||
if (bundle == null) {
|
||||
return bundle2 == null;
|
||||
}
|
||||
if (bundle2 == null || bundle.size() != bundle2.size()) {
|
||||
return false;
|
||||
}
|
||||
for (String str : bundle.keySet()) {
|
||||
if (!bundle2.containsKey(str)) {
|
||||
return false;
|
||||
}
|
||||
Object obj = bundle.get(str);
|
||||
Object obj2 = bundle2.get(str);
|
||||
if (obj == null) {
|
||||
if (obj2 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (obj instanceof Bundle) {
|
||||
if (!zzb(bundle.getBundle(str), bundle2.getBundle(str))) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (obj.getClass().isArray()) {
|
||||
if (obj2 != null && obj2.getClass().isArray() && (length = Array.getLength(obj)) == Array.getLength(obj2)) {
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (Objects.equal(Array.get(obj, i), Array.get(obj2, i))) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!obj.equals(obj2)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj != null && getClass() == obj.getClass()) {
|
||||
ActivityRecognitionResult activityRecognitionResult = (ActivityRecognitionResult) obj;
|
||||
if (this.zzb == activityRecognitionResult.zzb && this.zzc == activityRecognitionResult.zzc && this.zzd == activityRecognitionResult.zzd && Objects.equal(this.zza, activityRecognitionResult.zza) && zzb(this.zze, activityRecognitionResult.zze)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getActivityConfidence(int i) {
|
||||
for (DetectedActivity detectedActivity : this.zza) {
|
||||
if (detectedActivity.getType() == i) {
|
||||
return detectedActivity.getConfidence();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long getElapsedRealtimeMillis() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public DetectedActivity getMostProbableActivity() {
|
||||
return (DetectedActivity) this.zza.get(0);
|
||||
}
|
||||
|
||||
public List<DetectedActivity> getProbableActivities() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public long getTime() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
public final int hashCode() {
|
||||
return Objects.hashCode(Long.valueOf(this.zzb), Long.valueOf(this.zzc), Integer.valueOf(this.zzd), this.zza, this.zze);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ActivityRecognitionResult [probableActivities=" + String.valueOf(this.zza) + ", timeMillis=" + this.zzb + ", elapsedRealtimeMillis=" + this.zzc + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false);
|
||||
SafeParcelWriter.writeLong(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeLong(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.writeInt(parcel, 4, this.zzd);
|
||||
SafeParcelWriter.writeBundle(parcel, 5, this.zze, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public ActivityRecognitionResult(List<DetectedActivity> list, long j4, long j5) {
|
||||
this(list, j4, j5, 0, null);
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Constructor
|
||||
public ActivityRecognitionResult(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) long j4, @SafeParcelable.Param(id = 3) long j5, @SafeParcelable.Param(id = 4) int i, @SafeParcelable.Param(id = 5) Bundle bundle) {
|
||||
Preconditions.checkArgument(list != null && list.size() > 0, "Must have at least 1 detected activity");
|
||||
Preconditions.checkArgument(j4 > 0 && j5 > 0, "Must set times");
|
||||
this.zza = list;
|
||||
this.zzb = j4;
|
||||
this.zzc = j5;
|
||||
this.zzd = i;
|
||||
this.zze = bundle;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@SafeParcelable.Class(creator = "ActivityTransitionCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityTransition extends AbstractSafeParcelable {
|
||||
public static final int ACTIVITY_TRANSITION_ENTER = 0;
|
||||
public static final int ACTIVITY_TRANSITION_EXIT = 1;
|
||||
public static final Parcelable.Creator<ActivityTransition> CREATOR = new zze();
|
||||
|
||||
@SafeParcelable.Field(getter = "getActivityType", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTransitionType", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static class Builder {
|
||||
private int zza = -1;
|
||||
private int zzb = -1;
|
||||
|
||||
public ActivityTransition build() {
|
||||
Preconditions.checkState(this.zza != -1, "Activity type not set.");
|
||||
Preconditions.checkState(this.zzb != -1, "Activity transition type not set.");
|
||||
return new ActivityTransition(this.zza, this.zzb);
|
||||
}
|
||||
|
||||
public Builder setActivityTransition(int i) {
|
||||
ActivityTransition.zza(i);
|
||||
this.zzb = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setActivityType(int i) {
|
||||
this.zza = i;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface SupportedActivityTransition {
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public ActivityTransition(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4) {
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
}
|
||||
|
||||
public static void zza(int i) {
|
||||
boolean z3 = false;
|
||||
if (i >= 0 && i <= 1) {
|
||||
z3 = true;
|
||||
}
|
||||
Preconditions.checkArgument(z3, "Transition type " + i + " is not valid.");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof ActivityTransition)) {
|
||||
return false;
|
||||
}
|
||||
ActivityTransition activityTransition = (ActivityTransition) obj;
|
||||
return this.zza == activityTransition.zza && this.zzb == activityTransition.zzb;
|
||||
}
|
||||
|
||||
public int getActivityType() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public int getTransitionType() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ActivityTransition [mActivityType=" + this.zza + ", mTransitionType=" + this.zzb + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, getActivityType());
|
||||
SafeParcelWriter.writeInt(parcel, 2, getTransitionType());
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -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.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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;
|
||||
|
||||
@SafeParcelable.Class(creator = "ActivityTransitionEventCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityTransitionEvent extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<ActivityTransitionEvent> CREATOR = new zzf();
|
||||
|
||||
@SafeParcelable.Field(getter = "getActivityType", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTransitionType", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getElapsedRealTimeNanos", id = 3)
|
||||
private final long zzc;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public ActivityTransitionEvent(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) long j4) {
|
||||
ActivityTransition.zza(i4);
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = j4;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof ActivityTransitionEvent)) {
|
||||
return false;
|
||||
}
|
||||
ActivityTransitionEvent activityTransitionEvent = (ActivityTransitionEvent) obj;
|
||||
return this.zza == activityTransitionEvent.zza && this.zzb == activityTransitionEvent.zzb && this.zzc == activityTransitionEvent.zzc;
|
||||
}
|
||||
|
||||
public int getActivityType() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public long getElapsedRealTimeNanos() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public int getTransitionType() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb), Long.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("ActivityType " + this.zza);
|
||||
sb.append(" ");
|
||||
sb.append("TransitionType " + this.zzb);
|
||||
sb.append(" ");
|
||||
sb.append("ElapsedRealTimeNanos " + this.zzc);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, getActivityType());
|
||||
SafeParcelWriter.writeInt(parcel, 2, getTransitionType());
|
||||
SafeParcelWriter.writeLong(parcel, 3, getElapsedRealTimeNanos());
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
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.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.TreeSet;
|
||||
|
||||
@SafeParcelable.Class(creator = "ActivityTransitionRequestCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityTransitionRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<ActivityTransitionRequest> CREATOR = new zzh();
|
||||
public static final Comparator<ActivityTransition> IS_SAME_TRANSITION = new zzg();
|
||||
|
||||
@SafeParcelable.Field(getter = "getActivityTransitions", id = 1)
|
||||
private final List zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTag", id = 2)
|
||||
private final String zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getClients", id = 3)
|
||||
private final List zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "null", getter = "getContextAttributionTag", id = 4)
|
||||
private String zzd;
|
||||
|
||||
public ActivityTransitionRequest(List<ActivityTransition> list) {
|
||||
this(list, null, null, null);
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj != null && getClass() == obj.getClass()) {
|
||||
ActivityTransitionRequest activityTransitionRequest = (ActivityTransitionRequest) obj;
|
||||
if (Objects.equal(this.zza, activityTransitionRequest.zza) && Objects.equal(this.zzb, activityTransitionRequest.zzb) && Objects.equal(this.zzd, activityTransitionRequest.zzd) && Objects.equal(this.zzc, activityTransitionRequest.zzc)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.zza.hashCode() * 31;
|
||||
String str = this.zzb;
|
||||
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
|
||||
List list = this.zzc;
|
||||
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
|
||||
String str2 = this.zzd;
|
||||
return hashCode3 + (str2 != null ? str2.hashCode() : 0);
|
||||
}
|
||||
|
||||
public void serializeToIntentExtra(Intent intent) {
|
||||
Preconditions.checkNotNull(intent);
|
||||
SafeParcelableSerializer.serializeToIntentExtra(this, intent, "com.google.android.location.internal.EXTRA_ACTIVITY_TRANSITION_REQUEST");
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ActivityTransitionRequest [mTransitions=" + String.valueOf(this.zza) + ", mTag='" + this.zzb + "', mClients=" + String.valueOf(this.zzc) + ", mAttributionTag=" + this.zzd + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false);
|
||||
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
|
||||
SafeParcelWriter.writeTypedList(parcel, 3, this.zzc, false);
|
||||
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final ActivityTransitionRequest zza(String str) {
|
||||
this.zzd = str;
|
||||
return this;
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public ActivityTransitionRequest(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) List list2, @SafeParcelable.Param(id = 4) String str2) {
|
||||
List unmodifiableList;
|
||||
Preconditions.checkNotNull(list, "transitions can't be null");
|
||||
Preconditions.checkArgument(list.size() > 0, "transitions can't be empty.");
|
||||
Preconditions.checkNotNull(list);
|
||||
TreeSet treeSet = new TreeSet(IS_SAME_TRANSITION);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
ActivityTransition activityTransition = (ActivityTransition) it.next();
|
||||
Preconditions.checkArgument(treeSet.add(activityTransition), String.format("Found duplicated transition: %s.", activityTransition));
|
||||
}
|
||||
this.zza = Collections.unmodifiableList(list);
|
||||
this.zzb = str;
|
||||
if (list2 == null) {
|
||||
unmodifiableList = Collections.EMPTY_LIST;
|
||||
} else {
|
||||
unmodifiableList = Collections.unmodifiableList(list2);
|
||||
}
|
||||
this.zzc = unmodifiableList;
|
||||
this.zzd = str2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "ActivityTransitionResultCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class ActivityTransitionResult extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<ActivityTransitionResult> CREATOR = new zzi();
|
||||
|
||||
@SafeParcelable.Field(getter = "getTransitionEvents", id = 1)
|
||||
private final List zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getExtras", id = 2)
|
||||
private Bundle zzb;
|
||||
|
||||
public ActivityTransitionResult(@SafeParcelable.Param(id = 1) List<ActivityTransitionEvent> list) {
|
||||
this.zzb = null;
|
||||
Preconditions.checkNotNull(list, "transitionEvents list can't be null.");
|
||||
if (!list.isEmpty()) {
|
||||
for (int i = 1; i < list.size(); i++) {
|
||||
Preconditions.checkArgument(list.get(i).getElapsedRealTimeNanos() >= list.get(i + (-1)).getElapsedRealTimeNanos());
|
||||
}
|
||||
}
|
||||
this.zza = Collections.unmodifiableList(list);
|
||||
}
|
||||
|
||||
public static ActivityTransitionResult extractResult(Intent intent) {
|
||||
if (hasResult(intent)) {
|
||||
return (ActivityTransitionResult) SafeParcelableSerializer.deserializeFromIntentExtra(intent, "com.google.android.location.internal.EXTRA_ACTIVITY_TRANSITION_RESULT", CREATOR);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean hasResult(Intent intent) {
|
||||
if (intent == null) {
|
||||
return false;
|
||||
}
|
||||
return intent.hasExtra("com.google.android.location.internal.EXTRA_ACTIVITY_TRANSITION_RESULT");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return this.zza.equals(((ActivityTransitionResult) obj).zza);
|
||||
}
|
||||
|
||||
public List<ActivityTransitionEvent> getTransitionEvents() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.zza.hashCode();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, getTransitionEvents(), false);
|
||||
SafeParcelWriter.writeBundle(parcel, 2, this.zzb, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Constructor
|
||||
public ActivityTransitionResult(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) Bundle bundle) {
|
||||
this(list);
|
||||
this.zzb = bundle;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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 com.google.android.gms.common.util.WorkSourceUtil;
|
||||
import com.google.android.gms.internal.location.zzdj;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import kotlinx.coroutines.test.TestBuildersKt;
|
||||
import org.checkerframework.dataflow.qual.Pure;
|
||||
import u.AbstractC0629f;
|
||||
|
||||
@SafeParcelable.Class(creator = "CurrentLocationRequestCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CurrentLocationRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<CurrentLocationRequest> CREATOR = new zzj();
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Long.MAX_VALUE", getter = "getMaxUpdateAgeMillis", id = 1)
|
||||
private final long zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Granularity.GRANULARITY_PERMISSION_LEVEL", getter = "getGranularity", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Priority.PRIORITY_BALANCED_POWER_ACCURACY", getter = "getPriority", id = 3)
|
||||
private final int zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Long.MAX_VALUE", getter = "getDurationMillis", id = 4)
|
||||
private final long zzd;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "false", getter = "isBypass", id = 5)
|
||||
private final boolean zze;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "ThrottleBehavior.THROTTLE_BACKGROUND", getter = "getThrottleBehavior", id = 7)
|
||||
private final int zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getModuleId", id = 8)
|
||||
private final String zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "new android.os.WorkSource()", getter = "getWorkSource", id = 6)
|
||||
private final WorkSource zzh;
|
||||
|
||||
@SafeParcelable.Field(getter = "getImpersonation", id = 9)
|
||||
private final com.google.android.gms.internal.location.zzd zzi;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private long zza;
|
||||
private int zzb;
|
||||
private int zzc;
|
||||
private long zzd;
|
||||
private boolean zze;
|
||||
private int zzf;
|
||||
private String zzg;
|
||||
private WorkSource zzh;
|
||||
private com.google.android.gms.internal.location.zzd zzi;
|
||||
|
||||
public Builder() {
|
||||
this.zza = TestBuildersKt.DEFAULT_DISPATCH_TIMEOUT_MS;
|
||||
this.zzb = 0;
|
||||
this.zzc = 102;
|
||||
this.zzd = LongCompanionObject.MAX_VALUE;
|
||||
this.zze = false;
|
||||
this.zzf = 0;
|
||||
this.zzg = null;
|
||||
this.zzh = null;
|
||||
this.zzi = null;
|
||||
}
|
||||
|
||||
public CurrentLocationRequest build() {
|
||||
return new CurrentLocationRequest(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, this.zzg, new WorkSource(this.zzh), this.zzi);
|
||||
}
|
||||
|
||||
public Builder setDurationMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 > 0, "durationMillis must be greater than 0");
|
||||
this.zzd = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setGranularity(int i) {
|
||||
zzo.zza(i);
|
||||
this.zzb = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxUpdateAgeMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "maxUpdateAgeMillis must be greater than or equal to 0");
|
||||
this.zza = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setPriority(int i) {
|
||||
zzae.zza(i);
|
||||
this.zzc = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder(CurrentLocationRequest currentLocationRequest) {
|
||||
this.zza = currentLocationRequest.getMaxUpdateAgeMillis();
|
||||
this.zzb = currentLocationRequest.getGranularity();
|
||||
this.zzc = currentLocationRequest.getPriority();
|
||||
this.zzd = currentLocationRequest.getDurationMillis();
|
||||
this.zze = currentLocationRequest.zze();
|
||||
this.zzf = currentLocationRequest.zza();
|
||||
this.zzg = currentLocationRequest.zzd();
|
||||
this.zzh = new WorkSource(currentLocationRequest.zzb());
|
||||
this.zzi = currentLocationRequest.zzc();
|
||||
}
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public CurrentLocationRequest(@SafeParcelable.Param(id = 1) long j4, @SafeParcelable.Param(id = 2) int i, @SafeParcelable.Param(id = 3) int i4, @SafeParcelable.Param(id = 4) long j5, @SafeParcelable.Param(id = 5) boolean z3, @SafeParcelable.Param(id = 7) int i5, @SafeParcelable.Param(id = 8) String str, @SafeParcelable.Param(id = 6) WorkSource workSource, @SafeParcelable.Param(id = 9) com.google.android.gms.internal.location.zzd zzdVar) {
|
||||
boolean z4 = true;
|
||||
if (Build.VERSION.SDK_INT >= 30 && str != null) {
|
||||
z4 = false;
|
||||
}
|
||||
Preconditions.checkArgument(z4);
|
||||
this.zza = j4;
|
||||
this.zzb = i;
|
||||
this.zzc = i4;
|
||||
this.zzd = j5;
|
||||
this.zze = z3;
|
||||
this.zzf = i5;
|
||||
this.zzg = str;
|
||||
this.zzh = workSource;
|
||||
this.zzi = zzdVar;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof CurrentLocationRequest)) {
|
||||
return false;
|
||||
}
|
||||
CurrentLocationRequest currentLocationRequest = (CurrentLocationRequest) obj;
|
||||
return this.zza == currentLocationRequest.zza && this.zzb == currentLocationRequest.zzb && this.zzc == currentLocationRequest.zzc && this.zzd == currentLocationRequest.zzd && this.zze == currentLocationRequest.zze && this.zzf == currentLocationRequest.zzf && Objects.equal(this.zzg, currentLocationRequest.zzg) && Objects.equal(this.zzh, currentLocationRequest.zzh) && Objects.equal(this.zzi, currentLocationRequest.zzi);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getDurationMillis() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getGranularity() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getMaxUpdateAgeMillis() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getPriority() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Long.valueOf(this.zza), Integer.valueOf(this.zzb), Integer.valueOf(this.zzc), Long.valueOf(this.zzd));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder a2 = AbstractC0629f.a("CurrentLocationRequest[");
|
||||
a2.append(zzae.zzb(this.zzc));
|
||||
if (this.zza != LongCompanionObject.MAX_VALUE) {
|
||||
a2.append(", maxAge=");
|
||||
zzdj.zzb(this.zza, a2);
|
||||
}
|
||||
if (this.zzd != LongCompanionObject.MAX_VALUE) {
|
||||
a2.append(", duration=");
|
||||
a2.append(this.zzd);
|
||||
a2.append("ms");
|
||||
}
|
||||
if (this.zzb != 0) {
|
||||
a2.append(", ");
|
||||
a2.append(zzo.zzb(this.zzb));
|
||||
}
|
||||
if (this.zze) {
|
||||
a2.append(", bypass");
|
||||
}
|
||||
if (this.zzf != 0) {
|
||||
a2.append(", ");
|
||||
a2.append(zzai.zza(this.zzf));
|
||||
}
|
||||
if (this.zzg != null) {
|
||||
a2.append(", moduleId=");
|
||||
a2.append(this.zzg);
|
||||
}
|
||||
if (!WorkSourceUtil.isEmpty(this.zzh)) {
|
||||
a2.append(", workSource=");
|
||||
a2.append(this.zzh);
|
||||
}
|
||||
if (this.zzi != null) {
|
||||
a2.append(", impersonation=");
|
||||
a2.append(this.zzi);
|
||||
}
|
||||
a2.append(']');
|
||||
return a2.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeLong(parcel, 1, getMaxUpdateAgeMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 2, getGranularity());
|
||||
SafeParcelWriter.writeInt(parcel, 3, getPriority());
|
||||
SafeParcelWriter.writeLong(parcel, 4, getDurationMillis());
|
||||
SafeParcelWriter.writeBoolean(parcel, 5, this.zze);
|
||||
SafeParcelWriter.writeParcelable(parcel, 6, this.zzh, i, false);
|
||||
SafeParcelWriter.writeInt(parcel, 7, this.zzf);
|
||||
SafeParcelWriter.writeString(parcel, 8, this.zzg, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 9, this.zzi, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final int zza() {
|
||||
return this.zzf;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final WorkSource zzb() {
|
||||
return this.zzh;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final com.google.android.gms.internal.location.zzd zzc() {
|
||||
return this.zzi;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public final String zzd() {
|
||||
return this.zzg;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final boolean zze() {
|
||||
return this.zze;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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.Comparator;
|
||||
import kotlinx.coroutines.debug.internal.DebugCoroutineInfoImplKt;
|
||||
|
||||
@SafeParcelable.Class(creator = "DetectedActivityCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class DetectedActivity extends AbstractSafeParcelable {
|
||||
public static final int IN_VEHICLE = 0;
|
||||
public static final int ON_BICYCLE = 1;
|
||||
public static final int ON_FOOT = 2;
|
||||
public static final int RUNNING = 8;
|
||||
public static final int STILL = 3;
|
||||
public static final int TILTING = 5;
|
||||
public static final int UNKNOWN = 4;
|
||||
public static final int WALKING = 7;
|
||||
|
||||
@SafeParcelable.Field(id = 1)
|
||||
int zzb;
|
||||
|
||||
@SafeParcelable.Field(id = 2)
|
||||
int zzc;
|
||||
public static final Comparator zza = new zzk();
|
||||
public static final Parcelable.Creator<DetectedActivity> CREATOR = new zzl();
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public DetectedActivity(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4) {
|
||||
this.zzb = i;
|
||||
this.zzc = i4;
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj instanceof DetectedActivity) {
|
||||
DetectedActivity detectedActivity = (DetectedActivity) obj;
|
||||
if (this.zzb == detectedActivity.zzb && this.zzc == detectedActivity.zzc) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getConfidence() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
int i = this.zzb;
|
||||
if (i > 22 || i < 0) {
|
||||
return 4;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
public final int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zzb), Integer.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
int type = getType();
|
||||
return "DetectedActivity [type=" + (type != 0 ? type != 1 ? type != 2 ? type != 3 ? type != 4 ? type != 5 ? type != 7 ? type != 8 ? type != 16 ? type != 17 ? Integer.toString(type) : "IN_RAIL_VEHICLE" : "IN_ROAD_VEHICLE" : DebugCoroutineInfoImplKt.RUNNING : "WALKING" : "TILTING" : "UNKNOWN" : "STILL" : "ON_FOOT" : "ON_BICYCLE" : "IN_VEHICLE") + ", confidence=" + this.zzc + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zzb);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zzc);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.location.Location;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FusedLocationProviderApi {
|
||||
|
||||
@Deprecated
|
||||
public static final String KEY_LOCATION_CHANGED = "com.google.android.location.LOCATION";
|
||||
|
||||
@Deprecated
|
||||
public static final String KEY_MOCK_LOCATION = "mockLocation";
|
||||
|
||||
PendingResult<Status> flushLocations(GoogleApiClient googleApiClient);
|
||||
|
||||
Location getLastLocation(GoogleApiClient googleApiClient);
|
||||
|
||||
LocationAvailability getLocationAvailability(GoogleApiClient googleApiClient);
|
||||
|
||||
PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent);
|
||||
|
||||
PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, LocationCallback locationCallback);
|
||||
|
||||
PendingResult<Status> removeLocationUpdates(GoogleApiClient googleApiClient, LocationListener locationListener);
|
||||
|
||||
PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, PendingIntent pendingIntent);
|
||||
|
||||
PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationCallback locationCallback, Looper looper);
|
||||
|
||||
PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationListener locationListener);
|
||||
|
||||
PendingResult<Status> requestLocationUpdates(GoogleApiClient googleApiClient, LocationRequest locationRequest, LocationListener locationListener, Looper looper);
|
||||
|
||||
PendingResult<Status> setMockLocation(GoogleApiClient googleApiClient, Location location);
|
||||
|
||||
PendingResult<Status> setMockMode(GoogleApiClient googleApiClient, boolean z3);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.location.Location;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.HasApiKey;
|
||||
import com.google.android.gms.tasks.CancellationToken;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FusedLocationProviderClient extends HasApiKey<Api.ApiOptions.NoOptions> {
|
||||
|
||||
@Deprecated
|
||||
public static final String KEY_MOCK_LOCATION = "mockLocation";
|
||||
|
||||
@Deprecated
|
||||
public static final String KEY_VERTICAL_ACCURACY = "verticalAccuracy";
|
||||
|
||||
Task<Void> flushLocations();
|
||||
|
||||
Task<Location> getCurrentLocation(int i, CancellationToken cancellationToken);
|
||||
|
||||
Task<Location> getCurrentLocation(CurrentLocationRequest currentLocationRequest, CancellationToken cancellationToken);
|
||||
|
||||
Task<Location> getLastLocation();
|
||||
|
||||
Task<Location> getLastLocation(LastLocationRequest lastLocationRequest);
|
||||
|
||||
Task<LocationAvailability> getLocationAvailability();
|
||||
|
||||
Task<Void> removeLocationUpdates(PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> removeLocationUpdates(LocationCallback locationCallback);
|
||||
|
||||
Task<Void> removeLocationUpdates(LocationListener locationListener);
|
||||
|
||||
Task<Void> requestLocationUpdates(LocationRequest locationRequest, PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> requestLocationUpdates(LocationRequest locationRequest, LocationCallback locationCallback, Looper looper);
|
||||
|
||||
Task<Void> requestLocationUpdates(LocationRequest locationRequest, LocationListener locationListener, Looper looper);
|
||||
|
||||
Task<Void> requestLocationUpdates(LocationRequest locationRequest, Executor executor, LocationCallback locationCallback);
|
||||
|
||||
Task<Void> requestLocationUpdates(LocationRequest locationRequest, Executor executor, LocationListener locationListener);
|
||||
|
||||
Task<Void> setMockLocation(Location location);
|
||||
|
||||
Task<Void> setMockMode(boolean z3);
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.DefaultClock;
|
||||
import com.google.android.gms.internal.location.zzdh;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface Geofence {
|
||||
public static final int GEOFENCE_TRANSITION_DWELL = 4;
|
||||
public static final int GEOFENCE_TRANSITION_ENTER = 1;
|
||||
public static final int GEOFENCE_TRANSITION_EXIT = 2;
|
||||
public static final long NEVER_EXPIRE = -1;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private double zze;
|
||||
private double zzf;
|
||||
private float zzg;
|
||||
private String zza = null;
|
||||
|
||||
@TransitionTypes
|
||||
private int zzb = 0;
|
||||
private long zzc = Long.MIN_VALUE;
|
||||
private short zzd = -1;
|
||||
private int zzh = 0;
|
||||
private int zzi = -1;
|
||||
|
||||
public Geofence build() {
|
||||
if (this.zza == null) {
|
||||
throw new IllegalArgumentException("Request ID not set.");
|
||||
}
|
||||
int i = this.zzb;
|
||||
if (i == 0) {
|
||||
throw new IllegalArgumentException("Transitions types not set.");
|
||||
}
|
||||
if ((i & 4) != 0 && this.zzi < 0) {
|
||||
throw new IllegalArgumentException("Non-negative loitering delay needs to be set when transition types include GEOFENCE_TRANSITION_DWELL.");
|
||||
}
|
||||
if (this.zzc == Long.MIN_VALUE) {
|
||||
throw new IllegalArgumentException("Expiration not set.");
|
||||
}
|
||||
if (this.zzd == -1) {
|
||||
throw new IllegalArgumentException("Geofence region not set.");
|
||||
}
|
||||
if (this.zzh >= 0) {
|
||||
return new zzdh(this.zza, this.zzb, (short) 1, this.zze, this.zzf, this.zzg, this.zzc, this.zzh, this.zzi);
|
||||
}
|
||||
throw new IllegalArgumentException("Notification responsiveness should be nonnegative.");
|
||||
}
|
||||
|
||||
public Builder setCircularRegion(double d4, double d5, float f2) {
|
||||
Preconditions.checkArgument(d4 >= -90.0d && d4 <= 90.0d, "Invalid latitude: " + d4);
|
||||
Preconditions.checkArgument(d5 >= -180.0d && d5 <= 180.0d, "Invalid longitude: " + d5);
|
||||
Preconditions.checkArgument(f2 > BitmapDescriptorFactory.HUE_RED, "Invalid radius: " + f2);
|
||||
this.zzd = (short) 1;
|
||||
this.zze = d4;
|
||||
this.zzf = d5;
|
||||
this.zzg = f2;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setExpirationDuration(long j4) {
|
||||
if (j4 < 0) {
|
||||
this.zzc = -1L;
|
||||
return this;
|
||||
}
|
||||
this.zzc = DefaultClock.getInstance().elapsedRealtime() + j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setLoiteringDelay(int i) {
|
||||
this.zzi = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setNotificationResponsiveness(int i) {
|
||||
this.zzh = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequestId(String str) {
|
||||
this.zza = (String) Preconditions.checkNotNull(str, "Request ID can't be set to null");
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setTransitionTypes(@TransitionTypes int i) {
|
||||
this.zzb = i;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface GeofenceTransition {
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface TransitionTypes {
|
||||
}
|
||||
|
||||
long getExpirationTime();
|
||||
|
||||
double getLatitude();
|
||||
|
||||
int getLoiteringDelay();
|
||||
|
||||
double getLongitude();
|
||||
|
||||
int getNotificationResponsiveness();
|
||||
|
||||
float getRadius();
|
||||
|
||||
String getRequestId();
|
||||
|
||||
@TransitionTypes
|
||||
int getTransitionTypes();
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.api.CommonStatusCodes;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class GeofenceStatusCodes extends CommonStatusCodes {
|
||||
public static final int GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION = 1004;
|
||||
public static final int GEOFENCE_NOT_AVAILABLE = 1000;
|
||||
public static final int GEOFENCE_REQUEST_TOO_FREQUENT = 1005;
|
||||
public static final int GEOFENCE_TOO_MANY_GEOFENCES = 1001;
|
||||
public static final int GEOFENCE_TOO_MANY_PENDING_INTENTS = 1002;
|
||||
|
||||
private GeofenceStatusCodes() {
|
||||
}
|
||||
|
||||
public static String getStatusCodeString(int i) {
|
||||
switch (i) {
|
||||
case 1000:
|
||||
return "GEOFENCE_NOT_AVAILABLE";
|
||||
case 1001:
|
||||
return "GEOFENCE_TOO_MANY_GEOFENCES";
|
||||
case 1002:
|
||||
return "GEOFENCE_TOO_MANY_PENDING_INTENTS";
|
||||
case 1003:
|
||||
default:
|
||||
return CommonStatusCodes.getStatusCodeString(i);
|
||||
case GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION /* 1004 */:
|
||||
return "GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION";
|
||||
}
|
||||
}
|
||||
|
||||
public static int zza(int i) {
|
||||
if (i == 0) {
|
||||
return i;
|
||||
}
|
||||
if (i < 1000 || i >= 1006) {
|
||||
return 13;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public interface GeofencingApi {
|
||||
PendingResult<Status> addGeofences(GoogleApiClient googleApiClient, GeofencingRequest geofencingRequest, PendingIntent pendingIntent);
|
||||
|
||||
@Deprecated
|
||||
PendingResult<Status> addGeofences(GoogleApiClient googleApiClient, List<Geofence> list, PendingIntent pendingIntent);
|
||||
|
||||
PendingResult<Status> removeGeofences(GoogleApiClient googleApiClient, PendingIntent pendingIntent);
|
||||
|
||||
PendingResult<Status> removeGeofences(GoogleApiClient googleApiClient, List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.HasApiKey;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface GeofencingClient extends HasApiKey<Api.ApiOptions.NoOptions> {
|
||||
Task<Void> addGeofences(GeofencingRequest geofencingRequest, PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> removeGeofences(PendingIntent pendingIntent);
|
||||
|
||||
Task<Void> removeGeofences(List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
import com.google.android.gms.location.Geofence;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class GeofencingEvent {
|
||||
private final int zza;
|
||||
|
||||
@Geofence.GeofenceTransition
|
||||
private final int zzb;
|
||||
private final List zzc;
|
||||
private final Location zzd;
|
||||
|
||||
private GeofencingEvent(int i, @Geofence.GeofenceTransition int i4, List list, Location location) {
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = list;
|
||||
this.zzd = location;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:17:0x002b */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static com.google.android.gms.location.GeofencingEvent fromIntent(android.content.Intent r12) {
|
||||
/*
|
||||
r0 = 0
|
||||
if (r12 != 0) goto L4
|
||||
return r0
|
||||
L4:
|
||||
java.lang.String r1 = "gms_error_code"
|
||||
r2 = -1
|
||||
int r1 = r12.getIntExtra(r1, r2)
|
||||
java.lang.String r3 = "com.google.android.location.intent.extra.transition"
|
||||
int r3 = r12.getIntExtra(r3, r2)
|
||||
if (r3 != r2) goto L15
|
||||
L13:
|
||||
r3 = r2
|
||||
goto L1f
|
||||
L15:
|
||||
r4 = 1
|
||||
if (r3 == r4) goto L1f
|
||||
r4 = 2
|
||||
if (r3 == r4) goto L1f
|
||||
r4 = 4
|
||||
if (r3 != r4) goto L13
|
||||
r3 = r4
|
||||
L1f:
|
||||
java.lang.String r4 = "com.google.android.location.intent.extra.geofence_list"
|
||||
java.io.Serializable r4 = r12.getSerializableExtra(r4)
|
||||
java.util.ArrayList r4 = (java.util.ArrayList) r4
|
||||
if (r4 != 0) goto L2b
|
||||
r5 = r0
|
||||
goto L5e
|
||||
L2b:
|
||||
java.util.ArrayList r5 = new java.util.ArrayList
|
||||
int r6 = r4.size()
|
||||
r5.<init>(r6)
|
||||
int r6 = r4.size()
|
||||
r7 = 0
|
||||
r8 = r7
|
||||
L3a:
|
||||
if (r8 >= r6) goto L5e
|
||||
java.lang.Object r9 = r4.get(r8)
|
||||
byte[] r9 = (byte[]) r9
|
||||
android.os.Parcel r10 = android.os.Parcel.obtain()
|
||||
int r11 = r9.length
|
||||
r10.unmarshall(r9, r7, r11)
|
||||
r10.setDataPosition(r7)
|
||||
android.os.Parcelable$Creator<com.google.android.gms.internal.location.zzdh> r9 = com.google.android.gms.internal.location.zzdh.CREATOR
|
||||
java.lang.Object r9 = r9.createFromParcel(r10)
|
||||
com.google.android.gms.internal.location.zzdh r9 = (com.google.android.gms.internal.location.zzdh) r9
|
||||
r10.recycle()
|
||||
r5.add(r9)
|
||||
int r8 = r8 + 1
|
||||
goto L3a
|
||||
L5e:
|
||||
java.lang.String r4 = "com.google.android.location.intent.extra.triggering_location"
|
||||
android.os.Parcelable r12 = r12.getParcelableExtra(r4)
|
||||
android.location.Location r12 = (android.location.Location) r12
|
||||
if (r5 != 0) goto L6b
|
||||
if (r1 != r2) goto L6b
|
||||
return r0
|
||||
L6b:
|
||||
com.google.android.gms.location.GeofencingEvent r0 = new com.google.android.gms.location.GeofencingEvent
|
||||
r0.<init>(r1, r3, r5, r12)
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.location.GeofencingEvent.fromIntent(android.content.Intent):com.google.android.gms.location.GeofencingEvent");
|
||||
}
|
||||
|
||||
public int getErrorCode() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Geofence.GeofenceTransition
|
||||
public int getGeofenceTransition() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public List<Geofence> getTriggeringGeofences() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public Location getTriggeringLocation() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
public boolean hasError() {
|
||||
return this.zza != -1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import C.w;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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 com.google.android.gms.internal.location.zzdh;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "GeofencingRequestCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class GeofencingRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<GeofencingRequest> CREATOR = new zzn();
|
||||
public static final int INITIAL_TRIGGER_DWELL = 4;
|
||||
public static final int INITIAL_TRIGGER_ENTER = 1;
|
||||
public static final int INITIAL_TRIGGER_EXIT = 2;
|
||||
|
||||
@SafeParcelable.Field(getter = "getParcelableGeofences", id = 1)
|
||||
private final List zza;
|
||||
|
||||
@InitialTrigger
|
||||
@SafeParcelable.Field(getter = "getInitialTrigger", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "", getter = "getTag", id = 3)
|
||||
private final String zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getContextAttributionTag", id = 4)
|
||||
private final String zzd;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private final List zza = new ArrayList();
|
||||
|
||||
@InitialTrigger
|
||||
private int zzb = 5;
|
||||
private String zzc = "";
|
||||
|
||||
public Builder addGeofence(Geofence geofence) {
|
||||
Preconditions.checkNotNull(geofence, "geofence can't be null.");
|
||||
Preconditions.checkArgument(geofence instanceof zzdh, "Geofence must be created using Geofence.Builder.");
|
||||
this.zza.add((zzdh) geofence);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addGeofences(List<Geofence> list) {
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (Geofence geofence : list) {
|
||||
if (geofence != null) {
|
||||
addGeofence(geofence);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public GeofencingRequest build() {
|
||||
Preconditions.checkArgument(!this.zza.isEmpty(), "No geofence has been added to this request.");
|
||||
return new GeofencingRequest(this.zza, this.zzb, this.zzc, null);
|
||||
}
|
||||
|
||||
public Builder setInitialTrigger(@InitialTrigger int i) {
|
||||
this.zzb = i & 7;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface InitialTrigger {
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public GeofencingRequest(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) @InitialTrigger int i, @SafeParcelable.Param(id = 3) String str, @SafeParcelable.Param(id = 4) String str2) {
|
||||
this.zza = list;
|
||||
this.zzb = i;
|
||||
this.zzc = str;
|
||||
this.zzd = str2;
|
||||
}
|
||||
|
||||
public List<Geofence> getGeofences() {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
arrayList.addAll(this.zza);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@InitialTrigger
|
||||
public int getInitialTrigger() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("GeofencingRequest[geofences=");
|
||||
sb.append(this.zza);
|
||||
sb.append(", initialTrigger=");
|
||||
sb.append(this.zzb);
|
||||
sb.append(", tag=");
|
||||
sb.append(this.zzc);
|
||||
sb.append(", attributionTag=");
|
||||
return w.r(sb, this.zzd, "]");
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false);
|
||||
SafeParcelWriter.writeInt(parcel, 2, getInitialTrigger());
|
||||
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
|
||||
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final GeofencingRequest zza(String str) {
|
||||
return new GeofencingRequest(this.zza, this.zzb, this.zzc, str);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE_USE})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Granularity {
|
||||
public static final int GRANULARITY_COARSE = 1;
|
||||
public static final int GRANULARITY_FINE = 2;
|
||||
public static final int GRANULARITY_PERMISSION_LEVEL = 0;
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
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 com.google.android.gms.internal.location.zzdj;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import org.checkerframework.dataflow.qual.Pure;
|
||||
import u.AbstractC0629f;
|
||||
|
||||
@SafeParcelable.Class(creator = "LastLocationRequestCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LastLocationRequest extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<LastLocationRequest> CREATOR = new zzv();
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Long.MAX_VALUE", getter = "getMaxUpdateAgeMillis", id = 1)
|
||||
private final long zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "com.google.android.gms.location.Granularity.GRANULARITY_PERMISSION_LEVEL", getter = "getGranularity", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "false", getter = "isBypass", id = 3)
|
||||
private final boolean zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getModuleId", id = 4)
|
||||
private final String zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getImpersonation", id = 5)
|
||||
private final com.google.android.gms.internal.location.zzd zze;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private long zza;
|
||||
private int zzb;
|
||||
private boolean zzc;
|
||||
private String zzd;
|
||||
private com.google.android.gms.internal.location.zzd zze;
|
||||
|
||||
public Builder() {
|
||||
this.zza = LongCompanionObject.MAX_VALUE;
|
||||
this.zzb = 0;
|
||||
this.zzc = false;
|
||||
this.zzd = null;
|
||||
this.zze = null;
|
||||
}
|
||||
|
||||
public LastLocationRequest build() {
|
||||
return new LastLocationRequest(this.zza, this.zzb, this.zzc, this.zzd, this.zze);
|
||||
}
|
||||
|
||||
public Builder setGranularity(int i) {
|
||||
zzo.zza(i);
|
||||
this.zzb = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxUpdateAgeMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 > 0, "maxUpdateAgeMillis must be greater than 0");
|
||||
this.zza = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder(LastLocationRequest lastLocationRequest) {
|
||||
this.zza = lastLocationRequest.getMaxUpdateAgeMillis();
|
||||
this.zzb = lastLocationRequest.getGranularity();
|
||||
this.zzc = lastLocationRequest.zzc();
|
||||
this.zzd = lastLocationRequest.zzb();
|
||||
this.zze = lastLocationRequest.zza();
|
||||
}
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LastLocationRequest(@SafeParcelable.Param(id = 1) long j4, @SafeParcelable.Param(id = 2) int i, @SafeParcelable.Param(id = 3) boolean z3, @SafeParcelable.Param(id = 4) String str, @SafeParcelable.Param(id = 5) com.google.android.gms.internal.location.zzd zzdVar) {
|
||||
this.zza = j4;
|
||||
this.zzb = i;
|
||||
this.zzc = z3;
|
||||
this.zzd = str;
|
||||
this.zze = zzdVar;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof LastLocationRequest)) {
|
||||
return false;
|
||||
}
|
||||
LastLocationRequest lastLocationRequest = (LastLocationRequest) obj;
|
||||
return this.zza == lastLocationRequest.zza && this.zzb == lastLocationRequest.zzb && this.zzc == lastLocationRequest.zzc && Objects.equal(this.zzd, lastLocationRequest.zzd) && Objects.equal(this.zze, lastLocationRequest.zze);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getGranularity() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getMaxUpdateAgeMillis() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Long.valueOf(this.zza), Integer.valueOf(this.zzb), Boolean.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder a2 = AbstractC0629f.a("LastLocationRequest[");
|
||||
if (this.zza != LongCompanionObject.MAX_VALUE) {
|
||||
a2.append("maxAge=");
|
||||
zzdj.zzb(this.zza, a2);
|
||||
}
|
||||
if (this.zzb != 0) {
|
||||
a2.append(", ");
|
||||
a2.append(zzo.zzb(this.zzb));
|
||||
}
|
||||
if (this.zzc) {
|
||||
a2.append(", bypass");
|
||||
}
|
||||
if (this.zzd != null) {
|
||||
a2.append(", moduleId=");
|
||||
a2.append(this.zzd);
|
||||
}
|
||||
if (this.zze != null) {
|
||||
a2.append(", impersonation=");
|
||||
a2.append(this.zze);
|
||||
}
|
||||
a2.append(']');
|
||||
return a2.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeLong(parcel, 1, getMaxUpdateAgeMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 2, getGranularity());
|
||||
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 5, this.zze, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final com.google.android.gms.internal.location.zzd zza() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public final String zzb() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final boolean zzc() {
|
||||
return this.zzc;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
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.Objects;
|
||||
import com.google.android.gms.common.internal.ReflectedParcelable;
|
||||
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.Arrays;
|
||||
import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationAvailabilityCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationAvailability extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationAvailability.STATUS_UNSUCCESSFUL", id = 4)
|
||||
int zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationAvailability.STATUS_UNKNOWN", getter = "getCellStatus", id = 1)
|
||||
private final int zzd;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationAvailability.STATUS_UNKNOWN", getter = "getWifiStatus", id = 2)
|
||||
private final int zze;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "0", getter = "getElapsedRealtimeNs", id = 3)
|
||||
private final long zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getBatchedStatus", id = 5)
|
||||
private final zzac[] zzg;
|
||||
public static final LocationAvailability zza = new LocationAvailability(0, 1, 1, 0, null, true);
|
||||
public static final LocationAvailability zzb = new LocationAvailability(1000, 1, 1, 0, null, false);
|
||||
public static final Parcelable.Creator<LocationAvailability> CREATOR = new zzw();
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationAvailability(@SafeParcelable.Param(id = 4) int i, @SafeParcelable.Param(id = 1) int i4, @SafeParcelable.Param(id = 2) int i5, @SafeParcelable.Param(id = 3) long j4, @SafeParcelable.Param(id = 5) zzac[] zzacVarArr, @SafeParcelable.Param(id = 6) boolean z3) {
|
||||
this.zzc = i < 1000 ? 0 : 1000;
|
||||
this.zzd = i4;
|
||||
this.zze = i5;
|
||||
this.zzf = j4;
|
||||
this.zzg = zzacVarArr;
|
||||
}
|
||||
|
||||
public static LocationAvailability extractLocationAvailability(Intent intent) {
|
||||
if (!hasLocationAvailability(intent)) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return (LocationAvailability) intent.getParcelableExtra("com.google.android.gms.location.EXTRA_LOCATION_AVAILABILITY");
|
||||
} catch (ClassCastException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@EnsuresNonNullIf(expression = {"#1"}, result = true)
|
||||
public static boolean hasLocationAvailability(Intent intent) {
|
||||
return intent != null && intent.hasExtra("com.google.android.gms.location.EXTRA_LOCATION_AVAILABILITY");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof LocationAvailability) {
|
||||
LocationAvailability locationAvailability = (LocationAvailability) obj;
|
||||
if (this.zzd == locationAvailability.zzd && this.zze == locationAvailability.zze && this.zzf == locationAvailability.zzf && this.zzc == locationAvailability.zzc && Arrays.equals(this.zzg, locationAvailability.zzg)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public boolean isLocationAvailable() {
|
||||
return this.zzc < 1000;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "LocationAvailability[" + isLocationAvailable() + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zzd);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zze);
|
||||
SafeParcelWriter.writeLong(parcel, 3, this.zzf);
|
||||
SafeParcelWriter.writeInt(parcel, 4, this.zzc);
|
||||
SafeParcelWriter.writeTypedArray(parcel, 5, this.zzg, i, false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 6, isLocationAvailable());
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class LocationCallback {
|
||||
public void onLocationAvailability(LocationAvailability locationAvailability) {
|
||||
}
|
||||
|
||||
public void onLocationResult(LocationResult locationResult) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface LocationListener {
|
||||
void onLocationChanged(Location location);
|
||||
}
|
||||
@@ -0,0 +1,628 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.SystemClock;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ReflectedParcelable;
|
||||
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 com.google.android.gms.common.util.WorkSourceUtil;
|
||||
import com.google.android.gms.internal.location.zzdj;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
|
||||
import com.google.firebase.sessions.settings.RemoteSettings;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import org.checkerframework.dataflow.qual.Pure;
|
||||
import u.AbstractC0629f;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationRequestCreator")
|
||||
@SafeParcelable.Reserved({4, 5, 1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationRequest extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
public static final Parcelable.Creator<LocationRequest> CREATOR = new zzx();
|
||||
|
||||
@Deprecated
|
||||
public static final int PRIORITY_BALANCED_POWER_ACCURACY = 102;
|
||||
|
||||
@Deprecated
|
||||
public static final int PRIORITY_HIGH_ACCURACY = 100;
|
||||
|
||||
@Deprecated
|
||||
public static final int PRIORITY_LOW_POWER = 104;
|
||||
|
||||
@Deprecated
|
||||
public static final int PRIORITY_NO_POWER = 105;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Priority.PRIORITY_BALANCED_POWER_ACCURACY", getter = "getPriority", id = 1)
|
||||
private int zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "3600000", getter = "getIntervalMillis", id = 2)
|
||||
private long zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "600000", getter = "getMinUpdateIntervalMillis", id = 3)
|
||||
private long zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", getter = "getMaxUpdateDelayMillis", id = 8)
|
||||
private long zzd;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Long.MAX_VALUE", getter = "getDurationMillis", id = 10)
|
||||
private long zze;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Integer.MAX_VALUE", getter = "getMaxUpdates", id = 6)
|
||||
private int zzf;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", getter = "getMinUpdateDistanceMeters", id = 7)
|
||||
private float zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "false", getter = "isWaitForAccurateLocation", id = 9)
|
||||
private boolean zzh;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "-1", getter = "getMaxUpdateAgeMillis", id = 11)
|
||||
private long zzi;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "Granularity.GRANULARITY_PERMISSION_LEVEL", getter = "getGranularity", id = 12)
|
||||
private final int zzj;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "ThrottleBehavior.THROTTLE_BACKGROUND", getter = "getThrottleBehavior", id = 13)
|
||||
private final int zzk;
|
||||
|
||||
@SafeParcelable.Field(getter = "getModuleId", id = 14)
|
||||
private final String zzl;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "false", getter = "isBypass", id = 15)
|
||||
private final boolean zzm;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "new android.os.WorkSource()", getter = "getWorkSource", id = 16)
|
||||
private final WorkSource zzn;
|
||||
|
||||
@SafeParcelable.Field(getter = "getImpersonation", id = 17)
|
||||
private final com.google.android.gms.internal.location.zzd zzo;
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest() {
|
||||
this(102, 3600000L, 600000L, 0L, LongCompanionObject.MAX_VALUE, LongCompanionObject.MAX_VALUE, Integer.MAX_VALUE, BitmapDescriptorFactory.HUE_RED, true, 3600000L, 0, 0, null, false, new WorkSource(), null);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static LocationRequest create() {
|
||||
return new LocationRequest(102, 3600000L, 600000L, 0L, LongCompanionObject.MAX_VALUE, LongCompanionObject.MAX_VALUE, Integer.MAX_VALUE, BitmapDescriptorFactory.HUE_RED, true, 3600000L, 0, 0, null, false, new WorkSource(), null);
|
||||
}
|
||||
|
||||
private static String zzf(long j4) {
|
||||
return j4 == LongCompanionObject.MAX_VALUE ? "∞" : zzdj.zza(j4);
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof LocationRequest) {
|
||||
LocationRequest locationRequest = (LocationRequest) obj;
|
||||
if (this.zza == locationRequest.zza && ((isPassive() || this.zzb == locationRequest.zzb) && this.zzc == locationRequest.zzc && isBatched() == locationRequest.isBatched() && ((!isBatched() || this.zzd == locationRequest.zzd) && this.zze == locationRequest.zze && this.zzf == locationRequest.zzf && this.zzg == locationRequest.zzg && this.zzh == locationRequest.zzh && this.zzj == locationRequest.zzj && this.zzk == locationRequest.zzk && this.zzm == locationRequest.zzm && this.zzn.equals(locationRequest.zzn) && Objects.equal(this.zzl, locationRequest.zzl) && Objects.equal(this.zzo, locationRequest.zzo)))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getDurationMillis() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public long getExpirationTime() {
|
||||
long elapsedRealtime = SystemClock.elapsedRealtime();
|
||||
long j4 = this.zze;
|
||||
long j5 = elapsedRealtime + j4;
|
||||
return ((elapsedRealtime ^ j5) & (j4 ^ j5)) < 0 ? LongCompanionObject.MAX_VALUE : j5;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public long getFastestInterval() {
|
||||
return getMinUpdateIntervalMillis();
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getGranularity() {
|
||||
return this.zzj;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public long getInterval() {
|
||||
return getIntervalMillis();
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getIntervalMillis() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getMaxUpdateAgeMillis() {
|
||||
return this.zzi;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getMaxUpdateDelayMillis() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getMaxUpdates() {
|
||||
return this.zzf;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public long getMaxWaitTime() {
|
||||
return Math.max(this.zzd, this.zzb);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public float getMinUpdateDistanceMeters() {
|
||||
return this.zzg;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public long getMinUpdateIntervalMillis() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public int getNumUpdates() {
|
||||
return getMaxUpdates();
|
||||
}
|
||||
|
||||
@Pure
|
||||
public int getPriority() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public float getSmallestDisplacement() {
|
||||
return getMinUpdateDistanceMeters();
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zza), Long.valueOf(this.zzb), Long.valueOf(this.zzc), this.zzn);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public boolean isBatched() {
|
||||
long j4 = this.zzd;
|
||||
return j4 > 0 && (j4 >> 1) >= this.zzb;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public boolean isFastestIntervalExplicitlySet() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public boolean isPassive() {
|
||||
return this.zza == 105;
|
||||
}
|
||||
|
||||
public boolean isWaitForAccurateLocation() {
|
||||
return this.zzh;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setExpirationDuration(long j4) {
|
||||
Preconditions.checkArgument(j4 > 0, "durationMillis must be greater than 0");
|
||||
this.zze = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setExpirationTime(long j4) {
|
||||
this.zze = Math.max(1L, j4 - SystemClock.elapsedRealtime());
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setFastestInterval(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "illegal fastest interval: %d", Long.valueOf(j4));
|
||||
this.zzc = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setInterval(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "intervalMillis must be greater than or equal to 0");
|
||||
long j5 = this.zzc;
|
||||
long j6 = this.zzb;
|
||||
if (j5 == j6 / 6) {
|
||||
this.zzc = j4 / 6;
|
||||
}
|
||||
if (this.zzi == j6) {
|
||||
this.zzi = j4;
|
||||
}
|
||||
this.zzb = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setMaxWaitTime(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "illegal max wait time: %d", Long.valueOf(j4));
|
||||
this.zzd = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setNumUpdates(int i) {
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException(a.l(i, "invalid numUpdates: "));
|
||||
}
|
||||
this.zzf = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setPriority(int i) {
|
||||
zzae.zza(i);
|
||||
this.zza = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setSmallestDisplacement(float f2) {
|
||||
if (f2 >= BitmapDescriptorFactory.HUE_RED) {
|
||||
this.zzg = f2;
|
||||
return this;
|
||||
}
|
||||
throw new IllegalArgumentException("invalid displacement: " + f2);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public LocationRequest setWaitForAccurateLocation(boolean z3) {
|
||||
this.zzh = z3;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder a2 = AbstractC0629f.a("Request[");
|
||||
if (isPassive()) {
|
||||
a2.append(zzae.zzb(this.zza));
|
||||
} else {
|
||||
a2.append("@");
|
||||
if (isBatched()) {
|
||||
zzdj.zzb(this.zzb, a2);
|
||||
a2.append(RemoteSettings.FORWARD_SLASH_STRING);
|
||||
zzdj.zzb(this.zzd, a2);
|
||||
} else {
|
||||
zzdj.zzb(this.zzb, a2);
|
||||
}
|
||||
a2.append(" ");
|
||||
a2.append(zzae.zzb(this.zza));
|
||||
}
|
||||
if (isPassive() || this.zzc != this.zzb) {
|
||||
a2.append(", minUpdateInterval=");
|
||||
a2.append(zzf(this.zzc));
|
||||
}
|
||||
if (this.zzg > FirebaseRemoteConfig.DEFAULT_VALUE_FOR_DOUBLE) {
|
||||
a2.append(", minUpdateDistance=");
|
||||
a2.append(this.zzg);
|
||||
}
|
||||
if (!isPassive() ? this.zzi != this.zzb : this.zzi != LongCompanionObject.MAX_VALUE) {
|
||||
a2.append(", maxUpdateAge=");
|
||||
a2.append(zzf(this.zzi));
|
||||
}
|
||||
if (this.zze != LongCompanionObject.MAX_VALUE) {
|
||||
a2.append(", duration=");
|
||||
zzdj.zzb(this.zze, a2);
|
||||
}
|
||||
if (this.zzf != Integer.MAX_VALUE) {
|
||||
a2.append(", maxUpdates=");
|
||||
a2.append(this.zzf);
|
||||
}
|
||||
if (this.zzk != 0) {
|
||||
a2.append(", ");
|
||||
a2.append(zzai.zza(this.zzk));
|
||||
}
|
||||
if (this.zzj != 0) {
|
||||
a2.append(", ");
|
||||
a2.append(zzo.zzb(this.zzj));
|
||||
}
|
||||
if (this.zzh) {
|
||||
a2.append(", waitForAccurateLocation");
|
||||
}
|
||||
if (this.zzm) {
|
||||
a2.append(", bypass");
|
||||
}
|
||||
if (this.zzl != null) {
|
||||
a2.append(", moduleId=");
|
||||
a2.append(this.zzl);
|
||||
}
|
||||
if (!WorkSourceUtil.isEmpty(this.zzn)) {
|
||||
a2.append(", ");
|
||||
a2.append(this.zzn);
|
||||
}
|
||||
if (this.zzo != null) {
|
||||
a2.append(", impersonation=");
|
||||
a2.append(this.zzo);
|
||||
}
|
||||
a2.append(']');
|
||||
return a2.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, getPriority());
|
||||
SafeParcelWriter.writeLong(parcel, 2, getIntervalMillis());
|
||||
SafeParcelWriter.writeLong(parcel, 3, getMinUpdateIntervalMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 6, getMaxUpdates());
|
||||
SafeParcelWriter.writeFloat(parcel, 7, getMinUpdateDistanceMeters());
|
||||
SafeParcelWriter.writeLong(parcel, 8, getMaxUpdateDelayMillis());
|
||||
SafeParcelWriter.writeBoolean(parcel, 9, isWaitForAccurateLocation());
|
||||
SafeParcelWriter.writeLong(parcel, 10, getDurationMillis());
|
||||
SafeParcelWriter.writeLong(parcel, 11, getMaxUpdateAgeMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 12, getGranularity());
|
||||
SafeParcelWriter.writeInt(parcel, 13, this.zzk);
|
||||
SafeParcelWriter.writeString(parcel, 14, this.zzl, false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 15, this.zzm);
|
||||
SafeParcelWriter.writeParcelable(parcel, 16, this.zzn, i, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 17, this.zzo, i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final int zza() {
|
||||
return this.zzk;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final WorkSource zzb() {
|
||||
return this.zzn;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final com.google.android.gms.internal.location.zzd zzc() {
|
||||
return this.zzo;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Pure
|
||||
public final String zzd() {
|
||||
return this.zzl;
|
||||
}
|
||||
|
||||
@Pure
|
||||
public final boolean zze() {
|
||||
return this.zzm;
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
public static final long IMPLICIT_MAX_UPDATE_AGE = -1;
|
||||
public static final long IMPLICIT_MIN_UPDATE_INTERVAL = -1;
|
||||
private int zza;
|
||||
private long zzb;
|
||||
private long zzc;
|
||||
private long zzd;
|
||||
private long zze;
|
||||
private int zzf;
|
||||
private float zzg;
|
||||
private boolean zzh;
|
||||
private long zzi;
|
||||
private int zzj;
|
||||
private int zzk;
|
||||
private String zzl;
|
||||
private boolean zzm;
|
||||
private WorkSource zzn;
|
||||
private com.google.android.gms.internal.location.zzd zzo;
|
||||
|
||||
public Builder(int i, long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "intervalMillis must be greater than or equal to 0");
|
||||
zzae.zza(i);
|
||||
this.zza = i;
|
||||
this.zzb = j4;
|
||||
this.zzc = -1L;
|
||||
this.zzd = 0L;
|
||||
this.zze = LongCompanionObject.MAX_VALUE;
|
||||
this.zzf = Integer.MAX_VALUE;
|
||||
this.zzg = BitmapDescriptorFactory.HUE_RED;
|
||||
this.zzh = true;
|
||||
this.zzi = -1L;
|
||||
this.zzj = 0;
|
||||
this.zzk = 0;
|
||||
this.zzl = null;
|
||||
this.zzm = false;
|
||||
this.zzn = null;
|
||||
this.zzo = null;
|
||||
}
|
||||
|
||||
public LocationRequest build() {
|
||||
int i = this.zza;
|
||||
long j4 = this.zzb;
|
||||
long j5 = this.zzc;
|
||||
if (j5 == -1) {
|
||||
j5 = j4;
|
||||
} else if (i != 105) {
|
||||
j5 = Math.min(j5, j4);
|
||||
}
|
||||
long max = Math.max(this.zzd, this.zzb);
|
||||
long j6 = j5;
|
||||
long j7 = this.zze;
|
||||
int i4 = this.zzf;
|
||||
float f2 = this.zzg;
|
||||
boolean z3 = this.zzh;
|
||||
long j8 = this.zzi;
|
||||
if (j8 == -1) {
|
||||
j8 = this.zzb;
|
||||
}
|
||||
return new LocationRequest(i, j4, j6, max, LongCompanionObject.MAX_VALUE, j7, i4, f2, z3, j8, this.zzj, this.zzk, this.zzl, this.zzm, new WorkSource(this.zzn), this.zzo);
|
||||
}
|
||||
|
||||
public Builder setDurationMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 > 0, "durationMillis must be greater than 0");
|
||||
this.zze = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setGranularity(int i) {
|
||||
zzo.zza(i);
|
||||
this.zzj = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setIntervalMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "intervalMillis must be greater than or equal to 0");
|
||||
this.zzb = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxUpdateAgeMillis(long j4) {
|
||||
boolean z3 = true;
|
||||
if (j4 != -1 && j4 < 0) {
|
||||
z3 = false;
|
||||
}
|
||||
Preconditions.checkArgument(z3, "maxUpdateAgeMillis must be greater than or equal to 0, or IMPLICIT_MAX_UPDATE_AGE");
|
||||
this.zzi = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxUpdateDelayMillis(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "maxUpdateDelayMillis must be greater than or equal to 0");
|
||||
this.zzd = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxUpdates(int i) {
|
||||
Preconditions.checkArgument(i > 0, "maxUpdates must be greater than 0");
|
||||
this.zzf = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMinUpdateDistanceMeters(float f2) {
|
||||
Preconditions.checkArgument(f2 >= BitmapDescriptorFactory.HUE_RED, "minUpdateDistanceMeters must be greater than or equal to 0");
|
||||
this.zzg = f2;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMinUpdateIntervalMillis(long j4) {
|
||||
boolean z3 = true;
|
||||
if (j4 != -1 && j4 < 0) {
|
||||
z3 = false;
|
||||
}
|
||||
Preconditions.checkArgument(z3, "minUpdateIntervalMillis must be greater than or equal to 0, or IMPLICIT_MIN_UPDATE_INTERVAL");
|
||||
this.zzc = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setPriority(int i) {
|
||||
zzae.zza(i);
|
||||
this.zza = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setWaitForAccurateLocation(boolean z3) {
|
||||
this.zzh = z3;
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zza(boolean z3) {
|
||||
this.zzm = z3;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public final Builder zzb(String str) {
|
||||
if (Build.VERSION.SDK_INT < 30) {
|
||||
this.zzl = str;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zzc(int i) {
|
||||
int i4;
|
||||
boolean z3 = true;
|
||||
if (i != 0 && i != 1) {
|
||||
i4 = 2;
|
||||
if (i == 2) {
|
||||
i = 2;
|
||||
Preconditions.checkArgument(z3, "throttle behavior %d must be a ThrottleBehavior.THROTTLE_* constant", Integer.valueOf(i));
|
||||
this.zzk = i4;
|
||||
return this;
|
||||
}
|
||||
z3 = false;
|
||||
}
|
||||
i4 = i;
|
||||
Preconditions.checkArgument(z3, "throttle behavior %d must be a ThrottleBehavior.THROTTLE_* constant", Integer.valueOf(i));
|
||||
this.zzk = i4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public final Builder zzd(WorkSource workSource) {
|
||||
this.zzn = workSource;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "intervalMillis must be greater than or equal to 0");
|
||||
this.zzb = j4;
|
||||
this.zza = 102;
|
||||
this.zzc = -1L;
|
||||
this.zzd = 0L;
|
||||
this.zze = LongCompanionObject.MAX_VALUE;
|
||||
this.zzf = Integer.MAX_VALUE;
|
||||
this.zzg = BitmapDescriptorFactory.HUE_RED;
|
||||
this.zzh = true;
|
||||
this.zzi = -1L;
|
||||
this.zzj = 0;
|
||||
this.zzk = 0;
|
||||
this.zzl = null;
|
||||
this.zzm = false;
|
||||
this.zzn = null;
|
||||
this.zzo = null;
|
||||
}
|
||||
|
||||
public Builder(LocationRequest locationRequest) {
|
||||
this.zza = locationRequest.getPriority();
|
||||
this.zzb = locationRequest.getIntervalMillis();
|
||||
this.zzc = locationRequest.getMinUpdateIntervalMillis();
|
||||
this.zzd = locationRequest.getMaxUpdateDelayMillis();
|
||||
this.zze = locationRequest.getDurationMillis();
|
||||
this.zzf = locationRequest.getMaxUpdates();
|
||||
this.zzg = locationRequest.getMinUpdateDistanceMeters();
|
||||
this.zzh = locationRequest.isWaitForAccurateLocation();
|
||||
this.zzi = locationRequest.getMaxUpdateAgeMillis();
|
||||
this.zzj = locationRequest.getGranularity();
|
||||
this.zzk = locationRequest.zza();
|
||||
this.zzl = locationRequest.zzd();
|
||||
this.zzm = locationRequest.zze();
|
||||
this.zzn = locationRequest.zzb();
|
||||
this.zzo = locationRequest.zzc();
|
||||
}
|
||||
}
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationRequest(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) long j4, @SafeParcelable.Param(id = 3) long j5, @SafeParcelable.Param(id = 8) long j6, @SafeParcelable.RemovedParam(defaultValueUnchecked = "Long.MAX_VALUE", id = 5) long j7, @SafeParcelable.Param(id = 10) long j8, @SafeParcelable.Param(id = 6) int i4, @SafeParcelable.Param(id = 7) float f2, @SafeParcelable.Param(id = 9) boolean z3, @SafeParcelable.Param(id = 11) long j9, @SafeParcelable.Param(id = 12) int i5, @SafeParcelable.Param(id = 13) int i6, @SafeParcelable.Param(id = 14) String str, @SafeParcelable.Param(id = 15) boolean z4, @SafeParcelable.Param(id = 16) WorkSource workSource, @SafeParcelable.Param(id = 17) com.google.android.gms.internal.location.zzd zzdVar) {
|
||||
this.zza = i;
|
||||
this.zzb = j4;
|
||||
this.zzc = j5;
|
||||
this.zzd = j6;
|
||||
this.zze = j7 == LongCompanionObject.MAX_VALUE ? j8 : Math.min(Math.max(1L, j7 - SystemClock.elapsedRealtime()), j8);
|
||||
this.zzf = i4;
|
||||
this.zzg = f2;
|
||||
this.zzh = z3;
|
||||
this.zzi = j9 != -1 ? j9 : j4;
|
||||
this.zzj = i5;
|
||||
this.zzk = i6;
|
||||
this.zzl = str;
|
||||
this.zzm = z4;
|
||||
this.zzn = workSource;
|
||||
this.zzo = zzdVar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.location.Location;
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.ReflectedParcelable;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationResultCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationResult extends AbstractSafeParcelable implements ReflectedParcelable {
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationResult.DEFAULT_LOCATIONS", getter = "getLocations", id = 1)
|
||||
private final List zzb;
|
||||
static final List zza = Collections.EMPTY_LIST;
|
||||
public static final Parcelable.Creator<LocationResult> CREATOR = new zzy();
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationResult(@SafeParcelable.Param(id = 1) List list) {
|
||||
this.zzb = list;
|
||||
}
|
||||
|
||||
public static LocationResult create(List<Location> list) {
|
||||
if (list == null) {
|
||||
list = zza;
|
||||
}
|
||||
return new LocationResult(list);
|
||||
}
|
||||
|
||||
public static LocationResult extractResult(Intent intent) {
|
||||
if (!hasResult(intent)) {
|
||||
return null;
|
||||
}
|
||||
LocationResult locationResult = (LocationResult) SafeParcelableSerializer.deserializeFromIntentExtra(intent, "com.google.android.gms.location.EXTRA_LOCATION_RESULT_BYTES", CREATOR);
|
||||
return locationResult == null ? (LocationResult) intent.getParcelableExtra("com.google.android.gms.location.EXTRA_LOCATION_RESULT") : locationResult;
|
||||
}
|
||||
|
||||
public static boolean hasResult(Intent intent) {
|
||||
if (intent == null) {
|
||||
return false;
|
||||
}
|
||||
return intent.hasExtra("com.google.android.gms.location.EXTRA_LOCATION_RESULT") || intent.hasExtra("com.google.android.gms.location.EXTRA_LOCATION_RESULT_BYTES");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof LocationResult)) {
|
||||
return false;
|
||||
}
|
||||
LocationResult locationResult = (LocationResult) obj;
|
||||
if (Build.VERSION.SDK_INT >= 31) {
|
||||
return this.zzb.equals(locationResult.zzb);
|
||||
}
|
||||
if (this.zzb.size() != locationResult.zzb.size()) {
|
||||
return false;
|
||||
}
|
||||
Iterator it = locationResult.zzb.iterator();
|
||||
for (Location location : this.zzb) {
|
||||
Location location2 = (Location) it.next();
|
||||
if (Double.compare(location.getLatitude(), location2.getLatitude()) != 0 || Double.compare(location.getLongitude(), location2.getLongitude()) != 0 || location.getTime() != location2.getTime() || location.getElapsedRealtimeNanos() != location2.getElapsedRealtimeNanos() || !Objects.equal(location.getProvider(), location2.getProvider())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public Location getLastLocation() {
|
||||
int size = this.zzb.size();
|
||||
if (size == 0) {
|
||||
return null;
|
||||
}
|
||||
return (Location) this.zzb.get(size - 1);
|
||||
}
|
||||
|
||||
public List<Location> getLocations() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(this.zzb);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "LocationResult".concat(String.valueOf(this.zzb));
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, getLocations(), false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.internal.location.zzau;
|
||||
import com.google.android.gms.internal.location.zzbp;
|
||||
import com.google.android.gms.internal.location.zzbv;
|
||||
import com.google.android.gms.internal.location.zzbz;
|
||||
import com.google.android.gms.internal.location.zzcc;
|
||||
import com.google.android.gms.internal.location.zzce;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class LocationServices {
|
||||
|
||||
@Deprecated
|
||||
public static final Api<Api.ApiOptions.NoOptions> API = zzbp.zzb;
|
||||
|
||||
@Deprecated
|
||||
public static final FusedLocationProviderApi FusedLocationApi = new zzau();
|
||||
|
||||
@Deprecated
|
||||
public static final GeofencingApi GeofencingApi = new zzbv();
|
||||
|
||||
@Deprecated
|
||||
public static final SettingsApi SettingsApi = new zzcc();
|
||||
|
||||
private LocationServices() {
|
||||
}
|
||||
|
||||
public static FusedLocationProviderClient getFusedLocationProviderClient(Activity activity) {
|
||||
return new zzbp(activity);
|
||||
}
|
||||
|
||||
public static GeofencingClient getGeofencingClient(Activity activity) {
|
||||
return new zzbz(activity);
|
||||
}
|
||||
|
||||
public static SettingsClient getSettingsClient(Activity activity) {
|
||||
return new zzce(activity);
|
||||
}
|
||||
|
||||
public static FusedLocationProviderClient getFusedLocationProviderClient(Context context) {
|
||||
return new zzbp(context);
|
||||
}
|
||||
|
||||
public static GeofencingClient getGeofencingClient(Context context) {
|
||||
return new zzbz(context);
|
||||
}
|
||||
|
||||
public static SettingsClient getSettingsClient(Context context) {
|
||||
return new zzce(context);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.api.Response;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class LocationSettingsResponse extends Response<LocationSettingsResult> {
|
||||
public LocationSettingsResponse(LocationSettingsResult locationSettingsResult) {
|
||||
super(locationSettingsResult);
|
||||
}
|
||||
|
||||
public LocationSettingsStates getLocationSettingsStates() {
|
||||
return getResult().getLocationSettingsStates();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Result;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
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;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationSettingsResultCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationSettingsResult extends AbstractSafeParcelable implements Result {
|
||||
public static final Parcelable.Creator<LocationSettingsResult> CREATOR = new zzaa();
|
||||
|
||||
@SafeParcelable.Field(getter = "getStatus", id = 1)
|
||||
private final Status zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getLocationSettingsStates", id = 2)
|
||||
private final LocationSettingsStates zzb;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationSettingsResult(@SafeParcelable.Param(id = 1) Status status, @SafeParcelable.Param(id = 2) LocationSettingsStates locationSettingsStates) {
|
||||
this.zza = status;
|
||||
this.zzb = locationSettingsStates;
|
||||
}
|
||||
|
||||
public LocationSettingsStates getLocationSettingsStates() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.api.Result
|
||||
public Status getStatus() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeParcelable(parcel, 1, getStatus(), i, false);
|
||||
SafeParcelWriter.writeParcelable(parcel, 2, getLocationSettingsStates(), i, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
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.SafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
|
||||
@SafeParcelable.Class(creator = "LocationSettingsStatesCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationSettingsStates extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<LocationSettingsStates> CREATOR = new zzab();
|
||||
|
||||
@SafeParcelable.Field(getter = "isGpsUsable", id = 1)
|
||||
private final boolean zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "isNetworkLocationUsable", id = 2)
|
||||
private final boolean zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "isBleUsable", id = 3)
|
||||
private final boolean zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "isGpsPresent", id = 4)
|
||||
private final boolean zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "isNetworkLocationPresent", id = 5)
|
||||
private final boolean zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "isBlePresent", id = 6)
|
||||
private final boolean zzf;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public LocationSettingsStates(@SafeParcelable.Param(id = 1) boolean z3, @SafeParcelable.Param(id = 2) boolean z4, @SafeParcelable.Param(id = 3) boolean z5, @SafeParcelable.Param(id = 4) boolean z6, @SafeParcelable.Param(id = 5) boolean z7, @SafeParcelable.Param(id = 6) boolean z8) {
|
||||
this.zza = z3;
|
||||
this.zzb = z4;
|
||||
this.zzc = z5;
|
||||
this.zzd = z6;
|
||||
this.zze = z7;
|
||||
this.zzf = z8;
|
||||
}
|
||||
|
||||
public static LocationSettingsStates fromIntent(Intent intent) {
|
||||
return (LocationSettingsStates) SafeParcelableSerializer.deserializeFromIntentExtra(intent, "com.google.android.gms.location.LOCATION_SETTINGS_STATES", CREATOR);
|
||||
}
|
||||
|
||||
public boolean isBlePresent() {
|
||||
return this.zzf;
|
||||
}
|
||||
|
||||
public boolean isBleUsable() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public boolean isGpsPresent() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
public boolean isGpsUsable() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public boolean isLocationPresent() {
|
||||
return this.zzd || this.zze;
|
||||
}
|
||||
|
||||
public boolean isLocationUsable() {
|
||||
return this.zza || this.zzb;
|
||||
}
|
||||
|
||||
public boolean isNetworkLocationPresent() {
|
||||
return this.zze;
|
||||
}
|
||||
|
||||
public boolean isNetworkLocationUsable() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public 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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.api.CommonStatusCodes;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class LocationSettingsStatusCodes extends CommonStatusCodes {
|
||||
public static final int SETTINGS_CHANGE_UNAVAILABLE = 8502;
|
||||
|
||||
private LocationSettingsStatusCodes() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public final class LocationStatusCodes {
|
||||
public static final int ERROR = 1;
|
||||
public static final int GEOFENCE_NOT_AVAILABLE = 1000;
|
||||
public static final int GEOFENCE_TOO_MANY_GEOFENCES = 1001;
|
||||
public static final int GEOFENCE_TOO_MANY_PENDING_INTENTS = 1002;
|
||||
public static final int SUCCESS = 0;
|
||||
|
||||
private LocationStatusCodes() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE_USE})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface Priority {
|
||||
public static final int PRIORITY_BALANCED_POWER_ACCURACY = 102;
|
||||
public static final int PRIORITY_HIGH_ACCURACY = 100;
|
||||
public static final int PRIORITY_LOW_POWER = 104;
|
||||
public static final int PRIORITY_PASSIVE = 105;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class R {
|
||||
private R() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.api.GoogleApiClient;
|
||||
import com.google.android.gms.common.api.PendingResult;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public interface SettingsApi {
|
||||
PendingResult<LocationSettingsResult> checkLocationSettings(GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.api.Api;
|
||||
import com.google.android.gms.common.api.HasApiKey;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface SettingsClient extends HasApiKey<Api.ApiOptions.NoOptions> {
|
||||
Task<LocationSettingsResponse> checkLocationSettings(LocationSettingsRequest locationSettingsRequest);
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
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.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "SleepClassifyEventCreator")
|
||||
/* loaded from: classes3.dex */
|
||||
public class SleepClassifyEvent extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<SleepClassifyEvent> CREATOR = new zzaf();
|
||||
|
||||
@SafeParcelable.Field(getter = "getTimestampSec", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getConfidence", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMotion", id = 3)
|
||||
private final int zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getLight", id = 4)
|
||||
private final int zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getNoise", id = 5)
|
||||
private final int zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getLightDiff", id = 6)
|
||||
private final int zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getNightOrDay", id = 7)
|
||||
private final int zzg;
|
||||
|
||||
@SafeParcelable.Field(getter = "getConfidenceOverwrittenByAlarmClockTrigger", id = 8)
|
||||
private final boolean zzh;
|
||||
|
||||
@SafeParcelable.Field(getter = "getPresenceConfidence", id = 9)
|
||||
private final int zzi;
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Constructor
|
||||
public SleepClassifyEvent(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) int i5, @SafeParcelable.Param(id = 4) int i6, @SafeParcelable.Param(id = 5) int i7, @SafeParcelable.Param(id = 6) int i8, @SafeParcelable.Param(id = 7) int i9, @SafeParcelable.Param(id = 8) boolean z3, @SafeParcelable.Param(id = 9) int i10) {
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = i5;
|
||||
this.zzd = i6;
|
||||
this.zze = i7;
|
||||
this.zzf = i8;
|
||||
this.zzg = i9;
|
||||
this.zzh = z3;
|
||||
this.zzi = i10;
|
||||
}
|
||||
|
||||
public static List<SleepClassifyEvent> extractEvents(Intent intent) {
|
||||
ArrayList arrayList;
|
||||
Preconditions.checkNotNull(intent);
|
||||
if (hasEvents(intent) && (arrayList = (ArrayList) intent.getSerializableExtra("com.google.android.location.internal.EXTRA_SLEEP_CLASSIFY_RESULT")) != null) {
|
||||
ArrayList arrayList2 = new ArrayList(arrayList.size());
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
byte[] bArr = (byte[]) arrayList.get(i);
|
||||
Preconditions.checkNotNull(bArr);
|
||||
arrayList2.add((SleepClassifyEvent) SafeParcelableSerializer.deserializeFromBytes(bArr, CREATOR));
|
||||
}
|
||||
return Collections.unmodifiableList(arrayList2);
|
||||
}
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
public static boolean hasEvents(Intent intent) {
|
||||
if (intent == null) {
|
||||
return false;
|
||||
}
|
||||
return intent.hasExtra("com.google.android.location.internal.EXTRA_SLEEP_CLASSIFY_RESULT");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof SleepClassifyEvent)) {
|
||||
return false;
|
||||
}
|
||||
SleepClassifyEvent sleepClassifyEvent = (SleepClassifyEvent) obj;
|
||||
return this.zza == sleepClassifyEvent.zza && this.zzb == sleepClassifyEvent.zzb;
|
||||
}
|
||||
|
||||
public int getConfidence() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public int getLight() {
|
||||
return this.zzd;
|
||||
}
|
||||
|
||||
public int getMotion() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public long getTimestampMillis() {
|
||||
return this.zza * 1000;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.zza + " Conf:" + this.zzb + " Motion:" + this.zzc + " Light:" + this.zzd;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeInt(parcel, 2, getConfidence());
|
||||
SafeParcelWriter.writeInt(parcel, 3, getMotion());
|
||||
SafeParcelWriter.writeInt(parcel, 4, getLight());
|
||||
SafeParcelWriter.writeInt(parcel, 5, this.zze);
|
||||
SafeParcelWriter.writeInt(parcel, 6, this.zzf);
|
||||
SafeParcelWriter.writeInt(parcel, 7, this.zzg);
|
||||
SafeParcelWriter.writeBoolean(parcel, 8, this.zzh);
|
||||
SafeParcelWriter.writeInt(parcel, 9, this.zzi);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
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.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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 com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "SleepSegmentEventCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class SleepSegmentEvent extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<SleepSegmentEvent> CREATOR = new zzag();
|
||||
public static final int STATUS_MISSING_DATA = 1;
|
||||
public static final int STATUS_NOT_DETECTED = 2;
|
||||
public static final int STATUS_SUCCESSFUL = 0;
|
||||
|
||||
@SafeParcelable.Field(getter = "getStartTimeMillis", id = 1)
|
||||
private final long zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getEndTimeMillis", id = 2)
|
||||
private final long zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getStatus", id = 3)
|
||||
private final int zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getMissingDataDurationMinutes", id = 4)
|
||||
private final int zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getNinetiethPctConfidence", id = 5)
|
||||
private final int zze;
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Constructor
|
||||
public SleepSegmentEvent(@SafeParcelable.Param(id = 1) long j4, @SafeParcelable.Param(id = 2) long j5, @SafeParcelable.Param(id = 3) int i, @SafeParcelable.Param(id = 4) int i4, @SafeParcelable.Param(id = 5) int i5) {
|
||||
Preconditions.checkArgument(j4 <= j5, "endTimeMillis must be greater than or equal to startTimeMillis");
|
||||
this.zza = j4;
|
||||
this.zzb = j5;
|
||||
this.zzc = i;
|
||||
this.zzd = i4;
|
||||
this.zze = i5;
|
||||
}
|
||||
|
||||
public static List<SleepSegmentEvent> extractEvents(Intent intent) {
|
||||
ArrayList arrayList;
|
||||
Preconditions.checkNotNull(intent);
|
||||
if (hasEvents(intent) && (arrayList = (ArrayList) intent.getSerializableExtra("com.google.android.location.internal.EXTRA_SLEEP_SEGMENT_RESULT")) != null) {
|
||||
ArrayList arrayList2 = new ArrayList(arrayList.size());
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
byte[] bArr = (byte[]) arrayList.get(i);
|
||||
Preconditions.checkNotNull(bArr);
|
||||
arrayList2.add((SleepSegmentEvent) SafeParcelableSerializer.deserializeFromBytes(bArr, CREATOR));
|
||||
}
|
||||
return Collections.unmodifiableList(arrayList2);
|
||||
}
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
public static boolean hasEvents(Intent intent) {
|
||||
if (intent == null) {
|
||||
return false;
|
||||
}
|
||||
return intent.hasExtra("com.google.android.location.internal.EXTRA_SLEEP_SEGMENT_RESULT");
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof SleepSegmentEvent) {
|
||||
SleepSegmentEvent sleepSegmentEvent = (SleepSegmentEvent) obj;
|
||||
if (this.zza == sleepSegmentEvent.getStartTimeMillis() && this.zzb == sleepSegmentEvent.getEndTimeMillis() && this.zzc == sleepSegmentEvent.getStatus() && this.zzd == sleepSegmentEvent.zzd && this.zze == sleepSegmentEvent.zze) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getEndTimeMillis() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public long getSegmentDurationMillis() {
|
||||
return this.zzb - this.zza;
|
||||
}
|
||||
|
||||
public long getStartTimeMillis() {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return this.zzc;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(Long.valueOf(this.zza), Long.valueOf(this.zzb), Integer.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "startMillis=" + this.zza + ", endMillis=" + this.zzb + ", status=" + this.zzc;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeLong(parcel, 1, getStartTimeMillis());
|
||||
SafeParcelWriter.writeLong(parcel, 2, getEndTimeMillis());
|
||||
SafeParcelWriter.writeInt(parcel, 3, getStatus());
|
||||
SafeParcelWriter.writeInt(parcel, 4, this.zzd);
|
||||
SafeParcelWriter.writeInt(parcel, 5, this.zze);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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.List;
|
||||
|
||||
@SafeParcelable.Class(creator = "SleepSegmentRequestCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public class SleepSegmentRequest extends AbstractSafeParcelable {
|
||||
public static final int CLASSIFY_EVENTS_ONLY = 2;
|
||||
public static final Parcelable.Creator<SleepSegmentRequest> CREATOR = new zzah();
|
||||
public static final int SEGMENT_AND_CLASSIFY_EVENTS = 0;
|
||||
public static final int SEGMENT_EVENTS_ONLY = 1;
|
||||
|
||||
@SafeParcelable.Field(getter = "getUserPreferredSleepWindow", id = 1)
|
||||
private final List zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValue = "0", getter = "getRequestedDataType", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
public SleepSegmentRequest(int i) {
|
||||
this(null, i);
|
||||
}
|
||||
|
||||
public static SleepSegmentRequest getDefaultSleepSegmentRequest() {
|
||||
return new SleepSegmentRequest(null, 0);
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof SleepSegmentRequest)) {
|
||||
return false;
|
||||
}
|
||||
SleepSegmentRequest sleepSegmentRequest = (SleepSegmentRequest) obj;
|
||||
return Objects.equal(this.zza, sleepSegmentRequest.zza) && this.zzb == sleepSegmentRequest.zzb;
|
||||
}
|
||||
|
||||
public int getRequestedDataType() {
|
||||
return this.zzb;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(this.zza, Integer.valueOf(this.zzb));
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false);
|
||||
SafeParcelWriter.writeInt(parcel, 2, getRequestedDataType());
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Constructor
|
||||
public SleepSegmentRequest(@SafeParcelable.Param(id = 1) List list, @SafeParcelable.Param(id = 2) int i) {
|
||||
this.zza = list;
|
||||
this.zzb = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
|
||||
@ShowFirstParty
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zza {
|
||||
private long zza = Long.MIN_VALUE;
|
||||
|
||||
public final zza zza(long j4) {
|
||||
Preconditions.checkArgument(j4 >= 0, "intervalMillis can't be negative.");
|
||||
this.zza = j4;
|
||||
return this;
|
||||
}
|
||||
|
||||
public final zzb zzb() {
|
||||
Preconditions.checkState(this.zza != Long.MIN_VALUE, "Must set intervalMillis.");
|
||||
return new zzb(this.zza, true, null, null, null, false, null, 0L, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzaa implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
Status status = null;
|
||||
LocationSettingsStates locationSettingsStates = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
status = (Status) SafeParcelReader.createParcelable(parcel, readHeader, Status.CREATOR);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
locationSettingsStates = (LocationSettingsStates) SafeParcelReader.createParcelable(parcel, readHeader, LocationSettingsStates.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationSettingsResult(status, locationSettingsStates);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationSettingsResult[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzab implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
boolean z5 = false;
|
||||
boolean z6 = false;
|
||||
boolean z7 = false;
|
||||
boolean z8 = false;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
z5 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
z6 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
z7 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
z8 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationSettingsStates(z3, z4, z5, z6, z7, z8);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationSettingsStates[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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;
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Class(creator = "NetworkLocationStatusCreator")
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzac extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzac> CREATOR = new zzad();
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationAvailability.STATUS_UNKNOWN", id = 1)
|
||||
public final int zza;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "LocationAvailability.STATUS_UNKNOWN", id = 2)
|
||||
public final int zzb;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "NetworkLocationStatus.STATUS_INVALID_TIMESTAMP", id = 3)
|
||||
public final long zzc;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "NetworkLocationStatus.STATUS_INVALID_TIMESTAMP", id = 4)
|
||||
public final long zzd;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzac(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) long j4, @SafeParcelable.Param(id = 4) long j5) {
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = j4;
|
||||
this.zzd = j5;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (obj instanceof zzac) {
|
||||
zzac zzacVar = (zzac) obj;
|
||||
if (this.zza == zzacVar.zza && this.zzb == zzacVar.zzb && this.zzc == zzacVar.zzc && this.zzd == zzacVar.zzd) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zzb), Integer.valueOf(this.zza), Long.valueOf(this.zzd), Long.valueOf(this.zzc));
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return "NetworkLocationStatus: Wifi status: " + this.zza + " Cell status: " + this.zzb + " elapsed time NS: " + this.zzd + " system time ms: " + this.zzc;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeLong(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.writeLong(parcel, 4, this.zzd);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzad implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 1;
|
||||
int i4 = 1;
|
||||
long j4 = -1;
|
||||
long j5 = -1;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzac(i, i4, j4, j5);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzac[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzae {
|
||||
public static int zza(int i) {
|
||||
boolean z3 = true;
|
||||
if (i != 100 && i != 102 && i != 104) {
|
||||
if (i == 105) {
|
||||
i = 105;
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
}
|
||||
Preconditions.checkArgument(z3, "priority %d must be a Priority.PRIORITY_* constant", Integer.valueOf(i));
|
||||
return i;
|
||||
}
|
||||
|
||||
public static String zzb(int i) {
|
||||
if (i == 100) {
|
||||
return "HIGH_ACCURACY";
|
||||
}
|
||||
if (i == 102) {
|
||||
return "BALANCED_POWER_ACCURACY";
|
||||
}
|
||||
if (i == 104) {
|
||||
return "LOW_POWER";
|
||||
}
|
||||
if (i == 105) {
|
||||
return "PASSIVE";
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzaf implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
int i7 = 0;
|
||||
int i8 = 0;
|
||||
int i9 = 0;
|
||||
boolean z3 = false;
|
||||
int i10 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
i6 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
i7 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
i8 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
i9 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
i10 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new SleepClassifyEvent(i, i4, i5, i6, i7, i8, i9, z3, i10);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new SleepClassifyEvent[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzag implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
long j4 = 0;
|
||||
long j5 = 0;
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 4) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 5) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new SleepSegmentEvent(j4, j5, i, i4, i5);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new SleepSegmentEvent[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzah implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayList = null;
|
||||
int i = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, zzaj.CREATOR);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new SleepSegmentRequest(arrayList, i);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new SleepSegmentRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzai {
|
||||
public static String zza(int i) {
|
||||
if (i == 0) {
|
||||
return "THROTTLE_BACKGROUND";
|
||||
}
|
||||
if (i == 1) {
|
||||
return "THROTTLE_ALWAYS";
|
||||
}
|
||||
if (i == 2) {
|
||||
return "THROTTLE_NEVER";
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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;
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Class(creator = "UserPreferredSleepWindowCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzaj extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzaj> CREATOR = new zzak();
|
||||
|
||||
@SafeParcelable.Field(getter = "getStartHour", id = 1)
|
||||
private final int zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getStartMinute", id = 2)
|
||||
private final int zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getEndHour", id = 3)
|
||||
private final int zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getEndMinute", id = 4)
|
||||
private final int zzd;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzaj(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i4, @SafeParcelable.Param(id = 3) int i5, @SafeParcelable.Param(id = 4) int i6) {
|
||||
Preconditions.checkState(i >= 0 && i <= 23, "Start hour must be in range [0, 23].");
|
||||
Preconditions.checkState(i4 >= 0 && i4 <= 59, "Start minute must be in range [0, 59].");
|
||||
Preconditions.checkState(i5 >= 0 && i5 <= 23, "End hour must be in range [0, 23].");
|
||||
Preconditions.checkState(i6 >= 0 && i6 <= 59, "End minute must be in range [0, 59].");
|
||||
Preconditions.checkState(((i + i4) + i5) + i6 > 0, "Parameters can't be all 0.");
|
||||
this.zza = i;
|
||||
this.zzb = i4;
|
||||
this.zzc = i5;
|
||||
this.zzd = i6;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof zzaj)) {
|
||||
return false;
|
||||
}
|
||||
zzaj zzajVar = (zzaj) obj;
|
||||
return this.zza == zzajVar.zza && this.zzb == zzajVar.zzb && this.zzc == zzajVar.zzc && this.zzd == zzajVar.zzd;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb), Integer.valueOf(this.zzc), Integer.valueOf(this.zzd));
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return "UserPreferredSleepWindow [startHour=" + this.zza + ", startMinute=" + this.zzb + ", endHour=" + this.zzc + ", endMinute=" + this.zzd + "]";
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeInt(parcel, 3, this.zzc);
|
||||
SafeParcelWriter.writeInt(parcel, 4, this.zzd);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzak implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i6 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzaj(i, i4, i5, i6);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzaj[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.ShowFirstParty;
|
||||
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;
|
||||
|
||||
@ShowFirstParty
|
||||
@SafeParcelable.Class(creator = "ActivityRecognitionRequestCreator")
|
||||
@SafeParcelable.Reserved({1000})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzb extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzb> CREATOR = new zzc();
|
||||
|
||||
@SafeParcelable.Field(getter = "getIntervalMillis", id = 1)
|
||||
private final long zza;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTriggerUpdate", id = 2)
|
||||
private final boolean zzb;
|
||||
|
||||
@SafeParcelable.Field(getter = "getWorkSource", id = 3)
|
||||
private final WorkSource zzc;
|
||||
|
||||
@SafeParcelable.Field(getter = "getTag", id = 4)
|
||||
private final String zzd;
|
||||
|
||||
@SafeParcelable.Field(getter = "getNondefaultActivities", id = 5)
|
||||
private final int[] zze;
|
||||
|
||||
@SafeParcelable.Field(getter = "getRequestSensorData", id = 6)
|
||||
private final boolean zzf;
|
||||
|
||||
@SafeParcelable.Field(getter = "getAccountName", id = 7)
|
||||
private final String zzg;
|
||||
|
||||
@SafeParcelable.Field(defaultValueUnchecked = "ActivityRecognitionRequest.DEFAULT_MAX_REPORT_LATENCY_MILLIS", getter = "getMaxReportLatencyMillis", id = 8)
|
||||
private final long zzh;
|
||||
|
||||
@SafeParcelable.Field(getter = "getContextAttributionTag", id = 9)
|
||||
private String zzi;
|
||||
|
||||
@SafeParcelable.Constructor
|
||||
public zzb(@SafeParcelable.Param(id = 1) long j4, @SafeParcelable.Param(id = 2) boolean z3, @SafeParcelable.Param(id = 3) WorkSource workSource, @SafeParcelable.Param(id = 4) String str, @SafeParcelable.Param(id = 5) int[] iArr, @SafeParcelable.Param(id = 6) boolean z4, @SafeParcelable.Param(id = 7) String str2, @SafeParcelable.Param(id = 8) long j5, @SafeParcelable.Param(id = 9) String str3) {
|
||||
this.zza = j4;
|
||||
this.zzb = z3;
|
||||
this.zzc = workSource;
|
||||
this.zzd = str;
|
||||
this.zze = iArr;
|
||||
this.zzf = z4;
|
||||
this.zzg = str2;
|
||||
this.zzh = j5;
|
||||
this.zzi = str3;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
Preconditions.checkNotNull(parcel);
|
||||
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
||||
SafeParcelWriter.writeLong(parcel, 1, this.zza);
|
||||
SafeParcelWriter.writeBoolean(parcel, 2, this.zzb);
|
||||
SafeParcelWriter.writeParcelable(parcel, 3, this.zzc, i, false);
|
||||
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
||||
SafeParcelWriter.writeIntArray(parcel, 5, this.zze, false);
|
||||
SafeParcelWriter.writeBoolean(parcel, 6, this.zzf);
|
||||
SafeParcelWriter.writeString(parcel, 7, this.zzg, false);
|
||||
SafeParcelWriter.writeLong(parcel, 8, this.zzh);
|
||||
SafeParcelWriter.writeString(parcel, 9, this.zzi, false);
|
||||
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
||||
}
|
||||
|
||||
public final zzb zza(String str) {
|
||||
this.zzi = str;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzc implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
long j4 = 0;
|
||||
long j5 = 0;
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
WorkSource workSource = null;
|
||||
String str = null;
|
||||
int[] iArr = null;
|
||||
String str2 = null;
|
||||
String str3 = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, readHeader, WorkSource.CREATOR);
|
||||
break;
|
||||
case 4:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
iArr = SafeParcelReader.createIntArray(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
str3 = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new zzb(j4, z3, workSource, str, iArr, z4, str2, j5, str3);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new zzb[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzd implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayList = null;
|
||||
Bundle bundle = null;
|
||||
long j4 = 0;
|
||||
long j5 = 0;
|
||||
int i = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, DetectedActivity.CREATOR);
|
||||
} else if (fieldId == 2) {
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId == 4) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 5) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
bundle = SafeParcelReader.createBundle(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ActivityRecognitionResult(arrayList, j4, j5, i, bundle);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ActivityRecognitionResult[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zze implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ActivityTransition(i, i4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ActivityTransition[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzf implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
long j4 = 0;
|
||||
int i4 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ActivityTransitionEvent(i, i4, j4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ActivityTransitionEvent[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.Comparator;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzg implements Comparator {
|
||||
@Override // java.util.Comparator
|
||||
public final /* bridge */ /* synthetic */ int compare(Object obj, Object obj2) {
|
||||
ActivityTransition activityTransition = (ActivityTransition) obj;
|
||||
ActivityTransition activityTransition2 = (ActivityTransition) obj2;
|
||||
Preconditions.checkNotNull(activityTransition);
|
||||
Preconditions.checkNotNull(activityTransition2);
|
||||
int activityType = activityTransition.getActivityType();
|
||||
int activityType2 = activityTransition2.getActivityType();
|
||||
if (activityType != activityType2) {
|
||||
return activityType >= activityType2 ? 1 : -1;
|
||||
}
|
||||
int transitionType = activityTransition.getTransitionType();
|
||||
int transitionType2 = activityTransition2.getTransitionType();
|
||||
if (transitionType == transitionType2) {
|
||||
return 0;
|
||||
}
|
||||
return transitionType < transitionType2 ? -1 : 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.ClientIdentity;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzh implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayList = null;
|
||||
String str = null;
|
||||
ArrayList arrayList2 = null;
|
||||
String str2 = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, ActivityTransition.CREATOR);
|
||||
} else if (fieldId == 2) {
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
arrayList2 = SafeParcelReader.createTypedList(parcel, readHeader, ClientIdentity.CREATOR);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ActivityTransitionRequest(arrayList, str, arrayList2, str2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ActivityTransitionRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzi implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayList = null;
|
||||
Bundle bundle = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, ActivityTransitionEvent.CREATOR);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
bundle = SafeParcelReader.createBundle(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new ActivityTransitionResult(arrayList, bundle);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new ActivityTransitionResult[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzj implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
WorkSource workSource = new WorkSource();
|
||||
long j4 = Long.MAX_VALUE;
|
||||
long j5 = Long.MAX_VALUE;
|
||||
int i = 0;
|
||||
boolean z3 = false;
|
||||
int i4 = 0;
|
||||
int i5 = 102;
|
||||
String str = null;
|
||||
com.google.android.gms.internal.location.zzd zzdVar = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, readHeader, WorkSource.CREATOR);
|
||||
break;
|
||||
case 7:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
zzdVar = (com.google.android.gms.internal.location.zzd) SafeParcelReader.createParcelable(parcel, readHeader, com.google.android.gms.internal.location.zzd.CREATOR);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new CurrentLocationRequest(j4, i, i5, j5, z3, i4, str, workSource, zzdVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new CurrentLocationRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.Comparator;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class zzk implements Comparator {
|
||||
@Override // java.util.Comparator
|
||||
public final /* bridge */ /* synthetic */ int compare(Object obj, Object obj2) {
|
||||
DetectedActivity detectedActivity = (DetectedActivity) obj;
|
||||
DetectedActivity detectedActivity2 = (DetectedActivity) obj2;
|
||||
Preconditions.checkNotNull(detectedActivity);
|
||||
Preconditions.checkNotNull(detectedActivity2);
|
||||
int compareTo = Integer.valueOf(detectedActivity2.getConfidence()).compareTo(Integer.valueOf(detectedActivity.getConfidence()));
|
||||
return compareTo == 0 ? Integer.valueOf(detectedActivity.getType()).compareTo(Integer.valueOf(detectedActivity2.getType())) : compareTo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzl implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId != 2) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new DetectedActivity(i, i4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new DetectedActivity[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.Feature;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzm {
|
||||
public static final Feature zza;
|
||||
public static final Feature zzb;
|
||||
public static final Feature zzc;
|
||||
public static final Feature zzd;
|
||||
public static final Feature zze;
|
||||
public static final Feature zzf;
|
||||
public static final Feature zzg;
|
||||
public static final Feature zzh;
|
||||
public static final Feature zzi;
|
||||
public static final Feature zzj;
|
||||
public static final Feature zzk;
|
||||
public static final Feature[] zzl;
|
||||
|
||||
static {
|
||||
Feature feature = new Feature("name_ulr_private", 1L);
|
||||
zza = feature;
|
||||
Feature feature2 = new Feature("name_sleep_segment_request", 1L);
|
||||
zzb = feature2;
|
||||
Feature feature3 = new Feature("get_last_activity_feature_id", 1L);
|
||||
zzc = feature3;
|
||||
Feature feature4 = new Feature("support_context_feature_id", 1L);
|
||||
zzd = feature4;
|
||||
Feature feature5 = new Feature("get_current_location", 2L);
|
||||
zze = feature5;
|
||||
Feature feature6 = new Feature("get_last_location_with_request", 1L);
|
||||
zzf = feature6;
|
||||
Feature feature7 = new Feature("set_mock_mode_with_callback", 1L);
|
||||
zzg = feature7;
|
||||
Feature feature8 = new Feature("set_mock_location_with_callback", 1L);
|
||||
zzh = feature8;
|
||||
Feature feature9 = new Feature("inject_location_with_callback", 1L);
|
||||
zzi = feature9;
|
||||
Feature feature10 = new Feature("location_updates_with_callback", 1L);
|
||||
zzj = feature10;
|
||||
Feature feature11 = new Feature("use_safe_parcelable_in_intents", 1L);
|
||||
zzk = feature11;
|
||||
zzl = new Feature[]{feature, feature2, feature3, feature4, feature5, feature6, feature7, feature8, feature9, feature10, feature11};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import com.google.android.gms.internal.location.zzdh;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzn implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
String str = "";
|
||||
ArrayList arrayList = null;
|
||||
int i = 0;
|
||||
String str2 = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, zzdh.CREATOR);
|
||||
} else if (fieldId == 2) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
} else if (fieldId != 4) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new GeofencingRequest(arrayList, i, str, str2);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new GeofencingRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzo {
|
||||
public static int zza(int i) {
|
||||
boolean z3 = true;
|
||||
if (i != 0 && i != 1) {
|
||||
if (i == 2) {
|
||||
i = 2;
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
}
|
||||
Preconditions.checkArgument(z3, "granularity %d must be a Granularity.GRANULARITY_* constant", Integer.valueOf(i));
|
||||
return i;
|
||||
}
|
||||
|
||||
public static String zzb(int i) {
|
||||
if (i == 0) {
|
||||
return "GRANULARITY_PERMISSION_LEVEL";
|
||||
}
|
||||
if (i == 1) {
|
||||
return "GRANULARITY_COARSE";
|
||||
}
|
||||
if (i == 2) {
|
||||
return "GRANULARITY_FINE";
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzp extends com.google.android.gms.internal.location.zza implements zzr {
|
||||
public zzp(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.location.ILocationCallback");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zzd(LocationAvailability locationAvailability) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zze(LocationResult locationResult) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzr
|
||||
public final void zzf() throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzq extends com.google.android.gms.internal.location.zzb implements zzr {
|
||||
public zzq() {
|
||||
super("com.google.android.gms.location.ILocationCallback");
|
||||
}
|
||||
|
||||
public static zzr zzb(IBinder iBinder) {
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.ILocationCallback");
|
||||
return queryLocalInterface instanceof zzr ? (zzr) queryLocalInterface : new zzp(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i == 1) {
|
||||
LocationResult locationResult = (LocationResult) com.google.android.gms.internal.location.zzc.zza(parcel, LocationResult.CREATOR);
|
||||
com.google.android.gms.internal.location.zzc.zzb(parcel);
|
||||
zze(locationResult);
|
||||
} else if (i == 2) {
|
||||
LocationAvailability locationAvailability = (LocationAvailability) com.google.android.gms.internal.location.zzc.zza(parcel, LocationAvailability.CREATOR);
|
||||
com.google.android.gms.internal.location.zzc.zzb(parcel);
|
||||
zzd(locationAvailability);
|
||||
} else {
|
||||
if (i != 3) {
|
||||
return false;
|
||||
}
|
||||
zzf();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzr extends IInterface {
|
||||
void zzd(LocationAvailability locationAvailability) throws RemoteException;
|
||||
|
||||
void zze(LocationResult locationResult) throws RemoteException;
|
||||
|
||||
void zzf() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzs extends com.google.android.gms.internal.location.zza implements zzu {
|
||||
public zzs(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.location.ILocationListener");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzu
|
||||
public final void zzd(Location location) throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.location.zzu
|
||||
public final void zze() throws RemoteException {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class zzt extends com.google.android.gms.internal.location.zzb implements zzu {
|
||||
public zzt() {
|
||||
super("com.google.android.gms.location.ILocationListener");
|
||||
}
|
||||
|
||||
public static zzu zzb(IBinder iBinder) {
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.ILocationListener");
|
||||
return queryLocalInterface instanceof zzu ? (zzu) queryLocalInterface : new zzs(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.location.zzb
|
||||
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i4) throws RemoteException {
|
||||
if (i == 1) {
|
||||
Location location = (Location) com.google.android.gms.internal.location.zzc.zza(parcel, Location.CREATOR);
|
||||
com.google.android.gms.internal.location.zzc.zzb(parcel);
|
||||
zzd(location);
|
||||
} else {
|
||||
if (i != 2) {
|
||||
return false;
|
||||
}
|
||||
zze();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface zzu extends IInterface {
|
||||
void zzd(Location location) throws RemoteException;
|
||||
|
||||
void zze() throws RemoteException;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzv implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
long j4 = Long.MAX_VALUE;
|
||||
int i = 0;
|
||||
boolean z3 = false;
|
||||
String str = null;
|
||||
com.google.android.gms.internal.location.zzd zzdVar = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
} else if (fieldId == 2) {
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
} else if (fieldId == 3) {
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
} else if (fieldId == 4) {
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
} else if (fieldId != 5) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
zzdVar = (com.google.android.gms.internal.location.zzd) SafeParcelReader.createParcelable(parcel, readHeader, com.google.android.gms.internal.location.zzd.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LastLocationRequest(j4, i, z3, str, zzdVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LastLocationRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzw implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
int i = 1000;
|
||||
int i4 = 1;
|
||||
int i5 = 1;
|
||||
long j4 = 0;
|
||||
zzac[] zzacVarArr = null;
|
||||
boolean z3 = false;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
zzacVarArr = (zzac[]) SafeParcelReader.createTypedArray(parcel, readHeader, zzac.CREATOR);
|
||||
break;
|
||||
case 6:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationAvailability(i, i4, i5, j4, zzacVarArr, z3);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationAvailability[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.WorkSource;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzx implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
WorkSource workSource = new WorkSource();
|
||||
int i = 102;
|
||||
long j4 = 3600000;
|
||||
long j5 = 600000;
|
||||
long j6 = 0;
|
||||
long j7 = Long.MAX_VALUE;
|
||||
long j8 = Long.MAX_VALUE;
|
||||
int i4 = Integer.MAX_VALUE;
|
||||
float f2 = 0.0f;
|
||||
boolean z3 = false;
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
boolean z4 = false;
|
||||
long j9 = -1;
|
||||
String str = null;
|
||||
com.google.android.gms.internal.location.zzd zzdVar = null;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
switch (SafeParcelReader.getFieldId(readHeader)) {
|
||||
case 1:
|
||||
i = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 2:
|
||||
j4 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 3:
|
||||
j5 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 4:
|
||||
default:
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
break;
|
||||
case 5:
|
||||
j7 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 6:
|
||||
i4 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 7:
|
||||
f2 = SafeParcelReader.readFloat(parcel, readHeader);
|
||||
break;
|
||||
case 8:
|
||||
j6 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 9:
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 10:
|
||||
j8 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 11:
|
||||
j9 = SafeParcelReader.readLong(parcel, readHeader);
|
||||
break;
|
||||
case 12:
|
||||
i5 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 13:
|
||||
i6 = SafeParcelReader.readInt(parcel, readHeader);
|
||||
break;
|
||||
case 14:
|
||||
str = SafeParcelReader.createString(parcel, readHeader);
|
||||
break;
|
||||
case 15:
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
break;
|
||||
case 16:
|
||||
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, readHeader, WorkSource.CREATOR);
|
||||
break;
|
||||
case 17:
|
||||
zzdVar = (com.google.android.gms.internal.location.zzd) SafeParcelReader.createParcelable(parcel, readHeader, com.google.android.gms.internal.location.zzd.CREATOR);
|
||||
break;
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationRequest(i, j4, j5, j6, j7, j8, i4, f2, z3, j9, i5, i6, str, z4, workSource, zzdVar);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationRequest[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzy implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
List list = LocationResult.zza;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
if (SafeParcelReader.getFieldId(readHeader) != 1) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
list = SafeParcelReader.createTypedList(parcel, readHeader, Location.CREATOR);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationResult(list);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationResult[i];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.google.android.gms.location;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class zzz implements Parcelable.Creator {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
|
||||
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||||
ArrayList arrayList = null;
|
||||
boolean z3 = false;
|
||||
boolean z4 = false;
|
||||
while (parcel.dataPosition() < validateObjectHeader) {
|
||||
int readHeader = SafeParcelReader.readHeader(parcel);
|
||||
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||||
if (fieldId == 1) {
|
||||
arrayList = SafeParcelReader.createTypedList(parcel, readHeader, LocationRequest.CREATOR);
|
||||
} else if (fieldId == 2) {
|
||||
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
} else if (fieldId != 3) {
|
||||
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||||
} else {
|
||||
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||||
return new LocationSettingsRequest(arrayList, z3, z4);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ Object[] newArray(int i) {
|
||||
return new LocationSettingsRequest[i];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user