Home
last modified time | relevance | path

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

12345678910>>...16

/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java60 RadioOnStateListener mListener; field in RadioOnStateListenerTest
66 mListener = new RadioOnStateListener(); in setUp()
72 mListener.setTimeBetweenRetriesMillis(5000); in tearDown()
73 mListener.setMaxNumRetries(5); in tearDown()
74 mListener.getHandler().removeCallbacksAndMessages(null); in tearDown()
76 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown()
77 mListener = null; in tearDown()
88 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testRegisterForCallback()
90 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback()
114 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testPhoneChangeState_OkToCallTrue()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DActiveSubsciptionsListenerTest.java74 private ActiveSubsciptionsListenerImpl mListener; field in ActiveSubsciptionsListenerTest
95 mListener = spy(new ActiveSubsciptionsListenerImpl(Looper.getMainLooper(), mContext)); in setUp()
96 doReturn(mSubscriptionManager).when(mListener).getSubscriptionManager(); in setUp()
97 mReceiver = mListener.getSubscriptionChangeReceiver(); in setUp()
99 doReturn(mReceiver).when(mListener).getSubscriptionChangeReceiver(); in setUp()
104 mListener.close(); in cleanUp()
124 verify(mListener, never()).onChanged(); in constructor_noListeningWasSetup()
131 verify(mListener, never()).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled()
133 mListener.start(); in start_configChangedIntent_onChangedShouldBeCalled()
136 verify(mListener, times(1)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled()
[all …]
DGlobalSettingsChangeListenerTest.java45 private GlobalSettingsChangeListener mListener; field in GlobalSettingsChangeListenerTest
53 mListener = spy(new GlobalSettingsChangeListener(Looper.getMainLooper(), in setUp()
58 doNothing().when(mLifecycle).addObserver(mListener); in setUp()
59 doNothing().when(mLifecycle).removeObserver(mListener); in setUp()
64 mListener.onChange(false); in whenChanged_onChangedBeenCalled()
65 verify(mListener, times(1)).onChanged(SETTINGS_FIELD); in whenChanged_onChangedBeenCalled()
70 mListener.notifyChangeBasedOn(mLifecycle); in whenNotifyChangeBasedOnLifecycle_onStopEvent_onChangedNotCalled()
71 mListener.onStart(); in whenNotifyChangeBasedOnLifecycle_onStopEvent_onChangedNotCalled()
73 mListener.onChange(false); in whenNotifyChangeBasedOnLifecycle_onStopEvent_onChangedNotCalled()
74 verify(mListener, times(1)).onChanged(SETTINGS_FIELD); in whenNotifyChangeBasedOnLifecycle_onStopEvent_onChangedNotCalled()
[all …]
DDataConnectivityListenerTest.java54 private DataConnectivityListener mListener; field in DataConnectivityListenerTest
62 mListener = new DataConnectivityListener(mContext, mClient); in setUp()
73 mListener.start(); in start_doesRegister()
75 eq(mListener), any(Handler.class)); in start_doesRegister()
81 mListener.onCapabilitiesChanged(changedNetwork, mock(NetworkCapabilities.class)); in onCapabilitiesChanged_notActiveNetwork_noCallback()
87 mListener.onCapabilitiesChanged(mActiveNetwork, mock(NetworkCapabilities.class)); in onCapabilitiesChanged_activeNetwork_onDataConnectivityChangeFires()
94 mListener.onLosing(changedNetwork, 500); in onLosing_notActiveNetwork_onDataConnectivityChangeFires()
100 mListener.onLosing(mActiveNetwork, 500); in onLosing_activeNetwork_onDataConnectivityChangeFires()
107 mListener.onLost(changedNetwork); in onLost_notActiveNetwork_onDataConnectivityChangeFires()
113 mListener.onLost(mActiveNetwork); in onLost_activeNetwork_onDataConnectivityChangeFires()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallList.java70 private Listener mListener; field in SelfManagedCallList
94 mListener = listener; in setListener()
132 if (mListener != null) { in notifyCreateIncomingConnectionFailed()
133 mListener.onCreateIncomingConnectionFailed(request); in notifyCreateIncomingConnectionFailed()
138 if (mListener != null) { in notifyCreateOutgoingConnectionFailed()
139 mListener.onCreateOutgoingConnectionFailed(request); in notifyCreateOutgoingConnectionFailed()
144 if (mListener != null) { in notifyConnectionServiceFocusGained()
145 mListener.onConnectionServiceFocusGained(); in notifyConnectionServiceFocusGained()
150 if (mListener != null) { in notifyConnectionServiceFocusLost()
151 mListener.onConnectionServiceFocusLost(); in notifyConnectionServiceFocusLost()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java201 private CameraManagerListener mListener; field in CameraManager
343 if (mListener != null) { in selectCamera()
344 mListener.onCameraError(ERROR_OPENING_CAMERA, e); in selectCamera()
367 if (mListener != null) { in selectCameraByIndex()
368 mListener.onCameraError(ERROR_OPENING_CAMERA, e); in selectCameraByIndex()
451 if (mListener != null) { in openCamera()
452 mListener.onCameraError(ERROR_OPENING_CAMERA, mException); in openCamera()
524 mListener = listener; in setListener()
525 if (!mIsHardwareAccelerationSupported && mListener != null) { in setListener()
526 mListener.onCameraError(ERROR_HARDWARE_ACCELERATION_DISABLED, null); in setListener()
[all …]
DMediaPicker.java122 private MediaPickerListener mListener; field in MediaPicker
464 mListener = listener; in setListener()
542 if (mListener != null) { in dispatchOpened()
546 mListener.onOpened(); in dispatchOpened()
559 if (mListener != null) { in dispatchDismissed()
563 mListener.onDismissed(); in dispatchDismissed()
574 if (mListener != null) { in dispatchFullScreen()
578 mListener.onFullScreenChanged(fullScreen); in dispatchFullScreen()
595 if (mListener != null) { in dispatchItemsSelected()
599 mListener.onItemsSelected(items, dismissMediaPicker); in dispatchItemsSelected()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pPrinterConnection.java48 private ConnectionListener mListener; field in P2pPrinterConnection
57 mListener = listener; in P2pPrinterConnection()
91 if (mListener == null) { in onPeerFound()
111 if (mListener == null) { in onConnectionOpen()
122 mListener.onConnectionComplete(null); in onConnectionOpen()
132 if (mListener != null) { in onConnectionOpen()
133 mListener.onConnectionComplete(null); in onConnectionOpen()
144 if (mListener != null) { in onConnectionClosed()
145 mListener.onConnectionComplete(null); in onConnectionClosed()
152 if (mListener == null) { in onConnectionDelayed()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java132 private Listener mListener; field in MpegTsPlayer
169 mListener = listener; in MpegTsPlayer()
281 if (mListener != null) { in onRenderersError()
282 mListener.onError(e); in onRenderersError()
365 mListener = null; in release()
458 if (mListener != null) { in onAudioUnplayable()
459 mListener.onAudioUnplayable(); in onAudioUnplayable()
515 if (mListener == null) { in onPlayerStateChanged()
518 mListener.onStateChanged(playWhenReady, state); in onPlayerStateChanged()
523 mListener.onVideoSizeChanged(format.width, format.height, format.pixelWidthHeightRatio); in onPlayerStateChanged()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java66 private SummaryListener mListener; field in BluetoothSummaryUpdaterTest
82 doCallRealMethod().when(mListener).onSummaryChanged(anyString()); in setUp()
83 mSummaryUpdater = new BluetoothSummaryUpdater(mContext, mListener, mBluetoothManager); in setUp()
121 verify(mListener).onSummaryChanged( in register_true_shouldSendSummaryChange()
135 verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disabled)); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
148 verify(mListener).onSummaryChanged( in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
163 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
177 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage()
189 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
195 verify(mListener).onSummaryChanged( in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DFilmstripGestureRecognizer.java50 private final Listener mListener; field in FilmstripGestureRecognizer
53 mListener = listener; in FilmstripGestureRecognizer()
65 mListener.onUp(event.getX(), event.getY()); in onTouchEvent()
78 mListener.onMouseScroll(hscroll, vscroll); in onGenericMotionEvent()
91 mListener.onLongPress(e.getX(), e.getY()); in onLongPress()
97 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy); in onScroll()
103 return mListener.onFling(velocityX, velocityY); in onFling()
108 mListener.onDown(e.getX(), e.getY()); in onDown()
121 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapConfirmed()
126 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintAuthenticateSidecar.java34 private Listener mListener; field in FingerprintAuthenticateSidecar
66 if (mListener != null) {
67 mListener.onAuthenticationSucceeded(result);
76 if (mListener != null) {
77 mListener.onAuthenticationFailed();
84 if (mListener != null) {
85 mListener.onAuthenticationError(errMsgId, errString);
94 if (mListener != null) {
95 mListener.onAuthenticationHelp(helpMsgId, helpString);
118 if (mListener == null && listener != null) { in setListener()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintAuthenticateSidecar.java34 private Listener mListener; field in FingerprintAuthenticateSidecar
66 if (mListener != null) {
67 mListener.onAuthenticationSucceeded(result);
76 if (mListener != null) {
77 mListener.onAuthenticationFailed();
84 if (mListener != null) {
85 mListener.onAuthenticationError(errMsgId, errString);
94 if (mListener != null) {
95 mListener.onAuthenticationHelp(helpMsgId, helpString);
118 if (mListener == null && listener != null) { in setListener()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactPickerFragment.java41 private OnContactPickerActionListener mListener; field in ContactPickerFragment
55 mListener = listener; in setOnContactPickerActionListener()
93 if (position == 0 && mCreateContactEnabled && mListener != null) { in onItemClick()
94 mListener.onCreateNewContactAction(); in onItemClick()
122 if (mListener != null) { in editContact()
123 mListener.onEditContactAction(contactUri); in editContact()
128 if (mListener != null) { in pickContact()
129 mListener.onPickContactAction(uri); in pickContact()
160 if (mListener != null) { in onShortcutIntentCreated()
161 mListener.onShortcutIntentCreated(shortcutIntent); in onShortcutIntentCreated()
[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(e1, e2, 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 …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java65 private SignalStrengthListener mListener; field in SignalStrengthListenerTest
75 mListener = new SignalStrengthListener(mContext, mCallback); in setUp()
80 mListener.resume(); in resume_noIds_noCrash()
85 mListener.resume(); in pause_noIds_noCrash()
90 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_beforeResume_startedListening()
107 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded()
111 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded()
122 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
126 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
140 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFixedFirstProxyAdapter.java40 private Listener mListener; field in FixedFirstProxyAdapter
89 if (mListener != null) { in updateItemAt()
90 mListener.onFilmstripItemUpdated(new UpdateReporter() { in updateItemAt()
140 mListener = listener; in setListener()
144 if (mListener != null) { in setListener()
145 mListener.onFilmstripItemLoaded(); in setListener()
151 if (mListener == null) { in onFilmstripItemLoaded()
154 mListener.onFilmstripItemUpdated(new UpdateReporter() { in onFilmstripItemLoaded()
169 mListener.onFilmstripItemUpdated(new UpdateReporter() { in onFilmstripItemUpdated()
184 mListener.onFilmstripItemInserted(index + 1, item); in onFilmstripItemInserted()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DMultiSelectActionModeCallback.java70 private Listener mListener; field in MultiSelectActionModeCallback
80 mListener = listener; in MultiSelectActionModeCallback()
108 mListener.onActionBarDelete(mSelectedConversations.values()); in onActionItemClicked()
111 mListener.onActionBarArchive(mSelectedConversations.values(), true); in onActionItemClicked()
114 mListener.onActionBarArchive(mSelectedConversations.values(), false); in onActionItemClicked()
117 mListener.onActionBarNotification(mSelectedConversations.values(), false); in onActionItemClicked()
120 mListener.onActionBarNotification(mSelectedConversations.values(), true); in onActionItemClicked()
124 mListener.onActionBarAddContact(mSelectedConversations.valueAt(0)); in onActionItemClicked()
128 mListener.onActionBarBlock(mSelectedConversations.valueAt(0)); in onActionItemClicked()
131 mListener.onActionBarHome(); in onActionItemClicked()
[all …]
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java54 private final DeviceHostListener mListener; field in NativeNfcManager
61 mListener = listener; in NativeNfcManager()
396 mListener.onRemoteEndpointDiscovered(tag); in notifyNdefMessageListeners()
403 mListener.onLlcpLinkActivated(device); in notifyLlcpLinkActivation()
410 mListener.onLlcpLinkDeactivated(device); in notifyLlcpLinkDeactivated()
417 mListener.onLlcpFirstPacketReceived(device); in notifyLlcpLinkFirstPacketReceived()
421 mListener.onHostCardEmulationActivated(technology); in notifyHostEmuActivated()
425 mListener.onHostCardEmulationData(technology, data); in notifyHostEmuData()
429 mListener.onHostCardEmulationDeactivated(technology); in notifyHostEmuDeactivated()
433 mListener.onRemoteFieldActivated(); in notifyRfFieldActivated()
[all …]
/packages/apps/LegacyCamera/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()
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/
DTsParser.java74 private final TsOutputListener mListener; field in TsParser
164 if (mListener != null) {
165 mListener.onPatDetected(items);
194 && mListener != null) {
195 mListener.onAllVctItemsParsed();
217 if (mListener != null) {
218 mListener.onEitPidDetected(i.getTableTypePid());
226 if (mListener != null) {
227 mListener.onEttPidDetected(i.getTableTypePid());
264 && mListener != null) {
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollSidecar.java47 private Listener mListener; field in BiometricEnrollSidecar
168 if (mListener != null) { in onEnrollmentProgress()
169 mListener.onEnrollmentProgressChange(mEnrollmentSteps, remaining); in onEnrollmentProgress()
176 if (mListener != null) { in onEnrollmentHelp()
177 mListener.onEnrollmentHelp(helpMsgId, helpString); in onEnrollmentHelp()
184 if (mListener != null) { in onEnrollmentError()
185 mListener.onEnrollmentError(errMsgId, errString); in onEnrollmentError()
193 mListener = listener; in setListener()
194 if (mListener != null) { in setListener()
197 event.send(mListener); in setListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollSidecar.java47 private Listener mListener; field in BiometricEnrollSidecar
168 if (mListener != null) { in onEnrollmentProgress()
169 mListener.onEnrollmentProgressChange(mEnrollmentSteps, remaining); in onEnrollmentProgress()
176 if (mListener != null) { in onEnrollmentHelp()
177 mListener.onEnrollmentHelp(helpMsgId, helpString); in onEnrollmentHelp()
184 if (mListener != null) { in onEnrollmentError()
185 mListener.onEnrollmentError(errMsgId, errString); in onEnrollmentError()
193 mListener = listener; in setListener()
194 if (mListener != null) { in setListener()
197 event.send(mListener); in setListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWirelessDebuggingEnablerTest.java55 private WirelessDebuggingEnabler.OnEnabledListener mListener; field in WirelessDebuggingEnablerTest
69 mContext, new SwitchBarController(mSwitchBar), mListener, mLifecycle)); in setUp()
92 verify(mListener).onEnabled(false); in adbWifiEnabled_switchBarShouldBeChecked()
102 verify(mListener).onEnabled(true); in adbWifiEnabled_switchBarShouldBeChecked()
112 verify(mListener).onEnabled(true); in adbWifiEnabled_switchBarShouldNotBeChecked()
122 verify(mListener).onEnabled(false); in adbWifiEnabled_switchBarShouldNotBeChecked()
132 verify(mListener).onEnabled(false); in onSwitchToggled_true_shouldSetAdbWifiEnabledTrue()
137 verify(mListener).onEnabled(true); in onSwitchToggled_true_shouldSetAdbWifiEnabledTrue()
150 verify(mListener).onEnabled(true); in onSwitchToggled_false_shouldSetAdbWifiEnabledFalse()
155 verify(mListener).onEnabled(false); in onSwitchToggled_false_shouldSetAdbWifiEnabledFalse()
/packages/apps/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java43 private Listener mListener; field in FilmstripBottomPanel
71 mListener = listener; in setListener()
196 } else if (mListener != null) { in setupEditButton()
197 mListener.onEdit(); in setupEditButton()
211 if (mListener != null) { in setupViewButton()
212 mListener.onExternalViewer(); in setupViewButton()
223 if (mListener != null) { in setupDeleteButton()
224 mListener.onDelete(); in setupDeleteButton()
235 if (mListener != null) { in setupShareButton()
236 mListener.onShare(); in setupShareButton()
[all …]

12345678910>>...16