Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java120 private PrimarySwitchPreference mAllowBackgroundUsagePreference; field in AdvancedPowerUsageDetailTest
223 mAllowBackgroundUsagePreference = new PrimarySwitchPreference(mContext); in setUp()
224 mAllowBackgroundUsagePreference.setKey(KEY_ALLOW_BACKGROUND_USAGE); in setUp()
225 mFragment.mAllowBackgroundUsagePreference = mAllowBackgroundUsagePreference; in setUp()
368 assertThat(mAllowBackgroundUsagePreference.getSummary().toString()) in initFooter_isValidPackageName_hasCorrectString()
379 assertThat(mAllowBackgroundUsagePreference.getSummary().toString()) in initFooter_isSystemOrDefaultApp_hasCorrectString()
390 assertThat(mAllowBackgroundUsagePreference.getSummary().toString()) in initFooter_hasCorrectString()
407 mFragment.onPreferenceChange(mAllowBackgroundUsagePreference, true); in onPause_optimizationModeChanged_logPreference()
433 mFragment.onPreferenceChange(mAllowBackgroundUsagePreference, true); in onPause_optimizationModeIsNotChanged_notInvokeLogging()
436 mFragment.onPreferenceChange(mAllowBackgroundUsagePreference, false); in onPause_optimizationModeIsNotChanged_notInvokeLogging()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java103 @VisibleForTesting PrimarySwitchPreference mAllowBackgroundUsagePreference; field in AdvancedPowerUsageDetail
364 mAllowBackgroundUsagePreference.setSummary(detailInfoString); in initFooter()
486 mAllowBackgroundUsagePreference = findPreference(KEY_ALLOW_BACKGROUND_USAGE); in onCreateBackgroundUsageState()
487 if (mAllowBackgroundUsagePreference != null) { in onCreateBackgroundUsageState()
488 mAllowBackgroundUsagePreference.setOnPreferenceClickListener(this); in onCreateBackgroundUsageState()
489 mAllowBackgroundUsagePreference.setOnPreferenceChangeListener(this); in onCreateBackgroundUsageState()