Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java64 public static void runDumpsysBatterySetPluggedIn(boolean pluggedIn) throws Exception { in runDumpsysBatterySetPluggedIn() argument
65 SystemUtil.runShellCommandForNoOutput(("cmd battery set ac " + (pluggedIn ? "1" : "0"))); in runDumpsysBatterySetPluggedIn()
67 Log.d(TAG, "Battery AC set to " + pluggedIn); in runDumpsysBatterySetPluggedIn()
/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java889 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument
891 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()
894 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()
896 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()