Add ALocation constructor
This commit is contained in:
parent
a247d2e9c2
commit
3d2a2044b4
1 changed files with 18 additions and 0 deletions
|
@ -25,6 +25,24 @@ public class ALocation extends AidlParams {
|
||||||
private ALocation() {
|
private ALocation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ALocation(double latitude, double longitude, long time, boolean hasAltitude, double altitude,
|
||||||
|
boolean hasSpeed, float speed, boolean hasBearing, float bearing,
|
||||||
|
boolean hasAccuracy, float accuracy, boolean hasVerticalAccuracy, float verticalAccuracy) {
|
||||||
|
this.latitude = latitude;
|
||||||
|
this.longitude = longitude;
|
||||||
|
this.time = time;
|
||||||
|
this.hasAltitude = hasAltitude;
|
||||||
|
this.altitude = altitude;
|
||||||
|
this.hasSpeed = hasSpeed;
|
||||||
|
this.speed = speed;
|
||||||
|
this.hasBearing = hasBearing;
|
||||||
|
this.bearing = bearing;
|
||||||
|
this.hasAccuracy = hasAccuracy;
|
||||||
|
this.accuracy = accuracy;
|
||||||
|
this.hasVerticalAccuracy = hasVerticalAccuracy;
|
||||||
|
this.verticalAccuracy = verticalAccuracy;
|
||||||
|
}
|
||||||
|
|
||||||
public ALocation(Parcel in) {
|
public ALocation(Parcel in) {
|
||||||
readFromParcel(in);
|
readFromParcel(in);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue