diff options
author | 2020-02-19 14:39:58 -0800 | |
---|---|---|
committer | 2020-02-19 14:39:58 -0800 | |
commit | 3819f972df8c4c91b829425c2f83b19090a14167 (patch) | |
tree | e8b5217f92cf47e61e1e13028648d5ad91c51ae6 /location/lib/java | |
parent | 0792b12f9952e423e4d5bad69ec26c0b5feb7453 (diff) |
Revert requestSetProviderEnabled API
Bug: 144955780
Test: presubmits
Change-Id: Iec8520acfd98b9d9d92a4876ebfa899ac2a0731e
Diffstat (limited to 'location/lib/java')
-rw-r--r-- | location/lib/java/com/android/location/provider/LocationProviderBase.java | 16 |
1 files changed, 0 insertions, 16 deletions
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); - } } } |