Home
last modified time | relevance | path

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

12345678910>>...21

/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/wifi/tether/
DWifiTetherPasswordPreferenceControllerTest.java118 mController.onPreferenceChange(mPreference, VALID_PASS); in changePreference_shouldUpdateValue()
122 mController.onPreferenceChange(mPreference, VALID_PASS2); in changePreference_shouldUpdateValue()
132 mController.onPreferenceChange(mPreference, VALID_PASS); in changePreference_shouldLogActionWhenChanged()
140 mController.onPreferenceChange(mPreference, INITIAL_PASSWORD); in changePreference_shouldNotLogActionWhenNotChanged()
149 mController.onPreferenceChange(mPreference, VALID_PASS); in updateDisplay_shouldUpdateValue()
169 mController.onPreferenceChange(mPreference, VALID_PASS); in updateDisplay_shouldSetInputType()
DWifiTetherSSIDPreferenceControllerTest.java106 mController.onPreferenceChange(mPreference, "1"); in changePreference_shouldUpdateValue()
109 mController.onPreferenceChange(mPreference, "0"); in changePreference_shouldUpdateValue()
118 mController.onPreferenceChange(mPreference, "1"); in changePreference_shouldLogActionWhenChanged()
126 mController.onPreferenceChange(mPreference, in changePreference_shouldNotLogActionWhenNotChanged()
136 mController.onPreferenceChange(mPreference, "1"); in updateDisplay_shouldUpdateValue()
DWifiTetherAutoOffPreferenceControllerTest.java74 mController.onPreferenceChange(null, true); in testOnPreferenceChange_toggleOn_settingsOn()
81 mController.onPreferenceChange(null, false); in testOnPreferenceChange_toggleOff_settingsOff()
116 mController.onPreferenceChange(mSwitchPreference, true); in onPreferenceChange_needShutdownSecondarySap_setSecondarySap()
129 mController.onPreferenceChange(mSwitchPreference, true); in onPreferenceChange_noNeedShutdownSecondarySap_doNotSetSecondarySap()
/packages/apps/Settings/tests/unit/src/com/android/settings/development/bluetooth/
DBluetoothStackLogPreferenceControllerTest.java93 mController.onPreferenceChange(mPreference, mController.getDefaultModeIndex()); in verifyDefaultState_enablesDefaultLogLevelEntriesAndValuesSameSize()
105 mController.onPreferenceChange(mPreference, mListValues[BTSTACK_LOG_MODE_VERBOSE_INDEX] in onPreferenceChanged_enableBluetoothStackVerboseLogLevel()
126 mController.onPreferenceChange(mPreference, mListValues[BTSTACK_LOG_MODE_DEBUG_INDEX] in onPreferenceChanged_enableBluetoothStackDebugLogLevel()
147 mController.onPreferenceChange(mPreference, mListValues[BTSTACK_LOG_MODE_INFO_INDEX] in onPreferenceChanged_enableBluetoothStackInfoLogLevel()
168 mController.onPreferenceChange(mPreference, mListValues[BTSTACK_LOG_MODE_WARN_INDEX] in onPreferenceChanged_enableBluetoothStackWarnLogLevel()
190 mController.onPreferenceChange(mPreference, mListValues[BTSTACK_LOG_MODE_ERROR_INDEX] in onPreferenceChanged_enableBluetoothStackErrorLogLevel()
/packages/apps/Settings/tests/unit/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverEnableAngleAsSystemDriverControllerJUnitTest.java150 mController.onPreferenceChange(mPreference, true); in onPreferenceChange_switchOn_shouldEnableAngleAsSystemDriver()
170 mController.onPreferenceChange(mPreference, false); in onPreferenceChange_switchOff_shouldDisableAngleAsSystemDriver()
242 mController.onPreferenceChange(mPreference, true); in onRebootCancelled_ToggleSwitchFromOnToOff()
279 mController.onPreferenceChange(mPreference, false); in onRebootCancelled_ToggleSwitchFromOffToOn()
316 mController.onPreferenceChange(mPreference, true); in onRebootDialogDismissed_ToggleSwitchFromOnToOff()
352 mController.onPreferenceChange(mPreference, false); in onRebootDialogDismissed_ToggleSwitchFromOffToOn()
388 mController.onPreferenceChange(mPreference, true); in onRebootDialogConfirmed_ToggleSwitchOnRemainsOn()
423 mController.onPreferenceChange(mPreference, false); in onRebootDialogConfirmed_ToggleSwitchOffRemainsOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsHearingAidsPresetsControllerTest.java135 boolean handled = mController.onPreferenceChange(presetPreference, in onPreferenceChange_keyMatched_verifyStatusUpdated()
146 boolean handled = mController.onPreferenceChange( in onPreferenceChange_keyNotMatched_doNothing()
159 mController.onPreferenceChange(presetPreference, String.valueOf(TEST_PRESET_INDEX)); in onPreferenceChange_supportGroupOperation_validGroupId_verifySelectPresetForGroup()
170 mController.onPreferenceChange(presetPreference, String.valueOf(TEST_PRESET_INDEX)); in onPreferenceChange_notSupportGroupOperation_verifySelectPreset()
181 mController.onPreferenceChange(presetPreference, String.valueOf(TEST_PRESET_INDEX)); in onPreferenceChange_invalidGroupId_verifySelectPreset()
192 mController.onPreferenceChange(presetPreference, String.valueOf(TEST_PRESET_INDEX)); in onPreferenceChange_notSupportGroupOperation_hasSubDevice_verifyStatusUpdated()
204 mController.onPreferenceChange(presetPreference, String.valueOf(TEST_PRESET_INDEX)); in onPreferenceChange_notSupportGroupOperation_hasMemberDevice_verifyStatusUpdated()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DDeviceNamePreferenceControllerTest.java139 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_preferenceUpdatedWhenDeviceNameUpdated()
150 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_bluetoothNameUpdatedWhenDeviceNameUpdated()
159 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_wifiTetherNameUpdatedWhenDeviceNameUpdated()
178 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_okInDeviceNameWarningDialog_shouldChangePreferenceText()
187 mController.onPreferenceChange(mPreference, TESTING_STRING); in setDeviceName_cancelInDeviceNameWarningDialog_shouldNotChangePreferenceText()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWirelessDebuggingPreferenceControllerTest.java120 mController.onPreferenceChange(null, true); in onPreferenceChange_turnOn_wifiConnected_adbWifiEnabledTrue()
128 mController.onPreferenceChange(null, false); in onPreferenceChange_turnOff_wifiConnected_adbWifiEnabledFalse()
137 mController.onPreferenceChange(null, true); in onPreferenceChange_turnOn_wifiNotConnected_adbWifiEnabledFalse()
145 mController.onPreferenceChange(null, false); in onPreferenceChange_turnOff_wifiNotConnected_adbWifiEnabledFalse()
DBluetoothSnoopLogFilterProfileMapPreferenceControllerTest.java96 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogFullFilterMap()
114 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogHeaderFilterMap()
131 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogMagicFilterMap()
148 mController.onPreferenceChange( in onPreferenceChanged_turnOffBluetoothSnoopLogFilterMap()
DBluetoothSnoopLogFilterProfilePbapPreferenceControllerTest.java96 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogFullFilterPbap()
114 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogHeaderFilterPbap()
131 mController.onPreferenceChange( in onPreferenceChanged_turnOnBluetoothSnoopLogMagicFilterPbap()
148 mController.onPreferenceChange( in onPreferenceChanged_turnOffBluetoothSnoopLogFilterPbap()
DOverlayCategoryPreferenceControllerTest.java124 mController.onPreferenceChange(null, TWO_DISABLED.packageName); in onPreferenceChange_enable()
138 mController.onPreferenceChange(null, TWO_DISABLED.packageName); in onPreferenceChange_enable_fails()
150 mController.onPreferenceChange( in onPreferenceChange_disable()
164 mController.onPreferenceChange( in onPreferenceChange_disable_fails()
179 mController.onPreferenceChange( in onPreferenceChange_disable_throws()
DIngressRateLimitPreferenceControllerTest.java65 assertThat(mController.onPreferenceChange(mPreference, newRateLimit)).isTrue(); in onPreferenceChanged_select5Mbits_shouldEnableIngressRateLimit()
75 assertThat(mController.onPreferenceChange(mPreference, disabledRateLimit)).isTrue(); in onPreferenceChanged_selectDisabled_shouldDisableIngressRateLimit()
85 assertThat(mController.onPreferenceChange(mPreference, invalidRateLimit)).isFalse(); in onPreferenceChanged_invalidValue_returnsFalse()
DEnableVerboseVendorLoggingPreferenceControllerTest.java87 mController.onPreferenceChange(mPreference, true /* new value */); in onPreferenceChange_settingEnableByHidl_enableVendorLoggingShouldBeOn()
99 mController.onPreferenceChange(mPreference, true /* new value */); in onPreferenceChange_settingEnableByAidl_enableVendorLoggingShouldBeOn()
111 mController.onPreferenceChange(mPreference, false /* new value */); in onPreferenceChange_settingDisableByHidl_enableVendorLoggingShouldBeOff()
123 mController.onPreferenceChange(mPreference, false /* new value */); in onPreferenceChange_settingDisableByAidl_enableVendorLoggingShouldBeOff()
DAdbAuthorizationTimeoutPreferenceControllerTest.java81 mPreferenceController.onPreferenceChange(mPreference, true); in onPreferenceChange_enableSetting_timeoutSetToZero()
96 mPreferenceController.onPreferenceChange(mPreference, true); in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault()
97 mPreferenceController.onPreferenceChange(mPreference, false); in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault()
DBluetoothSnoopLogPreferenceControllerTest.java87 mController.onPreferenceChange( in onPreferenceChanged_turnOnFullBluetoothSnoopLog()
97 mController.onPreferenceChange( in onPreferenceChanged_turnOnFilteredBluetoothSnoopLog()
107 mController.onPreferenceChange( in onPreferenceChanged_turnOffBluetoothSnoopLog()
DGrammaticalGenderPreferenceControllerTest.java78 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_setNeuter_shouldEnableNeuter()
98 mController.onPreferenceChange(mPreference, mListValues[2]); in onPreferenceChange_setFeminine_shouldEnableFeminine()
118 mController.onPreferenceChange(mPreference, mListValues[3]); in onPreferenceChange_setMasculine_shouldEnableMasculine()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherMaximizeCompatibilityPreferenceControllerTest.java142 mController.onPreferenceChange(mPreference, true); in onPreferenceChange_callbackOnTetherConfigUpdated()
199 mController.onPreferenceChange(mPreference, false); in setupMaximizeCompatibility_concurrencySupportedAndDisabled_setEnabled()
210 mController.onPreferenceChange(mPreference, true); in setupMaximizeCompatibility_concurrencySupportedAndEnabled_setDisabled()
221 mController.onPreferenceChange(mPreference, false); in setupMaximizeCompatibility_noConcurrencyAndSetDisabled_setBand2gOnly()
233 mController.onPreferenceChange(mPreference, true); in setupMaximizeCompatibility_noConcurrencyAndSetEnabled_setBand2gAnd5g()
DWifiTetherSecurityPreferenceControllerTest.java88 mController.onPreferenceChange(mPreference, WPA3_SAE); in onPreferenceChange_toWpa3Sae_shouldUpdateSecurityValue()
97 mController.onPreferenceChange(mPreference, WPA3_SAE_TRANSITION); in onPreferenceChange_toWpa3SaeTransition_shouldUpdateSecurityValue()
106 mController.onPreferenceChange(mPreference, WPA2_PSK); in onPreferenceChange_toWpa2Psk_shouldUpdateSecurityValue()
115 mController.onPreferenceChange(mPreference, NONE); in onPreferenceChange_toNone_shouldUpdateSecurityValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeOtherPreferenceControllerTest.java94 controller.onPreferenceChange(preference, true); in testOnPreferenceChange_alarms()
137 controller.onPreferenceChange(preference, true); in testOnPreferenceChange_media()
180 controller.onPreferenceChange(preference, true); in testOnPreferenceChange_system()
225 controller.onPreferenceChange(preference, true); in testOnPreferenceChange_reminders()
268 controller.onPreferenceChange(preference, true); in testOnPreferenceChange_events()
DZenModeDisplayEffectPreferenceControllerTest.java102 controller.onPreferenceChange(preference, false); in testOnPreferenceChange_grayscale()
149 controller.onPreferenceChange(preference, false); in testOnPreferenceChange_aod()
198 controller.onPreferenceChange(preference, false); in testOnPreferenceChange_wallpaper()
246 controller.onPreferenceChange(preference, false); in testOnPreferenceChange_darkTheme()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPriorityPreferenceControllerTest.java95 mController.onPreferenceChange(mock(Preference.class), true); in testNoCrashIfNoOnResume()
204 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_HIGH, true)); in testImportanceLowToImportant()
223 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_HIGH, false)); in testImportanceLowToDefault()
243 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_LOW, false)); in testImportanceDefaultToLow()
263 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_DEFAULT, false)); in testImportanceLowToDefault_bubblesMaintained()
284 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_HIGH, false)); in testImportancePriorityToDefault()
DBubblePreferenceControllerTest.java129 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
384 mController.onPreferenceChange(pref, true); in onPreferenceChange_on_channel()
404 mController.onPreferenceChange(pref, false); in onPreferenceChange_off_channel()
423 mAppPageController.onPreferenceChange(pref, BUBBLE_PREFERENCE_ALL); in onPreferenceChange_app_all()
443 mAppPageController.onPreferenceChange(pref, BUBBLE_PREFERENCE_ALL); in testOnPreferenceChange_app_all_offGlobally()
463 mAppPageController.onPreferenceChange(pref, BUBBLE_PREFERENCE_NONE); in onPreferenceChange_app_selected()
482 mAppPageController.onPreferenceChange(pref, BUBBLE_PREFERENCE_NONE); in onPreferenceChange_app_none()
497 mAppPageController.onPreferenceChange(pref, BUBBLE_PREFERENCE_NONE); in onPreferenceChange_dependentFieldListenerCalled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyTonePreferenceControllerTest.java123 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "0"); in onPreferenceChanged_firstItemSelected_shouldSetEmergencyToneToOff()
132 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "1"); in onPreferenceChanged_secondItemSelected_shouldSetEmergencyToneToAlert()
141 mPreference.getOnPreferenceChangeListener().onPreferenceChange(mPreference, "2"); in onPreferenceChanged_thirdItemSelected_shouldSetEmergencyToneToVibrate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DCrossProfileCalendarPreferenceControllerTest.java139 mController.onPreferenceChange(mPreference, false); in onPreferenceChangeToFalse_shouldUpdateProviderValue()
148 mController.onPreferenceChange(mPreference, false); in onPreferenceChangeToTrue_shouldUpdateProviderValue()
150 mController.onPreferenceChange(mPreference, true); in onPreferenceChangeToTrue_shouldUpdateProviderValue()

12345678910>>...21