Home
last modified time | relevance | path

Searched refs:callbackMock (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/view/
DDockDragListenerTest.kt46 private val callbackMock = mock<DockDragListener.Callback> {} in <lambda>() constant
50 private var dockDragListener = object : DockDragListener(resourcesMock, callbackMock) {
104 verify(callbackMock).exciteView() in onDrag_ACTION_DRAG_ENTERED_exciteViewCallbackTriggered()
113 verify(callbackMock).resetView() in onDrag_ACTION_DRAG_EXITED_resetViewCallbackTriggered()
135 verify(callbackMock).resetView() in onDrag_ACTION_DROP_noClipData_resetViewCallbackTriggered()
159 verify(callbackMock).resetView() in onDrag_ACTION_DROP_clipDataWithNoText_resetViewCallbackTriggered()
185 verify(callbackMock).resetView() in onDrag_ACTION_DROP_invalidComponentName_resetViewCallbackTriggered()
211 verify(callbackMock).dropSuccessful(componentNameCaptor.capture(), isNull()) in onDrag_ACTION_DROP_noDragSurface_dragAcceptedCallbackTriggered()
223 whenever(callbackMock.getDropContainerLocation()).thenReturn(Point(0, 0)) in onDrag_ACTION_DROP_validPositionComponentNameDragSurface_returnTrue()
224 whenever(callbackMock.getDropLocation()).thenReturn(Point(0, 0)) in onDrag_ACTION_DROP_validPositionComponentNameDragSurface_returnTrue()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java103 RangingResultCallback callbackMock = mock(RangingResultCallback.class); in testRangeSuccess() local
107 mDut.startRanging(request, mMockLooperExecutor, callbackMock); in testRangeSuccess()
114 verify(callbackMock).onRangingResults(results); in testRangeSuccess()
116 verifyNoMoreInteractions(mockRttService, callbackMock); in testRangeSuccess()
127 RangingResultCallback callbackMock = mock(RangingResultCallback.class); in testRangeFail() local
131 mDut.startRanging(request, mMockLooperExecutor, callbackMock); in testRangeFail()
138 verify(callbackMock).onRangingFailure(failureCode); in testRangeFail()
140 verifyNoMoreInteractions(mockRttService, callbackMock); in testRangeFail()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarAudioManagerUnitTest.java1818 callbackMock) throws Exception { in getCarVolumeCallbackImpl()
1820 mCarAudioManager.registerCarVolumeCallback(callbackMock); in getCarVolumeCallbackImpl()
1826 callbackMock) throws Exception { in getCarVolumeEventCallbackImpl()
1828 mCarAudioManager.registerCarVolumeGroupEventCallback(DIRECT_EXECUTOR, callbackMock); in getCarVolumeEventCallbackImpl()
1836 PrimaryZoneMediaAudioRequestCallback callbackMock) throws Exception { in getPrimaryZoneMediaAudioRequestCallbackImpl() argument
1840 mCarAudioManager.setPrimaryZoneMediaAudioRequestCallback(DIRECT_EXECUTOR, callbackMock); in getPrimaryZoneMediaAudioRequestCallbackImpl()