/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryIncidentTest.java | 31 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()
|
D | BatteryStatsValidationTest.java | 403 boolean hasBattery = batteryinfo.contains("present: true"); in noBattery() 404 if (!hasBattery) { in noBattery() 407 return !hasBattery; in noBattery()
|
D | IncidentdTest.java | 42 if (BatteryIncidentTest.hasBattery(getDevice())) { in testIncidentReportDump()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/ |
D | BatteryUsageStatsTests.java | 65 if (!hasBattery()) { in testBatteryUsageStatsSinceReset() 74 if (!hasBattery()) { in testBatteryUsageStatsSinceResetUsingPowerProfileModel() 142 private boolean hasBattery() throws DeviceNotAvailableException { in hasBattery() method in BatteryUsageStatsTests
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 85 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()
|
D | JobParametersTest.java | 125 if (BatteryUtils.hasBattery() && !isAutomotiveDevice()) { in testStopReason()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 47 public static boolean hasBattery() { in hasBattery() method in BatteryUtils 150 if (!hasBattery()) { in isBatterySaverSupported()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/ |
D | BatteryCycleStatsTests.java | 75 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 393 if (DeviceUtils.hasBattery(getDevice())) { in testRemainingBatteryCapacity() 415 if (DeviceUtils.hasBattery(getDevice())) { in testFullBatteryCapacity() 434 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryVoltage() 454 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryLevel()
|
D | AtomTestCase.java | 556 protected boolean hasBattery() throws Exception { in hasBattery() method in AtomTestCase
|
D | UidAtomTests.java | 337 if (!DeviceUtils.hasBattery(getDevice())) { in testDeviceCalculatedPowerBlameUid()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 145 if (!BatteryUtils.hasBattery()) { in testPowerManager_batteryDischargePrediction()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | DeviceUtils.java | 357 public static boolean hasBattery(ITestDevice device) throws Exception { in hasBattery() method
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 949 assumeTrue("Test only works on devices with a battery", BatteryUtils.hasBattery()); in testIsAppInactive() 996 assumeTrue("Test only works on devices with a battery", BatteryUtils.hasBattery()); in testIsAppInactive_Charging()
|