114 lines
3.8 KiB
Java
114 lines
3.8 KiB
Java
|
package com.google.android.gms.location;
|
||
|
|
||
|
import android.location.Location;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class GeofencingEvent {
|
||
|
private final int zza;
|
||
|
private final int zzb;
|
||
|
private final List zzc;
|
||
|
private final Location zzd;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:16:0x002a */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:23:0x002c */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static com.google.android.gms.location.GeofencingEvent fromIntent(android.content.Intent r12) {
|
||
|
/*
|
||
|
r0 = 0
|
||
|
if (r12 != 0) goto L4
|
||
|
return r0
|
||
|
L4:
|
||
|
java.lang.String r1 = "gms_error_code"
|
||
|
r2 = -1
|
||
|
int r1 = r12.getIntExtra(r1, r2)
|
||
|
java.lang.String r3 = "com.google.android.location.intent.extra.transition"
|
||
|
int r3 = r12.getIntExtra(r3, r2)
|
||
|
if (r3 != r2) goto L14
|
||
|
goto L1f
|
||
|
L14:
|
||
|
r4 = 1
|
||
|
if (r3 == r4) goto L20
|
||
|
r4 = 2
|
||
|
if (r3 == r4) goto L20
|
||
|
r4 = 4
|
||
|
if (r3 != r4) goto L1f
|
||
|
r3 = r4
|
||
|
goto L20
|
||
|
L1f:
|
||
|
r3 = r2
|
||
|
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.zzbj> r9 = com.google.android.gms.internal.location.zzbj.CREATOR
|
||
|
java.lang.Object r9 = r9.createFromParcel(r10)
|
||
|
com.google.android.gms.internal.location.zzbj r9 = (com.google.android.gms.internal.location.zzbj) 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 L6c
|
||
|
if (r1 != r2) goto L6c
|
||
|
return r0
|
||
|
L6c:
|
||
|
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 boolean hasError() {
|
||
|
return this.zza != -1;
|
||
|
}
|
||
|
|
||
|
public Location getTriggeringLocation() {
|
||
|
return this.zzd;
|
||
|
}
|
||
|
|
||
|
public List<Geofence> getTriggeringGeofences() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
|
||
|
public int getGeofenceTransition() {
|
||
|
return this.zzb;
|
||
|
}
|
||
|
|
||
|
public int getErrorCode() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
private GeofencingEvent(int i, int i2, List list, Location location) {
|
||
|
this.zza = i;
|
||
|
this.zzb = i2;
|
||
|
this.zzc = list;
|
||
|
this.zzd = location;
|
||
|
}
|
||
|
}
|