alexandroid/decompiled/jadx/sources/com/google/android/gms/location/Geofence.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

92 lines
3 KiB
Java

package com.google.android.gms.location;
import android.os.SystemClock;
import com.google.android.gms.common.util.VisibleForTesting;
import com.google.android.gms.internal.location.zzbh;
import rx.Single$$ExternalSyntheticBUOutline0;
@VisibleForTesting
/* loaded from: classes7.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;
@VisibleForTesting
public static final class Builder {
private double zzah;
private double zzai;
private float zzaj;
private String zzad = null;
private int zzae = 0;
private long zzaf = Long.MIN_VALUE;
private short zzag = -1;
private int zzak = 0;
private int zzal = -1;
public final Geofence build() {
String str;
if (this.zzad != null) {
int i = this.zzae;
if (i == 0) {
str = "Transitions types not set.";
} else if ((i & 4) != 0 && this.zzal < 0) {
str = "Non-negative loitering delay needs to be set when transition types include GEOFENCE_TRANSITION_DWELLING.";
} else if (this.zzaf == Long.MIN_VALUE) {
str = "Expiration not set.";
} else if (this.zzag == -1) {
str = "Geofence region not set.";
} else {
if (this.zzak >= 0) {
return new zzbh(this.zzad, this.zzae, (short) 1, this.zzah, this.zzai, this.zzaj, this.zzaf, this.zzak, this.zzal);
}
str = "Notification responsiveness should be nonnegative.";
}
} else {
str = "Request ID not set.";
}
Single$$ExternalSyntheticBUOutline0.m$3(str);
return null;
}
public final Builder setCircularRegion(double d, double d2, float f) {
this.zzag = (short) 1;
this.zzah = d;
this.zzai = d2;
this.zzaj = f;
return this;
}
public final Builder setExpirationDuration(long j) {
if (j < 0) {
this.zzaf = -1L;
return this;
}
this.zzaf = SystemClock.elapsedRealtime() + j;
return this;
}
public final Builder setLoiteringDelay(int i) {
this.zzal = i;
return this;
}
public final Builder setNotificationResponsiveness(int i) {
this.zzak = i;
return this;
}
public final Builder setRequestId(String str) {
this.zzad = str;
return this;
}
public final Builder setTransitionTypes(int i) {
this.zzae = i;
return this;
}
}
String getRequestId();
}