Home
last modified time | relevance | path

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

12345678910>>...18

/packages/services/Car/packages/ScriptExecutor/tests/functional/src/com/android/car/scriptexecutortest/functional/
DScriptExecutorFunctionalTest.java92 private final ScriptExecutorListener mListener = new ScriptExecutorListener(); field in ScriptExecutorFunctionalTest
141 assertThat(mListener.mInterimResult.size()).isEqualTo(1); in invokeScript_returnsResult()
142 assertThat(mListener.mInterimResult.getString("hello")).isEqualTo("world"); in invokeScript_returnsResult()
157 assertThat(mListener.mInterimResult.size()).isEqualTo(4); in invokeScript_allSupportedPrimitiveTypes()
158 assertThat(mListener.mInterimResult.getString("string")).isEqualTo("hello"); in invokeScript_allSupportedPrimitiveTypes()
159 assertThat(mListener.mInterimResult.getBoolean("boolean")).isEqualTo(true); in invokeScript_allSupportedPrimitiveTypes()
160 assertThat(mListener.mInterimResult.getLong("integer")).isEqualTo(1); in invokeScript_allSupportedPrimitiveTypes()
161 assertThat(mListener.mInterimResult.getDouble("number")).isEqualTo(1.1); in invokeScript_allSupportedPrimitiveTypes()
177 assertThat(mListener.mInterimResult.size()).isEqualTo(5); in invokeScript_supportsNestedTables()
178 PersistableBundle nestedBundle = mListener.mInterimResult.getPersistableBundle( in invokeScript_supportsNestedTables()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DActiveSubscriptionsListenerTest.java71 private ActiveSubscriptionsListenerImpl mListener; field in ActiveSubscriptionsListenerTest
87 mListener = spy(new ActiveSubscriptionsListenerImpl(Looper.getMainLooper(), mContext)); in setUp()
88 doReturn(mSubscriptionManager).when(mListener).getSubscriptionManager(); in setUp()
89 mReceiver = mListener.getSubscriptionChangeReceiver(); in setUp()
100 mListener.close(); in cleanUp()
116 verify(mListener, never()).onChanged(); in constructor_noListeningWasSetup()
123 verify(mListener, never()).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled()
125 mListener.start(); in start_configChangedIntent_onChangedShouldBeCalled()
128 verify(mListener, times(1)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled()
131 verify(mListener, times(2)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled()
[all …]
DDataConnectivityListenerTest.java55 private DataConnectivityListener mListener; field in DataConnectivityListenerTest
63 mListener = new DataConnectivityListener(mContext, mClient); in setUp()
74 mListener.start(); in registerNetworkCallback_listenerStart_doesRegister()
76 eq(mListener), any(Handler.class)); in registerNetworkCallback_listenerStart_doesRegister()
83 mListener.onCapabilitiesChanged(changedNetwork, null); in onCapabilitiesChanged_notActiveNetwork_noCallback()
90 mListener.onCapabilitiesChanged(mActiveNetwork, null); in onCapabilitiesChanged_activeNetwork_onDataConnectivityChangeFires()
99 mListener.onLosing(changedNetwork, 500); in onLosing_notActiveNetwork_onDataConnectivityChangeFires()
106 mListener.onLosing(mActiveNetwork, 500); in onLosing_activeNetwork_onDataConnectivityChangeFires()
115 mListener.onLost(changedNetwork); in onLost_notActiveNetwork_onDataConnectivityChangeFires()
122 mListener.onLost(mActiveNetwork); in onLost_activeNetwork_onDataConnectivityChangeFires()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollSidecar.java66 private Listener mListener; field in BiometricEnrollSidecar
233 if (mListener != null) { in onEnrollmentProgress()
234 mListener.onEnrollmentProgressChange(mEnrollmentSteps, remaining); in onEnrollmentProgress()
241 if (mListener != null) { in onEnrollmentHelp()
242 mListener.onEnrollmentHelp(helpMsgId, helpString); in onEnrollmentHelp()
249 if (mListener != null) { in onEnrollmentError()
250 mListener.onEnrollmentError(errMsgId, errString); in onEnrollmentError()
258 if (mListener != null) { in onAcquired()
259 mListener.onAcquired(isAcquiredGood); in onAcquired()
266 if (mListener != null) { in onUdfpsPointerDown()
[all …]
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DSpeechToTextImpl.java42 private Listener mListener; field in SpeechToTextImpl
49 if (mListener != null) {
50 mListener.onRecognitionStarted();
56 if (mListener != null) {
57 mListener.onPartialRecognition(new ArrayList<>());
79 if (mListener != null) {
80 mListener.onRecognitionFinished(new ArrayList<>());
112 if (mListener != null) {
113 mListener.onRecognitionFinished(getResultsInConfidenceOrder(results));
120 if (mListener != null) {
[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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallList.java79 private Listener mListener; field in SelfManagedCallList
103 mListener = listener; in setListener()
156 if (mListener != null) { in notifyCreateIncomingConnectionFailed()
157 mListener.onCreateIncomingConnectionFailed(request); in notifyCreateIncomingConnectionFailed()
162 if (mListener != null) { in notifyCreateOutgoingConnectionFailed()
163 mListener.onCreateOutgoingConnectionFailed(request); in notifyCreateOutgoingConnectionFailed()
168 if (mListener != null) { in notifyConnectionServiceFocusGained()
169 mListener.onConnectionServiceFocusGained(); in notifyConnectionServiceFocusGained()
174 if (mListener != null) { in notifyConnectionServiceFocusLost()
175 mListener.onConnectionServiceFocusLost(); in notifyConnectionServiceFocusLost()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java63 private SignalStrengthListener mListener; field in SignalStrengthListenerTest
73 mListener = new SignalStrengthListener(mContext, mCallback); in setUp()
78 mListener.resume(); in resume_noIds_noCrash()
83 mListener.resume(); in pause_noIds_noCrash()
88 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_beforeResume_startedListening()
111 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded()
114 eq(mListener.mTelephonyCallbacks.get(SUB_ID_1))); in updateSubscriptionIds_twoCalls_oneIdAdded()
116 eq(mListener.mTelephonyCallbacks.get(SUB_ID_2))); in updateSubscriptionIds_twoCalls_oneIdAdded()
118 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded()
120 mListener.mTelephonyCallbacks.get(SUB_ID_1)); in updateSubscriptionIds_twoCalls_oneIdAdded()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java94 @Mock UwbCountryCode.CountryCodeChangedListener mListener; field in UwbCountryCodeTest
157 mUwbCountryCode.addListener(mListener); in setUp()
165 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, DEFAULT_COUNTRY_CODE); in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
174 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephony()
190 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, ISO_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
206 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, ISO_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled()
220 verifyNoMoreInteractions(mNativeUwbManager, mListener); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListAndNetworkCountryEmpty()
229 verify(mListener, never()).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testSkipWhenExceptionThrownInInitializeCountryCodeFromTelephony()
238 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testInitializeCountryCodeFromTelephonyVerifyListener()
247 verify(mListener).onCountryCodeChanged(STATUS_CODE_OK, TEST_COUNTRY_CODE); in testSetCountryCodeFromTelephony()
[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.java35 private Listener mListener; field in FingerprintAuthenticateSidecar
67 if (mListener != null) {
68 mListener.onAuthenticationSucceeded(result);
77 if (mListener != null) {
78 mListener.onAuthenticationFailed();
84 if (mListener != null) {
85 mListener.onAuthenticationError(errMsgId, errString);
94 if (mListener != null) {
95 mListener.onAuthenticationHelp(helpMsgId, helpString);
120 if (mListener == null && listener != null) { in setListener()
[all …]
DUdfpsEnrollHelper.java83 UdfpsEnrollHelper.Listener mListener; field in UdfpsEnrollHelper
168 if (mListener != null && mTotalSteps != -1) { in onEnrollmentProgress()
169 mListener.onEnrollmentProgress(remaining, mTotalSteps); in onEnrollmentProgress()
177 if (mListener != null) { in onEnrollmentHelp()
178 mListener.onEnrollmentHelp(mRemainingSteps, mTotalSteps); in onEnrollmentHelp()
186 if (mListener != null) { in onAcquired()
187 mListener.onAcquired(isAcquiredGood && animateIfLastStep()); in onAcquired()
195 if (mListener != null) { in onPointerDown()
196 mListener.onPointerDown(sensorId); in onPointerDown()
204 if (mListener != null) { in onPointerUp()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConcreteClientModeManagerTest.java108 @Mock ActiveModeManager.Listener<ConcreteClientModeManager> mListener; field in ConcreteClientModeManagerTest
269 mListener, mWifiMetrics, mWakeupController, mWifiInjector, mSelfRecovery, in createClientModeManager()
296 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled()
335 verify(mListener).onStarted(mClientModeManager); in startClientInConnectModeAndVerifyEnabled()
455 verify(mListener).onStarted(mClientModeManager); in switchFromScanOnlyModeToConnectMode()
456 verify(mListener).onRoleChanged(mClientModeManager); in switchFromScanOnlyModeToConnectMode()
504 verify(mListener).onStartFailure(mClientModeManager); in testSwitchFromConnectModeToScanOnlyModeFail()
551 verify(mListener).onStarted(mClientModeManager); in switchFromConnectModeToScanOnlyMode()
552 verify(mListener).onRoleChanged(mClientModeManager); in switchFromConnectModeToScanOnlyMode()
578 verify(mListener).onStartFailure(mClientModeManager); in detectAndReportErrorWhenSetupForClientInConnectivityModeWifiNativeFailure()
[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/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/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/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DVersionedBroadcastListenerTest.java51 private VersionedBroadcastListener mListener; field in VersionedBroadcastListenerTest
79 mListener = new VersionedBroadcastListener( in setUp()
84 if (mListener != null) { in tearDown()
85 mListener.stopListening(); in tearDown()
86 mListener = null; in tearDown()
98 mListener.startListening(); in testBasicListening()
103 mListener.stopListening(); in testBasicListening()
114 mListener.startListening(); in testBroadcastsBeforeStartAreIgnored()
121 mListener.startListening(); in testBroadcastsAfterStopAreIgnored()
124 mListener.stopListening(); in testBroadcastsAfterStopAreIgnored()
/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/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/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 …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DBindableMediaRequest.java30 private MediaResourceLoadListener<T> mListener; field in BindableMediaRequest
33 mListener = listener; in BindableMediaRequest()
43 if (isBound() && mListener != null) { in onMediaResourceLoaded()
44 mListener.onMediaResourceLoaded(request, resource, cached); in onMediaResourceLoaded()
54 if (isBound() && mListener != null) { in onMediaResourceLoadError()
55 mListener.onMediaResourceLoadError(request, exception); in onMediaResourceLoadError()
61 mListener = null; in unregisterListeners()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPersonItemData.java35 private PersonItemDataListener mListener; field in PersonItemData
47 mListener = listener; in setListener()
52 if (isBound() && mListener != null) { in notifyDataUpdated()
53 mListener.onPersonDataUpdated(this); in notifyDataUpdated()
58 if (isBound() && mListener != null) { in notifyDataFailed()
59 mListener.onPersonDataFailed(this, exception); in notifyDataFailed()
65 mListener = null; in unregisterListeners()
/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/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java42 private ConnectivityListener mListener; field in ConnectivityUtil
80 final ConnectivityListener listener = mListener; in onPhoneStateChanged()
87 Assert.isTrue(mListener == null || mListener == listener); in register()
88 if (mListener == null) { in register()
96 mListener = listener; in register()
100 if (mListener != null) { in unregister()
106 mListener = null; in unregister()
/packages/apps/Settings/src/com/android/settings/password/
DCredentialCheckResultTracker.java29 private Listener mListener; field in CredentialCheckResultTracker
44 if (mListener == listener) { in setListener()
48 mListener = listener; in setListener()
49 if (mListener != null && mHasResult) { in setListener()
50 mListener.onCredentialChecked(mResultMatched, mResultData, mResultTimeoutMs, in setListener()
62 if (mListener != null) { in setResult()
63 mListener.onCredentialChecked(mResultMatched, mResultData, mResultTimeoutMs, in setResult()

12345678910>>...18