History log of /frameworks/base/location/java/android/location/GpsStatus.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f6527aebbce5e2b6b771fa42ae499c2e7584bd26 24-May-2016 Wyatt Riley <wyattriley@google.com> Adding SBAS offset to Gps/Gnss SvStatus converter

Opposite sign of Glonass & BDS offsets. Noticed after screenshot search & further testing.

Bug: 28623392
Change-Id: I6a7c98f455ee7df278eed985ba57ec1c12d888e0
/frameworks/base/location/java/android/location/GpsStatus.java
49d9891c573f8c4994841b24f8d90690c342e8ae 18-May-2016 Wyatt Riley <wyattriley@google.com> Mapping up/down of legacy Gps vs. Gnss Status

- Maps incoming (from HAL) GpsSvStatus for Glonass, Beidou, SBAS, and QZSS
from defacto (NMEA-like) numbers to internal platform with detected constellation.
- Maps outgoing (to Java API) GpsStatus getSatellite info back into the de-facto
overloaded (beyond 32) "GPS" ID numbers.
- Simplifies Glonass ID definition for N (comments only.)
- This enables GPS/GNSS Test apps a non-degrading upgrade path.

Bug: 28623392
Change-Id: I9a19db1f11267032c6927daed767df5afa51c770
/frameworks/base/location/java/android/location/GpsStatus.java
e8abe8e5ad830bd130b258c6801d75f6542200b5 01-Apr-2016 Lifu Tang <lifu@google.com> Addressed API review comments and updated JavaDoc

Bug: 27274532
Bug: 27948390
Change-Id: I0255d2511deab788dcab9815def9c1287a50b7f9
/frameworks/base/location/java/android/location/GpsStatus.java
76a620f0482ba54a4921c7c7e7eeb8ea87c12d3e 27-Feb-2016 Lifu Tang <lifu@google.com> Addressed the review comments from API Council

Following are the review comments from API Council:

(Places below that reference "s/foo/bar/" below are suggesting that "foo" be
replaced with "bar".)

GnssClock
-- Class docs should not refer to "GPS" at the top level
-- s/InNs/Nanos/
-- s/Sec/Second/

GnssMeasurement
-- s/In// for "InUnitname"
-- s/Sec/Second/
-- s/Ms/Millis/
-- s/Deg/Degrees/
-- STATUS_GPS_LOCATION_DISABLED -> STATUS_GNSS_LOCATION_DISABLED

GnssMeasurementsEvent.Callback
-- "returns" -> "reports" in the method docs as the methods return void

LocationManager
-- register/unregisterGnssMeasurementEventCallback ->
register/unregisterGnssMeasurementsEventCallback (plural)

GnssNavigationMessage
-- MESSAGE_TYPE_ constants -> change to just TYPE_; the "MESSAGE" is redundant
with the class name
-- is a signed byte/short ok based on the standard here? If not consider using
int in the public api

GnssStatus
-- Make sure @IntDef exists for the constellation type
-- Please append unit types for values returned to match GnssMeasurement methods

GnssStatusCallback
-- Please document time base/units for the time parameter of onFirstFix

Bug: 27385557
Change-Id: Ifed6a2eca3fd7ba89b3ded6964a70376235af8f4
/frameworks/base/location/java/android/location/GpsStatus.java
9363b949a104786c87cd2cd18f206ff3c1957e5e 17-Feb-2016 Lifu Tang <lifu@google.com> Finalized GPS=>GNSS changes with documents

Bug: 27098594
Change-Id: I24529e60d8eb9b48b644cf01e5efc684e6f04839
/frameworks/base/location/java/android/location/GpsStatus.java
120480f17ae18bbe8c6fa7ec4854281fdf349b59 08-Feb-2016 Lifu Tang <lifu@google.com> Optimized the memory consumption and renamed PRN

Bug: 27058251
Change-Id: I2309943b1a4e7565868ed0f247b84edc631fbd59
/frameworks/base/location/java/android/location/GpsStatus.java
30f95a7d67870c28d2aaa88ee989c099f5670225 08-Jan-2016 Lifu Tang <lifu@google.com> Supported GNSS multi-constellation in frameworks

Change-Id: I82574afd3697c47e806d2cfaedc33756d0353b73
/frameworks/base/location/java/android/location/GpsStatus.java
6bde4683ae1f70f7b5e53f853b6a7479bcebd5d5 31-Jan-2015 destradaa <destradaa@google.com> Reduce memory usage of GpsStatus objects.

A simple GpsStatus object uses 9K of space, given that it initializes an array
of 255 GpsSatellite objects.
This change reduces the memory footprint in the average case, and keeps the
semantics of the API and its GpsSatellite sibling objects without any changes.
In a best case scenario it brings the memory usage per object to 1K.
It's likely in most cases that only 20-50 satellites will be in view. So the
usage should not exceeed half of the original memory usage.
It was considered to keep the internal array but a SparseArray provided bigger
memory savings in the test scenario of ~700B.

Change-Id: Ie2d2144d776a74d4904a08c0d6c5aec6d3bba7cc
/frameworks/base/location/java/android/location/GpsStatus.java
a3d2d769833c7b796d073fb4002efe21142a7dc4 15-Apr-2010 Mike Lockwood <lockwood@android.com> GpsStatus: Bounds check PRN to avoid array indexing exceptions.

Change-Id: Iea8b525dd8681f32cb7ce7415dad0ec665d9016d
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/location/java/android/location/GpsStatus.java
640992dec96fa88f0bbd42c6a02902640a000b35 06-Aug-2009 Mike Lockwood <lockwood@android.com> gps: Unhide GpsStatus.NmeaListener interface for receiving NMEA sentences

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/location/java/android/location/GpsStatus.java
b16e7800be4f879135f239f1f8f586f3712df01e 06-Aug-2009 Mike Lockwood <lockwood@android.com> gps: Add GpsStatus.NmeaListener interface for receiving NMEA sentences.

NMEA sentences are passed from the GPS engine to the GpsLocationProvider.
They are then sent via the IGpsStatusListener binder interface to clients
using the same path as the other GPS status information.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/location/java/android/location/GpsStatus.java
b7c4ae91d95cfdb9a87eca1f543ddb2fa38a7c45 06-May-2009 Mike Lockwood <lockwood@android.com> GpsStatus: Increase NUM_SATELLITES to 255 for future compatibility.

64 satellties are required for NavStar, WAAS, EGNOS, and GLONASS satellites.
Increasing to 255 allows for future compatibility with Galileo.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/location/java/android/location/GpsStatus.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/location/java/android/location/GpsStatus.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/location/java/android/location/GpsStatus.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/location/java/android/location/GpsStatus.java