summaryrefslogtreecommitdiff
path: root/location
AgeCommit message (Collapse)Author
2023-10-24Merge "Created empty framework-location non-updatable module" into main am: ↵ Anton Hansson
b0a5dffa7c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2799416 Change-Id: I5eb30290aa1150d17af3707a69c303e7c227d9cd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-23Created empty framework-location non-updatable module Mark White
Note that this is a re-cherry-pick of the original CL that is closer to the original CL than the first CP, to minimize the number of conflicts in Android.bp files. Bug: 289776578 Test: presubmit Merged-In: I721fc4ae5c62cf1eada9bb6b4e5b3f1a4c9db21a Change-Id: Ibf98f37cb795bc7f627a485546b6ce8ec23b3a9e
2023-08-31Merge "Update getCodeType() docs for RINEX4.0" into udc-qpr-dev am: 1e23b0fe59 Yu-Han Yang
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24604250 Change-Id: I01e4445a9c5ce8815febe0e578ce3b5fa35a1e9a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31Merge "Update getCodeType() docs for RINEX4.0" into udc-qpr-dev Yu-Han Yang
2023-08-31Merge "Created empty framework-location non-updatable module" into main am: ↵ Mark White
22f1191130 am: ce312cfcc0 am: 6a624d8ce7 am: 758548c48d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2729073 Change-Id: Idac857288793bfef9268f7016995b5fee48c8ddc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31Merge "Created empty framework-location non-updatable module" into main am: ↵ Mark White
22f1191130 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2729073 Change-Id: Ie4f06747c79feabd11b0d17427a5cd8f7a08c826 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30Merge "Modifies getMslAltitudeMeters and getMslAltitudeAccuracyMeters in ↵ Brian Julian
android.location.Location to no longer throw IllegalStateExceptions when corresponding values are not set." into udc-qpr-dev am: 2854796f6f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24589148 Change-Id: I5a38b93741e957db4effeb72910ec2006d8a406d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30Update getCodeType() docs for RINEX4.0 Zhanghao
Update the Javadocs based on doc:https://docs.google.com/document/d/1SliduwZ8TlV5kMDZpxM5CUg-Txsw3IxBe8JTnr_ZOl0/edit?resourcekey=0-HTfqV3iJLkQtaMp_lsy3Vg Test: change Javadoc only. Bug: 277260039 Change-Id: Ib42811a6490525df5a1072f79e78c01529bec1a6 (cherry picked from commit 2d4f577b2d4dc98a084ddf0eb3fdc41a08ad3c40)
2023-08-30Created empty framework-location non-updatable module Mark White
Bug: 289776578 Test: presubmit Change-Id: Id077cff3825cea0da2ea9fad06c53eeb4f8655a2 Merged-In: Id077cff3825cea0da2ea9fad06c53eeb4f8655a2
2023-08-29Modifies getMslAltitudeMeters and getMslAltitudeAccuracyMeters in ↵ Brian Julian
android.location.Location to no longer throw IllegalStateExceptions when corresponding values are not set. Bug: 278389778 Test: CTS tests already compatible. Change-Id: I5fcdb8238eb6d77a7b2c60dc8544f5be1bcccce2
2023-08-25Merge Android U (ab/10368041) Xin Li
Bug: 291102124 Merged-In: I3c9e9d15786fbead1b874636b46844f6c24bccc2 Change-Id: Id6cf6cc13baef4e67486c6271a1510146204affa
2023-08-23Merge "Update language to comply with Android's inclusive language guidance" ↵ Treehugger Robot
into main am: 4af0170659 am: 1b58f156cd Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2720055 Change-Id: I0acce57f32bcb12c0dd5375846683d8c958b6016 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22Update language to comply with Android's inclusive language guidance Chan Kim
See https://source.android.com/setup/contribute/respectful-code for reference For this round, the fixes are only applied to the following to minimize breaking dependencies: * comments (excluding javaDoc annotations) * private constants * private functions * parameters within functions BYPASS_INCLUSIVE_LANGUAGE_REASON=Just updating a few select inclusive language violations. No-Typo-Check: Changes focused on inclusive language violations. BUG: 295342157 Change-Id: Id9e53eff8a9af87788b14c2367ce9fca8dd0c1f7
2023-06-13Documents IllegalStateException throw condition in Location Javadocs for ↵ Brian Julian
getMslAltitudeMeters() and getMslAltitudeAccuracyMeters(). Fix: 286965105 Test: N/A Change-Id: Ib195d277fdca874d0913e963d4bdf57f127a8336
2023-03-30Merge "Correct getExtras("satellites")" into udc-dev Yu-Han Yang
2023-03-29Correct getExtras("satellites") Yu-Han Yang
To return the number of satellites instead of signals Bug: 275611082 Test: manual Change-Id: I766159baf6cb16f902cb1395f9d12f8bbda9e8f0
2023-03-08Update the Javadoc of getReceivedSvTimeNanos() Zhanghao Wen
Added GPS L1C(P), BDS B1C(P) with value: CODE_LOCK(10 ms), STATE_2ND_CODE_LOCK(18000 ms), TOW_KNOWN(1 week). Added BDS B2AQ: Same as E5AQ Added IRNSS: Same as GPS L1 C/A Bug: 264588057 Test: Javadoc only Change-Id: I187ecd0452efa97700a141a1837801b45f82da2d
2023-03-03Update hasAccumulatedDeltaRange() to return a 3-state int Yu-Han Yang
Bug: 267312779 Test: atest GnssCapabilitiesTest Change-Id: Id94d8a5f0765600627ba51fff9b1fe41b581e372
2023-02-07Backport implementation of AltitudeConverter to T. Brian Julian
Relnote: N/A Bug: 265013616 Test: atest FrameworksMockingServicesTests:AltitudeConverterTest Change-Id: I5c1bbdec79d61ba7abad4db8131c5dca80ef7b9a Merged-In: Idb699d03035c7ec56a07f3c648f49119b014363f
2023-01-30Merge "Add isAccumulatedDeltaRangeCapabilityKnown for backward compatibility ↵ Yu-Han Yang
(frameworks/base)"
2023-01-28Merge "Rename hasFullTracking to hasIsFullTracking (frameworks/base)" Yu-Han Yang
2023-01-27Rename hasFullTracking to hasIsFullTracking (frameworks/base) Yu-Han Yang
Bug: 265815272 Test: atest GnssMeasurementsEventTest Change-Id: I5e8e267a020454726c2c0377cba85d4355a8b5b6
2023-01-27Add isAccumulatedDeltaRangeCapabilityKnown for backward compatibility ↵ Yu-Han Yang
(frameworks/base) Bug: 260002331 Test: atest GnssCapabilitiesTest Change-Id: I82356bc84abddf36b04da5576d34ba6d3f01f32f
2023-01-25Merge "docs: Fixing typo (i.e without closing period)" Andrew Solovay
2023-01-25Merge "Refactoring: Support alt. network time source" Neil Fuller
2023-01-25docs: Fixing typo (i.e without closing period) Andrew Solovay
The CommonTypos linter complained about "i.e" without a closing period. Since our tech writing style guide says to avoid "i.e." in general, I rephrased as "that is". Per go/fix-refdocs, tm-qpr-dev is now the preferred branch for doc fixes until the U dev branch is open. Since this CL hasn't been reviewed yet, I'm CPing it over here and abandoning the original CL. Docs-only change, no change to code. Change-Id: Id8de0d371e1290a7e8ed1831f2fbca063f9ff835 Test: [go/abtd docs build] Bug: 263824202
2023-01-19Refactoring: Support alt. network time source Neil Fuller
Refactoring to support an alternative source of network time for passing to the GNSS component. The new implementation will be submitted in a follow-up. NtpTimeHelper has been replaced by NetworkTimeHelper in GnssLocationProvider. NetworkTimeHelper provides the stable interface between GnssLocationProvider and the original / alternative impl for what was NtpTimeHelper. NtpTimeHelper has been renamed NtpNetworkTimeHelper. These changes are not intended to change any behavior. There are some minor changes between the interaction between GnssLocationProvider and the NetworkTimeHelper class, but these are not expected to alter the runtime behavior. The NetworkTimeHelper.setPeriodicTimeInjectionMode() method touches a pre-existing bug: The method name reflected the effect of the method, which is the near-opposite of what the capability name would suggest. This appears to be due to an accidental logic inversion, not by intent. As can be seen in the changes for GnssLocationProvider: the enablePeriodicTimeInjection() method was called when mGnssNative.getCapabilities().hasOnDemandTime() was true. The existence of bug 73893222 supports the fact that there is a long-standing bug here. The intent with this commit is not to fix it or alter behavior, just to make it more obvious, as it is unclear if the current behavior is relied upon somewhere. Comments and field names have been improved to try to clarify the actual behavior. Bug: 73893222 Bug: 222295093 Test: atest services/robotests/src/com/android/server/location/gnss/NtpNetworkTimeHelperTest.java Change-Id: I0b1ba43a55ff531df343c022650e3f5721dda7f1
2023-01-18Use deepToString for 2d arrays Yu-Han Yang
Bug: 259324783 Test: manual Change-Id: I030de60258f11ec6ab719fb7cb5d6118c1814594
2023-01-05Merge "Clarify javadoc of Full Tracking" TreeHugger Robot
2022-12-22Merge "Add hasFullTracking for backward compatibility" Yu-Han Yang
2022-12-22Add hasFullTracking for backward compatibility Yu-Han Yang
Also add plumbing for isFullTracking in JNI Bug: 257549183 Test: atest GnssMeasurementRegistrationTest Change-Id: I2d41b7aaaceb225c29cf282a2733ab9dfdd9d6c0
2022-12-20Merge "Add ADR in GnssCapabilities (frameworks/base)" Yu-Han Yang
2022-12-19Add ADR in GnssCapabilities (frameworks/base) Yu-Han Yang
Bug: 260002331 Test: GnssCapabilitiesTest Change-Id: I15f768d10982f9d9fb60f6beb88f42b2f7f638b4
2022-12-14Adds hidden AltitudeConverter.addMslAltitudeToLocation(Location) that does ↵ Brian Julian
not load data from raw assets. Relnote: N/A Bug: 231327615 Test: atest FrameworksMockingServicesTests:AltitudeConverterTest Change-Id: Idb699d03035c7ec56a07f3c648f49119b014363f
2022-12-12Merge "Add permission gated provider to access the hardware GPS directly." David Christie
2022-12-09Merge changes from topic "COUNTRY_DETECTOR_API_ENHANCEMENT" Nagendra Prasad Nagarle Basavaraju
* changes: API Enhancement CountryDetector Revert CountryDetector changes
2022-12-07Renames addMslAltitude method in AltitudeConverter to ↵ Brian Julian
addMslAltitudeToLocation, and updates Javadoc to use @throws. Relnote: N/A Bug: 261696975 Test: atest CtsLocationNoneTestCases Change-Id: I01c9c640eba6ab49b364f3aadcf86701f8aefb95
2022-12-06Add permission gated provider to access the hardware GPS directly. David Christie
-Only applicable when an app level GPS provider override is present which may mask the hardware provider. Bug: 260010264 Test: atest LocationManagerServiceTest, atest LocationProviderManagerTest Change-Id: I085152f9074863dcf8d8ee96981846b847966018
2022-12-06Removes catch on IOException as GeoidHeightMap#loadFromCacheAndDisk supports ↵ Brian Julian
this type of throw. Relnote: N/A Bug: 231327615 Test: atest CtsLocationNoneTestCases Change-Id: I7a89f51d60837f709dce9b28afd1b52c49c339cf
2022-12-06Merge "Adds complete U implementation of AltitudeConverter." Brian Julian
2022-12-02Adds complete U implementation of AltitudeConverter. Brian Julian
Relnote: N/A Bug: 231327615 Test: atest CtsLocationNoneTestCases Change-Id: I7bac8b12ddd68732f99ff04e30f169657c2d2e71
2022-12-01API Enhancement CountryDetector Nagendra Prasad Nagarle Basavaraju
-Replace CountryListener with a Consumer<Country> -Add registerCountryDetectorCallback to take an Executor Vs addCountryListener taking Looper -Add unregisterCountryDetectorCallback to remove Consumer<Country> callback interface -Adding getSource to return an IntDef -Expose Country constructor -Adding alternative API with new naming for getCountryIso -Refactoring addCountryListener() & removeCountryListener API's Bug: 252989268, 258197470 CTS-Coverage-Bug: 255511190 Test: manual test && make update-api Change-Id: I5a2f253a87d1037837bc161a80cb873a6471c229
2022-11-29Add option for framework overlay to handle the GPS_PROVIDER in ↵ David Christie
LocationManagerService. Bug: 260010264 Test: Manual Change-Id: I657a6c9061492c31382a7ab619607d4a011a0af9
2022-11-22Clarify javadoc of Full Tracking Yu-Han Yang
Bug: 257549183 Test: doc update only Change-Id: Ia66235c20a527c4355b1ce9fae7c157dd90d2c84
2022-11-22Revert CountryDetector changes Nagendra Prasad Nagarle Basavaraju
-Revert detectCountry() to UnsupportedAppUsage -Revert addCountryListener & removeCountryListener to UnsupportedAppUsage -Revert countryListener to UnsupportedAppUsage -Revert getCountryIso() to UnsupportedAppUsage to support api with new naming convention Bug: 252989268 Test: manual test && make update-api Change-Id: I5c5978f4460eb6bce8d3ed97458b5cc6ac6d788d
2022-11-21Merge "Add isFullTracking in GnssMeasurementsEvent (frameworks/base)" Yu-Han Yang
2022-11-15Use unmodifiableList for gnssSignalType Yu-Han Yang
Bug: 258197332 Test: atest GnssCapabilitiesTest Change-Id: I37e4f6b03726d8169cbff0202f5cb0b7af423c65
2022-11-10Add isFullTracking in GnssMeasurementsEvent (frameworks/base) Yu-Han Yang
Bug: 257549183 Test: atest GnssMeasurementsEventTest Change-Id: Icd57e644a50cef3f6633388a2ce3d0242385f13c
2022-11-05Merge "Expose Country & CountryDetector API's" Nagendra Prasad Nagarle Basavaraju
2022-11-04Pipe GnssSignalType from HAL to Java Yu-Han Yang
Bug: 253319784 Test: manual on cuttlefish Change-Id: I85a652338b9ec0fc9b1fc17ff9057d73a6c796ae