Searched refs:hasBattery (Results 1 – 12 of 12) sorted by relevance
31 if (!hasBattery(getDevice())) { in testBatteryServiceDump()62 static boolean hasBattery(ITestDevice device) throws DeviceNotAvailableException { in hasBattery() method in BatteryIncidentTest64 boolean hasBattery = batteryinfo.contains("present: true"); in hasBattery()65 return hasBattery; in hasBattery()
403 boolean hasBattery = batteryinfo.contains("present: true"); in noBattery()404 if (!hasBattery) { in noBattery()407 return !hasBattery; in noBattery()
42 if (BatteryIncidentTest.hasBattery(getDevice())) { in testIncidentReportDump()
85 boolean hasBattery() throws Exception { in hasBattery() method in BatteryConstraintTest203 if (!hasBattery()) { in testBatteryNotLowConstraintExecutes_withoutPower()232 if (!hasBattery()) { in testChargingConstraintFails()276 if (!hasBattery()) { in testBatteryNotLowConstraintFails_withoutPower()
65 if (!hasBattery()) { in testBatteryUsageStatsSinceReset()74 if (!hasBattery()) { in testBatteryUsageStatsSinceResetUsingPowerProfileModel()142 private boolean hasBattery() throws DeviceNotAvailableException { in hasBattery() method in BatteryUsageStatsTests
47 public static boolean hasBattery() { in hasBattery() method in BatteryUtils150 if (!hasBattery()) { in isBatterySaverSupported()
75 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
386 if (DeviceUtils.hasBattery(getDevice())) { in testRemainingBatteryCapacity()408 if (DeviceUtils.hasBattery(getDevice())) { in testFullBatteryCapacity()427 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryVoltage()447 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryLevel()
555 protected boolean hasBattery() throws Exception { in hasBattery() method in AtomTestCase
328 if (!DeviceUtils.hasBattery(getDevice())) { in testDeviceCalculatedPowerBlameUid()
145 if (!BatteryUtils.hasBattery()) { in testPowerManager_batteryDischargePrediction()
348 public static boolean hasBattery(ITestDevice device) throws Exception { in hasBattery() method