Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 341a5719 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update the battery charging status when turning battery on/off."

parents d7391be0 a4459397
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ public class ConnOnActivityStartTest {

    private void turnBatteryOn() throws Exception {
        executeCommand("cmd battery unplug");
        executeCommand("cmd battery set status " + BatteryManager.BATTERY_STATUS_NOT_CHARGING);
        assertBatteryOn();
    }

@@ -336,6 +337,7 @@ public class ConnOnActivityStartTest {

    private void turnBatteryOff() throws Exception {
        executeCommand("cmd battery set ac " + BatteryManager.BATTERY_PLUGGED_AC);
        executeCommand("cmd battery set status " + BatteryManager.BATTERY_STATUS_CHARGING);
    }

    private static void batteryReset() throws Exception {