Home
last modified time | relevance | path

Searched refs:pluggedIn (Results 1 – 3 of 3) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBatteryUtils.java63 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument
64 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()
66 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java66 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument
67 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()
69 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java612 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument
614 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()
617 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()
619 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()