Searched refs:pluggedIn (Results 1 – 3 of 3) sorted by relevance
64 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument65 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()67 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
63 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument64 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()66 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
889 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument891 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()894 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()896 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()