Searched refs:pluggedIn (Results 1 – 3 of 3) sorted by relevance
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()
66 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument67 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()69 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
612 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument614 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()617 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()619 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()