Home
last modified time | relevance | path

Searched refs:mPowerUsageFeatureProvider (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageAdvanced.java54 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in PowerUsageAdvanced
65 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in onCreate()
161 if (mPowerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(context) && !plugged) { in updateHistPrefSummary()
163 mPowerUsageFeatureProvider.getAdvancedUsageScreenInfoString()); in updateHistPrefSummary()
DAutoRestrictionPreferenceController.java35 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in AutoRestrictionPreferenceController
39 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in AutoRestrictionPreferenceController()
45 return mPowerUsageFeatureProvider.isSmartBatterySupported() in getAvailabilityStatus()
DSmartBatteryPreferenceController.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in SmartBatteryPreferenceController
42 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in SmartBatteryPreferenceController()
48 return mPowerUsageFeatureProvider.isSmartBatterySupported() in getAvailabilityStatus()
DBatteryUtils.java96 PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in BatteryUtils
110 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in BatteryUtils()
258 || mPowerUsageFeatureProvider.isTypeService(sipper) in shouldHideSipper()
259 || mPowerUsageFeatureProvider.isTypeSystem(sipper) in shouldHideSipper()
503 } else if (mPowerUsageFeatureProvider != null && in getEnhancedEstimate()
504 mPowerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(mContext)) { in getEnhancedEstimate()
505 estimate = mPowerUsageFeatureProvider.getEnhancedBatteryPrediction(mContext); in getEnhancedEstimate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DPowerUsageAdvanced.java54 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in PowerUsageAdvanced
65 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in onCreate()
161 if (mPowerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(context) && !plugged) { in updateHistPrefSummary()
163 mPowerUsageFeatureProvider.getAdvancedUsageScreenInfoString()); in updateHistPrefSummary()
DBatteryUtils.java91 PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in BatteryUtils
105 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in BatteryUtils()
251 || mPowerUsageFeatureProvider.isTypeService(sipper) in shouldHideSipper()
252 || mPowerUsageFeatureProvider.isTypeSystem(sipper); in shouldHideSipper()
454 if (mPowerUsageFeatureProvider != null && in getBatteryInfo()
455 mPowerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(mContext)) { in getBatteryInfo()
456 estimate = mPowerUsageFeatureProvider.getEnhancedBatteryPrediction(mContext); in getBatteryInfo()
DAutoRestrictionPreferenceController.java35 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in AutoRestrictionPreferenceController
39 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in AutoRestrictionPreferenceController()
45 return mPowerUsageFeatureProvider.isSmartBatterySupported() in getAvailabilityStatus()
DSmartBatteryPreferenceController.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in SmartBatteryPreferenceController
42 mPowerUsageFeatureProvider = FeatureFactory.getFactory(context) in SmartBatteryPreferenceController()
48 return mPowerUsageFeatureProvider.isSmartBatterySupported() in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetector.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in EarlyWarningDetector
44 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in EarlyWarningDetector()
55 final boolean earlyWarning = mPowerUsageFeatureProvider.getEarlyWarningSignal(mContext, in detect()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DEarlyWarningDetector.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in EarlyWarningDetector
44 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in EarlyWarningDetector()
55 final boolean earlyWarning = mPowerUsageFeatureProvider.getEarlyWarningSignal(mContext, in detect()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryManagerPreferenceController.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in BatteryManagerPreferenceController
44 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in BatteryManagerPreferenceController()
59 final String setting = mPowerUsageFeatureProvider.isSmartBatterySupported() in updateState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryManagerPreferenceController.java38 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in BatteryManagerPreferenceController
44 mPowerUsageFeatureProvider = FeatureFactory.getFactory( in BatteryManagerPreferenceController()
59 final String setting = mPowerUsageFeatureProvider.isSmartBatterySupported() in updateState()
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactoryImpl.java78 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in FeatureFactoryImpl
103 if (mPowerUsageFeatureProvider == null) { in getPowerUsageFeatureProvider()
104 mPowerUsageFeatureProvider = new PowerUsageFeatureProviderImpl( in getPowerUsageFeatureProvider()
107 return mPowerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/overlay/
DFeatureFactoryImpl.java78 private PowerUsageFeatureProvider mPowerUsageFeatureProvider; field in FeatureFactoryImpl
103 if (mPowerUsageFeatureProvider == null) { in getPowerUsageFeatureProvider()
104 mPowerUsageFeatureProvider = new PowerUsageFeatureProviderImpl( in getPowerUsageFeatureProvider()
107 return mPowerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java229 mBatteryUtils.mPowerUsageFeatureProvider = mProvider; in setUp()