Home
last modified time | relevance | path

Searched refs:hasBattery (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryIncidentTest.java31 if (!hasBattery(getDevice())) { in testBatteryServiceDump()
62 static boolean hasBattery(ITestDevice device) throws DeviceNotAvailableException { in hasBattery() method in BatteryIncidentTest
64 boolean hasBattery = batteryinfo.contains("present: true"); in hasBattery()
65 return hasBattery; in hasBattery()
DBatteryStatsValidationTest.java642 boolean hasBattery = batteryinfo.contains("present: true"); in noBattery()
643 if (!hasBattery) { in noBattery()
646 return !hasBattery; in noBattery()
DIncidentdTest.java51 if (BatteryIncidentTest.hasBattery(getDevice())) { in testIncidentReportDump()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java93 boolean hasBattery() throws Exception { in hasBattery() method in BatteryConstraintTest
222 if (!hasBattery()) { in testBatteryNotLowConstraintExecutes_withoutPower()
251 if (!hasBattery()) { in testChargingConstraintFails()
295 if (!hasBattery()) { in testBatteryNotLowConstraintFails_withoutPower()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java355 if (hasBattery()) { in testRemainingBatteryCapacity()
381 if (hasBattery()) { in testFullBatteryCapacity()
405 if (hasBattery()) { in testBatteryVoltage()
430 if (hasBattery()) { in testBatteryLevel()
456 if (hasBattery()) { in testBatteryCycleCount()
DAtomTestCase.java474 protected boolean hasBattery() throws Exception { in hasBattery() method in AtomTestCase