Home
last modified time | relevance | path

Searched refs:onPreferenceChange (Results 1 – 25 of 541) sorted by relevance

12345678910>>...22

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherApBandPreferenceControllerTest.java90 mController.onPreferenceChange(mPreference, "-1"); in display_5GhzSupported_shouldDisplayFullList()
128 mController.onPreferenceChange(mPreference, "-1"); in changePreference_noDualModeWith5G_shouldUpdateValue()
134 mController.onPreferenceChange(mPreference, "1"); in changePreference_noDualModeWith5G_shouldUpdateValue()
140 mController.onPreferenceChange(mPreference, "0"); in changePreference_noDualModeWith5G_shouldUpdateValue()
155 mController.onPreferenceChange(mPreference, "-1"); in changePreference_dualModeWith5G_shouldUpdateValue()
161 mController.onPreferenceChange(mPreference, "1"); in changePreference_dualModeWith5G_shouldUpdateValue()
167 mController.onPreferenceChange(mPreference, "0"); in changePreference_dualModeWith5G_shouldUpdateValue()
180 mController.onPreferenceChange(mPreference, "1"); in updateDisplay_shouldUpdateValue()
DWifiTetherPasswordPreferenceControllerTest.java94 mController.onPreferenceChange(mPreference, VALID_PASS); in changePreference_shouldUpdateValue()
98 mController.onPreferenceChange(mPreference, VALID_PASS2); in changePreference_shouldUpdateValue()
109 mController.onPreferenceChange(mPreference, VALID_PASS); in updateDisplay_shouldUpdateValue()
129 mController.onPreferenceChange(mPreference, VALID_PASS); in updateDisplay_shouldSetInputType()
DWifiTetherSSIDPreferenceControllerTest.java99 mController.onPreferenceChange(mPreference, "1"); in changePreference_shouldUpdateValue()
102 mController.onPreferenceChange(mPreference, "0"); in changePreference_shouldUpdateValue()
112 mController.onPreferenceChange(mPreference, "1"); in updateDisplay_shouldUpdateValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DDeviceNamePreferenceControllerTest.java120 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_preferenceUpdatedWhenDeviceNameUpdated()
129 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_bluetoothNameUpdatedWhenDeviceNameUpdated()
138 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_wifiTetherNameUpdatedWhenDeviceNameUpdated()
156 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_ignoresIfCancelPressed()
165 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_okInDeviceNameWarningDialog_shouldChangePreferenceText()
174 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_cancelInDeviceNameWarningDialog_shouldNotChangePreferenceText()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/edit/
DEditInfoFragmentTest.java45 assertThat(listener.onPreferenceChange(preference, value)).isTrue(); in testOnPreferenceChange_without_listener()
56 doReturn(resultValue).when(preference).onPreferenceChange(preference, value); in testOnPreferenceChange_with_listener()
58 assertThat(listener.onPreferenceChange(preference, value)).isEqualTo(resultValue); in testOnPreferenceChange_with_listener()
61 verify(preference).onPreferenceChange(preference, value); in testOnPreferenceChange_with_listener()
78 public boolean onPreferenceChange(Preference preference, Object o) { in onPreferenceChange() method in EditInfoFragmentTest.PreferenceWithListener
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOverlayCategoryPreferenceControllerTest.java111 mController.onPreferenceChange(null, TWO_DISABLED.packageName); in onPreferenceChange_enable()
124 mController.onPreferenceChange(null, TWO_DISABLED.packageName); in onPreferenceChange_enable_fails()
135 mController.onPreferenceChange( in onPreferenceChange_disable()
148 mController.onPreferenceChange( in onPreferenceChange_disable_fails()
162 mController.onPreferenceChange( in onPreferenceChange_disable_throws()
DBluetoothSnoopLogPreferenceControllerTest.java92 mController.onPreferenceChange(null, in onPreferenceChanged_turnOnFullBluetoothSnoopLog()
101 mController.onPreferenceChange(null, in onPreferenceChanged_turnOnFilteredBluetoothSnoopLog()
110 mController.onPreferenceChange(null, in onPreferenceChanged_turnOffBluetoothSnoopLog()
DForceMSAAPreferenceControllerTest.java61 mController.onPreferenceChange(mPreference, true /* new value */); in onPreferenceChanged_settingEnabled_turnOnForceMsaa()
70 mController.onPreferenceChange(mPreference, false /* new value */); in onPreferenceChanged_settingDisabled_turnOffForceMsaa()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DAssistantCapabilityPreferenceControllerTest.java145 mPrioritizerController.onPreferenceChange(mPrioritizerPreference, true); in onPreferenceChange_prioritizerOn()
151 mPrioritizerController.onPreferenceChange(mPrioritizerPreference, false); in onPreferenceChange_prioritizerOff()
157 mChipController.onPreferenceChange(mChipPreference, true); in onPreferenceChange_chipsOn()
164 mChipController.onPreferenceChange(mChipPreference, false); in onPreferenceChange_chipsOff()
DBubblePreferenceControllerTest.java101 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
311 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on_channel()
331 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off_channel()
348 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on_app()
366 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off_app()
385 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on_app_offGlobally()
DBadgePreferenceControllerTest.java88 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
253 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on_channel()
272 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off_channel()
288 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on_app()
305 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off_app()
DEmergencyTonePreferenceControllerTest.java119 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "0"); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff()
128 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "1"); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert()
137 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "2"); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
DShowOnLockscreenNotificationPreferenceControllerTest.java183 mController.onPreferenceChange(mPreference, in onPreferenceChange_allToAlerting()
204 mController.onPreferenceChange(mPreference, in onPreferenceChange_noneToAll()
225 mController.onPreferenceChange(mPreference, in onPreferenceChange_alertingToNone()
DVibrationPreferenceControllerTest.java92 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
202 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on()
220 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off()
DLightsPreferenceControllerTest.java100 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
206 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on()
224 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off()
DAllowSoundPreferenceControllerTest.java89 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
212 mController.onPreferenceChange(pref, true); in testOnPreferenceChange_on()
230 mController.onPreferenceChange(pref, false); in testOnPreferenceChange_off()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DUseOpenWifiPreferenceControllerTest.java154 assertThat(mController.onPreferenceChange(pref, null)).isFalse(); in onPreferenceChange_nonMatchingKey_shouldDoNothing()
164 assertThat(mController.onPreferenceChange(pref, null)).isFalse(); in onPreferenceChange_notAvailable_shouldDoNothing()
175 assertThat(mController.onPreferenceChange(pref, null)).isFalse(); in onPreferenceChange_matchingKeyAndAvailable_enableShouldStartEnableActivity()
194 assertThat(mController.onPreferenceChange(pref, null)).isTrue(); in onPreferenceChange_matchingKeyAndAvailable_disableShouldUpdateSetting()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/
DAutofillLoggingLevelPreferenceControllerTest.java110 mController.onPreferenceChange(mPreference, mListValues[IDX_OFF]); in onPreferenceChange_off()
119 mController.onPreferenceChange(mPreference, mListValues[IDX_DEBUG]); in onPreferenceChange_debug()
129 mController.onPreferenceChange(mPreference, mListValues[IDX_VERBOSE]); in onPreferenceChange_verbose()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DCrossProfileCalendarPreferenceControllerTest.java142 mController.onPreferenceChange(mPreference, false); in onPreferenceChangeToFalse_shouldUpdateProviderValue()
151 mController.onPreferenceChange(mPreference, false); in onPreferenceChangeToTrue_shouldUpdateProviderValue()
153 mController.onPreferenceChange(mPreference, true); in onPreferenceChangeToTrue_shouldUpdateProviderValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/
DGameDriverEnableForAllAppsPreferenceControllerTest.java184 mController.onPreferenceChange(mPreference, mPreferenceDefault); in onPreferenceChange_default_shouldUpdateSettingsGlobal()
195 mController.onPreferenceChange(mPreference, mPreferenceGameDriver); in onPreferenceChange_gameDriver_shouldUpdateSettingsGlobal()
206 mController.onPreferenceChange(mPreference, mPreferencePrereleaseDriver); in onPreferenceChange_prereleaseDriver_shouldUpdateSettingsGlobal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBatteryPercentagePreferenceControllerTest.java52 mController.onPreferenceChange(null, true); in testOnPreferenceChange_TurnOnPercentage_PercentageOn()
59 mController.onPreferenceChange(null, false); in testOnPreferenceChange_TurnOffPercentage_PercentageOff()
DShowOperatorNamePreferenceControllerTest.java73 mController.onPreferenceChange(mPreference, true); in testOnPreferenceChange_TurnOn_ReturnOn()
82 mController.onPreferenceChange(mPreference, false); in testOnPreferenceChange_TurnOff_ReturnOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DAutoTimePreferenceControllerTest.java67 mController.onPreferenceChange(mPreference, true); in updatePreferenceChange_prefIsChecked_shouldUpdatePreferenceAndNotifyCallback()
75 mController.onPreferenceChange(mPreference, false); in updatePreferenceChange_prefIsUnchecked_shouldUpdatePreferenceAndNotifyCallback()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/settings/
DGeneralPrefsFragmentTest.java73 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_OLDER); in testChangeAutoAdvance()
76 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_NEWER); in testChangeAutoAdvance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DTogglePreferenceControllerTest.java72 mToggleController.onPreferenceChange(mPreference, newValue); in testUpdatesPreferenceOnChange_turnsOn()
82 mToggleController.onPreferenceChange(mPreference, newValue); in testUpdatesPreferenceOnChange_turnsOff()

12345678910>>...22