Home
last modified time | relevance | path

Searched refs:cutoffBattery (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDeviceOptions.java434 public void setCutoffBattery(int cutoffBattery) { in setCutoffBattery() argument
435 if (cutoffBattery < 0 || cutoffBattery > 100) { in setCutoffBattery()
438 + "the value %s isn't within possible range (0-100).", cutoffBattery)); in setCutoffBattery()
440 mCutoffBattery = cutoffBattery; in setCutoffBattery()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java772 final Integer cutoffBattery = mCmd.getConfiguration() in checkDeviceBatteryLevel() local
775 if (mInvocationContext.getDevice(deviceName) != null && cutoffBattery != null) { in checkDeviceBatteryLevel()
785 if (0 < batteryLevel && batteryLevel < cutoffBattery) { in checkDeviceBatteryLevel()
788 getName(), batteryLevel, cutoffBattery); in checkDeviceBatteryLevel()
792 batteryLevel, cutoffBattery)); in checkDeviceBatteryLevel()