Update the default location mode for Battery Saver in order to get

droidfood test coverage on the intended change.

This value is also protected by flags so it can be set to the previous
value while we run requested population experiments. Power tests show
that this change causes a < 1% change in days of use (see b/178902585).

Bug: 184875711
Test: Manual
Change-Id: Ied13dc79b0dca655dea05ad61f0b54f81290673c
This commit is contained in:
Kate Montgomery
2021-05-06 14:11:35 +00:00
parent d245565acc
commit 3a0647fcd1
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ public class BatterySaverPolicy extends ContentObserver implements
true, /* enableQuickDoze */
true, /* forceAllAppsStandby */
true, /* forceBackgroundCheck */
PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF, /* locationMode */
PowerManager.LOCATION_MODE_FOREGROUND_ONLY, /* locationMode */
PowerManager.SOUND_TRIGGER_MODE_CRITICAL_ONLY /* soundTriggerMode */
);

View File

@@ -48,7 +48,7 @@ public class BatterySaverPolicyTest extends AndroidTestCase {
private static final float PRECISION = 0.001f;
private static final int GPS_MODE = 0; // LOCATION_MODE_NO_CHANGE
private static final int DEFAULT_GPS_MODE =
PowerManager.LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF;
PowerManager.LOCATION_MODE_FOREGROUND_ONLY;
private static final int SOUND_TRIGGER_MODE = 0; // SOUND_TRIGGER_MODE_ALL_ENABLED
private static final int DEFAULT_SOUND_TRIGGER_MODE =
PowerManager.SOUND_TRIGGER_MODE_CRITICAL_ONLY;