TreeHugger Robot
5b63d18ab2
Merge "Make GnssCapabilities methods public."
2022-10-13 16:33:45 +00:00
Yu-Han Yang
7756059320
Make GnssCapabilities methods public.
...
Bug: 252920075
Test: atest GnssCapabilitiesTest
Change-Id: Ide95f69c605f50f205f202640f9a51fd8c8e78b8
2022-10-13 00:14:20 +00:00
TreeHugger Robot
d71dd97d97
Merge "Use non-deprecated methods."
2022-10-10 18:04:04 +00:00
Yu-Han Yang
b1218f1de1
Add doc for PASSIVE_INTERVAL in older version
...
Bug: 251279388
Test: doc update only
Change-Id: I419da5319a8d414b277871848b3fad52fe060306
2022-10-06 20:44:41 +00:00
Kweku Adams
3bb858b2f4
Use non-deprecated methods.
...
Feature ID was renamed to Attribution Tag. The old methods were marked
@Deprecated and @removed.
Bug: 135214188
Test: atest MediaInserterTest
Change-Id: Id2fd77dcdc5125ea949c23825606e7a046697e8e
2022-10-03 15:48:50 +00:00
Yu-Han Yang
d2309fa3a9
Add passive listener support for GnssMeasurement
...
Bug: 248291428
Test: atest GnssMeasurementRegistrationTest
Change-Id: Ifac665ff1e85ee9625613e87548460c8974a81bc
2022-09-30 01:08:14 +00:00
Treehugger Robot
8f49373913
Merge "Clarify method names and improve debug" am: 1ab7ac7f56 am: 1d74b8207b am: a6a8219798 am: f1f8a7519c am: dd2eed7053
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217306
Change-Id: I35466159e53b25b3b00c0b2afd540a265b43f482
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-17 12:35:25 +00:00
Treehugger Robot
dd2eed7053
Merge "Clarify method names and improve debug" am: 1ab7ac7f56 am: 1d74b8207b am: a6a8219798 am: f1f8a7519c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217306
Change-Id: I0139bcffa3e11a90e36e228d371f478ae851d5c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-16 13:58:32 +00:00
Treehugger Robot
f1f8a7519c
Merge "Clarify method names and improve debug" am: 1ab7ac7f56 am: 1d74b8207b am: a6a8219798
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217306
Change-Id: If9182dd9cf8c31229b1cf2048111204a9b6411a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-16 13:30:56 +00:00
Neil Fuller
d272f786c2
Clarify method names and improve debug
...
Change LocationTime.getTime() -> getUnixEpochMillis() for clarity.
Add LocationTime.toString() to improve log messages involving
LocationTime.
Test: build only
Bug: 236611620
Change-Id: I6f33bec6288c67e18a2008a735e88a8981186183
2022-09-16 09:03:00 +00:00
Grace Cheng
c6ab602b60
Merge "Adds a function in LM for fetching ADAS allowlist"
2022-09-07 17:11:14 +00:00
Grace Cheng
390046b0db
Adds a function in LM for fetching ADAS allowlist
...
Bug: 244264468
Test: none
Change-Id: I0bf0d4e0ef45aea8726d52bc661a6713c5e986ce
2022-08-31 16:56:45 +00:00
Grace Cheng
0a5ebb9c58
Adds a function in LM for fetching ADAS allowlist
...
Bug: 244264468
Test: none
Change-Id: I0bf0d4e0ef45aea8726d52bc661a6713c5e986ce
2022-08-31 16:49:34 +00:00
Soonil Nagarkar
f5c4aa1267
Merge "Refactor listener multiplexer"
2022-08-19 16:34:29 +00:00
Soonil Nagarkar
b219baa014
Refactor listener multiplexer
...
-Simplifies class structure around ListenerRegistration, moving
responsibility for requests into subclasses, adding an onRemove()
callback, and simplifying the overall class structure.
-Eliminates two locks (1 in ListenerMultiplexer, 1 in
LocationProviderManager) in favor of sharing the same lock. This
simplifies locking and reduces the changes of deadlock by messing
something up.
-Fixes a bug around callback invocation ordering
ListenerMultiplexer.onRegistrationReplaced.
-Overall normalizes ListenerMultiplexer usages with respect to other
codebases.
Test: presubmits
Change-Id: I8ad92c1ffe802eee17f5a5774c8ecee1d875252f
2022-08-17 10:29:08 -07:00
Soonil Nagarkar
c78096749f
Update Location docs for isMock()
...
Add javadocs mentioning isMock() and why it exists to the top level
Location docs.
Bug: 240004850
Test: n/a
Change-Id: I208cb1fb4d213de33822d5109a4e822b470fd74d
2022-08-12 08:33:36 -07:00
Yu-Han Yang
86feb702da
Correct the range of issueOfDataEphemeris as [0, 1023]
...
Bug: 239083503
Test: atest SatellitePvtTest
Change-Id: I017b4e83a6af61c7827c9135176953809b139bb7
Merged-In: I017b4e83a6af61c7827c9135176953809b139bb7
(cherry picked from commit 70f5d083ce )
Merged-In: I017b4e83a6af61c7827c9135176953809b139bb7
2022-07-29 22:35:16 +00:00
TreeHugger Robot
5f17a4e8d2
Merge "Handle emergency SUPL on active SIM" into tm-d1-dev am: 45811541cf am: 5e93561cb9 am: af45c48f8e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19290988
Change-Id: Ifd73b36a9012f6fb370c2aa6a656cac3ed0d7226
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-22 19:34:13 +00:00
TreeHugger Robot
45811541cf
Merge "Handle emergency SUPL on active SIM" into tm-d1-dev
2022-07-22 18:33:15 +00:00
Yu-Han Yang
894d6e63e3
Handle emergency SUPL on active SIM
...
- Call setSetId on the active sub ID in emergency SUPL
- Reload GNSS configurations when emergency call starts and ends
Bug: 211060538
Test: manual
Change-Id: I4d61854644e851bb742eff0e89826a2d0e5284d6
2022-07-20 20:11:20 +00:00
Yu-Han Yang
70f5d083ce
Correct the range of issueOfDataEphemeris as [0, 1023]
...
Bug: 239083503
Test: atest SatellitePvtTest
Change-Id: I017b4e83a6af61c7827c9135176953809b139bb7
Merged-In: I017b4e83a6af61c7827c9135176953809b139bb7
2022-07-14 23:48:48 +00:00
Yu-Han Yang
522fcc0f80
Correct the range of issueOfDataEphemeris as [0, 1023]
...
Bug: 219575003
Test: atest SatellitePvtTest
Change-Id: I017b4e83a6af61c7827c9135176953809b139bb7
2022-07-14 22:01:01 +00:00
mattgilbride
f48d794e01
@EnforcePermission migrations - services.core
...
Immediate calls to Context.enforceCallingPermission. Fixes
applied by Android Lint (ag/18432857).
Bug: 232058525
Test: N/A
Change-Id: Id9bdeb71e84962d55fd1657e91856d84e1c3d11b
2022-07-11 20:01:27 +00:00
Hani Kazmi
4f221e5c51
Migrate Bundle/Intent APIs to new, type checked, variants
...
Part of go/safer-parcel. Follow up to ag/16639043. Migrates the following unsafe APIs:
* Parcel.readArray()
* Parcel.readParcelableArray()
* Bundle.getSerializable()
* Bundle.getParcelable()
* Bundle.getParcelableArrayList()
* Bundle.getParcelableArray()
* Bundle.getSparseParcelableArray()
* Intent.getSerializableExtra()
* Intent.getParcelableExtra()
* Intent.getParcelableArrayExtra()
* Intent.getParcelableArrayListExtra
Bug: 227458983
Test: m and presubmit pass
Change-Id: I72f206cb18eb5c669a7fff07a6845bed1c433fdb
2022-07-01 10:53:53 +00:00
Austin O'Neil
3011a698a3
Merge "Update deprecation links in LocationManager to point to non-deprecated methods."
2022-06-22 22:57:00 +00:00
Soonil Nagarkar
fd665da1fc
Merge "Add javadocs update on Android R crash"
2022-06-22 20:02:34 +00:00
Austin O'Neil
1959247484
Update deprecation links in LocationManager to point to non-deprecated methods.
...
Test: this is a documentation update
Change-Id: I42318b722b9e9cf73e9efee60f43a1dfd5dbcbd8
2022-06-21 23:48:17 +00:00
Soonil Nagarkar
e60263fae5
Add javadocs update on Android R crash
...
Bug: 233111834
Test: na
Change-Id: I017113a22295106bbca3844761a512cd6ae057e1
2022-06-21 16:23:37 -07:00
Soonil Nagarkar
ba6cff9834
Update location package javadocs
...
Test: none
Change-Id: Iac8a189a5773784305cfd5ea2af4414030167d12
2022-06-07 11:49:35 -07:00
Brian Julian
e65cbd316b
Updates to Location class for Android U as discussed in go/android-context:msl-on-android.
...
Adds to fields to represent altitude above Mean Sea Level and its accuracy.
Test: existing unit tests still pass
Bug: 231327615
Change-Id: I779653937160f01dfdbc19e5e7921758964b9623
2022-05-10 01:36:47 +00:00
Brian Julian
16560c0930
Add a permissions check to LocationManagerService.
...
Prevents apps from reading location requests of other users without INTERACT_ACROSS_USERS permission.
Bug: 222473855
Test: Build
modified: services/core/java/com/android/server/location/LocationManagerService.java
Change-Id: Id591cd39ed7813c649b44d4a3210f0b1fb79b40d
2022-05-03 12:30:22 +00:00
Soonil Nagarkar
7dcdb109b9
Deprecate some Criteria APIs missed the first time
...
Continue deprecating all Criteria APIs.
Bug: 229871756
Test: Manual
Change-Id: I40f797b9830acd0962e98678a77d970b36cbaffc
2022-04-21 11:04:30 -07:00
Grace Cheng
c96bd77dd1
Merge "Switches ADAS allowlist away from string resources" into tm-dev
2022-04-05 01:21:34 +00:00
Grace Cheng
dea5248299
Switches ADAS allowlist away from string resources
...
Bug: 226440115
Test: manually
Change-Id: I3d1434c405a1babee999533afa10710a06f635a1
2022-04-04 15:38:00 +00:00
David Christie
c80684b7c1
Merge "Update location OWNERS files" am: b3249c820f am: d0e5951d42 am: 731c34c0e7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2042803
Change-Id: Ia817c9d3e70e11f1e15861e272ea7d861ce996af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-03-29 15:31:34 +00:00
David
b84bb82fbc
Update location OWNERS files
...
Test: N/A
Change-Id: I4a2871228a179eb80f556719aae0a78fca1616da
2022-03-28 09:25:17 -07:00
Grace Cheng
6f99e1a33d
Adds RequiresFeature annotation to ADAS APIs
...
Bug: 215299508
Test: presubmit
Change-Id: Iaa29a383613b48ef7baa7fd8cd73b8fbf797d6bb
2022-03-25 03:37:08 +00:00
Grace Cheng
329d712936
Merge "Removes WRITE_SECURE_SETTINGS from location bypass APIs" into tm-dev
2022-03-19 08:36:07 +00:00
Yu-Han Yang
1257c4108a
Merge "Add GnssExcessPathInfo (frameworks/base)" into tm-dev
2022-03-17 16:31:42 +00:00
Grace Cheng
a7bf3a7b5b
Removes WRITE_SECURE_SETTINGS from location bypass APIs
...
Bug: 215299508
Test: presubmit
Change-Id: Ice5e28858efa07c4bea5540aad8bb0bcf0a69137
2022-03-16 23:09:58 +00:00
Yu-Han Yang
97f3b91c53
Add GnssExcessPathInfo (frameworks/base)
...
Also add combinedAttenuationDb in GnssSingleSatCorrection
Bug: 201253590
Test: atest GnssExcessPathInfoTest
atest GnssSingleSatCorrectionTest
Change-Id: I7f629f2fbca563a36d1b4543f768b8fabd5d91fd
2022-03-16 12:11:22 -07:00
Soonil Nagarkar
91e3a080aa
Update Location APIs per feedback
...
Bug: 200730770
Test: presubmits
Change-Id: I251dcce3bae431ab3770e0610105c75e377c8d10
2022-03-15 16:46:14 -07:00
Yu-Han Yang
091f9b53f5
Append 'Seconds' to timeOfClock and timeOfEphemeris
...
Bug: 219575003
Test: atest SatellitePvtTest
Change-Id: I28d1e5b16db8b5f75015c54bcfcc391a6a50082b
2022-02-25 21:12:13 +00:00
TreeHugger Robot
0d4e785115
Merge "Change TimeOfClock and TimeOfEphemeris to long"
2022-02-16 23:31:11 +00:00
Yu-Han Yang
979a2b76a3
Change TimeOfClock and TimeOfEphemeris to long
...
Change TOC and TOE definition to
1. long
2. time in seconds since GPS epoch, regardless of constellation
3. must not be encoded
Bug: 219575003
Test: atest SatellitePvtTest
Change-Id: Ic663e45adafbd1778528a985c1670898d5653e00
2022-02-16 11:00:02 -08:00
Neil Fuller
490d480a95
Switch "UTC time" to "Unix epoch time" (Location)
...
This is more correct. Android devices, even under ideal conditions,
don't track UTC (which contains leap seconds and uses the SI definition
of a second) but use a clock based on Unix epoch time (no leap seconds,
but clocks may skip/stop or smear around leap seconds to ensure a fixed
number of second increments per calendar day when leap seconds are
applied to UTC).
Bug: 218802673
Test: Compile only
Change-Id: If87023af06ba9933f96029e52df9cb3841bca0cb
2022-02-11 11:29:05 +00:00
Grace Cheng
74bfabdade
Adds LOCATION_BYPASS permission.
...
Bug: 215299508
Test: presubmit
Change-Id: I3768fb7bcc8da64ddad1d2e0a4bb3feaec244104
2022-01-28 01:33:30 +00:00
Eva Chen
b9314e1681
Merge "Update GNSS S2R APIs based on API Council feedback."
2022-01-27 23:05:30 +00:00
Yu-Han Yang
c8b3508deb
Merge "Add ephSource, toc, toe, IODC, IODE to SatellitePvt (frameworks/base)"
2022-01-26 18:53:47 +00:00
Eva Chen
a10ba7bb2c
Update GNSS S2R APIs based on API Council feedback.
...
Bug: 215304589
Test: atest GtsLocationTestCases:AutomotiveGnssControlsTest
Change-Id: Ie1ff0698df9e23fa280fbbf71f1330bdf14f5f2c
2022-01-25 12:58:55 -08:00