Home
last modified time | relevance | path

Searched refs:onPreferenceClick (Results 1 – 25 of 110) sorted by relevance

12345

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/language/
DLanguageBasePreferenceControllerTest.java127 assertThat(mController.onPreferenceClick(new Preference(mContext))).isFalse(); in testOnPreferenceClick_noLocale_returnsFalse()
140 assertThat(mController.onPreferenceClick(preference)).isTrue(); in testOnPreferenceClick_hasMultipleChildLocales_returnsTrue()
152 mController.onPreferenceClick(preference); in testOnPreferenceClick_hasMultipleChildLocales_localeNotUpdated()
166 mController.onPreferenceClick(preference); in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack()
179 assertThat(mController.onPreferenceClick(preference)).isTrue(); in testOnPreferenceClick_hasSingleChildLocale_returnsTrue()
190 mController.onPreferenceClick(preference); in testOnPreferenceClick_hasSingleChildLocale_localeUpdated()
203 mController.onPreferenceClick(preference); in testOnPreferenceClick_hasSingleChildLocale_callsGoBack()
212 assertThat(mController.onPreferenceClick(preference)).isFalse(); in testOnPreferenceClick_noChildLocale_returnsFalse()
219 mController.onPreferenceClick(preference); in testOnPreferenceClick_noChildLocale_localeNotUpdated()
227 mController.onPreferenceClick(preference); in testOnPreferenceClick_noChildLocale_neverCallsGoBack()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationModePreferenceControllerTest.java90 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in clickPreference_settingsModeIsDefault_checkedModeInDialogIsDefault()
97 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in choseModeIsDifferentFromInSettings_checkedModeInDialogIsExpected()
106 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in dialogIsReCreated_settingsModeIsAllAndChoseWindowMode_checkedModeIsWindow()
119 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in chooseFullscreenMode_tripleTapEnabled_notShowTripleTapWarningDialog()
132 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in chooseWindowMode_tripleTapEnabled_showTripleTapWarningDialog()
145 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in chooseAllMode_tripleTapEnabled_showTripleTapWarningDialog()
170 mModePreference.getOnPreferenceClickListener().onPreferenceClick(mModePreference); in onTripleTapWarningDialogPositiveButtonClicked_chooseAllMode_returnAllSummary()
/packages/apps/Traceur/src/com/android/traceur/
DMainFragment.java112 public boolean onPreferenceClick(Preference preference) { in onCreate()
123 public boolean onPreferenceClick(Preference preference) { in onCreate()
134 public boolean onPreferenceClick(Preference preference) { in onCreate()
171 public boolean onPreferenceClick(Preference preference) { in onCreate()
184 public boolean onPreferenceClick(Preference preference) { in onCreate()
198 public boolean onPreferenceClick(Preference preference) { in onCreate()
208 public boolean onPreferenceClick(Preference preference) { in onCreate()
217 public boolean onPreferenceClick(Preference preference) { in onCreate()
243 public boolean onPreferenceClick(Preference preference) { in onCreate()
262 public boolean onPreferenceClick(Preference preference) { in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java488 mFragment.onPreferenceClick(mSwitchUserPref); in onPreferenceClick_switchClicked_canSwitch_shouldSwitch()
504 mFragment.onPreferenceClick(mSwitchUserPref); in onPreferenceClick_switchToRestrictedClicked_canSwitch_shouldSwitch()
520 mFragment.onPreferenceClick(mSwitchUserPref); in onPreferenceClick_switchToGuestClicked_canSwitch_shouldSwitch()
535 mFragment.onPreferenceClick(mSwitchUserPref); in onPreferenceClick_switchClicked_canNotSwitch_doNothing()
551 mFragment.onPreferenceClick(mRemoveUserPref); in onPreferenceClick_removeGuestClicked_canDelete_shouldShowDialog()
569 mFragment.onPreferenceClick(mRemoveUserPref); in onPreferenceClick_removeRestrictedClicked_canDelete_shouldShowDialog()
588 mFragment.onPreferenceClick(mRemoveUserPref); in onPreferenceClick_removeClicked_canDelete_shouldShowDialog()
605 mFragment.onPreferenceClick(mRemoveUserPref); in onPreferenceClick_removeClicked_canNotDelete_doNothing()
620 mFragment.onPreferenceClick(mAppAndContentAccessPref); in onPreferenceClick_selectRestrictedUser_appAndContentAccessClicked_startActivity()
643 mFragment.onPreferenceClick(mock(UserPreference.class)); in onPreferenceClick_unknownPreferenceClicked_doNothing()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenCustomRuleConfigSettings.java59 public boolean onPreferenceClick(Preference preference) { in onCreate()
73 public boolean onPreferenceClick(Preference preference) { in onCreate()
87 public boolean onPreferenceClick(Preference preference) { in onCreate()
DZenModeAddAutomaticRulePreferenceController.java61 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() method in ZenModeAddAutomaticRulePreferenceController
DZenModeScheduleRuleSettings.java88 public boolean onPreferenceClick(Preference preference) { in onCreateInternal()
244 public boolean onPreferenceClick(Preference preference) { in TimePickerPreference()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DPairNewDevicePreferenceControllerUnitTest.java184 assertThat(mSwitchPreference.getOnPreferenceClickListener().onPreferenceClick( in preferenceClicked_triggersCustomPairingFlow_whenSystemApplicationIsFound()
211 assertThat(mSwitchPreference.getOnPreferenceClickListener().onPreferenceClick( in preferenceClicked_triggersDefaultPairingFlow_whenNoMatchingApplicationsFound()
237 assertThat(mSwitchPreference.getOnPreferenceClickListener().onPreferenceClick( in preferenceClicked_triggersDefaultPairingFlow_whenNonSystemApplicationIsFound()
252 assertThat(mSwitchPreference.getOnPreferenceClickListener().onPreferenceClick( in preferenceClicked_triggersDefaultPairingFlow_whenCustomPairingFlowIsDisabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java163 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(0)); in testClickListenerTriggered()
165 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(1)); in testClickListenerTriggered()
167 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(2)); in testClickListenerTriggered()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DDisabledCheckBoxPreferenceTest.java82 verify(onClick, never()).onPreferenceClick(any()); in checkboxOnClick_checkboxDisabled()
95 verify(onClick, times(1)).onPreferenceClick(any()); in checkboxOnClick_checkboxEnabled()
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DVpnSettingsTest.java214 mVpnSettings.onPreferenceClick(pref); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent()
233 mVpnSettings.onPreferenceClick(pref); in clickVpn_VpnDisconnected_startsVpnLaunchIntent()
257 mVpnSettings.onPreferenceClick(pref); in clickAdvancedVpn_VpnConnectedDisconnectDialogDisabled_startsAppLaunchIntent()
281 mVpnSettings.onPreferenceClick(pref); in clickAdvancedVpn_VpnConnectedDisconnectDialogEnabled_doesNotStartAppLaunchIntent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragment.java192 public boolean onPreferenceClick(final Preference preference) { in enableSyncPreferences()
427 public boolean onPreferenceClick(final Preference preference) { in onPreferenceClick() method in AccountsSettingsFragment.SyncNowListener
438 public boolean onPreferenceClick(final Preference preference) { in onPreferenceClick() method in AccountsSettingsFragment.DeleteSyncDataListener
465 public boolean onPreferenceClick(final Preference preference) { in onPreferenceClick() method in AccountsSettingsFragment.EnableSyncClickListener
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DSyncedStateTest.java98 listener.onPreferenceClick(mMockPreference); in testGetOnClickListener_isNotEncrypted_handleSourceAddRequest()
114 listener.onPreferenceClick(mMockPreference); in testGetOnClickListener_isEncrypted_passwordDialogShowing()
DAudioStreamsScanQrCodeControllerTest.java134 var clicked = listener.onPreferenceClick(mPreference); in onPreferenceClick_noFragment_doNothing()
145 var clicked = listener.onPreferenceClick(mPreference); in onPreferenceClick_hasFragment_launchSubSetting()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsSpatialAudioControllerTest.java344 mController.onPreferenceClick(mSpatialAudioPref); in turnedOnSpatialAudio_invokesAddCompatibleAudioDevice()
357 mController.onPreferenceClick(mSpatialAudioPref); in turnedOffSpatialAudio_invokesRemoveCompatibleAudioDevice()
370 mController.onPreferenceClick(mHeadTrackingPref); in turnedOnHeadTracking_invokesSetHeadTrackerEnabled_setsTrue()
383 mController.onPreferenceClick(mHeadTrackingPref); in turnedOffHeadTracking_invokesSetHeadTrackerEnabled_setsFalse()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DTVInputMethodPreference.java42 public boolean onPreferenceClick(final Preference preference) { in onPreferenceClick() method in TVInputMethodPreference
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DPerSubscriptionSettingsActivity.java128 public boolean onPreferenceClick(Preference pref) { in onCreate()
149 public boolean onPreferenceClick(final Preference preference) { in onCreate()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DViewEmergencyContactsPreference.java52 public boolean onPreferenceClick(Preference preference) { in onBindContactView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java166 mPreference.getOnPreferenceClickListener().onPreferenceClick(mPreference); in getSummary_oneSubscription_correctSummaryAndClickHandler()
189 mPreference.getOnPreferenceClickListener().onPreferenceClick(mPreference); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler()
211 mPreference.getOnPreferenceClickListener().onPreferenceClick(mPreference); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/tts/
DPreferredEngineOptionsPreferenceControllerTest.java149 assertThat(currentEngine.getOnPreferenceClickListener().onPreferenceClick( in performClick_currentEngine_returnFalse()
159 assertThat(otherEngine.getOnPreferenceClickListener().onPreferenceClick( in performClick_otherEngine_returnTrue()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountTypePreferenceLoader.java172 public boolean onPreferenceClick(Preference preference) { in updatePreferenceIntents()
286 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() method in AccountTypePreferenceLoader.FragmentStarter
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailSettingsFragment.java284 public boolean onPreferenceClick(Preference preference) { in setupVoicemailChangePinPreference()
304 public boolean onPreferenceClick(Preference preference) { in setupNotificationsPreference()
348 public boolean onPreferenceClick(Preference preference) { in setupAdvancedSettingsPreference()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDevicePreference.java53 public boolean onPreferenceClick(final Preference preference) { in onPreferenceClick() method in UsbDevicePreference
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/
DHealthPreference.kt62 onPreferenceClickListener?.onPreferenceClick(it) ?: false in setOnPreferenceClickListener()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingBluetoothDeviceUpdater.java72 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() method in AudioSharingBluetoothDeviceUpdater

12345