[CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 2ecad8d87d am: ca83ca8472 am: 254dfe5017

am: dc396795cc

Change-Id: I97f5aa84b291e02e98fd6392d10c3879eceff19d
This commit is contained in:
peter_li
2016-10-13 16:12:17 +00:00
committed by android-build-merger

View File

@@ -639,6 +639,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
executeSilentShellCommand("cmd battery unplug");
executeSilentShellCommand("settings put global low_power 1");
} else {
executeSilentShellCommand("settings put global low_power 0");
turnBatteryOn();
}
}