Home
last modified time | relevance | path

Searched refs:hasBattery (Results 1 – 12 of 12) 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.java403 boolean hasBattery = batteryinfo.contains("present: true"); in noBattery()
404 if (!hasBattery) { in noBattery()
407 return !hasBattery; in noBattery()
DIncidentdTest.java42 if (BatteryIncidentTest.hasBattery(getDevice())) { in testIncidentReportDump()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java85 boolean hasBattery() throws Exception { in hasBattery() method in BatteryConstraintTest
203 if (!hasBattery()) { in testBatteryNotLowConstraintExecutes_withoutPower()
232 if (!hasBattery()) { in testChargingConstraintFails()
276 if (!hasBattery()) { in testBatteryNotLowConstraintFails_withoutPower()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/
DBatteryUsageStatsTests.java65 if (!hasBattery()) { in testBatteryUsageStatsSinceReset()
74 if (!hasBattery()) { in testBatteryUsageStatsSinceResetUsingPowerProfileModel()
142 private boolean hasBattery() throws DeviceNotAvailableException { in hasBattery() method in BatteryUsageStatsTests
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java47 public static boolean hasBattery() { in hasBattery() method in BatteryUtils
150 if (!hasBattery()) { in isBatterySaverSupported()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/
DBatteryCycleStatsTests.java75 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java386 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()
DAtomTestCase.java555 protected boolean hasBattery() throws Exception { in hasBattery() method in AtomTestCase
DUidAtomTests.java328 if (!DeviceUtils.hasBattery(getDevice())) { in testDeviceCalculatedPowerBlameUid()
/cts/tests/tests/os/src/android/os/cts/
DPowerManagerTest.java145 if (!BatteryUtils.hasBattery()) { in testPowerManager_batteryDischargePrediction()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java348 public static boolean hasBattery(ITestDevice device) throws Exception { in hasBattery() method