Home
last modified time | relevance | path

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

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java87 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()
DJobThrottlingTest.java526 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()
DJobParametersTest.java200 if (BatteryUtils.hasBattery()) { in testStopReason()
DJobSchedulingTest.java482 if (!BatteryUtils.hasBattery()) {
500 if (!BatteryUtils.hasBattery()) {
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/
DBatteryUsageStatsTests.java67 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/
DBatteryUtils.java50 public static boolean hasBattery() { in hasBattery() method in BatteryUtils
185 if (!hasBattery()) { in isBatterySaverSupported()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/
DBatteryCycleStatsTests.java76 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java394 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/
DPowerManagerTest.java160 if (!BatteryUtils.hasBattery()) { in testPowerManager_batteryDischargePrediction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DManifestTestListAdapter.java533 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/
DDeviceUtils.java419 public static boolean hasBattery(ITestDevice device) throws Exception { in hasBattery() method
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java1368 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()