Home
last modified time | relevance | path

Searched refs:mListener (Results 1 – 25 of 137) sorted by relevance

123456

/packages/apps/Email/tests/src/com/android/email/
DRefreshManagerTest.java37 private RefreshListener mListener; field in RefreshManagerTest
59 mListener = new RefreshListener(); in setUp()
62 mTarget.registerListener(mListener); in setUp()
75 mTarget.unregisterListener(mListener); in testRegisterUnregisterListener()
128 assertTrue(mListener.mCalledOnRefreshStatusChanged); in testRefreshMailboxList()
129 assertFalse(mListener.mCalledOnConnectionError); in testRefreshMailboxList()
130 assertEquals(ACCOUNT_1, mListener.mAccountId); in testRefreshMailboxList()
131 assertEquals(-1, mListener.mMailboxId); in testRefreshMailboxList()
132 mListener.reset(); in testRefreshMailboxList()
143 assertFalse(mListener.mCalledOnRefreshStatusChanged); in testRefreshMailboxList()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGestureRecognizer.java46 private final Listener mListener; field in GestureRecognizer
49 mListener = listener; in GestureRecognizer()
79 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapUp()
84 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap()
90 return mListener.onScroll( in onScroll()
97 return mListener.onFling(velocityX, velocityY); in onFling()
105 return mListener.onScaleBegin( in onScaleBegin()
111 return mListener.onScale(detector.getFocusX(), in onScale()
117 mListener.onScaleEnd(); in onScaleEnd()
124 mListener.onDown(e.getX(), e.getY()); in onDown()
[all …]
DSelectionManager.java39 private SelectionListener mListener; field in SelectionManager
66 mListener = listener; in setSelectionListener()
73 if (mListener != null) mListener.onSelectionModeChange(SELECT_ALL_MODE); in selectAll()
94 if (mListener != null) mListener.onSelectionModeChange(ENTER_SELECTION_MODE); in enterSelectionMode()
103 if (mListener != null) mListener.onSelectionModeChange(LEAVE_SELECTION_MODE); in leaveSelectionMode()
143 if (mListener != null) mListener.onSelectionChange(path, isItemSelected(path)); in toggle()
DDownUpDetector.java28 private DownUpListener mListener; field in DownUpDetector
31 mListener = listener; in DownUpDetector()
38 mListener.onDown(e); in setState()
40 mListener.onUp(e); in setState()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java95 protected OnContactBrowserActionListener mListener; field in ContactBrowseListFragment
479 if (mListener != null) { in checkSelection()
480 mListener.onSelectionChange(); in checkSelection()
534 if (mListener != null) { in checkSelection()
535 mListener.onSelectionChange(); in checkSelection()
613 mListener = listener; in setOnContactListActionListener()
617 if (mListener != null) mListener.onCreateNewContactAction(); in createNewContact()
622 if (mListener != null) mListener.onViewContactAction(contactUri); in viewContact()
626 if (mListener != null) mListener.onEditContactAction(contactUri); in editContact()
630 if (mListener != null) mListener.onDeleteContactAction(contactUri); in deleteContact()
[all …]
DContactPickerFragment.java40 private OnContactPickerActionListener mListener; field in ContactPickerFragment
54 mListener = listener; in setOnContactPickerActionListener()
113 mListener.onCreateNewContactAction(); in onItemClick()
138 mListener.onCreateNewContactAction(); in createNewContact()
142 mListener.onEditContactAction(contactUri); in editContact()
146 mListener.onPickContactAction(uri); in pickContact()
209 mListener.onShortcutIntentCreated(shortcutIntent); in onShortcutIntentCreated()
214 mListener.onPickContactAction(data.getData()); in onPickerResult()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DHandleView.java36 private MoveListener mListener; field in HandleView
93 mListener = listener; in setListener()
132 if (mListener != null) { in onTouchEvent()
133 mListener.onMoveBegin(this); in onTouchEvent()
152 if (mListener != null) { in onTouchEvent()
154 mListener.onMove(this, getLeft(), deltaX + getWidth()); in onTouchEvent()
156 mListener.onMove(this, getLeft(), deltaX); in onTouchEvent()
189 if (mListener != null) { in endActionMove()
192 mListener.onMoveEnd(this, getLeft(), deltaX + getWidth()); in endActionMove()
194 mListener.onMoveEnd(this, getLeft(), deltaX); in endActionMove()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java65 private final DeviceHostListener mListener; field in NativeNfcManager
69 mListener = listener; in NativeNfcManager()
319 mListener.onRemoteEndpointDiscovered(tag); in notifyNdefMessageListeners()
326 mListener.onCardEmulationDeselected(); in notifyTargetDeselected()
333 mListener.onCardEmulationAidSelected(aid); in notifyTransactionListeners()
340 mListener.onLlcpLinkActivated(device); in notifyLlcpLinkActivation()
347 mListener.onLlcpLinkDeactivated(device); in notifyLlcpLinkDeactivated()
351 mListener.onRemoteFieldActivated(); in notifySeFieldActivated()
355 mListener.onRemoteFieldDeactivated(); in notifySeFieldDeactivated()
359 mListener.onSeListenActivated(); in notifySeListenActivated()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DShutterButton.java43 private OnShutterButtonListener mListener; field in ShutterButton
51 mListener = listener; in setOnShutterButtonListener()
99 if (mListener != null) { in callShutterButtonFocus()
100 mListener.onShutterButtonFocus(pressed); in callShutterButtonFocus()
107 if (mListener != null) { in performClick()
108 mListener.onShutterButtonClick(); in performClick()
DLocationManager.java32 private Listener mListener; field in LocationManager
48 mListener = listener; in LocationManager()
97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); in startReceivingLocationUpdates()
118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); in stopReceivingLocationUpdates()
141 if (mListener != null && mRecordLocation && in onLocationChanged()
143 mListener.showGpsOnScreenIndicator(true); in onLocationChanged()
168 if (mListener != null && mRecordLocation && in onStatusChanged()
170 mListener.showGpsOnScreenIndicator(false); in onStatusChanged()
/packages/apps/Camera/src/com/android/camera/
DLocationManager.java32 private Listener mListener; field in LocationManager
48 mListener = listener; in LocationManager()
97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); in startReceivingLocationUpdates()
118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); in stopReceivingLocationUpdates()
141 if (mListener != null && mRecordLocation && in onLocationChanged()
143 mListener.showGpsOnScreenIndicator(true); in onLocationChanged()
168 if (mListener != null && mRecordLocation && in onStatusChanged()
170 mListener.showGpsOnScreenIndicator(false); in onStatusChanged()
DShutterButton.java46 private OnShutterButtonListener mListener; field in ShutterButton
54 mListener = listener; in setOnShutterButtonListener()
116 if (mListener != null) { in callShutterButtonFocus()
117 mListener.onShutterButtonFocus(pressed); in callShutterButtonFocus()
124 if (mListener != null) { in performClick()
125 mListener.onShutterButtonClick(); in performClick()
DCameraScreenNail.java56 private Listener mListener; field in CameraScreenNail
96 mListener = listener; in CameraScreenNail()
220 mListener.requestRender(); in copyTexture()
240 mListener.requestRender(); in animateCapture()
249 mListener.requestRender(); in animateFlash()
266 mListener.requestRender(); in animateSlide()
309 mListener.onPreviewTextureCopied(); in draw()
328 mListener.onCaptureTextureCopied(); in draw()
348 mListener.requestRender(); in draw()
403 mListener.requestRender(); in onFrameAvailable()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/detail/
DStreamItemAdapterTest.java40 private FakeOnClickListener mListener; field in StreamItemAdapterTest
47 mListener = new FakeOnClickListener(); in setUp()
48 mAdapter = new StreamItemAdapter(getContext(), mListener, mPhotoListener); in setUp()
54 mListener = null; in tearDown()
95 assertFalse("listener should have not been invoked yet", mListener.clicked); in assertStreamItemViewHasOnClickListener()
97 assertTrue("listener should have been invoked", mListener.clicked); in assertStreamItemViewHasOnClickListener()
102 assertFalse("listener should have not been invoked yet", mListener.clicked); in assertStreamItemViewHasNoOnClickListener()
104 assertFalse("listener should have not been invoked", mListener.clicked); in assertStreamItemViewHasNoOnClickListener()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardView.java42 private KeyboardActionListener mListener; field in MoreKeysKeyboardView
54 mListener.onCodeInput(
60 mListener.onTextInput(text);
65 mListener.onStartBatchInput();
70 mListener.onUpdateBatchInput(batchPointers);
75 mListener.onEndBatchInput(batchPointers);
80 mListener.onCancelInput();
85 mListener.onPressKey(primaryCode);
90 mListener.onReleaseKey(primaryCode, withSliding);
157 mListener = listener; in showMoreKeysPanel()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppBatch.java73 private BluetoothOppBatchListener mListener; field in BluetoothOppBatch
127 if (mListener != null) { in addShare()
128 mListener.onShareAdded(info.mId); in addShare()
146 if (mListener != null) { in deleteShare()
147 mListener.onShareDeleted(info.mId); in deleteShare()
161 if (mListener != null) { in cancelBatch()
162 mListener.onBatchCanceled(); in cancelBatch()
197 mListener = listener; in registerListern()
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
DNativeNfcManager.java75 private final DeviceHostListener mListener; field in NativeNfcManager
79 mListener = listener; in NativeNfcManager()
368 mListener.onRemoteEndpointDiscovered(tag); in notifyNdefMessageListeners()
375 mListener.onCardEmulationDeselected(); in notifyTargetDeselected()
382 mListener.onCardEmulationAidSelected(aid); in notifyTransactionListeners()
389 mListener.onLlcpLinkActivated(device); in notifyLlcpLinkActivation()
396 mListener.onLlcpLinkDeactivated(device); in notifyLlcpLinkDeactivated()
400 mListener.onRemoteFieldActivated(); in notifySeFieldActivated()
404 mListener.onRemoteFieldDeactivated(); in notifySeFieldDeactivated()
408 mListener.onSeApduReceived(apdu); in notifySeApduReceived()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSliderController.java40 private SliderListener mListener = null; field in SliderController
131 if (mListener != null) { in setActionDown()
132 mListener.onTouchDown(x, y); in setActionDown()
141 if (mListener != null) { in setActionMove()
142 mListener.onNewValue(mValue); in setActionMove()
149 if (mListener != null) { in setActionUp()
150 mListener.onTouchUp(); in setActionUp()
159 mListener = listener; in setListener()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java40 private ChangeListener mListener = null; field in ContactsPreferences
118 if (mListener != null) unregisterChangeListener(); in registerChangeListener()
120 mListener = listener; in registerChangeListener()
137 if (mListener != null) { in unregisterChangeListener()
139 mListener = null; in unregisterChangeListener()
152 if (mListener != null) mListener.onChange(); in onChange()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DGroupCreationDialogFragment.java38 private final OnGroupCreatedListener mListener; field in GroupCreationDialogFragment
58 mListener = null; in GroupCreationDialogFragment()
63 mListener = listener; in GroupCreationDialogFragment()
67 return mListener; in getOnGroupCreatedListener()
89 if (mListener != null) { in onCompleted()
90 mListener.onGroupCreated(); in onCompleted()
/packages/apps/Camera/src/com/android/camera/ui/
DZoomRenderer.java36 private OnZoomChangedListener mListener; field in ZoomRenderer
94 mListener = listener; in setOnZoomChangeListener()
132 if (mListener != null && (int) circle != mCircleSize) { in onScale()
135 mListener.onZoomValueChanged(zoom); in onScale()
143 if (mListener != null) { in onScaleBegin()
144 mListener.onZoomStart(); in onScaleBegin()
153 if (mListener != null) { in onScaleEnd()
154 mListener.onZoomEnd(); in onScaleEnd()
DLayoutChangeHelper.java22 private LayoutChangeNotifier.Listener mListener; field in LayoutChangeHelper
33 mListener = listener; in setOnLayoutChangeListener()
37 if (mListener == null) return; in onLayout()
40 mListener.onLayoutChange(mView, l, t, r, b); in onLayout()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
DOkCancelPreference.java27 private Listener mListener; field in OkCancelPreference
37 if (mListener != null) { in onDialogClosed()
38 mListener.onDialogClosed(positiveResult); in onDialogClosed()
43 mListener = listener; in setListener()
/packages/apps/Contacts/src/com/android/contacts/widget/
DNotifyingSpinner.java33 private SelectionListener mListener; field in NotifyingSpinner
44 mListener = listener; in setSetSelectionListener()
51 if (mListener != null) { in setSelection()
52 mListener.onSetSelection(this, position); in setSelection()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialog.java33 private final DialogInterface.OnClickListener mListener; field in WifiDialog
43 mListener = listener; in WifiDialog()
86 setButton(BUTTON_SUBMIT, text, mListener); in setSubmitButton()
91 setButton(BUTTON_FORGET, text, mListener); in setForgetButton()
96 setButton(BUTTON_NEGATIVE, text, mListener); in setCancelButton()

123456