summaryrefslogtreecommitdiff
path: root/location/lib
diff options
context:
space:
mode:
authorSoonil Nagarkar <sooniln@google.com>2020-02-19 14:39:58 -0800
committerSoonil Nagarkar <sooniln@google.com>2020-02-19 14:39:58 -0800
commit3819f972df8c4c91b829425c2f83b19090a14167 (patch)
treee8b5217f92cf47e61e1e13028648d5ad91c51ae6 /location/lib
parent0792b12f9952e423e4d5bad69ec26c0b5feb7453 (diff)
Revert requestSetProviderEnabled API
Bug: 144955780 Test: presubmits Change-Id: Iec8520acfd98b9d9d92a4876ebfa899ac2a0731e
Diffstat (limited to 'location/lib')
-rw-r--r--location/lib/api/current.txt1
-rw-r--r--location/lib/java/com/android/location/provider/LocationProviderBase.java16
2 files changed, 0 insertions, 17 deletions
diff --git a/location/lib/api/current.txt b/location/lib/api/current.txt
index 49fcaabe981a..9cc30d0d751e 100644
--- a/location/lib/api/current.txt
+++ b/location/lib/api/current.txt
@@ -17,7 +17,6 @@ package com.android.location.provider {
method @Deprecated protected int onGetStatus(android.os.Bundle);
method @Deprecated protected long onGetStatusUpdateTime();
method protected void onInit();
- method protected void onRequestSetAllowed(boolean);
method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle);
method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource);
method public void reportLocation(android.location.Location);
diff --git a/location/lib/java/com/android/location/provider/LocationProviderBase.java b/location/lib/java/com/android/location/provider/LocationProviderBase.java
index bd29d8ac2a85..d3fb58fe257e 100644
--- a/location/lib/java/com/android/location/provider/LocationProviderBase.java
+++ b/location/lib/java/com/android/location/provider/LocationProviderBase.java
@@ -315,17 +315,6 @@ public abstract class LocationProviderBase {
return false;
}
- /**
- * Invoked when the system wishes to request that the provider sets its allowed state as
- * desired. This implies that the caller is providing/retracting consent for any terms and
- * conditions or consents associated with the provider.
- *
- * <p>It is generally only necessary to override this function if the provider has some barriers
- * or gates for enabling/disabling itself, in which case this function should handle those
- * appropriately. A provider that is always allowed has no need to override this function.
- */
- protected void onRequestSetAllowed(boolean allowed) {}
-
private final class Service extends ILocationProvider.Stub {
@Override
@@ -356,10 +345,5 @@ public abstract class LocationProviderBase {
public void sendExtraCommand(String command, Bundle extras) {
onSendExtraCommand(command, extras);
}
-
- @Override
- public void requestSetAllowed(boolean allowed) {
- onRequestSetAllowed(allowed);
- }
}
}