/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 87 boolean hasBattery() throws Exception { in hasBattery() method in BatteryConstraintTest 177 if (!hasBattery()) { in testBatteryNotLowConstraintExecutes_withoutPower() 206 if (!hasBattery()) { in testChargingConstraintFails() 250 if (!hasBattery()) { in testBatteryNotLowConstraintFails_withoutPower()
|
D | JobThrottlingTest.java | 526 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testJobsInRestrictedBucket_ParoleSession() 582 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testJobsInRestrictedBucket_DeferredUntilFreeResources() 621 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testJobsInRestrictedBucket_NoRequiredNetwork() 657 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testJobsInRestrictedBucket_WithRequiredNetwork() 704 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testJobsInNeverApp() 716 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testUidActiveBypassesStandby() 1077 assumeTrue(BatteryUtils.hasBattery()); in testRestrictingStopReason_RestrictedBucket_connectivity() 1138 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testRestrictingStopReason_RestrictedBucket_charging() 1167 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testRestrictingStopReason_RestrictedBucket_batteryNotLow() 1196 assumeTrue("device doesn't have battery", BatteryUtils.hasBattery()); in testRestrictingStopReason_Quota()
|
D | JobParametersTest.java | 200 if (BatteryUtils.hasBattery()) { in testStopReason()
|
D | JobSchedulingTest.java | 482 if (!BatteryUtils.hasBattery()) { 500 if (!BatteryUtils.hasBattery()) {
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/ |
D | BatteryUsageStatsTests.java | 67 if (!hasBattery()) { in testBatteryUsageStatsSinceReset() 76 if (!hasBattery()) { in testBatteryUsageStatsSinceResetUsingPowerProfileModel() 182 private boolean hasBattery() throws DeviceNotAvailableException { in hasBattery() method in BatteryUsageStatsTests
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 50 public static boolean hasBattery() { in hasBattery() method in BatteryUtils 185 if (!hasBattery()) { in isBatterySaverSupported()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/ |
D | BatteryCycleStatsTests.java | 76 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 394 if (DeviceUtils.hasBattery(getDevice())) { in testRemainingBatteryCapacity() 416 if (DeviceUtils.hasBattery(getDevice())) { in testFullBatteryCapacity() 435 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryVoltage() 455 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryLevel()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 160 if (!BatteryUtils.hasBattery()) { in testPowerManager_batteryDischargePrediction()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ManifestTestListAdapter.java | 533 if (!hasBattery(context)) { in matchAllConfigs() 670 private static boolean hasBattery(Context context) { in hasBattery() method in ManifestTestListAdapter
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | DeviceUtils.java | 419 public static boolean hasBattery(ITestDevice device) throws Exception { in hasBattery() method
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 1368 assumeTrue("Test only works on devices with a battery", BatteryUtils.hasBattery()); in testIsAppInactive() 1415 assumeTrue("Test only works on devices with a battery", BatteryUtils.hasBattery()); in testIsAppInactive_Charging()
|