298 lines
6.0 KiB
Smali
298 lines
6.0 KiB
Smali
.class public Lcom/moji/location/geo/MJLatLonPoint;
|
|
.super Ljava/lang/Object;
|
|
.source "MJLatLonPoint.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/moji/location/geo/MJLatLonPoint;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private lat:D
|
|
|
|
.field private lng:D
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 74
|
|
new-instance v0, Lcom/moji/location/geo/MJLatLonPoint$1;
|
|
|
|
invoke-direct {v0}, Lcom/moji/location/geo/MJLatLonPoint$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/location/geo/MJLatLonPoint;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(DD)V
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 14
|
|
iput-wide p1, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
.line 15
|
|
iput-wide p3, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 2
|
|
|
|
.line 60
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 61
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readDouble()D
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
.line 62
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readDouble()D
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/moji/location/geo/MJLatLonPoint$1;)V
|
|
.locals 0
|
|
|
|
.line 9
|
|
invoke-direct {p0, p1}, Lcom/moji/location/geo/MJLatLonPoint;-><init>(Landroid/os/Parcel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 7
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 48
|
|
:cond_1
|
|
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_2
|
|
|
|
return v1
|
|
|
|
.line 51
|
|
:cond_2
|
|
check-cast p1, Lcom/moji/location/geo/MJLatLonPoint;
|
|
|
|
.line 52
|
|
iget-wide v2, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v2
|
|
|
|
iget-wide v4, p1, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-nez v6, :cond_3
|
|
|
|
iget-wide v2, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v2
|
|
|
|
iget-wide v4, p1, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long p1, v2, v4
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLat()D
|
|
.locals 2
|
|
|
|
.line 19
|
|
iget-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getLng()D
|
|
.locals 2
|
|
|
|
.line 27
|
|
iget-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 5
|
|
|
|
.line 36
|
|
iget-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v0
|
|
|
|
const/16 v2, 0x20
|
|
|
|
ushr-long v3, v0, v2
|
|
|
|
xor-long/2addr v0, v3
|
|
|
|
long-to-int v0, v0
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
.line 38
|
|
iget-wide v3, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Double;->doubleToLongBits(D)J
|
|
|
|
move-result-wide v3
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
ushr-long v1, v3, v2
|
|
|
|
xor-long/2addr v1, v3
|
|
|
|
long-to-int v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setLat(D)V
|
|
.locals 0
|
|
|
|
.line 23
|
|
iput-wide p1, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLng(D)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
iput-wide p1, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 57
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, ""
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ","
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 2
|
|
|
|
.line 70
|
|
iget-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lat:D
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeDouble(D)V
|
|
|
|
.line 71
|
|
iget-wide v0, p0, Lcom/moji/location/geo/MJLatLonPoint;->lng:D
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeDouble(D)V
|
|
|
|
return-void
|
|
.end method
|