summaryrefslogtreecommitdiff
path: root/location/java/com
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2019-02-01 16:03:27 -0800
committer Kweku Adams <kwekua@google.com> 2019-02-28 14:55:39 -0800
commit4fb074e7f41a1095c0a20bdab47a053bd9bd2551 (patch)
tree1b63565bf1577a86e77d7a91edbb2a2e0168194f /location/java/com
parent6dabb47132d6ce169a8592a209556a5791eb84d3 (diff)
Adding new Battery Saver location mode.
When this new mode (LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF) is enabled, LocationManagerService will avoid sending almost all LocationRequests to providers. The only requests that will continue to be sent will be providers are the requests that ignore location settings. Bug: 121256487 Bug: 122849003 Bug: 119261320 Test: atest android.os.cts.batterysaving.BatterySaverLocationTest Change-Id: Iee95a6fb5ca11d4db7a0f0661bf3cb1051a5d710
Diffstat (limited to 'location/java/com')
-rw-r--r--location/java/com/android/internal/location/ProviderRequest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/com/android/internal/location/ProviderRequest.java b/location/java/com/android/internal/location/ProviderRequest.java
index af8123ac52f4..155f788cb33e 100644
--- a/location/java/com/android/internal/location/ProviderRequest.java
+++ b/location/java/com/android/internal/location/ProviderRequest.java
@@ -56,7 +56,7 @@ public final class ProviderRequest implements Parcelable {
* low power fast interval request.
*/
@UnsupportedAppUsage
- public List<LocationRequest> locationRequests = new ArrayList<LocationRequest>();
+ public final List<LocationRequest> locationRequests = new ArrayList<>();
@UnsupportedAppUsage
public ProviderRequest() {