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
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
Also add plumbing for isFullTracking in JNI
Bug: 257549183
Test: atest GnssMeasurementRegistrationTest
Change-Id: I2d41b7aaaceb225c29cf282a2733ab9dfdd9d6c0
-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
-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
-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
To Support new mainline module expose getCountryIso,
getSource,addCountryListener,detectCountry API's as
System API
Bug: 252989268
CTS-Coverage-Bug: 255511190
Test: manual test && make update-api
Change-Id: I6c4b2980ee04e56e8d0bb9ddda0391e3e23ada7e
Feature ID was renamed to Attribution Tag. The old methods were marked
@Deprecated and @removed.
Bug: 135214188
Test: atest MediaInserterTest
Change-Id: Id2fd77dcdc5125ea949c23825606e7a046697e8e