Home
last modified time | relevance | path

Searched refs:clickListener (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DCardPreferenceTest.java126 View.OnClickListener clickListener = v -> hasCalled[0] = true; in performClickOnPrimaryButton_callClickListener() local
127 mCardPreference.setPrimaryButtonClickListener(clickListener); in performClickOnPrimaryButton_callClickListener()
136 View.OnClickListener clickListener = v -> hasCalled[0] = true; in performClickOnSecondaryButton_callClickListener() local
137 mCardPreference.setSecondaryButtonClickListener(clickListener); in performClickOnSecondaryButton_callClickListener()
184 View.OnClickListener clickListener = v -> hasCalled[0] = expectedClickedResult; in setPrimaryButtonClickListener_setAfterOnBindViewHolder() local
186 mCardPreference.setPrimaryButtonClickListener(clickListener); in setPrimaryButtonClickListener_setAfterOnBindViewHolder()
194 View.OnClickListener clickListener = v -> hasCalled[0] = "called once"; in setPrimaryButtonClickListener_setNull_clearTheOnClickListener() local
195 mCardPreference.setPrimaryButtonClickListener(clickListener); in setPrimaryButtonClickListener_setNull_clearTheOnClickListener()
231 View.OnClickListener clickListener = v -> hasCalled[0] = expectedClickedResult; in setSecondaryButtonClickListener_setAfterOnBindViewHolder() local
233 mCardPreference.setSecondaryButtonClickListener(clickListener); in setSecondaryButtonClickListener_setAfterOnBindViewHolder()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DBaseTimeZonePreferenceControllerTest.java45 TestClickListener clickListener = new TestClickListener(); in handlePreferenceTreeClick_correctKey_triggerOnClickListener() local
48 controller.setOnClickListener(clickListener); in handlePreferenceTreeClick_correctKey_triggerOnClickListener()
51 assertThat(clickListener.isClicked()).isTrue(); in handlePreferenceTreeClick_correctKey_triggerOnClickListener()
57 TestClickListener clickListener = new TestClickListener(); in handlePreferenceTreeClick_wrongKey_triggerOnClickListener() local
60 controller.setOnClickListener(clickListener); in handlePreferenceTreeClick_wrongKey_triggerOnClickListener()
63 assertThat(clickListener.isClicked()).isFalse(); in handlePreferenceTreeClick_wrongKey_triggerOnClickListener()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DOptionsPopupView.java110 if (item.clickListener.onLongClick(view)) { in handleViewClick()
308 public final OnLongClickListener clickListener; field in OptionsPopupView.OptionItem
311 OnLongClickListener clickListener) { in OptionItem() argument
316 this.clickListener = clickListener; in OptionItem()
320 OnLongClickListener clickListener) { in OptionItem() argument
325 this.clickListener = clickListener; in OptionItem()
DAccessibilityActionsView.java91 if (item.clickListener.onLongClick(this)) { in performAccessibilityAction()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DEmptyStateUiHelperTest.kt168 val clickListener = mock<EmptyState.ClickListener>() in testShowEmptyState_noOnClickHandler() constant
175 override fun getButtonClickListener() = clickListener in testShowEmptyState_noOnClickHandler()
190 verify(clickListener, never()).onClick(any()) in testShowEmptyState_noOnClickHandler()
197 val clickListener = mock<EmptyState.ClickListener>() in testShowEmptyState_withOnClickHandlerAndClickListener() constant
205 override fun getButtonClickListener() = clickListener in testShowEmptyState_withOnClickHandlerAndClickListener()
225 verify(clickListener, never()).onClick(any()) in testShowEmptyState_withOnClickHandlerAndClickListener()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/floatingsheetcontent/
DWallpaperEffectsView2.kt114 fun setMyPhotosClickListener(clickListener: OnClickListener?) { in <lambda>()
115 myPhotosButton?.setOnClickListener(clickListener) in <lambda>()
123 fun setCollapseFloatingSheetListener(clickListener: OnClickListener?) { in <lambda>()
124 tryAgainLaterButton?.setOnClickListener(clickListener) in <lambda>()
125 continueButton?.setOnClickListener(clickListener) in <lambda>()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationClickHandlerFactory.java317 public void registerClickListener(OnNotificationClickListener clickListener) {
318 if (clickListener != null && !mClickListeners.contains(clickListener)) {
319 mClickListeners.add(clickListener);
326 public void unregisterClickListener(OnNotificationClickListener clickListener) {
327 mClickListeners.remove(clickListener);
/packages/services/Telecomm/src/com/android/server/telecom/components/
DErrorDialogActivity.java70 final DialogInterface.OnClickListener clickListener; in showGenericErrorDialog() local
73 clickListener = new DialogInterface.OnClickListener() { in showGenericErrorDialog()
88 .setMessage(msg).setPositiveButton(android.R.string.ok, clickListener) in showGenericErrorDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DLinkablePreferenceTest.java56 final LinkifyUtils.OnClickListener clickListener = () -> {/* Do nothing */ }; in setUp() local
57 mPreference.setText(TITLE, linkableDescription, clickListener); in setUp()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoSourceDialogFragment.java75 final OnClickListener clickListener = new OnClickListener() { in onCreateDialog() local
100 builder.setItems(items, clickListener); in onCreateDialog()
DPhotoActionPopup.java105 final OnItemClickListener clickListener = new OnItemClickListener() { in createPopupMenu() local
127 listPopupWindow.setOnItemClickListener(clickListener); in createPopupMenu()
DSelectAccountDialogFragment.java99 final DialogInterface.OnClickListener clickListener = in onCreateDialog() local
112 builder.setSingleChoiceItems(mAccountsAdapter, 0, clickListener); in onCreateDialog()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/
DDeletionPermissionTypesPreference.kt76 val clickListener = OnPreferenceClickListener { in setOnPreferenceClickListener() constant
93 super.setOnPreferenceClickListener(clickListener) in setOnPreferenceClickListener()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java67 @Nullable final OnAttachmentClickListener clickListener) { in createAttachmentPreview() argument
95 if (attachmentView != null && clickListener != null) { in createAttachmentPreview()
100 clickListener.onAttachmentClick(attachmentData, bounds, in createAttachmentPreview()
108 return clickListener.onAttachmentClick(attachmentData, bounds, in createAttachmentPreview()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DSelectAccountDialogFragment.java73 final DialogInterface.OnClickListener clickListener = in onCreateDialog() local
87 builder.setSingleChoiceItems(accountAdapter, 0, clickListener); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/wifi/
DLinkablePreference.java103 LinkifyUtils.OnClickListener clickListener) { in setText() argument
106 mClickListener = clickListener; in setText()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInflater.kt47 private val clickListener: OnClickListener, constant in com.android.launcher3.util.ItemInflater
108 favorite.setOnClickListener(clickListener) in createShortcut()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java161 View.OnKeyListener clickListener) { in BreadcrumbAdapter() argument
164 mClickListener = clickListener; in BreadcrumbAdapter()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DExportDialogFragment.java129 final DialogInterface.OnClickListener clickListener = in onCreateDialog() local
167 .setSingleChoiceItems(adapter, -1, clickListener) in onCreateDialog()
DImportDialogFragment.java202 final DialogInterface.OnClickListener clickListener = in onCreateDialog() local
226 builder.setSingleChoiceItems(adapter, -1, clickListener); in onCreateDialog()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletView.java179 OnClickListener clickListener) { in showEmptyStateView() argument
187 mEmptyStateView.setOnClickListener(clickListener); in showEmptyStateView()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/profiles/
DMultiProfilePagerAdapter.java646 View.OnClickListener clickListener = null; in showEmptyResolverListEmptyState() local
649 clickListener = v -> emptyState.getButtonClickListener().onClick(() -> { in showEmptyResolverListEmptyState()
656 showEmptyState(listAdapter, emptyState, clickListener); in showEmptyResolverListEmptyState()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenPrioritySendersHelper.java91 SelectorWithWidgetPreference.OnClickListener clickListener) { in ZenPrioritySendersHelper() argument
96 mSelectorClickListener = clickListener; in ZenPrioritySendersHelper()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSampleSandboxedSdkProvider.java169 View.OnClickListener clickListener, in TestView() argument
174 mClickListener = clickListener; in TestView()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DItemInflaterTest.kt78 private val clickListener = OnClickListener {} in <lambda>() constant in com.android.launcher3.util.ItemInflaterTest
103 clickListener, in <lambda>()

12