Initial version -- added millennium read funcionality

This commit is contained in:
Pablo
2026-03-09 22:05:28 +01:00
commit 77c2ded482
2770 changed files with 141927 additions and 0 deletions
@@ -0,0 +1,27 @@
package com.google.android.gms.location;
import android.app.Activity;
import android.content.Context;
import com.google.android.gms.common.api.Api;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class ActivityRecognition {
@Deprecated
public static final Api<Api.ApiOptions.NoOptions> API = com.google.android.gms.libs.identity.zzaj.zzb;
@Deprecated
public static final ActivityRecognitionApi ActivityRecognitionApi = new com.google.android.gms.libs.identity.zzaf();
private ActivityRecognition() {
}
public static ActivityRecognitionClient getClient(Activity activity) {
return new com.google.android.gms.libs.identity.zzaj(activity);
}
public static ActivityRecognitionClient getClient(Context context) {
return new com.google.android.gms.libs.identity.zzaj(context);
}
}
@@ -0,0 +1,15 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
public interface ActivityRecognitionApi {
PendingResult<Status> removeActivityUpdates(GoogleApiClient googleApiClient, PendingIntent pendingIntent);
PendingResult<Status> requestActivityUpdates(GoogleApiClient googleApiClient, long j, PendingIntent pendingIntent);
}
@@ -0,0 +1,22 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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 j, PendingIntent pendingIntent);
Task<Void> requestSleepSegmentUpdates(PendingIntent pendingIntent, SleepSegmentRequest sleepSegmentRequest);
}
@@ -0,0 +1,223 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
import java.lang.reflect.Array;
import java.util.Collections;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class ActivityRecognitionResult extends AbstractSafeParcelable implements ReflectedParcelable {
public static final Parcelable.Creator<ActivityRecognitionResult> CREATOR = new zzd();
List zza;
long zzb;
long zzc;
int zzd;
Bundle zze;
public ActivityRecognitionResult(DetectedActivity detectedActivity, long j, long j2) {
this(Collections.singletonList(detectedActivity), j, j2, 0, null);
}
/* JADX WARN: Removed duplicated region for block: B:4:0x0007 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
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 listZza = zza(intent);
return (listZza == null || listZza.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;
}
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;
}
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() {
String strValueOf = String.valueOf(this.zza);
long j = this.zzb;
long j2 = this.zzc;
int length = String.valueOf(strValueOf).length();
StringBuilder sb = new StringBuilder(length + 59 + String.valueOf(j).length() + 24 + String.valueOf(j2).length() + 1);
sb.append("ActivityRecognitionResult [probableActivities=");
sb.append(strValueOf);
sb.append(", timeMillis=");
sb.append(j);
sb.append(", elapsedRealtimeMillis=");
sb.append(j2);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = 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, iBeginObjectHeader);
}
public ActivityRecognitionResult(List<DetectedActivity> list, long j, long j2) {
this(list, j, j2, 0, null);
}
public ActivityRecognitionResult(List list, long j, long j2, int i, Bundle bundle) {
Preconditions.checkArgument((list == null || list.isEmpty()) ? false : true, "Must have at least 1 detected activity");
Preconditions.checkArgument(j > 0 && j2 > 0, "Must set times");
this.zza = list;
this.zzb = j;
this.zzc = j2;
this.zzd = i;
this.zze = bundle;
}
}
@@ -0,0 +1,110 @@
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 java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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();
private final int zza;
private final int zzb;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
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;
}
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
@Retention(RetentionPolicy.SOURCE)
public @interface SupportedActivityTransition {
}
ActivityTransition(int i, int i2) {
this.zza = i;
this.zzb = i2;
}
public static void zza(int i) {
boolean z = false;
if (i >= 0 && i <= 1) {
z = true;
}
StringBuilder sb = new StringBuilder(String.valueOf(i).length() + 30);
sb.append("Transition type ");
sb.append(i);
sb.append(" is not valid.");
Preconditions.checkArgument(z, sb.toString());
}
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() {
int i = this.zza;
int length = String.valueOf(i).length();
int i2 = this.zzb;
StringBuilder sb = new StringBuilder(length + 52 + String.valueOf(i2).length() + 1);
sb.append("ActivityTransition [mActivityType=");
sb.append(i);
sb.append(", mTransitionType=");
sb.append(i2);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, getActivityType());
SafeParcelWriter.writeInt(parcel, 2, getTransitionType());
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,83 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class ActivityTransitionEvent extends AbstractSafeParcelable {
public static final Parcelable.Creator<ActivityTransitionEvent> CREATOR = new zzf();
private final int zza;
private final int zzb;
private final long zzc;
public ActivityTransitionEvent(int i, int i2, long j) {
ActivityTransition.zza(i2);
this.zza = i;
this.zzb = i2;
this.zzc = j;
}
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();
int i = this.zza;
StringBuilder sb2 = new StringBuilder(String.valueOf(i).length() + 13);
sb2.append("ActivityType ");
sb2.append(i);
sb.append(sb2.toString());
sb.append(" ");
int i2 = this.zzb;
StringBuilder sb3 = new StringBuilder(String.valueOf(i2).length() + 15);
sb3.append("TransitionType ");
sb3.append(i2);
sb.append(sb3.toString());
sb.append(" ");
long j = this.zzc;
StringBuilder sb4 = new StringBuilder(String.valueOf(j).length() + 21);
sb4.append("ElapsedRealTimeNanos ");
sb4.append(j);
sb.append(sb4.toString());
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, getActivityType());
SafeParcelWriter.writeInt(parcel, 2, getTransitionType());
SafeParcelWriter.writeLong(parcel, 3, getElapsedRealTimeNanos());
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,112 @@
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.SafeParcelableSerializer;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.TreeSet;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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();
private final List zza;
private final String zzb;
private final List zzc;
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 iHashCode = this.zza.hashCode() * 31;
String str = this.zzb;
int iHashCode2 = (iHashCode + (str != null ? str.hashCode() : 0)) * 31;
List list = this.zzc;
int iHashCode3 = (iHashCode2 + (list != null ? list.hashCode() : 0)) * 31;
String str2 = this.zzd;
return iHashCode3 + (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() {
List list = this.zzc;
String strValueOf = String.valueOf(this.zza);
String strValueOf2 = String.valueOf(list);
String str = this.zzd;
int length = String.valueOf(strValueOf).length();
String str2 = this.zzb;
int length2 = String.valueOf(str2).length();
StringBuilder sb = new StringBuilder(length + 48 + length2 + 12 + String.valueOf(strValueOf2).length() + 18 + String.valueOf(str).length() + 1);
sb.append("ActivityTransitionRequest [mTransitions=");
sb.append(strValueOf);
sb.append(", mTag='");
sb.append(str2);
sb.append("', mClients=");
sb.append(strValueOf2);
sb.append(", mAttributionTag=");
sb.append(str);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
List list = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, list, 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, iBeginObjectHeader);
}
public final ActivityTransitionRequest zza(String str) {
this.zzd = str;
return this;
}
public ActivityTransitionRequest(List list, String str, List list2, String str2) {
Preconditions.checkNotNull(list, "transitions can't be null");
Preconditions.checkArgument(!list.isEmpty(), "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;
this.zzc = list2 == null ? Collections.emptyList() : Collections.unmodifiableList(list2);
this.zzd = str2;
}
}
@@ -0,0 +1,78 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
import java.util.Collections;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class ActivityTransitionResult extends AbstractSafeParcelable {
public static final Parcelable.Creator<ActivityTransitionResult> CREATOR = new zzi();
private final List zza;
private Bundle zzb;
public ActivityTransitionResult(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++) {
int i2 = i - 1;
Preconditions.checkArgument(list.get(i).getElapsedRealTimeNanos() >= list.get(i2).getElapsedRealTimeNanos(), "Transition out of order: ts1=%d, ts2=%d", Long.valueOf(list.get(i).getElapsedRealTimeNanos()), Long.valueOf(list.get(i2).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 iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, getTransitionEvents(), false);
SafeParcelWriter.writeBundle(parcel, 2, this.zzb, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
public ActivityTransitionResult(List list, Bundle bundle) {
this(list);
this.zzb = bundle;
}
}
@@ -0,0 +1,203 @@
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.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.util.WorkSourceUtil;
import com.google.android.gms.libs.identity.ClientIdentity;
import com.google.android.gms.libs.identity.zzeo;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
import org.checkerframework.dataflow.qual.Pure;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class CurrentLocationRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<CurrentLocationRequest> CREATOR = new zzj();
private final long zza;
private final int zzb;
private final int zzc;
private final long zzd;
private final boolean zze;
private final int zzf;
private final WorkSource zzg;
private final ClientIdentity zzh;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private long zza;
private int zzb;
private int zzc;
private long zzd;
private final boolean zze;
private final int zzf;
private final WorkSource zzg;
private final ClientIdentity zzh;
public Builder() {
this.zza = DeviceOrientationRequest.OUTPUT_PERIOD_MEDIUM;
this.zzb = 0;
this.zzc = 102;
this.zzd = Long.MAX_VALUE;
this.zze = false;
this.zzf = 0;
this.zzg = null;
this.zzh = null;
}
public Builder(CurrentLocationRequest currentLocationRequest) {
this.zza = currentLocationRequest.getMaxUpdateAgeMillis();
this.zzb = currentLocationRequest.getGranularity();
this.zzc = currentLocationRequest.getPriority();
this.zzd = currentLocationRequest.getDurationMillis();
this.zze = currentLocationRequest.zza();
this.zzf = currentLocationRequest.zzb();
this.zzg = new WorkSource(currentLocationRequest.zzc());
this.zzh = currentLocationRequest.zzd();
}
public CurrentLocationRequest build() {
return new CurrentLocationRequest(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, new WorkSource(this.zzg), this.zzh);
}
public Builder setDurationMillis(long j) {
Preconditions.checkArgument(j > 0, "durationMillis must be greater than 0");
this.zzd = j;
return this;
}
public Builder setGranularity(int i) {
zzq.zza(i);
this.zzb = i;
return this;
}
public Builder setMaxUpdateAgeMillis(long j) {
Preconditions.checkArgument(j >= 0, "maxUpdateAgeMillis must be greater than or equal to 0");
this.zza = j;
return this;
}
public Builder setPriority(int i) {
zzan.zza(i);
this.zzc = i;
return this;
}
}
CurrentLocationRequest(long j, int i, int i2, long j2, boolean z, int i3, WorkSource workSource, ClientIdentity clientIdentity) {
this.zza = j;
this.zzb = i;
this.zzc = i2;
this.zzd = j2;
this.zze = z;
this.zzf = i3;
this.zzg = workSource;
this.zzh = clientIdentity;
}
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);
}
@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 sb = new StringBuilder();
sb.append("CurrentLocationRequest[");
sb.append(zzan.zzb(this.zzc));
if (this.zza != Long.MAX_VALUE) {
sb.append(", maxAge=");
zzeo.zzc(this.zza, sb);
}
if (this.zzd != Long.MAX_VALUE) {
sb.append(", duration=");
sb.append(this.zzd);
sb.append("ms");
}
if (this.zzb != 0) {
sb.append(", ");
sb.append(zzq.zzb(this.zzb));
}
if (this.zze) {
sb.append(", bypass");
}
if (this.zzf != 0) {
sb.append(", ");
sb.append(zzar.zzb(this.zzf));
}
if (!WorkSourceUtil.isEmpty(this.zzg)) {
sb.append(", workSource=");
sb.append(this.zzg);
}
if (this.zzh != null) {
sb.append(", impersonation=");
sb.append(this.zzh);
}
sb.append(AbstractJsonLexerKt.END_LIST);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = 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.zzg, i, false);
SafeParcelWriter.writeInt(parcel, 7, this.zzf);
SafeParcelWriter.writeParcelable(parcel, 9, this.zzh, i, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
@Pure
public final boolean zza() {
return this.zze;
}
@Pure
public final int zzb() {
return this.zzf;
}
@Pure
public final WorkSource zzc() {
return this.zzg;
}
@Pure
public final ClientIdentity zzd() {
return this.zzh;
}
}
@@ -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 java.util.Comparator;
import kotlinx.coroutines.debug.internal.DebugCoroutineInfoImplKt;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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;
final int zzb;
final int zzc;
public static final Comparator zza = new zzk();
public static final Parcelable.Creator<DetectedActivity> CREATOR = new zzl();
public DetectedActivity(int i, int i2) {
this.zzb = i;
this.zzc = i2;
}
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;
}
public final int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zzb), Integer.valueOf(this.zzc));
}
public String toString() {
int type = getType();
String string = 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";
int i = this.zzc;
StringBuilder sb = new StringBuilder(String.valueOf(string).length() + 36 + String.valueOf(i).length() + 1);
sb.append("DetectedActivity [type=");
sb.append(string);
sb.append(", confidence=");
sb.append(i);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.zzb);
SafeParcelWriter.writeInt(parcel, 2, this.zzc);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,249 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.libs.identity.zzer;
import java.util.Arrays;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
import org.checkerframework.dataflow.qual.Pure;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class DeviceOrientation extends AbstractSafeParcelable {
public static final Parcelable.Creator<DeviceOrientation> CREATOR = new zzm();
private final float[] zza;
private final float zzb;
private final float zzc;
private final long zzd;
private final byte zze;
private final float zzf;
private final float zzg;
DeviceOrientation(float[] fArr, float f, float f2, long j, byte b, float f3, float f4) {
zzj(fArr);
zzer.zza(f >= 0.0f && f < 360.0f);
zzer.zza(f2 >= 0.0f && f2 <= 180.0f);
zzer.zza(f4 >= 0.0f && f4 <= 180.0f);
zzer.zza(j >= 0);
this.zza = fArr;
this.zzb = f;
this.zzc = f2;
this.zzf = f3;
this.zzg = f4;
this.zzd = j;
this.zze = (byte) (((byte) (((byte) (b | 16)) | 4)) | 8);
}
/* JADX INFO: Access modifiers changed from: private */
public static void zzj(float[] fArr) {
zzer.zzb(fArr != null && fArr.length == 4, "Input attitude array should be of length 4.");
zzer.zzb((Float.isNaN(fArr[0]) || Float.isNaN(fArr[1]) || Float.isNaN(fArr[2]) || Float.isNaN(fArr[3])) ? false : true, "Input attitude cannot contain NaNs.");
}
@Pure
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof DeviceOrientation)) {
return false;
}
DeviceOrientation deviceOrientation = (DeviceOrientation) obj;
return Float.compare(this.zzb, deviceOrientation.zzb) == 0 && Float.compare(this.zzc, deviceOrientation.zzc) == 0 && (zza() == deviceOrientation.zza() && (!zza() || Float.compare(this.zzf, deviceOrientation.zzf) == 0)) && (hasConservativeHeadingErrorDegrees() == deviceOrientation.hasConservativeHeadingErrorDegrees() && (!hasConservativeHeadingErrorDegrees() || Float.compare(getConservativeHeadingErrorDegrees(), deviceOrientation.getConservativeHeadingErrorDegrees()) == 0)) && this.zzd == deviceOrientation.zzd && Arrays.equals(this.zza, deviceOrientation.zza);
}
@Pure
public float[] getAttitude() {
return (float[]) this.zza.clone();
}
@Pure
public float getConservativeHeadingErrorDegrees() {
return this.zzg;
}
@Pure
public long getElapsedRealtimeNs() {
return this.zzd;
}
@Pure
public float getHeadingDegrees() {
return this.zzb;
}
@Pure
public float getHeadingErrorDegrees() {
return this.zzc;
}
@Pure
public boolean hasConservativeHeadingErrorDegrees() {
return (this.zze & 64) != 0;
}
@Pure
public int hashCode() {
return Objects.hashCode(Float.valueOf(this.zzb), Float.valueOf(this.zzc), Float.valueOf(this.zzg), Long.valueOf(this.zzd), this.zza, Byte.valueOf(this.zze));
}
@Pure
public String toString() {
StringBuilder sb = new StringBuilder("DeviceOrientation[attitude=");
sb.append(Arrays.toString(this.zza));
sb.append(", headingDegrees=");
sb.append(this.zzb);
sb.append(", headingErrorDegrees=");
sb.append(this.zzc);
if (hasConservativeHeadingErrorDegrees()) {
sb.append(", conservativeHeadingErrorDegrees=");
sb.append(this.zzg);
}
sb.append(", elapsedRealtimeNs=");
sb.append(this.zzd);
sb.append(AbstractJsonLexerKt.END_LIST);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeFloatArray(parcel, 1, getAttitude(), false);
SafeParcelWriter.writeFloat(parcel, 4, getHeadingDegrees());
SafeParcelWriter.writeFloat(parcel, 5, getHeadingErrorDegrees());
SafeParcelWriter.writeLong(parcel, 6, getElapsedRealtimeNs());
SafeParcelWriter.writeByte(parcel, 7, this.zze);
SafeParcelWriter.writeFloat(parcel, 8, this.zzf);
SafeParcelWriter.writeFloat(parcel, 9, getConservativeHeadingErrorDegrees());
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
@Pure
public final boolean zza() {
return (this.zze & 32) != 0;
}
final /* synthetic */ float[] zzc() {
return this.zza;
}
final /* synthetic */ float zzd() {
return this.zzb;
}
final /* synthetic */ float zze() {
return this.zzc;
}
final /* synthetic */ long zzf() {
return this.zzd;
}
final /* synthetic */ byte zzg() {
return this.zze;
}
final /* synthetic */ float zzh() {
return this.zzf;
}
final /* synthetic */ float zzi() {
return this.zzg;
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private final float[] zza;
private float zzb;
private float zzc;
private long zzd;
private byte zze;
private float zzf;
private float zzg;
public Builder(DeviceOrientation deviceOrientation) {
this.zze = (byte) 0;
DeviceOrientation.zzj(deviceOrientation.zzc());
this.zza = Arrays.copyOf(deviceOrientation.zzc(), deviceOrientation.zzc().length);
setHeadingDegrees(deviceOrientation.zzd());
setHeadingErrorDegrees(deviceOrientation.zze());
setConservativeHeadingErrorDegrees(deviceOrientation.zzi());
setElapsedRealtimeNs(deviceOrientation.zzf());
this.zzf = deviceOrientation.zzh();
this.zze = deviceOrientation.zzg();
}
public DeviceOrientation build() {
return new DeviceOrientation(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, this.zzg);
}
public Builder clearConservativeHeadingErrorDegrees() {
this.zzg = 180.0f;
int i = this.zze & (-65);
this.zzf = 0.0f;
this.zze = (byte) (((byte) i) & (-33));
return this;
}
public Builder setAttitude(float[] fArr) {
DeviceOrientation.zzj(fArr);
System.arraycopy(fArr, 0, this.zza, 0, fArr.length);
return this;
}
public Builder setConservativeHeadingErrorDegrees(float f) {
boolean z = false;
if (f >= 0.0f && f <= 180.0f) {
z = true;
}
zzer.zzb(z, "conservativeHeadingErrorDegrees should be between 0 and 180.");
this.zzg = f;
this.zze = (byte) (this.zze | 64);
Parcelable.Creator<DeviceOrientation> creator = DeviceOrientation.CREATOR;
this.zzf = f < 180.0f ? (float) (2.0d / (1.0d - Math.cos(Math.toRadians(f)))) : 0.0f;
this.zze = (byte) (this.zze | 32);
return this;
}
public Builder setElapsedRealtimeNs(long j) {
zzer.zzb(j >= 0, "elapsedRealtimeNs should be greater than or equal to 0.");
this.zzd = j;
return this;
}
public Builder setHeadingDegrees(float f) {
boolean z = false;
if (f >= 0.0f && f < 360.0f) {
z = true;
}
zzer.zzb(z, "headingDegrees should be greater than or equal to 0 and less than 360.");
this.zzb = f;
return this;
}
public Builder setHeadingErrorDegrees(float f) {
boolean z = false;
if (f >= 0.0f && f <= 180.0f) {
z = true;
}
zzer.zzb(z, "headingErrorDegrees should be between 0 and 180.");
this.zzc = f;
return this;
}
public Builder(float[] fArr, float f, float f2, long j) {
this.zze = (byte) 0;
DeviceOrientation.zzj(fArr);
this.zza = Arrays.copyOf(fArr, fArr.length);
setHeadingDegrees(f);
setHeadingErrorDegrees(f2);
setElapsedRealtimeNs(j);
this.zzf = 0.0f;
this.zzg = 180.0f;
this.zze = (byte) 0;
}
}
}
@@ -0,0 +1,7 @@
package com.google.android.gms.location;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface DeviceOrientationListener {
void onDeviceOrientationChanged(DeviceOrientation deviceOrientation);
}
@@ -0,0 +1,107 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.libs.identity.zzer;
import org.checkerframework.dataflow.qual.Pure;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class DeviceOrientationRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<DeviceOrientationRequest> CREATOR = new zzn();
public static final long OUTPUT_PERIOD_DEFAULT = 20000;
public static final long OUTPUT_PERIOD_FAST = 5000;
public static final long OUTPUT_PERIOD_MEDIUM = 10000;
private final long zza;
private final boolean zzb;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private long zza;
private final boolean zzb;
public Builder(long j) {
this.zzb = false;
setSamplingPeriodMicros(j);
}
public DeviceOrientationRequest build() {
return new DeviceOrientationRequest(this.zza, this.zzb);
}
public Builder setSamplingPeriodMicros(long j) {
boolean z = false;
if (j >= 0 && j < Long.MAX_VALUE) {
z = true;
}
StringBuilder sb = new StringBuilder(String.valueOf(j).length() + 102);
sb.append("Invalid interval: ");
sb.append(j);
sb.append(" should be greater than or equal to 0. Note: Long.MAX_VALUE is not a valid interval.");
zzer.zzb(z, sb.toString());
this.zza = j;
return this;
}
public Builder(DeviceOrientationRequest deviceOrientationRequest) {
this.zza = deviceOrientationRequest.zza();
this.zzb = deviceOrientationRequest.zzb();
}
}
DeviceOrientationRequest(long j, boolean z) {
this.zza = j;
this.zzb = z;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof DeviceOrientationRequest)) {
return false;
}
DeviceOrientationRequest deviceOrientationRequest = (DeviceOrientationRequest) obj;
return this.zza == deviceOrientationRequest.zza && this.zzb == deviceOrientationRequest.zzb;
}
@Pure
public long getSamplingPeriodMicros() {
return this.zza;
}
public int hashCode() {
return Objects.hashCode(Long.valueOf(this.zza), Boolean.valueOf(this.zzb));
}
public String toString() {
long j = this.zza;
int length = String.valueOf(j).length();
String str = true != this.zzb ? "" : ", withVelocity";
StringBuilder sb = new StringBuilder(length + 46 + str.length() + 1);
sb.append("DeviceOrientationRequest[samplingPeriodMicros=");
sb.append(j);
sb.append(str);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeLong(parcel, 2, getSamplingPeriodMicros());
SafeParcelWriter.writeBoolean(parcel, 6, this.zzb);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
final /* synthetic */ long zza() {
return this.zza;
}
final /* synthetic */ boolean zzb() {
return this.zzb;
}
}
@@ -0,0 +1,44 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
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 z);
}
@@ -0,0 +1,62 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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();
@Deprecated
Task<Void> removeDeviceOrientationUpdates(DeviceOrientationListener deviceOrientationListener);
Task<Void> removeLocationUpdates(PendingIntent pendingIntent);
Task<Void> removeLocationUpdates(LocationCallback locationCallback);
Task<Void> removeLocationUpdates(LocationListener locationListener);
@Deprecated
Task<Void> requestDeviceOrientationUpdates(DeviceOrientationRequest deviceOrientationRequest, DeviceOrientationListener deviceOrientationListener, Looper looper);
@Deprecated
Task<Void> requestDeviceOrientationUpdates(DeviceOrientationRequest deviceOrientationRequest, Executor executor, DeviceOrientationListener deviceOrientationListener);
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 z);
}
@@ -0,0 +1,14 @@
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;
import java.util.concurrent.Executor;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface FusedOrientationProviderClient extends HasApiKey<Api.ApiOptions.NoOptions> {
Task<Void> removeOrientationUpdates(DeviceOrientationListener deviceOrientationListener);
Task<Void> requestOrientationUpdates(DeviceOrientationRequest deviceOrientationRequest, Executor executor, DeviceOrientationListener deviceOrientationListener);
}
@@ -0,0 +1,126 @@
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.libs.identity.zzek;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private double zze;
private double zzf;
private float zzg;
private String zza = null;
private int zzb = 3;
private long zzc = -1;
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 zzek(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 d, double d2, float f) {
boolean z = d >= -90.0d && d <= 90.0d;
StringBuilder sb = new StringBuilder(String.valueOf(d).length() + 18);
sb.append("Invalid latitude: ");
sb.append(d);
Preconditions.checkArgument(z, sb.toString());
boolean z2 = d2 >= -180.0d && d2 <= 180.0d;
StringBuilder sb2 = new StringBuilder(String.valueOf(d2).length() + 19);
sb2.append("Invalid longitude: ");
sb2.append(d2);
Preconditions.checkArgument(z2, sb2.toString());
boolean z3 = f > 0.0f;
StringBuilder sb3 = new StringBuilder(String.valueOf(f).length() + 16);
sb3.append("Invalid radius: ");
sb3.append(f);
Preconditions.checkArgument(z3, sb3.toString());
this.zzd = (short) 1;
this.zze = d;
this.zzf = d2;
this.zzg = f;
return this;
}
public Builder setExpirationDuration(long j) {
if (j < 0) {
this.zzc = -1L;
} else {
this.zzc = DefaultClock.getInstance().elapsedRealtime() + j;
}
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(int i) {
this.zzb = i;
return this;
}
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public @interface GeofenceTransition {
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public @interface TransitionTypes {
}
long getExpirationTime();
double getLatitude();
int getLoiteringDelay();
double getLongitude();
int getNotificationResponsiveness();
float getRadius();
String getRequestId();
int getTransitionTypes();
}
@@ -0,0 +1,43 @@
package com.google.android.gms.location;
import androidx.core.view.PointerIconCompat;
import com.google.android.gms.common.api.CommonStatusCodes;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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 PointerIconCompat.TYPE_HELP /* 1003 */:
default:
return CommonStatusCodes.getStatusCodeString(i);
case 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,21 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
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,17 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.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,114 @@
package com.google.android.gms.location;
import android.location.Location;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class GeofencingEvent {
private final int zza;
private final int zzb;
private final List zzc;
private final Location zzd;
private GeofencingEvent(int i, int i2, List list, Location location) {
this.zza = i;
this.zzb = i2;
this.zzc = list;
this.zzd = location;
}
/* JADX WARN: Removed duplicated region for block: B:7:0x0014 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public static com.google.android.gms.location.GeofencingEvent fromIntent(android.content.Intent r12) {
/*
r0 = 0
if (r12 != 0) goto L5
goto L6c
L5:
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 L16
L14:
r3 = r2
goto L20
L16:
r4 = 1
if (r3 == r4) goto L20
r4 = 2
if (r3 == r4) goto L20
r4 = 4
if (r3 != r4) goto L14
r3 = r4
L20:
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 L2c
r5 = r0
goto L5f
L2c:
java.util.ArrayList r5 = new java.util.ArrayList
int r6 = r4.size()
r5.<init>(r6)
int r6 = r4.size()
r7 = 0
r8 = r7
L3b:
if (r8 >= r6) goto L5f
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.zzek> r9 = com.google.android.gms.libs.identity.zzek.CREATOR
java.lang.Object r9 = r9.createFromParcel(r10)
com.google.android.gms.internal.location.zzek r9 = (com.google.android.gms.libs.identity.zzek) r9
r10.recycle()
r5.add(r9)
int r8 = r8 + 1
goto L3b
L5f:
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 L6d
if (r1 == r2) goto L6c
goto L6d
L6c:
return r0
L6d:
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;
}
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,94 @@
package com.google.android.gms.location;
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.libs.identity.zzek;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class GeofencingRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<GeofencingRequest> CREATOR = new zzp();
public static final int INITIAL_TRIGGER_DWELL = 4;
public static final int INITIAL_TRIGGER_ENTER = 1;
public static final int INITIAL_TRIGGER_EXIT = 2;
private final List zza;
private final int zzb;
private final String zzc;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private final List zza = new ArrayList();
private int zzb = 5;
public Builder addGeofence(Geofence geofence) {
Preconditions.checkArgument(geofence instanceof zzek, "Geofence must be created using Geofence.Builder.");
this.zza.add((zzek) geofence);
return this;
}
public Builder addGeofences(List<? extends Geofence> list) {
Iterator<? extends Geofence> it = list.iterator();
while (it.hasNext()) {
addGeofence(it.next());
}
return this;
}
public GeofencingRequest build() {
Preconditions.checkArgument(!this.zza.isEmpty(), "No geofence has been added to this request.");
return new GeofencingRequest(new ArrayList(this.zza), this.zzb, null);
}
public Builder setInitialTrigger(int i) {
this.zzb = i & 7;
return this;
}
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public @interface InitialTrigger {
}
GeofencingRequest(List list, int i, String str) {
this.zza = list;
this.zzb = i;
this.zzc = str;
}
public List<Geofence> getGeofences() {
return new ArrayList(this.zza);
}
public int getInitialTrigger() {
return this.zzb;
}
public String toString() {
String strValueOf = String.valueOf(this.zza);
int length = String.valueOf(strValueOf).length();
int i = this.zzb;
StringBuilder sb = new StringBuilder(length + 45 + String.valueOf(i).length() + 1);
sb.append("GeofencingRequest[geofences=");
sb.append(strValueOf);
sb.append(", initialTrigger=");
sb.append(i);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
List list = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, list, false);
SafeParcelWriter.writeInt(parcel, 2, getInitialTrigger());
SafeParcelWriter.writeString(parcel, 4, this.zzc, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Target({ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
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,131 @@
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.libs.identity.ClientIdentity;
import com.google.android.gms.libs.identity.zzeo;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
import org.checkerframework.dataflow.qual.Pure;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LastLocationRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<LastLocationRequest> CREATOR = new zzaa();
private final long zza;
private final int zzb;
private final boolean zzc;
private final ClientIdentity zzd;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
public static final class Builder {
private long zza;
private int zzb;
private final boolean zzc;
private final ClientIdentity zzd;
public Builder() {
this.zza = Long.MAX_VALUE;
this.zzb = 0;
this.zzc = false;
this.zzd = null;
}
public Builder(LastLocationRequest lastLocationRequest) {
this.zza = lastLocationRequest.getMaxUpdateAgeMillis();
this.zzb = lastLocationRequest.getGranularity();
this.zzc = lastLocationRequest.zza();
this.zzd = lastLocationRequest.zzb();
}
public LastLocationRequest build() {
return new LastLocationRequest(this.zza, this.zzb, this.zzc, this.zzd);
}
public Builder setGranularity(int i) {
zzq.zza(i);
this.zzb = i;
return this;
}
public Builder setMaxUpdateAgeMillis(long j) {
Preconditions.checkArgument(j > 0, "maxUpdateAgeMillis must be greater than 0");
this.zza = j;
return this;
}
}
LastLocationRequest(long j, int i, boolean z, ClientIdentity clientIdentity) {
this.zza = j;
this.zzb = i;
this.zzc = z;
this.zzd = clientIdentity;
}
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);
}
@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 sb = new StringBuilder();
sb.append("LastLocationRequest[");
if (this.zza != Long.MAX_VALUE) {
sb.append("maxAge=");
zzeo.zzc(this.zza, sb);
}
if (this.zzb != 0) {
sb.append(", ");
sb.append(zzq.zzb(this.zzb));
}
if (this.zzc) {
sb.append(", bypass");
}
if (this.zzd != null) {
sb.append(", impersonation=");
sb.append(this.zzd);
}
sb.append(AbstractJsonLexerKt.END_LIST);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeLong(parcel, 1, getMaxUpdateAgeMillis());
SafeParcelWriter.writeInt(parcel, 2, getGranularity());
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
SafeParcelWriter.writeParcelable(parcel, 5, this.zzd, i, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
@Pure
public final boolean zza() {
return this.zzc;
}
@Pure
public final ClientIdentity zzb() {
return this.zzd;
}
}
@@ -0,0 +1,88 @@
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 java.util.Arrays;
import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationAvailability extends AbstractSafeParcelable implements ReflectedParcelable {
final int zzc;
private final int zzd;
private final int zze;
private final long zzf;
private final zzal[] 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 zzab();
LocationAvailability(int i, int i2, int i3, long j, zzal[] zzalVarArr, boolean z) {
this.zzc = i < 1000 ? 0 : 1000;
this.zzd = i2;
this.zze = i3;
this.zzf = j;
this.zzg = zzalVarArr;
}
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() {
boolean zIsLocationAvailable = isLocationAvailable();
StringBuilder sb = new StringBuilder(String.valueOf(zIsLocationAvailable).length() + 22);
sb.append("LocationAvailability[");
sb.append(zIsLocationAvailable);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int i2 = this.zzd;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, i2);
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, iBeginObjectHeader);
}
}
@@ -0,0 +1,11 @@
package com.google.android.gms.location;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public abstract class LocationCallback {
public void onLocationAvailability(LocationAvailability locationAvailability) {
}
public void onLocationResult(LocationResult locationResult) {
}
}
@@ -0,0 +1,9 @@
package com.google.android.gms.location;
import android.location.Location;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface LocationListener {
void onLocationChanged(Location location);
}
@@ -0,0 +1,561 @@
package com.google.android.gms.location;
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.util.WorkSourceUtil;
import com.google.android.gms.libs.identity.ClientIdentity;
import com.google.android.gms.libs.identity.zzeo;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
import org.checkerframework.dataflow.qual.Pure;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationRequest extends AbstractSafeParcelable implements ReflectedParcelable {
public static final Parcelable.Creator<LocationRequest> CREATOR = new zzaf();
@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;
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 final int zzj;
private final int zzk;
private final boolean zzl;
private final WorkSource zzm;
private final ClientIdentity zzn;
@Deprecated
public LocationRequest() {
this(102, 3600000L, 600000L, 0L, Long.MAX_VALUE, Long.MAX_VALUE, Integer.MAX_VALUE, 0.0f, true, 3600000L, 0, 0, false, new WorkSource(), null);
}
@Deprecated
public static LocationRequest create() {
return new LocationRequest(102, 3600000L, 600000L, 0L, Long.MAX_VALUE, Long.MAX_VALUE, Integer.MAX_VALUE, 0.0f, true, 3600000L, 0, 0, false, new WorkSource(), null);
}
private static String zze(long j) {
return j == Long.MAX_VALUE ? "" : zzeo.zzb(j);
}
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.zzl == locationRequest.zzl && this.zzm.equals(locationRequest.zzm) && Objects.equal(this.zzn, locationRequest.zzn)))) {
return true;
}
}
return false;
}
@Pure
public long getDurationMillis() {
return this.zze;
}
@Deprecated
@Pure
public long getExpirationTime() {
long jElapsedRealtime = SystemClock.elapsedRealtime();
long j = this.zze;
long j2 = jElapsedRealtime + j;
if (((jElapsedRealtime ^ j2) & (j ^ j2)) < 0) {
return Long.MAX_VALUE;
}
return j2;
}
@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.zzm);
}
@Pure
public boolean isBatched() {
long j = this.zzd;
return j > 0 && (j >> 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 j) {
Preconditions.checkArgument(j > 0, "durationMillis must be greater than 0");
this.zze = j;
return this;
}
@Deprecated
public LocationRequest setExpirationTime(long j) {
this.zze = Math.max(1L, j - SystemClock.elapsedRealtime());
return this;
}
@Deprecated
public LocationRequest setFastestInterval(long j) {
Preconditions.checkArgument(j >= 0, "illegal fastest interval: %d", Long.valueOf(j));
this.zzc = j;
return this;
}
@Deprecated
public LocationRequest setInterval(long j) {
Preconditions.checkArgument(j >= 0, "intervalMillis must be greater than or equal to 0");
long j2 = this.zzc;
long j3 = this.zzb;
if (j2 == j3 / 6) {
this.zzc = j / 6;
}
if (this.zzi == j3) {
this.zzi = j;
}
this.zzb = j;
return this;
}
@Deprecated
public LocationRequest setMaxWaitTime(long j) {
Preconditions.checkArgument(j >= 0, "illegal max wait time: %d", Long.valueOf(j));
this.zzd = j;
return this;
}
@Deprecated
public LocationRequest setNumUpdates(int i) {
if (i > 0) {
this.zzf = i;
return this;
}
StringBuilder sb = new StringBuilder(String.valueOf(i).length() + 20);
sb.append("invalid numUpdates: ");
sb.append(i);
throw new IllegalArgumentException(sb.toString());
}
@Deprecated
public LocationRequest setPriority(int i) {
zzan.zza(i);
this.zza = i;
return this;
}
@Deprecated
public LocationRequest setSmallestDisplacement(float f) {
if (f >= 0.0f) {
this.zzg = f;
return this;
}
StringBuilder sb = new StringBuilder(String.valueOf(f).length() + 22);
sb.append("invalid displacement: ");
sb.append(f);
throw new IllegalArgumentException(sb.toString());
}
@Deprecated
public LocationRequest setWaitForAccurateLocation(boolean z) {
this.zzh = z;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Request[");
if (isPassive()) {
sb.append(zzan.zzb(this.zza));
if (this.zzd > 0) {
sb.append("/");
zzeo.zzc(this.zzd, sb);
}
} else {
sb.append("@");
if (isBatched()) {
zzeo.zzc(this.zzb, sb);
sb.append("/");
zzeo.zzc(this.zzd, sb);
} else {
zzeo.zzc(this.zzb, sb);
}
sb.append(" ");
sb.append(zzan.zzb(this.zza));
}
if (isPassive() || this.zzc != this.zzb) {
sb.append(", minUpdateInterval=");
sb.append(zze(this.zzc));
}
if (this.zzg > 0.0d) {
sb.append(", minUpdateDistance=");
sb.append(this.zzg);
}
if (!isPassive() ? this.zzi != this.zzb : this.zzi != Long.MAX_VALUE) {
sb.append(", maxUpdateAge=");
sb.append(zze(this.zzi));
}
if (this.zze != Long.MAX_VALUE) {
sb.append(", duration=");
zzeo.zzc(this.zze, sb);
}
if (this.zzf != Integer.MAX_VALUE) {
sb.append(", maxUpdates=");
sb.append(this.zzf);
}
if (this.zzk != 0) {
sb.append(", ");
sb.append(zzar.zzb(this.zzk));
}
if (this.zzj != 0) {
sb.append(", ");
sb.append(zzq.zzb(this.zzj));
}
if (this.zzh) {
sb.append(", waitForAccurateLocation");
}
if (this.zzl) {
sb.append(", bypass");
}
if (!WorkSourceUtil.isEmpty(this.zzm)) {
sb.append(", ");
sb.append(this.zzm);
}
if (this.zzn != null) {
sb.append(", impersonation=");
sb.append(this.zzn);
}
sb.append(AbstractJsonLexerKt.END_LIST);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = 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.writeBoolean(parcel, 15, this.zzl);
SafeParcelWriter.writeParcelable(parcel, 16, this.zzm, i, false);
SafeParcelWriter.writeParcelable(parcel, 17, this.zzn, i, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
@Pure
public final int zza() {
return this.zzk;
}
@Pure
public final boolean zzb() {
return this.zzl;
}
@Pure
public final WorkSource zzc() {
return this.zzm;
}
@Pure
public final ClientIdentity zzd() {
return this.zzn;
}
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
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 boolean zzl;
private WorkSource zzm;
private ClientIdentity zzn;
public Builder(int i, long j) {
this(j);
setPriority(i);
}
public LocationRequest build() {
int i = this.zza;
long j = this.zzb;
long jMin = this.zzc;
if (jMin == -1) {
jMin = j;
} else if (i != 105) {
jMin = Math.min(jMin, j);
}
long jMax = Math.max(this.zzd, this.zzb);
long j2 = this.zze;
int i2 = this.zzf;
float f = this.zzg;
boolean z = this.zzh;
long j3 = this.zzi;
return new LocationRequest(i, j, jMin, jMax, Long.MAX_VALUE, j2, i2, f, z, j3 == -1 ? this.zzb : j3, this.zzj, this.zzk, this.zzl, new WorkSource(this.zzm), this.zzn);
}
public Builder setDurationMillis(long j) {
Preconditions.checkArgument(j > 0, "durationMillis must be greater than 0");
this.zze = j;
return this;
}
public Builder setGranularity(int i) {
zzq.zza(i);
this.zzj = i;
return this;
}
public Builder setIntervalMillis(long j) {
Preconditions.checkArgument(j >= 0, "intervalMillis must be greater than or equal to 0");
this.zzb = j;
return this;
}
public Builder setMaxUpdateAgeMillis(long j) {
boolean z = true;
if (j != -1 && j < 0) {
z = false;
}
Preconditions.checkArgument(z, "maxUpdateAgeMillis must be greater than or equal to 0, or IMPLICIT_MAX_UPDATE_AGE");
this.zzi = j;
return this;
}
public Builder setMaxUpdateDelayMillis(long j) {
Preconditions.checkArgument(j >= 0, "maxUpdateDelayMillis must be greater than or equal to 0");
this.zzd = j;
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 f) {
Preconditions.checkArgument(f >= 0.0f, "minUpdateDistanceMeters must be greater than or equal to 0");
this.zzg = f;
return this;
}
public Builder setMinUpdateIntervalMillis(long j) {
boolean z = true;
if (j != -1 && j < 0) {
z = false;
}
Preconditions.checkArgument(z, "minUpdateIntervalMillis must be greater than or equal to 0, or IMPLICIT_MIN_UPDATE_INTERVAL");
this.zzc = j;
return this;
}
public Builder setPriority(int i) {
zzan.zza(i);
this.zza = i;
return this;
}
public Builder setWaitForAccurateLocation(boolean z) {
this.zzh = z;
return this;
}
public final Builder zza(int i) {
zzar.zza(i);
this.zzk = i;
return this;
}
public final Builder zzb(boolean z) {
this.zzl = z;
return this;
}
public final Builder zzc(WorkSource workSource) {
this.zzm = workSource;
return this;
}
public Builder(long j) {
this.zza = 102;
this.zzc = -1L;
this.zzd = 0L;
this.zze = Long.MAX_VALUE;
this.zzf = Integer.MAX_VALUE;
this.zzg = 0.0f;
this.zzh = true;
this.zzi = -1L;
this.zzj = 0;
this.zzk = 0;
this.zzl = false;
this.zzm = null;
this.zzn = null;
setIntervalMillis(j);
}
public Builder(LocationRequest locationRequest) {
this(locationRequest.getPriority(), locationRequest.getIntervalMillis());
setMinUpdateIntervalMillis(locationRequest.getMinUpdateIntervalMillis());
setMaxUpdateDelayMillis(locationRequest.getMaxUpdateDelayMillis());
setDurationMillis(locationRequest.getDurationMillis());
setMaxUpdates(locationRequest.getMaxUpdates());
setMinUpdateDistanceMeters(locationRequest.getMinUpdateDistanceMeters());
setWaitForAccurateLocation(locationRequest.isWaitForAccurateLocation());
setMaxUpdateAgeMillis(locationRequest.getMaxUpdateAgeMillis());
setGranularity(locationRequest.getGranularity());
int iZza = locationRequest.zza();
zzar.zza(iZza);
this.zzk = iZza;
this.zzl = locationRequest.zzb();
this.zzm = locationRequest.zzc();
ClientIdentity clientIdentityZzd = locationRequest.zzd();
boolean z = true;
if (clientIdentityZzd != null && clientIdentityZzd.zza()) {
z = false;
}
Preconditions.checkArgument(z);
this.zzn = clientIdentityZzd;
}
}
LocationRequest(int i, long j, long j2, long j3, long j4, long j5, int i2, float f, boolean z, long j6, int i3, int i4, boolean z2, WorkSource workSource, ClientIdentity clientIdentity) {
long j7;
this.zza = i;
if (i == 105) {
this.zzb = Long.MAX_VALUE;
j7 = j;
} else {
j7 = j;
this.zzb = j7;
}
this.zzc = j2;
this.zzd = j3;
this.zze = j4 == Long.MAX_VALUE ? j5 : Math.min(Math.max(1L, j4 - SystemClock.elapsedRealtime()), j5);
this.zzf = i2;
this.zzg = f;
this.zzh = z;
this.zzi = j6 != -1 ? j6 : j7;
this.zzj = i3;
this.zzk = i4;
this.zzl = z2;
this.zzm = workSource;
this.zzn = clientIdentity;
}
}
@@ -0,0 +1,113 @@
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.SafeParcelableSerializer;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationResult extends AbstractSafeParcelable implements ReflectedParcelable {
private final List zzb;
static final List zza = Collections.emptyList();
public static final Parcelable.Creator<LocationResult> CREATOR = new zzag();
LocationResult(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() {
StringBuilder sb = new StringBuilder("LocationResult");
int i = zzak.zza;
List list = this.zzb;
sb.ensureCapacity(list.size() * 100);
sb.append("[");
Iterator it = list.iterator();
boolean z = false;
while (it.hasNext()) {
zzak.zza((Location) it.next(), sb);
sb.append(", ");
z = true;
}
if (z) {
sb.setLength(sb.length() - 2);
}
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, getLocations(), false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,64 @@
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.libs.identity.zzbb;
import com.google.android.gms.libs.identity.zzbi;
import com.google.android.gms.libs.identity.zzci;
import com.google.android.gms.libs.identity.zzcr;
import com.google.android.gms.libs.identity.zzct;
import com.google.android.gms.libs.identity.zzcz;
import com.google.android.gms.libs.identity.zzda;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class LocationServices {
@Deprecated
public static final Api<Api.ApiOptions.NoOptions> API = zzbi.zzb;
@Deprecated
public static final FusedLocationProviderApi FusedLocationApi = new zzbb();
@Deprecated
public static final GeofencingApi GeofencingApi = new zzcr();
@Deprecated
public static final SettingsApi SettingsApi = new zzcz();
private LocationServices() {
}
public static FusedLocationProviderClient getFusedLocationProviderClient(Activity activity) {
return new zzbi(activity);
}
public static FusedOrientationProviderClient getFusedOrientationProviderClient(Activity activity) {
return new zzci(activity);
}
public static GeofencingClient getGeofencingClient(Activity activity) {
return new zzct(activity);
}
public static SettingsClient getSettingsClient(Activity activity) {
return new zzda(activity);
}
public static FusedLocationProviderClient getFusedLocationProviderClient(Context context) {
return new zzbi(context);
}
public static FusedOrientationProviderClient getFusedOrientationProviderClient(Context context) {
return new zzci(context);
}
public static GeofencingClient getGeofencingClient(Context context) {
return new zzct(context);
}
public static SettingsClient getSettingsClient(Context context) {
return new zzda(context);
}
}
@@ -0,0 +1,72 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationSettingsRequest extends AbstractSafeParcelable {
public static final Parcelable.Creator<LocationSettingsRequest> CREATOR = new zzah();
private final List zza;
private final boolean zzb;
private final boolean zzc;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
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 z) {
this.zzb = z;
return this;
}
public Builder setNeedBle(boolean z) {
this.zzc = z;
return this;
}
}
LocationSettingsRequest(List list, boolean z, boolean z2) {
this.zza = list;
this.zzb = z;
this.zzc = z2;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
List list = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, Collections.unmodifiableList(list), false);
SafeParcelWriter.writeBoolean(parcel, 2, this.zzb);
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,15 @@
package com.google.android.gms.location;
import com.google.android.gms.common.api.Response;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class LocationSettingsResponse extends Response<LocationSettingsResult> {
public LocationSettingsResponse(LocationSettingsResult locationSettingsResult) {
super(locationSettingsResult);
}
public LocationSettingsStates getLocationSettingsStates() {
return getResult().getLocationSettingsStates();
}
}
@@ -0,0 +1,38 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationSettingsResult extends AbstractSafeParcelable implements Result {
public static final Parcelable.Creator<LocationSettingsResult> CREATOR = new zzai();
private final Status zza;
private final LocationSettingsStates zzb;
public LocationSettingsResult(Status status, 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 iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 1, getStatus(), i, false);
SafeParcelWriter.writeParcelable(parcel, 2, getLocationSettingsStates(), i, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,77 @@
package com.google.android.gms.location;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class LocationSettingsStates extends AbstractSafeParcelable {
public static final Parcelable.Creator<LocationSettingsStates> CREATOR = new zzaj();
private final boolean zza;
private final boolean zzb;
private final boolean zzc;
private final boolean zzd;
private final boolean zze;
private final boolean zzf;
public LocationSettingsStates(boolean z, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) {
this.zza = z;
this.zzb = z2;
this.zzc = z3;
this.zzd = z4;
this.zze = z5;
this.zzf = z6;
}
public static LocationSettingsStates fromIntent(Intent intent) {
return (LocationSettingsStates) SafeParcelableSerializer.deserializeFromIntentExtra(intent, "com.google.android.gms.location.LOCATION_SETTINGS_STATES", CREATOR);
}
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 iBeginObjectHeader = 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, iBeginObjectHeader);
}
}
@@ -0,0 +1,12 @@
package com.google.android.gms.location;
import com.google.android.gms.common.api.CommonStatusCodes;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class LocationSettingsStatusCodes extends CommonStatusCodes {
public static final int SETTINGS_CHANGE_UNAVAILABLE = 8502;
private LocationSettingsStatusCodes() {
}
}
@@ -0,0 +1,15 @@
package com.google.android.gms.location;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
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,17 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Target({ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
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;
/* JADX INFO: loaded from: classes2.dex */
public final class R {
private R() {
}
}
@@ -0,0 +1,11 @@
package com.google.android.gms.location;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
public interface SettingsApi {
PendingResult<LocationSettingsResult> checkLocationSettings(GoogleApiClient googleApiClient, LocationSettingsRequest locationSettingsRequest);
}
@@ -0,0 +1,13 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface SettingsClient extends HasApiKey<Api.ApiOptions.NoOptions> {
Task<LocationSettingsResponse> checkLocationSettings(LocationSettingsRequest locationSettingsRequest);
Task<Boolean> isGoogleLocationAccuracyEnabled();
}
@@ -0,0 +1,133 @@
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.SafeParcelableSerializer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class SleepClassifyEvent extends AbstractSafeParcelable {
public static final Parcelable.Creator<SleepClassifyEvent> CREATOR = new zzao();
private final int zza;
private final int zzb;
private final int zzc;
private final int zzd;
private final int zze;
private final int zzf;
private final int zzg;
private final boolean zzh;
private final int zzi;
public SleepClassifyEvent(int i, int i2, int i3, int i4, int i5, int i6, int i7, boolean z, int i8) {
this.zza = i;
this.zzb = i2;
this.zzc = i3;
this.zzd = i4;
this.zze = i5;
this.zzf = i6;
this.zzg = i7;
this.zzh = z;
this.zzi = i8;
}
public static List<SleepClassifyEvent> extractEvents(Intent intent) {
Preconditions.checkNotNull(intent);
if (!hasEvents(intent)) {
return Collections.emptyList();
}
ArrayList arrayList = (ArrayList) intent.getSerializableExtra("com.google.android.location.internal.EXTRA_SLEEP_CLASSIFY_RESULT");
if (arrayList == null) {
return Collections.emptyList();
}
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);
}
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 ((long) this.zza) * 1000;
}
public int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb));
}
public String toString() {
int i = this.zza;
int length = String.valueOf(i).length();
int i2 = this.zzb;
int length2 = String.valueOf(i2).length();
int i3 = this.zzc;
int length3 = String.valueOf(i3).length();
int i4 = this.zzd;
StringBuilder sb = new StringBuilder(length + 6 + length2 + 8 + length3 + 7 + String.valueOf(i4).length());
sb.append(i);
sb.append(" Conf:");
sb.append(i2);
sb.append(" Motion:");
sb.append(i3);
sb.append(" Light:");
sb.append(i4);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int i2 = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, i2);
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, iBeginObjectHeader);
}
}
@@ -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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelableSerializer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class SleepSegmentEvent extends AbstractSafeParcelable {
public static final Parcelable.Creator<SleepSegmentEvent> CREATOR = new zzap();
public static final int STATUS_MISSING_DATA = 1;
public static final int STATUS_NOT_DETECTED = 2;
public static final int STATUS_SUCCESSFUL = 0;
private final long zza;
private final long zzb;
private final int zzc;
private final int zzd;
private final int zze;
public SleepSegmentEvent(long j, long j2, int i, int i2, int i3) {
Preconditions.checkArgument(j <= j2, "endTimeMillis must be greater than or equal to startTimeMillis");
this.zza = j;
this.zzb = j2;
this.zzc = i;
this.zzd = i2;
this.zze = i3;
}
public static List<SleepSegmentEvent> extractEvents(Intent intent) {
Preconditions.checkNotNull(intent);
if (!hasEvents(intent)) {
return Collections.emptyList();
}
ArrayList arrayList = (ArrayList) intent.getSerializableExtra("com.google.android.location.internal.EXTRA_SLEEP_SEGMENT_RESULT");
if (arrayList == null) {
return Collections.emptyList();
}
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);
}
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() {
long j = this.zza;
int length = String.valueOf(j).length();
long j2 = this.zzb;
int length2 = String.valueOf(j2).length();
int i = this.zzc;
StringBuilder sb = new StringBuilder(length + 24 + length2 + 9 + String.valueOf(i).length());
sb.append("startMillis=");
sb.append(j);
sb.append(", endMillis=");
sb.append(j2);
sb.append(", status=");
sb.append(i);
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int iBeginObjectHeader = 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, iBeginObjectHeader);
}
}
@@ -0,0 +1,62 @@
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 java.util.List;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public class SleepSegmentRequest extends AbstractSafeParcelable {
public static final int CLASSIFY_EVENTS_ONLY = 2;
public static final Parcelable.Creator<SleepSegmentRequest> CREATOR = new zzaq();
public static final int SEGMENT_AND_CLASSIFY_EVENTS = 0;
public static final int SEGMENT_EVENTS_ONLY = 1;
private final List zza;
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);
List list = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeTypedList(parcel, 1, list, false);
SafeParcelWriter.writeInt(parcel, 2, getRequestedDataType());
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
public SleepSegmentRequest(List list, int i) {
this.zza = list;
this.zzb = i;
}
}
@@ -0,0 +1,20 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zza {
private long zza = Long.MIN_VALUE;
public final zza zza(long j) {
Preconditions.checkArgument(j >= 0, "intervalMillis can't be negative.");
this.zza = j;
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,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.libs.identity.ClientIdentity;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzaa implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ClientIdentity clientIdentity = null;
int i = 0;
boolean z = false;
long j = Long.MAX_VALUE;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
j = SafeParcelReader.readLong(parcel, header);
} else if (fieldId == 2) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 3) {
z = SafeParcelReader.readBoolean(parcel, header);
} else if (fieldId != 5) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
clientIdentity = (ClientIdentity) SafeParcelReader.createParcelable(parcel, header, ClientIdentity.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LastLocationRequest(j, i, z, clientIdentity);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LastLocationRequest[i];
}
}
@@ -0,0 +1,53 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzab implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
zzal[] zzalVarArr = null;
long j = 0;
int i = 1;
int i2 = 1;
int i3 = 1000;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
i = SafeParcelReader.readInt(parcel, header);
break;
case 2:
i2 = SafeParcelReader.readInt(parcel, header);
break;
case 3:
j = SafeParcelReader.readLong(parcel, header);
break;
case 4:
i3 = SafeParcelReader.readInt(parcel, header);
break;
case 5:
zzalVarArr = (zzal[]) SafeParcelReader.createTypedArray(parcel, header, zzal.CREATOR);
break;
case 6:
z = SafeParcelReader.readBoolean(parcel, header);
break;
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationAvailability(i3, i, i2, j, zzalVarArr, z);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationAvailability[i];
}
}
@@ -0,0 +1,9 @@
package com.google.android.gms.location;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzac {
public static final zzad zza() {
return new zzad(false, null);
}
}
@@ -0,0 +1,59 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.libs.identity.ClientIdentity;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzad extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzad> CREATOR = new zzae();
private final boolean zza;
private final ClientIdentity zzb;
zzad(boolean z, ClientIdentity clientIdentity) {
this.zza = z;
this.zzb = clientIdentity;
}
public final boolean equals(Object obj) {
if (!(obj instanceof zzad)) {
return false;
}
zzad zzadVar = (zzad) obj;
return this.zza == zzadVar.zza && Objects.equal(this.zzb, zzadVar.zzb);
}
public final int hashCode() {
return Objects.hashCode(Boolean.valueOf(this.zza));
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append("LocationAvailabilityRequest[");
if (this.zza) {
sb.append("bypass, ");
}
if (this.zzb != null) {
sb.append("impersonation=");
sb.append(this.zzb);
sb.append(", ");
}
sb.setLength(sb.length() - 2);
sb.append(AbstractJsonLexerKt.END_LIST);
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
boolean z = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeBoolean(parcel, 1, z);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,35 @@
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.libs.identity.ClientIdentity;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzae implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ClientIdentity clientIdentity = null;
boolean z = false;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
z = SafeParcelReader.readBoolean(parcel, header);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
clientIdentity = (ClientIdentity) SafeParcelReader.createParcelable(parcel, header, ClientIdentity.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new zzad(z, clientIdentity);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzad[i];
}
}
@@ -0,0 +1,93 @@
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;
import com.google.android.gms.libs.identity.ClientIdentity;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzaf implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
WorkSource workSource = new WorkSource();
ClientIdentity clientIdentity = null;
boolean z = false;
int i = 0;
int i2 = 0;
boolean z2 = false;
long j = -1;
float f = 0.0f;
int i3 = Integer.MAX_VALUE;
long j2 = Long.MAX_VALUE;
long j3 = Long.MAX_VALUE;
long j4 = 0;
long j5 = 600000;
long j6 = 3600000;
int i4 = 102;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
i4 = SafeParcelReader.readInt(parcel, header);
break;
case 2:
j6 = SafeParcelReader.readLong(parcel, header);
break;
case 3:
j5 = SafeParcelReader.readLong(parcel, header);
break;
case 4:
case 14:
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
case 5:
j2 = SafeParcelReader.readLong(parcel, header);
break;
case 6:
i3 = SafeParcelReader.readInt(parcel, header);
break;
case 7:
f = SafeParcelReader.readFloat(parcel, header);
break;
case 8:
j4 = SafeParcelReader.readLong(parcel, header);
break;
case 9:
z = SafeParcelReader.readBoolean(parcel, header);
break;
case 10:
j3 = SafeParcelReader.readLong(parcel, header);
break;
case 11:
j = SafeParcelReader.readLong(parcel, header);
break;
case 12:
i = SafeParcelReader.readInt(parcel, header);
break;
case 13:
i2 = SafeParcelReader.readInt(parcel, header);
break;
case 15:
z2 = SafeParcelReader.readBoolean(parcel, header);
break;
case 16:
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, header, WorkSource.CREATOR);
break;
case 17:
clientIdentity = (ClientIdentity) SafeParcelReader.createParcelable(parcel, header, ClientIdentity.CREATOR);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationRequest(i4, j6, j5, j4, j2, j3, i3, f, z, j, i, i2, z2, workSource, clientIdentity);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationRequest[i];
}
}
@@ -0,0 +1,32 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzag implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
List listCreateTypedList = LocationResult.zza;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
if (SafeParcelReader.getFieldId(header) != 1) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
listCreateTypedList = SafeParcelReader.createTypedList(parcel, header, Location.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationResult(listCreateTypedList);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationResult[i];
}
}
@@ -0,0 +1,38 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzah implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
ArrayList arrayListCreateTypedList = null;
boolean z2 = false;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, LocationRequest.CREATOR);
} else if (fieldId == 2) {
z = SafeParcelReader.readBoolean(parcel, header);
} else if (fieldId != 3) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
z2 = SafeParcelReader.readBoolean(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationSettingsRequest(arrayListCreateTypedList, z, z2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationSettingsRequest[i];
}
}
@@ -0,0 +1,35 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzai implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
Status status = null;
LocationSettingsStates locationSettingsStates = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
status = (Status) SafeParcelReader.createParcelable(parcel, header, Status.CREATOR);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
locationSettingsStates = (LocationSettingsStates) SafeParcelReader.createParcelable(parcel, header, LocationSettingsStates.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationSettingsResult(status, locationSettingsStates);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationSettingsResult[i];
}
}
@@ -0,0 +1,53 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzaj implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
boolean z5 = false;
boolean z6 = false;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
z = SafeParcelReader.readBoolean(parcel, header);
break;
case 2:
z2 = SafeParcelReader.readBoolean(parcel, header);
break;
case 3:
z3 = SafeParcelReader.readBoolean(parcel, header);
break;
case 4:
z4 = SafeParcelReader.readBoolean(parcel, header);
break;
case 5:
z5 = SafeParcelReader.readBoolean(parcel, header);
break;
case 6:
z6 = SafeParcelReader.readBoolean(parcel, header);
break;
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new LocationSettingsStates(z, z2, z3, z4, z5, z6);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new LocationSettingsStates[i];
}
}
@@ -0,0 +1,98 @@
package com.google.android.gms.location;
import android.location.Location;
import android.os.Bundle;
import android.os.SystemClock;
import androidx.core.location.LocationCompat;
import com.google.android.gms.libs.identity.zzeo;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzak {
public static final /* synthetic */ int zza = 0;
private static final DecimalFormat zzb = new DecimalFormat(".000000", DecimalFormatSymbols.getInstance(Locale.ROOT));
private static final DecimalFormat zzc;
private static final StringBuilder zzd;
static {
DecimalFormat decimalFormat = new DecimalFormat(".##", DecimalFormatSymbols.getInstance(Locale.ROOT));
zzc = decimalFormat;
decimalFormat.setRoundingMode(RoundingMode.DOWN);
zzd = new StringBuilder();
}
public static StringBuilder zza(Location location, StringBuilder sb) {
sb.ensureCapacity(100);
if (location == null) {
sb.append((String) null);
return sb;
}
sb.append("{");
sb.append(location.getProvider());
sb.append(", ");
if (LocationCompat.isMock(location)) {
sb.append("mock, ");
}
DecimalFormat decimalFormat = zzb;
sb.append(decimalFormat.format(location.getLatitude()));
sb.append(",");
sb.append(decimalFormat.format(location.getLongitude()));
if (location.hasAccuracy()) {
sb.append("±");
sb.append(zzc.format(location.getAccuracy()));
sb.append("m");
}
if (location.hasAltitude()) {
sb.append(", alt=");
DecimalFormat decimalFormat2 = zzc;
sb.append(decimalFormat2.format(location.getAltitude()));
if (LocationCompat.hasVerticalAccuracy(location)) {
sb.append("±");
sb.append(decimalFormat2.format(LocationCompat.getVerticalAccuracyMeters(location)));
}
sb.append("m");
}
if (location.hasSpeed()) {
sb.append(", spd=");
DecimalFormat decimalFormat3 = zzc;
sb.append(decimalFormat3.format(location.getSpeed()));
if (LocationCompat.hasSpeedAccuracy(location)) {
sb.append("±");
sb.append(decimalFormat3.format(LocationCompat.getSpeedAccuracyMetersPerSecond(location)));
}
sb.append("m/s");
}
if (location.hasBearing()) {
sb.append(", brg=");
DecimalFormat decimalFormat4 = zzc;
sb.append(decimalFormat4.format(location.getBearing()));
if (LocationCompat.hasBearingAccuracy(location)) {
sb.append("±");
sb.append(decimalFormat4.format(LocationCompat.getBearingAccuracyDegrees(location)));
}
sb.append("°");
}
Bundle extras = location.getExtras();
String string = extras != null ? extras.getString("floorLabel") : null;
if (string != null) {
sb.append(", fl=");
sb.append(string);
}
Bundle extras2 = location.getExtras();
String string2 = extras2 != null ? extras2.getString("levelId") : null;
if (string2 != null) {
sb.append(", lv=");
sb.append(string2);
}
long jCurrentTimeMillis = System.currentTimeMillis() - SystemClock.elapsedRealtime();
sb.append(", ert=");
sb.append(zzeo.zza(LocationCompat.getElapsedRealtimeMillis(location) + jCurrentTimeMillis));
sb.append(AbstractJsonLexerKt.END_OBJ);
return sb;
}
}
@@ -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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
@Deprecated
public final class zzal extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzal> CREATOR = new zzam();
public final int zza;
public final int zzb;
public final long zzc;
public final long zzd;
zzal(int i, int i2, long j, long j2) {
this.zza = i;
this.zzb = i2;
this.zzc = j;
this.zzd = j2;
}
public final boolean equals(Object obj) {
if (obj instanceof zzal) {
zzal zzalVar = (zzal) obj;
if (this.zza == zzalVar.zza && this.zzb == zzalVar.zzb && this.zzc == zzalVar.zzc && this.zzd == zzalVar.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() {
int i = this.zza;
int length = String.valueOf(i).length();
int i2 = this.zzb;
int length2 = String.valueOf(i2).length();
long j = this.zzd;
int length3 = String.valueOf(j).length();
long j2 = this.zzc;
StringBuilder sb = new StringBuilder(length + 50 + length2 + 18 + length3 + 17 + String.valueOf(j2).length());
sb.append("NetworkLocationStatus: Wifi status: ");
sb.append(i);
sb.append(" Cell status: ");
sb.append(i2);
sb.append(" elapsed time NS: ");
sb.append(j);
sb.append(" system time ms: ");
sb.append(j2);
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int i2 = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, i2);
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
SafeParcelWriter.writeLong(parcel, 3, this.zzc);
SafeParcelWriter.writeLong(parcel, 4, this.zzd);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,40 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzam implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
long j = -1;
long j2 = -1;
int i = 1;
int i2 = 1;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 2) {
i2 = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 3) {
j = SafeParcelReader.readLong(parcel, header);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
j2 = SafeParcelReader.readLong(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new zzal(i, i2, j, j2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzal[i];
}
}
@@ -0,0 +1,36 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzan {
public static int zza(int i) {
boolean z = true;
if (i != 100 && i != 102 && i != 104) {
if (i == 105) {
i = 105;
} else {
z = false;
}
}
Preconditions.checkArgument(z, "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,65 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzao implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
int i3 = 0;
int i4 = 0;
int i5 = 0;
int i6 = 0;
int i7 = 0;
boolean z = false;
int i8 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
i = SafeParcelReader.readInt(parcel, header);
break;
case 2:
i2 = SafeParcelReader.readInt(parcel, header);
break;
case 3:
i3 = SafeParcelReader.readInt(parcel, header);
break;
case 4:
i4 = SafeParcelReader.readInt(parcel, header);
break;
case 5:
i5 = SafeParcelReader.readInt(parcel, header);
break;
case 6:
i6 = SafeParcelReader.readInt(parcel, header);
break;
case 7:
i7 = SafeParcelReader.readInt(parcel, header);
break;
case 8:
z = SafeParcelReader.readBoolean(parcel, header);
break;
case 9:
i8 = SafeParcelReader.readInt(parcel, header);
break;
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new SleepClassifyEvent(i, i2, i3, i4, i5, i6, i7, z, i8);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new SleepClassifyEvent[i];
}
}
@@ -0,0 +1,43 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzap implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
int i3 = 0;
long j = 0;
long j2 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
j = SafeParcelReader.readLong(parcel, header);
} else if (fieldId == 2) {
j2 = SafeParcelReader.readLong(parcel, header);
} else if (fieldId == 3) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 4) {
i2 = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 5) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
i3 = SafeParcelReader.readInt(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new SleepSegmentEvent(j, j2, i, i2, i3);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new SleepSegmentEvent[i];
}
}
@@ -0,0 +1,35 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzaq implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
ArrayList arrayListCreateTypedList = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, zzas.CREATOR);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
i = SafeParcelReader.readInt(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new SleepSegmentRequest(arrayListCreateTypedList, i);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new SleepSegmentRequest[i];
}
}
@@ -0,0 +1,33 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzar {
public static int zza(int i) {
boolean z = true;
if (i != 0 && i != 1) {
if (i == 2) {
i = 2;
} else {
z = false;
}
}
Preconditions.checkArgument(z, "throttle behavior %d must be a ThrottleBehavior.THROTTLE_* constant", Integer.valueOf(i));
return i;
}
public static String zzb(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,78 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzas extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzas> CREATOR = new zzat();
private final int zza;
private final int zzb;
private final int zzc;
private final int zzd;
public zzas(int i, int i2, int i3, int i4) {
Preconditions.checkState(i >= 0 && i <= 23, "Start hour must be in range [0, 23].");
Preconditions.checkState(i2 >= 0 && i2 <= 59, "Start minute must be in range [0, 59].");
Preconditions.checkState(i3 >= 0 && i3 <= 23, "End hour must be in range [0, 23].");
Preconditions.checkState(i4 >= 0 && i4 <= 59, "End minute must be in range [0, 59].");
Preconditions.checkState(((i + i2) + i3) + i4 > 0, "Parameters can't be all 0.");
this.zza = i;
this.zzb = i2;
this.zzc = i3;
this.zzd = i4;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof zzas)) {
return false;
}
zzas zzasVar = (zzas) obj;
return this.zza == zzasVar.zza && this.zzb == zzasVar.zzb && this.zzc == zzasVar.zzc && this.zzd == zzasVar.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() {
int i = this.zza;
int length = String.valueOf(i).length();
int i2 = this.zzb;
int length2 = String.valueOf(i2).length();
int i3 = this.zzc;
int length3 = String.valueOf(i3).length();
int i4 = this.zzd;
StringBuilder sb = new StringBuilder(length + 50 + length2 + 10 + length3 + 12 + String.valueOf(i4).length() + 1);
sb.append("UserPreferredSleepWindow [startHour=");
sb.append(i);
sb.append(", startMinute=");
sb.append(i2);
sb.append(", endHour=");
sb.append(i3);
sb.append(", endMinute=");
sb.append(i4);
sb.append("]");
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int i2 = this.zza;
int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, i2);
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
SafeParcelWriter.writeInt(parcel, 3, this.zzc);
SafeParcelWriter.writeInt(parcel, 4, this.zzd);
SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
}
}
@@ -0,0 +1,40 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzat implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
int i3 = 0;
int i4 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 2) {
i2 = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 3) {
i3 = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
i4 = SafeParcelReader.readInt(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new zzas(i, i2, i3, i4);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzas[i];
}
}
@@ -0,0 +1,56 @@
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.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzb extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzb> CREATOR = new zzc();
private final long zza;
private final boolean zzb;
private final WorkSource zzc;
private final String zzd;
private final int[] zze;
private final boolean zzf;
private final String zzg;
private final long zzh;
private String zzi;
zzb(long j, boolean z, WorkSource workSource, String str, int[] iArr, boolean z2, String str2, long j2, String str3) {
this.zza = j;
this.zzb = z;
this.zzc = workSource;
this.zzd = str;
this.zze = iArr;
this.zzf = z2;
this.zzg = str2;
this.zzh = j2;
this.zzi = str3;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int iBeginObjectHeader = 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, iBeginObjectHeader);
}
public final zzb zza(String str) {
this.zzi = str;
return this;
}
}
@@ -0,0 +1,66 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzc implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
WorkSource workSource = null;
String strCreateString = null;
int[] iArrCreateIntArray = null;
String strCreateString2 = null;
String strCreateString3 = null;
long j = 0;
long j2 = 0;
boolean z = false;
boolean z2 = false;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
j = SafeParcelReader.readLong(parcel, header);
break;
case 2:
z = SafeParcelReader.readBoolean(parcel, header);
break;
case 3:
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, header, WorkSource.CREATOR);
break;
case 4:
strCreateString = SafeParcelReader.createString(parcel, header);
break;
case 5:
iArrCreateIntArray = SafeParcelReader.createIntArray(parcel, header);
break;
case 6:
z2 = SafeParcelReader.readBoolean(parcel, header);
break;
case 7:
strCreateString2 = SafeParcelReader.createString(parcel, header);
break;
case 8:
j2 = SafeParcelReader.readLong(parcel, header);
break;
case 9:
strCreateString3 = SafeParcelReader.createString(parcel, header);
break;
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new zzb(j, z, workSource, strCreateString, iArrCreateIntArray, z2, strCreateString2, j2, strCreateString3);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzb[i];
}
}
@@ -0,0 +1,45 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzd implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ArrayList arrayListCreateTypedList = null;
Bundle bundleCreateBundle = null;
int i = 0;
long j = 0;
long j2 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, DetectedActivity.CREATOR);
} else if (fieldId == 2) {
j = SafeParcelReader.readLong(parcel, header);
} else if (fieldId == 3) {
j2 = SafeParcelReader.readLong(parcel, header);
} else if (fieldId == 4) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 5) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
bundleCreateBundle = SafeParcelReader.createBundle(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new ActivityRecognitionResult(arrayListCreateTypedList, j, j2, i, bundleCreateBundle);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ActivityRecognitionResult[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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zze implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
i2 = SafeParcelReader.readInt(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new ActivityTransition(i, i2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ActivityTransition[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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzf implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
long j = 0;
int i = 0;
int i2 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId == 2) {
i2 = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 3) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
j = SafeParcelReader.readLong(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new ActivityTransitionEvent(i, i2, j);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ActivityTransitionEvent[i];
}
}
@@ -0,0 +1,30 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Comparator;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
final class zzg implements Comparator {
zzg() {
}
@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,42 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzh implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ArrayList arrayListCreateTypedList = null;
String strCreateString = null;
ArrayList arrayListCreateTypedList2 = null;
String strCreateString2 = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, ActivityTransition.CREATOR);
} else if (fieldId == 2) {
strCreateString = SafeParcelReader.createString(parcel, header);
} else if (fieldId == 3) {
arrayListCreateTypedList2 = SafeParcelReader.createTypedList(parcel, header, ClientIdentity.CREATOR);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
strCreateString2 = SafeParcelReader.createString(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new ActivityTransitionRequest(arrayListCreateTypedList, strCreateString, arrayListCreateTypedList2, strCreateString2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ActivityTransitionRequest[i];
}
}
@@ -0,0 +1,36 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzi implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ArrayList arrayListCreateTypedList = null;
Bundle bundleCreateBundle = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, ActivityTransitionEvent.CREATOR);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
bundleCreateBundle = SafeParcelReader.createBundle(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new ActivityTransitionResult(arrayListCreateTypedList, bundleCreateBundle);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ActivityTransitionResult[i];
}
}
@@ -0,0 +1,64 @@
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;
import com.google.android.gms.libs.identity.ClientIdentity;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzj implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
WorkSource workSource = new WorkSource();
ClientIdentity clientIdentity = null;
int i = 0;
boolean z = false;
int i2 = 0;
long j = Long.MAX_VALUE;
long j2 = Long.MAX_VALUE;
int i3 = 102;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(header)) {
case 1:
j = SafeParcelReader.readLong(parcel, header);
break;
case 2:
i = SafeParcelReader.readInt(parcel, header);
break;
case 3:
i3 = SafeParcelReader.readInt(parcel, header);
break;
case 4:
j2 = SafeParcelReader.readLong(parcel, header);
break;
case 5:
z = SafeParcelReader.readBoolean(parcel, header);
break;
case 6:
workSource = (WorkSource) SafeParcelReader.createParcelable(parcel, header, WorkSource.CREATOR);
break;
case 7:
i2 = SafeParcelReader.readInt(parcel, header);
break;
case 8:
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
case 9:
clientIdentity = (ClientIdentity) SafeParcelReader.createParcelable(parcel, header, ClientIdentity.CREATOR);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new CurrentLocationRequest(j, i, i3, j2, z, i2, workSource, clientIdentity);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new CurrentLocationRequest[i];
}
}
@@ -0,0 +1,21 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Comparator;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
final class zzk implements Comparator {
zzk() {
}
@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 iCompareTo = Integer.valueOf(detectedActivity2.getConfidence()).compareTo(Integer.valueOf(detectedActivity.getConfidence()));
return iCompareTo == 0 ? Integer.valueOf(detectedActivity.getType()).compareTo(Integer.valueOf(detectedActivity2.getType())) : iCompareTo;
}
}
@@ -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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzl implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
i2 = SafeParcelReader.readInt(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new DetectedActivity(i, i2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new DetectedActivity[i];
}
}
@@ -0,0 +1,59 @@
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzm implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
float f = 0.0f;
float f2 = 0.0f;
float f3 = 0.0f;
float f4 = 0.0f;
byte b = 0;
long j = 0;
float[] fArrCreateFloatArray = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId != 1) {
switch (fieldId) {
case 4:
f = SafeParcelReader.readFloat(parcel, header);
break;
case 5:
f2 = SafeParcelReader.readFloat(parcel, header);
break;
case 6:
j = SafeParcelReader.readLong(parcel, header);
break;
case 7:
b = SafeParcelReader.readByte(parcel, header);
break;
case 8:
f3 = SafeParcelReader.readFloat(parcel, header);
break;
case 9:
f4 = SafeParcelReader.readFloat(parcel, header);
break;
default:
SafeParcelReader.skipUnknownField(parcel, header);
break;
}
} else {
fArrCreateFloatArray = SafeParcelReader.createFloatArray(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new DeviceOrientation(fArrCreateFloatArray, f, f2, j, b, f3, f4);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new DeviceOrientation[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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzn implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
long j = 0;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 2) {
j = SafeParcelReader.readLong(parcel, header);
} else if (fieldId != 6) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
z = SafeParcelReader.readBoolean(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new DeviceOrientationRequest(j, z);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new DeviceOrientationRequest[i];
}
}
@@ -0,0 +1,58 @@
package com.google.android.gms.location;
import com.google.android.gms.common.Feature;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzo {
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;
public static final Feature zzm;
public static final Feature zzn;
public static final Feature zzo;
public static final Feature[] zzp;
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;
Feature feature12 = new Feature("flp_debug_updates", 1L);
zzl = feature12;
Feature feature13 = new Feature("google_location_accuracy_enabled", 1L);
zzm = feature13;
Feature feature14 = new Feature("geofences_with_callback", 1L);
zzn = feature14;
Feature feature15 = new Feature("location_enabled", 1L);
zzo = feature15;
zzp = new Feature[]{feature, feature2, feature3, feature4, feature5, feature6, feature7, feature8, feature9, feature10, feature11, feature12, feature13, feature14, feature15};
}
}
@@ -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;
import com.google.android.gms.libs.identity.zzek;
import java.util.ArrayList;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzp implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ArrayList arrayListCreateTypedList = null;
int i = 0;
String strCreateString = null;
while (parcel.dataPosition() < iValidateObjectHeader) {
int header = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(header);
if (fieldId == 1) {
arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header, zzek.CREATOR);
} else if (fieldId == 2) {
i = SafeParcelReader.readInt(parcel, header);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, header);
} else {
strCreateString = SafeParcelReader.createString(parcel, header);
}
}
SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
return new GeofencingRequest(arrayListCreateTypedList, i, strCreateString);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new GeofencingRequest[i];
}
}
@@ -0,0 +1,33 @@
package com.google.android.gms.location;
import com.google.android.gms.common.internal.Preconditions;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzq {
public static int zza(int i) {
boolean z = true;
if (i != 0 && i != 1) {
if (i == 2) {
i = 2;
} else {
z = false;
}
}
Preconditions.checkArgument(z, "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,17 @@
package com.google.android.gms.location;
import android.os.IBinder;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzr extends com.google.android.gms.libs.identity.zza implements zzt {
zzr(IBinder iBinder) {
super(iBinder, "com.google.android.gms.location.IDeviceOrientationListener");
}
@Override // com.google.android.gms.location.zzt
public final void zzd(DeviceOrientation deviceOrientation) throws RemoteException {
throw null;
}
}
@@ -0,0 +1,30 @@
package com.google.android.gms.location;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public abstract class zzs extends com.google.android.gms.libs.identity.zzb implements zzt {
public zzs() {
super("com.google.android.gms.location.IDeviceOrientationListener");
}
public static zzt zzb(IBinder iBinder) {
IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.IDeviceOrientationListener");
return iInterfaceQueryLocalInterface instanceof zzt ? (zzt) iInterfaceQueryLocalInterface : new zzr(iBinder);
}
@Override // com.google.android.gms.libs.identity.zzb
protected final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i != 1) {
return false;
}
DeviceOrientation deviceOrientation = (DeviceOrientation) com.google.android.gms.libs.identity.zzc.zza(parcel, DeviceOrientation.CREATOR);
com.google.android.gms.libs.identity.zzc.zzd(parcel);
zzd(deviceOrientation);
return true;
}
}
@@ -0,0 +1,10 @@
package com.google.android.gms.location;
import android.os.IInterface;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface zzt extends IInterface {
void zzd(DeviceOrientation deviceOrientation) throws RemoteException;
}
@@ -0,0 +1,27 @@
package com.google.android.gms.location;
import android.os.IBinder;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzu extends com.google.android.gms.libs.identity.zza implements zzw {
zzu(IBinder iBinder) {
super(iBinder, "com.google.android.gms.location.ILocationCallback");
}
@Override // com.google.android.gms.location.zzw
public final void zzd(LocationResult locationResult) throws RemoteException {
throw null;
}
@Override // com.google.android.gms.location.zzw
public final void zze(LocationAvailability locationAvailability) throws RemoteException {
throw null;
}
@Override // com.google.android.gms.location.zzw
public final void zzf() throws RemoteException {
throw null;
}
}
@@ -0,0 +1,38 @@
package com.google.android.gms.location;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public abstract class zzv extends com.google.android.gms.libs.identity.zzb implements zzw {
public zzv() {
super("com.google.android.gms.location.ILocationCallback");
}
public static zzw zzb(IBinder iBinder) {
IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.ILocationCallback");
return iInterfaceQueryLocalInterface instanceof zzw ? (zzw) iInterfaceQueryLocalInterface : new zzu(iBinder);
}
@Override // com.google.android.gms.libs.identity.zzb
protected final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i == 1) {
LocationResult locationResult = (LocationResult) com.google.android.gms.libs.identity.zzc.zza(parcel, LocationResult.CREATOR);
com.google.android.gms.libs.identity.zzc.zzd(parcel);
zzd(locationResult);
} else if (i == 2) {
LocationAvailability locationAvailability = (LocationAvailability) com.google.android.gms.libs.identity.zzc.zza(parcel, LocationAvailability.CREATOR);
com.google.android.gms.libs.identity.zzc.zzd(parcel);
zze(locationAvailability);
} else {
if (i != 3) {
return false;
}
zzf();
}
return true;
}
}
@@ -0,0 +1,14 @@
package com.google.android.gms.location;
import android.os.IInterface;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface zzw extends IInterface {
void zzd(LocationResult locationResult) throws RemoteException;
void zze(LocationAvailability locationAvailability) throws RemoteException;
void zzf() throws RemoteException;
}
@@ -0,0 +1,23 @@
package com.google.android.gms.location;
import android.location.Location;
import android.os.IBinder;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public final class zzx extends com.google.android.gms.libs.identity.zza implements zzz {
zzx(IBinder iBinder) {
super(iBinder, "com.google.android.gms.location.ILocationListener");
}
@Override // com.google.android.gms.location.zzz
public final void zzd(Location location) throws RemoteException {
throw null;
}
@Override // com.google.android.gms.location.zzz
public final void zze() throws RemoteException {
throw null;
}
}
@@ -0,0 +1,35 @@
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;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public abstract class zzy extends com.google.android.gms.libs.identity.zzb implements zzz {
public zzy() {
super("com.google.android.gms.location.ILocationListener");
}
public static zzz zzb(IBinder iBinder) {
IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.ILocationListener");
return iInterfaceQueryLocalInterface instanceof zzz ? (zzz) iInterfaceQueryLocalInterface : new zzx(iBinder);
}
@Override // com.google.android.gms.libs.identity.zzb
protected final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i == 1) {
Location location = (Location) com.google.android.gms.libs.identity.zzc.zza(parcel, Location.CREATOR);
com.google.android.gms.libs.identity.zzc.zzd(parcel);
zzd(location);
} else {
if (i != 2) {
return false;
}
zze();
}
return true;
}
}
@@ -0,0 +1,13 @@
package com.google.android.gms.location;
import android.location.Location;
import android.os.IInterface;
import android.os.RemoteException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-location@@21.2.0 */
/* JADX INFO: loaded from: classes2.dex */
public interface zzz extends IInterface {
void zzd(Location location) throws RemoteException;
void zze() throws RemoteException;
}