summaryrefslogtreecommitdiff
path: root/location/java/android
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2022-01-04 08:10:15 -0800
committer Lee Shombert <shombert@google.com> 2022-01-04 08:13:59 -0800
commit0cece3898b0f26b0fb026415d4c8f928d16296a3 (patch)
tree29d8f98338e466d5a846a9235f2c4d7e1fb20988 /location/java/android
parent6ba962a93fbdc6a277b273b116fb58b5635a1d2b (diff)
Prepare PropertyInvalidatedCache for SystemApi
Bug: 152453213 Tag: #refactor This commit prepares PropertyInvalidatedCache to function as a system api. Specifically, the methods recompute() and bypass() which may be overridden by clients are now public (instead of protected). This forces an update to all existing clients, to accommodate the change in method visibility. Two small changes have been made as cleanup: 1. The awkwardly named debugCompareQueryResults() is now resultEquals(), which is more or less consistent with how other equality tests are named in Android. This name change affects two clients. 2. PackageManager has changed to use resultEquals() instead of maybeCheckConsistency(). This provides a simpler and more consistent use of the APIs. maybeCheckConsistency() has been made private. Test: atest PropertyInvalidatedCacheTests Change-Id: I4110f8e887a4fd8c784141e8892557a9d1b80a94
Diffstat (limited to 'location/java/android')
-rw-r--r--location/java/android/location/LocationManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java
index 61caa0bf4660..9109a18f120e 100644
--- a/location/java/android/location/LocationManager.java
+++ b/location/java/android/location/LocationManager.java
@@ -3640,7 +3640,7 @@ public class LocationManager {
}
@Override
- protected Boolean recompute(Integer userId) {
+ public Boolean recompute(Integer userId) {
Preconditions.checkArgument(userId >= 0);
if (mManager == null) {