Home
last modified time | relevance | path

Searched refs:getBattery (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecoveryTest.java49 when(mMockDevice.getBattery()).thenReturn(50); in testShouldSkip()
64 when(mMockDevice.getBattery()).thenReturn(null); in testShouldSkip_recovery()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecovery.java40 return device.getBattery() != null; in shouldSkip()
DBatteryRechargeDeviceRecovery.java43 Integer level = device.getBattery(); in shouldSkip()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DStubDevice.java465 public Future<Integer> getBattery() { in getBattery() method in StubDevice
472 public Future<Integer> getBattery(long freshnessTime, TimeUnit timeUnit) { in getBattery() method in StubDevice
473 return getBattery(); in getBattery()
DINativeDevice.java1679 public Integer getBattery(); in getBattery() method
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DWaitDeviceRecoveryTest.java401 when(mMockDevice.getBattery()).thenReturn(future); in testCheckMinBatteryLevel_unreadable()
422 when(mMockDevice.getBattery()).thenReturn(future); in testCheckMinBatteryLevel_belowLevel()
444 when(mMockDevice.getBattery()).thenReturn(future); in testCheckMinBatteryLevel()
DDeviceSelectionOptionsTest.java626 when(mMockDevice.getBattery()).thenReturn(batteryFuture);
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java102 return device.getBattery(); in checkBatteryLevel()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java232 .getBattery(BATTERY_FRESHNESS_MS, TimeUnit.MILLISECONDS); in testFastboot()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DDeviceBatteryLevelCheckerTest.java115 public Integer getBattery() { in getBattery() method in DeviceBatteryLevelCheckerTest.TestableTestDevice
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java200 Integer level = device.getBattery().get(); in checkMinBatteryLevel()
DDeviceSelectionOptions.java758 Future<Integer> batteryFuture = device.getBattery(); in getBatteryLevel()
DNativeDevice.java5473 getDisplayString(getBattery()), in getDeviceDescriptor()
5943 public Integer getBattery() { in getBattery() method in NativeDevice
5952 Future<Integer> batteryFuture = getIDevice().getBattery(); in getBattery()
/tools/tradefederation/core/javatests/com/android/tradefed/command/
DCommandSchedulerFuncTest.java333 when(mockDevice.getBattery()).thenReturn(10); in testBatteryLowLevel_interruptible()
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DTestInvocationTest.java247 lenient().when(mMockDevice.getBattery()).thenReturn(null); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java822 Integer batteryLevel = testDevice.getBattery(); in logDeviceBatteryLevel()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java954 Integer batteryLevel = device.getBattery(); in checkDeviceBatteryLevel()