215 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			215 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/gms/location/GeofencingEvent;
 | |
| .super Ljava/lang/Object;
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final errorCode:I
 | |
| 
 | |
| .field private final zzam:I
 | |
| 
 | |
| .field private final zzan:Ljava/util/List;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/List<",
 | |
|             "Lcom/google/android/gms/location/Geofence;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final zzao:Landroid/location/Location;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>(IILjava/util/List;Landroid/location/Location;)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(II",
 | |
|             "Ljava/util/List<",
 | |
|             "Lcom/google/android/gms/location/Geofence;",
 | |
|             ">;",
 | |
|             "Landroid/location/Location;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     iput p1, p0, Lcom/google/android/gms/location/GeofencingEvent;->errorCode:I
 | |
| 
 | |
|     iput p2, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzam:I
 | |
| 
 | |
|     iput-object p3, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzan:Ljava/util/List;
 | |
| 
 | |
|     iput-object p4, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzao:Landroid/location/Location;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static fromIntent(Landroid/content/Intent;)Lcom/google/android/gms/location/GeofencingEvent;
 | |
|     .locals 7
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     if-nez p0, :cond_0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :cond_0
 | |
|     const-string v1, "gms_error_code"
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     invoke-virtual {p0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const-string v3, "com.google.android.location.intent.extra.transition"
 | |
| 
 | |
|     invoke-virtual {p0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-eq v3, v2, :cond_2
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     if-eq v3, v4, :cond_1
 | |
| 
 | |
|     const/4 v4, 0x2
 | |
| 
 | |
|     if-eq v3, v4, :cond_1
 | |
| 
 | |
|     const/4 v4, 0x4
 | |
| 
 | |
|     if-ne v3, v4, :cond_2
 | |
| 
 | |
|     :cond_1
 | |
|     move v2, v3
 | |
| 
 | |
|     :cond_2
 | |
|     const-string v3, "com.google.android.location.intent.extra.geofence_list"
 | |
| 
 | |
|     invoke-virtual {p0, v3}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Ljava/util/ArrayList;
 | |
| 
 | |
|     if-nez v3, :cond_3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_3
 | |
|     new-instance v0, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     invoke-direct {v0, v4}, Ljava/util/ArrayList;-><init>(I)V
 | |
| 
 | |
|     invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     const/4 v5, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v5, v4, :cond_4
 | |
| 
 | |
|     invoke-virtual {v3, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     add-int/lit8 v5, v5, 0x1
 | |
| 
 | |
|     check-cast v6, [B
 | |
| 
 | |
|     invoke-static {v6}, Lcom/google/android/gms/internal/location/zzbh;->zza([B)Lcom/google/android/gms/internal/location/zzbh;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     invoke-virtual {v0, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_4
 | |
|     :goto_1
 | |
|     const-string v3, "com.google.android.location.intent.extra.triggering_location"
 | |
| 
 | |
|     invoke-virtual {p0, v3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Landroid/location/Location;
 | |
| 
 | |
|     new-instance v3, Lcom/google/android/gms/location/GeofencingEvent;
 | |
| 
 | |
|     invoke-direct {v3, v1, v2, v0, p0}, Lcom/google/android/gms/location/GeofencingEvent;-><init>(IILjava/util/List;Landroid/location/Location;)V
 | |
| 
 | |
|     return-object v3
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public getErrorCode()I
 | |
|     .locals 1
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/gms/location/GeofencingEvent;->errorCode:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getGeofenceTransition()I
 | |
|     .locals 1
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzam:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getTriggeringGeofences()Ljava/util/List;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Ljava/util/List<",
 | |
|             "Lcom/google/android/gms/location/Geofence;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzan:Ljava/util/List;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTriggeringLocation()Landroid/location/Location;
 | |
|     .locals 1
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/gms/location/GeofencingEvent;->zzao:Landroid/location/Location;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public hasError()Z
 | |
|     .locals 2
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/gms/location/GeofencingEvent;->errorCode:I
 | |
| 
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| .end method
 |