520 lines
11 KiB
Smali
520 lines
11 KiB
Smali
.class public Lcom/google/android/gms/location/DetectedActivity;
|
|
.super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Class;
|
|
creator = "DetectedActivityCreator"
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Reserved;
|
|
value = {
|
|
0x3e8
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/google/android/gms/location/DetectedActivity;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final IN_VEHICLE:I = 0x0
|
|
|
|
.field public static final ON_BICYCLE:I = 0x1
|
|
|
|
.field public static final ON_FOOT:I = 0x2
|
|
|
|
.field public static final RUNNING:I = 0x8
|
|
|
|
.field public static final STILL:I = 0x3
|
|
|
|
.field public static final TILTING:I = 0x5
|
|
|
|
.field public static final UNKNOWN:I = 0x4
|
|
|
|
.field public static final WALKING:I = 0x7
|
|
|
|
.field private static final zzo:Ljava/util/Comparator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Comparator<",
|
|
"Lcom/google/android/gms/location/DetectedActivity;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final zzp:[I
|
|
|
|
.field private static final zzq:[I
|
|
|
|
.field private static final zzr:[I
|
|
|
|
|
|
# instance fields
|
|
.field private zzi:I
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
id = 0x1
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private zzs:I
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
|
|
id = 0x2
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/zzh;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/location/zzh;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/DetectedActivity;->zzo:Ljava/util/Comparator;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [I
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/DetectedActivity;->zzp:[I
|
|
|
|
const/16 v0, 0x11
|
|
|
|
new-array v0, v0, [I
|
|
|
|
fill-array-data v0, :array_1
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/DetectedActivity;->zzq:[I
|
|
|
|
const/16 v0, 0x8
|
|
|
|
new-array v0, v0, [I
|
|
|
|
fill-array-data v0, :array_2
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/DetectedActivity;->zzr:[I
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/zzi;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/location/zzi;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/DetectedActivity;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x9
|
|
0xa
|
|
.end array-data
|
|
|
|
:array_1
|
|
.array-data 4
|
|
0x0
|
|
0x1
|
|
0x2
|
|
0x4
|
|
0x5
|
|
0x6
|
|
0x7
|
|
0x8
|
|
0xa
|
|
0xb
|
|
0xc
|
|
0xd
|
|
0xe
|
|
0x10
|
|
0x11
|
|
0x12
|
|
0x13
|
|
.end array-data
|
|
|
|
:array_2
|
|
.array-data 4
|
|
0x0
|
|
0x1
|
|
0x2
|
|
0x3
|
|
0x7
|
|
0x8
|
|
0x10
|
|
0x11
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public constructor <init>(II)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x1
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
|
|
id = 0x2
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Constructor;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
|
|
|
|
iput p1, p0, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
iput p2, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zzb(I)V
|
|
.locals 5
|
|
|
|
sget-object v0, Lcom/google/android/gms/location/DetectedActivity;->zzr:[I
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
aget v4, v0, v2
|
|
|
|
if-ne v4, p0, :cond_0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-nez v3, :cond_2
|
|
|
|
const/16 v0, 0x51
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is not a valid DetectedActivity supported by Activity Transition API."
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "DetectedActivity"
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
check-cast p1, Lcom/google/android/gms/location/DetectedActivity;
|
|
|
|
iget v2, p0, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
iget v3, p1, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget v2, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
iget p1, p1, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
if-ne v2, p1, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public getConfidence()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getType()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-gt v0, v1, :cond_1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x4
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
iget v1, p0, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
iget v1, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/common/internal/Objects;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/gms/location/DetectedActivity;->getType()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_6
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_5
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x7
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const-string v0, "IN_FOUR_WHEELER_VEHICLE"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
const-string v0, "IN_TWO_WHEELER_VEHICLE"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_2
|
|
const-string v0, "IN_RAIL_VEHICLE"
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
const-string v0, "IN_ROAD_VEHICLE"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "RUNNING"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "WALKING"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v0, "TILTING"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-string v0, "UNKNOWN"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string v0, "STILL"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const-string v0, "ON_FOOT"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
const-string v0, "ON_BICYCLE"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
const-string v0, "IN_VEHICLE"
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
const/16 v2, 0x30
|
|
|
|
invoke-static {v0, v2}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I
|
|
|
|
move-result v2
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v2, "DetectedActivity [type="
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ", confidence="
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "]"
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x10
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 2
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->beginObjectHeader(Landroid/os/Parcel;)I
|
|
|
|
move-result p2
|
|
|
|
iget v0, p0, Lcom/google/android/gms/location/DetectedActivity;->zzi:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
|
|
|
|
iget v0, p0, Lcom/google/android/gms/location/DetectedActivity;->zzs:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
|
|
|
|
invoke-static {p1, p2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->finishObjectHeader(Landroid/os/Parcel;I)V
|
|
|
|
return-void
|
|
.end method
|