Snap for 4818534 from 94499c9ea93ab2f2b301fd62e9d1a221b97ffa57 to pi-release

Change-Id: Ie09c5ab499c87adfe093f1a9bda3f19c6e9ddddd
This commit is contained in:
android-build-team Robot
2018-06-03 07:21:47 +00:00

View File

@@ -831,6 +831,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
protected void turnBatteryOff() throws Exception {
executeSilentShellCommand("cmd battery set ac " + BATTERY_PLUGGED_ANY);
executeSilentShellCommand("cmd battery set level 100");
executeSilentShellCommand("cmd battery set status "
+ BatteryManager.BATTERY_STATUS_CHARGING);
assertBatteryState(true);