Home
last modified time | relevance | path

Searched refs:mChargeTracker (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBatteryController.java52 private ChargingTracker mChargeTracker; field in BatteryController
56 return mChargeTracker; in getTracker()
61 mChargeTracker = new ChargingTracker(); in BatteryController()
62 mChargeTracker.startTracking(); in BatteryController()
70 taskStatus.setChargingConstraintSatisfied(mChargeTracker.isOnStablePower()); in maybeStartTrackingJobLocked()
71 taskStatus.setBatteryNotLowConstraintSatisfied(mChargeTracker.isBatteryNotLow()); in maybeStartTrackingJobLocked()
95 final boolean stablePower = mChargeTracker.isOnStablePower(); in maybeReportNewChargingStateLocked()
96 final boolean batteryNotLow = mChargeTracker.isBatteryNotLow(); in maybeReportNewChargingStateLocked()
241 pw.println("Stable power: " + mChargeTracker.isOnStablePower()); in dumpControllerStateLocked()
242 pw.println("Not low: " + mChargeTracker.isBatteryNotLow()); in dumpControllerStateLocked()
[all …]
DQuotaController.java331 private final ChargingTracker mChargeTracker; field in QuotaController
491 mChargeTracker = new ChargingTracker(); in QuotaController()
492 mChargeTracker.startTracking(); in QuotaController()
634 if (mChargeTracker.isCharging() in getMaxJobExecutionTimeMsLocked()
661 if (mChargeTracker.isCharging()) { in isWithinQuotaLocked()
1159 mChargeTracker.isCharging()); in handleNewChargingStateLocked()
1161 Slog.d(TAG, "handleNewChargingStateLocked: " + mChargeTracker.isCharging()); in handleNewChargingStateLocked()
1515 && !mChargeTracker.isCharging() && mRunningBgJobs.size() == 0) { in stopTrackingJob()
1575 return (standbyBucket == RESTRICTED_INDEX || !mChargeTracker.isCharging()) in shouldTrackLocked()
2660 pw.println("Is charging: " + mChargeTracker.isCharging()); in dumpControllerStateLocked()
[all …]