Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceControllerTest.java84 @Mock private PowerGaugePreference mPowerGaugePreference;
326 final PowerGaugePreference pref = in testAddPreferenceToScreen_addPreferenceIntoScreen()
327 (PowerGaugePreference) mBatteryChartPreferenceController.mPreferenceCache in testAddPreferenceToScreen_addPreferenceIntoScreen()
406 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_setNullContentIfTotalUsageTimeIsZero()
418 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_setBackgroundUsageTimeOnly()
430 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_setTotalUsageTimeLessThanAMinute()
442 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_setTotalTimeIfBackgroundTimeLessThanAMinute()
455 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_setTotalAndBackgroundUsageTime()
467 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in testSetPreferenceSummary_notAllowShownPackage_setSummayAsNull()
DPowerGaugePreferenceTest.java46 private PowerGaugePreference mPowerGaugePreference;
64 mPowerGaugePreference = new PowerGaugePreference(mContext); in setUp()
DBatteryAppListPreferenceControllerTest.java68 private PowerGaugePreference mPreference;
86 mPreference = new PowerGaugePreference(mContext); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerGaugePreference.java37 public class PowerGaugePreference extends AppPreference { class
45 public PowerGaugePreference(Context context, Drawable icon, CharSequence contentDescription, in PowerGaugePreference() method in PowerGaugePreference
50 public PowerGaugePreference(Context context) { in PowerGaugePreference() method in PowerGaugePreference
54 public PowerGaugePreference(Context context, AttributeSet attrs) { in PowerGaugePreference() method in PowerGaugePreference
58 private PowerGaugePreference(Context context, AttributeSet attrs, Drawable icon, in PowerGaugePreference() method in PowerGaugePreference
DBatteryAppListPreferenceController.java115 PowerGaugePreference pgp = mAppListGroup.findPreference(entry.getKey());
187 if (preference instanceof PowerGaugePreference) { in handlePreferenceTreeClick()
188 PowerGaugePreference pgp = (PowerGaugePreference) preference; in handlePreferenceTreeClick()
236 PowerGaugePreference pref = (PowerGaugePreference) getCachedPreference(key); in refreshAppListGroup()
238 pref = new PowerGaugePreference(mPrefContext, badgedIcon, in refreshAppListGroup()
DBatteryChartPreferenceController.java213 if (!(preference instanceof PowerGaugePreference)) { in handlePreferenceTreeClick()
216 final PowerGaugePreference powerPref = (PowerGaugePreference) preference; in handlePreferenceTreeClick()
411 PowerGaugePreference pref = mAppListPrefGroup.findPreference(prefKey); in addPreferenceToScreen()
416 pref = (PowerGaugePreference) mPreferenceCache.get(prefKey); in addPreferenceToScreen()
420 pref = new PowerGaugePreference(mPrefContext); in addPreferenceToScreen()
512 PowerGaugePreference preference, BatteryDiffEntry entry) { in setPreferenceSummary()