/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallSession.java | 524 private Listener mListener; field in ImsCallSession 744 mListener = listener; in setListener() 1202 if (mListener != null) { in callSessionInitiating() 1203 mListener.callSessionInitiating(ImsCallSession.this, profile); in callSessionInitiating() 1209 if (mListener != null) { in callSessionProgressing() 1210 mListener.callSessionProgressing(ImsCallSession.this, profile); in callSessionProgressing() 1216 if (mListener != null) { in callSessionInitiated() 1217 mListener.callSessionStarted(ImsCallSession.this, profile); in callSessionInitiated() 1223 if (mListener != null) { in callSessionInitiatingFailed() 1224 mListener.callSessionStartFailed(ImsCallSession.this, reasonInfo); in callSessionInitiatingFailed() [all …]
|
D | ImsCallSessionListener.java | 48 private final IImsCallSessionListener mListener; field in ImsCallSessionListener 52 mListener = l; in ImsCallSessionListener() 70 mListener.callSessionInitiating(profile); in callSessionInitiating() 84 mListener.callSessionInitiatingFailed(reasonInfo); in callSessionInitiatingFailed() 98 mListener.callSessionProgressing(profile); in callSessionProgressing() 112 mListener.callSessionInitiated(profile); in callSessionInitiated() 131 mListener.callSessionInitiatedFailed(reasonInfo); in callSessionInitiatedFailed() 144 mListener.callSessionTerminated(reasonInfo); in callSessionTerminated() 161 mListener.callSessionHeld(profile); in callSessionHeld() 174 mListener.callSessionHoldFailed(reasonInfo); in callSessionHoldFailed() [all …]
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipSessionListenerProxy.java | 29 private ISipSessionListener mListener; field in SipSessionListenerProxy 32 mListener = listener; in setListener() 36 return mListener; in getListener() 48 if (mListener == null) return; in onCalling() 53 mListener.onCalling(session); in onCalling() 64 if (mListener == null) return; in onRinging() 69 mListener.onRinging(session, caller, sessionDescription); in onRinging() 79 if (mListener == null) return; in onRingingBack() 84 mListener.onRingingBack(session); in onRingingBack() 95 if (mListener == null) return; in onCallEstablished() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipSession.java | 239 private Listener mListener; field in SipSession 352 mListener = listener; in setListener() 470 if (mListener != null) { in createListener() 471 mListener.onCalling(SipSession.this); in createListener() 478 if (mListener != null) { in createListener() 479 mListener.onRinging(SipSession.this, caller, in createListener() 486 if (mListener != null) { in createListener() 487 mListener.onRingingBack(SipSession.this); in createListener() 494 if (mListener != null) { in createListener() 495 mListener.onCallEstablished(SipSession.this, in createListener() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PersisterQueueTests.java | 58 private TestPersisterQueueListener mListener; field in PersisterQueueTests 63 mListener = new TestPersisterQueueListener(); in setUp() 64 mListener.setExpectedOnPreProcessItemCallbackTimes(1); in setUp() 65 mTarget.addListener(mListener); in setUp() 72 mListener.waitForAllExpectedCallbackDone(TIMEOUT_ALLOWANCE)); in setUp() 78 mTarget.removeListener(mListener); in tearDown() 84 assertEquals(1, mListener.mProbablyDoneResults.size()); in testCallCallbackOnStartUp() 86 assertTrue("The last probablyDone must be true.", mListener.mProbablyDoneResults.get(0)); in testCallCallbackOnStartUp() 92 mListener.setExpectedOnPreProcessItemCallbackTimes(1); in testProcessOneItem() 105 mListener.waitForAllExpectedCallbackDone(TIMEOUT_ALLOWANCE)); in testProcessOneItem() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | FilterSurfaceView.java | 35 private SurfaceHolder.Callback mListener; field in FilterSurfaceView 56 } else if (mListener != null && mListener != listener) { in bindToListener() 59 + "filter " + mListener + " attached already!"); in bindToListener() 63 mListener = listener; in bindToListener() 78 mListener.surfaceCreated(getHolder()); in bindToListener() 82 mListener.surfaceChanged(getHolder(), mFormat, mWidth, mHeight); in bindToListener() 88 mListener = null; in unbind() 109 if (mListener != null) { in surfaceCreated() 110 mListener.surfaceCreated(holder); in surfaceCreated() 126 if (mListener != null) { in surfaceChanged() [all …]
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | DisplayManagerGlobalTest.java | 51 private DisplayManager.DisplayListener mListener; field in DisplayManagerGlobalTest 71 mDisplayManagerGlobal.registerDisplayListener(mListener, mHandler, ALL_DISPLAY_EVENTS); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 79 Mockito.verify(mListener).onDisplayAdded(eq(displayId)); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 80 Mockito.verifyNoMoreInteractions(mListener); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 82 Mockito.reset(mListener); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 85 Mockito.verify(mListener).onDisplayChanged(eq(displayId)); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 86 Mockito.verifyNoMoreInteractions(mListener); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 88 Mockito.reset(mListener); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 91 Mockito.verify(mListener).onDisplayRemoved(eq(displayId)); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() 92 Mockito.verifyNoMoreInteractions(mListener); in testDisplayListenerIsCalled_WhenDisplayEventOccurs() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsEcbmImplBase.java | 42 private IImsEcbmListener mListener; field in ImsEcbmImplBase 47 if (mListener != null && !mListener.asBinder().isBinderAlive()) { 49 mListener = null; 51 if (mListener != null && listener != null && Objects.equals( 52 mListener.asBinder(), listener.asBinder())) { 56 mListener = null; 57 } else if (listener != null && mListener == null) { 58 mListener = listener; 63 mListener = listener; 96 listener = mListener; in enteredEcbm() [all …]
|
D | ImsMultiEndpointImplBase.java | 44 private IImsExternalCallStateListener mListener; field in ImsMultiEndpointImplBase 51 if (mListener != null && !mListener.asBinder().isBinderAlive()) { 53 mListener = null; 55 if (mListener != null && listener != null && Objects.equals( 56 mListener.asBinder(), listener.asBinder())) { 61 mListener = null; 62 } else if (listener != null && mListener == null) { 63 mListener = listener; 68 mListener = listener; 93 listener = mListener; in onImsExternalCallStateUpdate()
|
D | ImsSmsImplBase.java | 130 private IImsSmsListener mListener; field in ImsSmsImplBase 141 mListener = listener; in registerSmsListener() 223 if (mListener == null) { in onSmsReceived() 227 mListener.onSmsReceived(token, format, pdu); in onSmsReceived() 258 if (mListener == null) { in onSendSmsResultSuccess() 262 mListener.onSendSmsResult(token, messageRef, SEND_STATUS_OK, in onSendSmsResultSuccess() 292 if (mListener == null) { in onSendSmsResult() 296 mListener.onSendSmsResult(token, messageRef, status, reason, in onSendSmsResult() 326 if (mListener == null) { in onSendSmsResultError() 330 mListener.onSendSmsResult(token, messageRef, status, reason, networkErrorCode); in onSendSmsResultError() [all …]
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
D | FeatureConnectorTest.java | 124 @Mock private FeatureConnector.Listener<TestManager> mListener; field in FeatureConnectorTest 157 verify(mListener, never()).connectionReady(any()); in testConnect() 158 verify(mListener, never()).connectionUnavailable(anyInt()); in testConnect() 162 verify(mListener).connectionReady(mTestManager); in testConnect() 163 verify(mListener, never()).connectionUnavailable(anyInt()); in testConnect() 176 verify(mListener).connectionUnavailable( in testConnectNotSupported() 189 verify(mListener).connectionReady(mTestManager); in testConnectReadyNotReady() 190 verify(mListener, never()).connectionUnavailable(anyInt()); in testConnectReadyNotReady() 196 verify(mListener).connectionReady(mTestManager); in testConnectReadyNotReady() 197 verify(mListener).connectionUnavailable(FeatureConnector.UNAVAILABLE_REASON_NOT_READY); in testConnectReadyNotReady() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | TunnelModeEnabledListenerTest.java | 38 private TestableTunnelModeEnabledListener mListener; field in TunnelModeEnabledListenerTest 42 mListener = new TestableTunnelModeEnabledListener(); in init() 47 TunnelModeEnabledListener.register(mListener); in testRegisterUnregister() 48 TunnelModeEnabledListener.unregister(mListener); in testRegisterUnregister() 53 TunnelModeEnabledListener.dispatchOnTunnelModeEnabledChanged(mListener, true); in testDispatchUpdatesListener() 54 assertEquals(true, mListener.mTunnelModeEnabled.get()); in testDispatchUpdatesListener() 55 TunnelModeEnabledListener.dispatchOnTunnelModeEnabledChanged(mListener, false); in testDispatchUpdatesListener() 56 assertEquals(false, mListener.mTunnelModeEnabled.get()); in testDispatchUpdatesListener() 61 TunnelModeEnabledListener.register(mListener); in testRegisterUpdatesListener() 63 assertTrue(mListener.mTunnelModeEnabledUpdated.get()); in testRegisterUpdatesListener() [all …]
|
/frameworks/base/core/tests/nfctests/src/android/nfc/ |
D | NfcControllerAlwaysOnListenerTest.java | 69 NfcControllerAlwaysOnListener mListener = 75 mListener.register(getExecutor(), mockListener1); 79 mListener.register(getExecutor(), mockListener2); 83 mListener.unregister(mockListener1); 88 mListener.unregister(mockListener2); 96 NfcControllerAlwaysOnListener mListener = 102 mListener.register(getExecutor(), mockListener1); 106 mListener.register(getExecutor(), mockListener2); 110 mListener.unregister(mockListener1); 115 mListener.unregister(mockListener2); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | MagnificationGestureDetectorTest.java | 56 private MagnificationGestureDetector.OnGestureListener mListener; field in MagnificationGestureDetectorTest 68 mGestureDetector = new MagnificationGestureDetector(mContext, mHandler, mListener); in setUp() 84 mListener.onStart(ACTION_DOWN_X, ACTION_DOWN_Y); in onActionDown_invokeDownCallback() 98 InOrder inOrder = Mockito.inOrder(mListener); in performSingleTap_invokeCallbacksInOrder() 99 inOrder.verify(mListener).onStart(ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder() 100 inOrder.verify(mListener).onSingleTap(); in performSingleTap_invokeCallbacksInOrder() 101 inOrder.verify(mListener).onFinish(ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder() 102 verify(mListener, never()).onDrag(anyFloat(), anyFloat()); in performSingleTap_invokeCallbacksInOrder() 116 verify(mListener, never()).onSingleTap(); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() 130 verify(mListener, never()).onSingleTap(); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/ |
D | TelephonyListenerManagerTest.java | 115 ActiveDataSubscriptionIdListener mListener = subId -> { }; in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() local 118 mTelephonyListenerManager.addActiveDataSubscriptionIdListener(mListener); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() 124 mTelephonyListenerManager.removeActiveDataSubscriptionIdListener(mListener); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() 125 mTelephonyListenerManager.removeActiveDataSubscriptionIdListener(mListener); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() 126 mTelephonyListenerManager.removeActiveDataSubscriptionIdListener(mListener); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() 127 mTelephonyListenerManager.removeActiveDataSubscriptionIdListener(mListener); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener() 135 CallStateListener mListener = state -> { }; in testRemoveListenerUnregisters_CallStateListener() local 138 mTelephonyListenerManager.addCallStateListener(mListener); in testRemoveListenerUnregisters_CallStateListener() 144 mTelephonyListenerManager.removeCallStateListener(mListener); in testRemoveListenerUnregisters_CallStateListener() 145 mTelephonyListenerManager.removeCallStateListener(mListener); in testRemoveListenerUnregisters_CallStateListener() [all …]
|
/frameworks/layoutlib/bridge/src/android/animation/ |
D | AnimationThread.java | 70 private final IAnimationListener mListener; field in AnimationThread 76 mListener = listener; in AnimationThread() 106 mListener.done(result); in run() 113 if (mListener.isCanceled()) { in run() 135 if (mListener.isCanceled()) { in run() 142 mListener.done(result); in run() 150 if (mListener.isCanceled()) { in run() 156 mListener.onNewFrame(session); in run() 161 } while (mListener.isCanceled() == false && mQueue.size() > 0); in run() 163 mListener.done(Status.SUCCESS.createResult()); in run() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 98 private TestListener mListener = new TestListener(); field in LocalDisplayAdapterTest 122 mListener, mInjector); in setUp() 164 assertDisplayPrivateFlag(mListener.addedDisplays.get(0).getDisplayDeviceInfoLocked(), in testPrivateDisplay() 167 assertDisplayPrivateFlag(mListener.addedDisplays.get(1).getDisplayDeviceInfoLocked(), in testPrivateDisplay() 170 assertDisplayPrivateFlag(mListener.addedDisplays.get(2).getDisplayDeviceInfoLocked(), in testPrivateDisplay() 189 assertDisplayPrivateFlag(mListener.addedDisplays.get(0).getDisplayDeviceInfoLocked(), in testPublicDisplaysForNoConfigLocalPrivateDisplayPorts() 192 assertDisplayPrivateFlag(mListener.addedDisplays.get(1).getDisplayDeviceInfoLocked(), in testPublicDisplaysForNoConfigLocalPrivateDisplayPorts() 219 mListener.addedDisplays.get(0).getDisplayDeviceInfoLocked(), PORT_A, 100, 100, in testDpiValues() 222 mListener.addedDisplays.get(1).getDisplayDeviceInfoLocked(), PORT_B, 100, 100, in testDpiValues() 254 assertTrue(mListener.traversalRequested); in testAlternativeRefreshRatesCommon() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
D | AsyncSensorManagerTest.java | 46 private SensorEventListener mListener; field in AsyncSensorManagerTest 58 mListener = mock(SensorEventListener.class); in setUp() 63 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl() 69 verify(mListener).onSensorChanged(any()); in registerListenerImpl() 74 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor() 75 mAsyncSensorManager.unregisterListener(mListener); in unregisterListenerImpl_withNullSensor() 81 verifyNoMoreInteractions(mListener); in unregisterListenerImpl_withNullSensor() 86 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor() 87 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor() 93 verifyNoMoreInteractions(mListener); in unregisterListenerImpl_withSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaDataCombineLatestTest.java | 66 @Mock private MediaDataManager.Listener mListener; field in MediaDataCombineLatestTest 74 mManager.addListener(mListener); in setUp() 88 verify(mListener, never()).onMediaDataLoaded(eq(KEY), any(), any(), anyBoolean(), in eventNotEmittedWithoutDevice() 97 verify(mListener, never()).onMediaDataLoaded(eq(KEY), any(), any(), anyBoolean(), in eventNotEmittedWithoutMedia() 110 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterDeviceFirst() 124 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterMediaFirst() 135 reset(mListener); in migrateKeyMediaFirst() 141 verify(mListener).onMediaDataLoaded(eq(KEY), eq(OLD_KEY), captor.capture(), anyBoolean(), in migrateKeyMediaFirst() 152 reset(mListener); in migrateKeyDeviceFirst() 157 verify(mListener).onMediaDataLoaded(eq(KEY), eq(OLD_KEY), captor.capture(), anyBoolean(), in migrateKeyDeviceFirst() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/ |
D | GroupCoalescerTest.java | 64 @Mock private GroupCoalescer.BatchableNotificationHandler mListener; field in GroupCoalescerTest 84 mCoalescer.setNotificationHandler(mListener); in setUp() 102 verify(mListener).onNotificationPosted(notif1.sbn, notif1.rankingMap); in testUngroupedNotificationsAreNotCoalesced() 105 verify(mListener, never()).onNotificationBatchPosted(anyList()); in testUngroupedNotificationsAreNotCoalesced() 118 verify(mListener, never()).onNotificationPosted( in testGroupedNotificationsAreCoalesced() 123 verify(mListener, never()).onNotificationBatchPosted(anyList()); in testGroupedNotificationsAreCoalesced() 136 verify(mListener).onNotificationRankingUpdate(notif1.rankingMap); in testCoalescedNotificationsStillPassThroughRankingUpdate() 162 verify(mListener, never()).onNotificationPosted( in testCoalescedNotificationsArePosted() 165 verify(mListener, never()).onNotificationBatchPosted(anyList()); in testCoalescedNotificationsArePosted() 171 verify(mListener).onNotificationBatchPosted(Arrays.asList( in testCoalescedNotificationsArePosted() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 57 private NotificationListener mListener; field in NotificationListenerTest 65 mListener = new NotificationListener( in setUp() 72 mListener.addNotificationHandler(mNotificationHandler); in setUp() 77 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification() 84 mListener.onNotificationRemoved(mSbn, mRanking); in testNotificationRemovalCallsRemoveNotification() 91 mListener.onNotificationRankingUpdate(mRanking); in testRankingUpdateCallsNotificationRankingUpdate() 101 mListener.addNotificationSettingsListener(settingsListener); in testOnConnectReadStatusBarSetting() 105 mListener.onListenerConnected(); in testOnConnectReadStatusBarSetting() 114 mListener.addNotificationSettingsListener(settingsListener); in testOnStatusBarIconsBehaviorChanged() 116 mListener.onSilentStatusBarIconsVisibilityChanged(true); in testOnStatusBarIconsBehaviorChanged()
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
D | Camera2CaptureCallbackForwarder.java | 32 private CaptureCallback mListener; field in Camera2CaptureCallbackForwarder 36 mListener = listener; in Camera2CaptureCallbackForwarder() 46 mListener.onCaptureCompleted(session, request, result); in onCaptureCompleted() 56 mListener.onCaptureFailed(session, request, failure); in onCaptureFailed() 67 mListener.onCaptureProgressed(session, request, partialResult); in onCaptureProgressed() 76 mListener.onCaptureSequenceAborted(session, sequenceId); in onCaptureSequenceAborted() 86 mListener.onCaptureSequenceCompleted(session, sequenceId, frameNumber); in onCaptureSequenceCompleted() 96 mListener.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerController.java | 50 private Listener mListener; field in PlayerController 73 mListener = listener; in setListener() 75 if (mListener != null) { in setListener() 77 mListener.onConnectionStateChange( in setListener() 170 if (mListener != null) { 171 mListener.onConnectionStateChange(STATE_DISCONNECTED); 195 if (mListener != null) { 196 mListener.onConnectionStateChange(STATE_CONNECTED); 198 mListener.onPlaybackStateChange(mController.getPlaybackState()); 211 if (mListener != null) { in onPlaybackStateChanged() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ServerSession.java | 58 private ServerRequestHandler mListener; field in ServerSession 80 mListener = handler; in ServerSession() 176 code = mListener.onAbort(request, reply); in handleAbortRequest() 197 ServerOperation op = new ServerOperation(this, mInput, type, mMaxPacketLength, mListener); in handlePutRequest() 202 response = validateResponseCode(mListener in handlePutRequest() 205 response = validateResponseCode(mListener.onPut(op)); in handlePutRequest() 243 ServerOperation op = new ServerOperation(this, mInput, type, mMaxPacketLength, mListener); in handleGetRequest() 245 int response = validateResponseCode(mListener.onGet(op)); in handleGetRequest() 328 if (mListener.getConnectionId() != -1 && request.mConnectionID != null) { in handleSetPathRequest() 329 mListener.setConnectionId(ObexHelper.convertToLong(request.mConnectionID)); in handleSetPathRequest() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | RampAnimator.java | 42 private Listener mListener; field in RampAnimator 74 if (mListener != null) { in animateTo() 75 mListener.onAnimationEnd(); in animateTo() 121 mListener = listener; in setListener() 165 if (mListener != null) { 166 mListener.onAnimationEnd(); 182 if (mListener != null && !isAnimating()) { 183 mListener.onAnimationEnd(); 188 private Listener mListener; field in RampAnimator.DualRampAnimator 216 mListener = listener; in setListener()
|