Home
last modified time | relevance | path

Searched refs:mBatterySettingsFeatureProvider (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/batteryinfo/
DBatteryInfoPreferenceControllerTest.java42 private BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in BatteryInfoPreferenceControllerTest
47 mBatterySettingsFeatureProvider = in setUp()
54 when(mBatterySettingsFeatureProvider.isBatteryInfoEnabled(mContext)).thenReturn(false); in getAvailabilityStatus_dateUnavailable_returnNotAvailable()
61 when(mBatterySettingsFeatureProvider.isBatteryInfoEnabled(mContext)).thenReturn(true); in getAvailabilityStatus_dateAvailable_returnAvailable()
/packages/apps/Settings/src/com/android/settings/deviceinfo/batteryinfo/
DBatteryInfoPreferenceController.java28 private final BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in BatteryInfoPreferenceController
32 mBatterySettingsFeatureProvider = FeatureFactory.getFeatureFactory() in BatteryInfoPreferenceController()
38 return mBatterySettingsFeatureProvider.isBatteryInfoEnabled(mContext) ? AVAILABLE in getAvailabilityStatus()
DBatteryManufactureDatePreferenceController.java34 private final BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in BatteryManufactureDatePreferenceController
41 mBatterySettingsFeatureProvider = FeatureFactory.getFeatureFactory() in BatteryManufactureDatePreferenceController()
48 return mBatterySettingsFeatureProvider.isManufactureDateAvailable(mContext, in getAvailabilityStatus()
DBatteryFirstUseDatePreferenceController.java34 private final BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in BatteryFirstUseDatePreferenceController
41 mBatterySettingsFeatureProvider = FeatureFactory.getFeatureFactory() in BatteryFirstUseDatePreferenceController()
48 return mBatterySettingsFeatureProvider.isFirstUseDateAvailable(mContext, getFirstUseDate()) in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceController.java47 private final BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in BatteryHeaderPreferenceController
56 mBatterySettingsFeatureProvider = in BatteryHeaderPreferenceController()
89 && mBatterySettingsFeatureProvider.isChargingOptimizationMode(mContext)) { in generateLabel()
98 mBatterySettingsFeatureProvider.getWirelessChargingLabel(mContext, info); in generateLabel()
101 mBatterySettingsFeatureProvider in generateLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DTopLevelBatteryPreferenceControllerTest.java51 private BatterySettingsFeatureProvider mBatterySettingsFeatureProvider; field in TopLevelBatteryPreferenceControllerTest