diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-19 10:57:31 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-19 10:57:31 -0800 |
commit | 3001a035439d8134a7d70d796376d1dfbff3cdcd (patch) | |
tree | 343ccdba15a594ff6e50c874a145232753315a30 /location | |
parent | da996f390e17e16f2dfa60e972e7ebc4f868f37e (diff) | |
download | frameworks_base-3001a035439d8134a7d70d796376d1dfbff3cdcd.zip frameworks_base-3001a035439d8134a7d70d796376d1dfbff3cdcd.tar.gz frameworks_base-3001a035439d8134a7d70d796376d1dfbff3cdcd.tar.bz2 |
auto import from //branches/cupcake/...@132276
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/Location.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index d381f6e..aacf857 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -19,6 +19,7 @@ package android.location; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; +import android.util.Printer; import java.text.DecimalFormat; import java.util.StringTokenizer; @@ -81,6 +82,16 @@ public class Location implements Parcelable { // Scratchpad private float[] mResults = new float[2]; + public void dump(Printer pw, String prefix) { + pw.println(prefix + "mProvider=" + mProvider + " mTime=" + mTime); + pw.println(prefix + "mLatitude=" + mLatitude + " mLongitude=" + mLongitude); + pw.println(prefix + "mHasAltitude=" + mHasAltitude + " mAltitude=" + mAltitude); + pw.println(prefix + "mHasSpeed=" + mHasSpeed + " mSpeed=" + mSpeed); + pw.println(prefix + "mHasBearing=" + mHasBearing + " mBearing=" + mBearing); + pw.println(prefix + "mHasAccuracy=" + mHasAccuracy + " mAccuracy=" + mAccuracy); + pw.println(prefix + "mExtras=" + mExtras); + } + /** * Constructs a new Location. By default, time, latitude, * longitude, and numSatellites are 0; hasAltitude, hasSpeed, and |