summaryrefslogtreecommitdiff
path: root/packages/FusedLocation
diff options
context:
space:
mode:
authorSoonil Nagarkar <sooniln@google.com>2020-01-23 18:06:31 -0800
committerSoonil Nagarkar <sooniln@google.com>2020-01-23 18:06:31 -0800
commit980ce6a7418dc4fea14dcbe076ad7970557e89c2 (patch)
treebf3bdf041e4b2d3cdbf1daaab42cd026d4b897a6 /packages/FusedLocation
parentb20cfac061163449e1ba846f94f1164335ed1685 (diff)
Add DPM API to request location provider enable
DPM can currently control the master location toggle, but cannot influence the behavior of individual providers. This adds an API for DPM (or other privileged entities) to request a provider to turn itself on. Practically, this is necessary to allow DPM to control network location, which may be gated by additional consents. This change also renames some internal location code to make clearer the distinction between provider enabled and provider allowed: enabled = location on && allowed Bug: 136219903 Test: CTS tests to be added Change-Id: I05f03c976428f0f5a8a2cf627a84dc9e2baf3e67
Diffstat (limited to 'packages/FusedLocation')
-rw-r--r--packages/FusedLocation/test/src/com/android/location/fused/tests/FusedLocationServiceTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/FusedLocation/test/src/com/android/location/fused/tests/FusedLocationServiceTest.java b/packages/FusedLocation/test/src/com/android/location/fused/tests/FusedLocationServiceTest.java
index 33126510bc53..d1a379afa25e 100644
--- a/packages/FusedLocation/test/src/com/android/location/fused/tests/FusedLocationServiceTest.java
+++ b/packages/FusedLocation/test/src/com/android/location/fused/tests/FusedLocationServiceTest.java
@@ -205,7 +205,7 @@ public class FusedLocationServiceTest {
}
@Override
- public void onSetEnabled(boolean enabled) {
+ public void onSetAllowed(boolean allowed) {
}