/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/ |
D | ConversationActivityUiStateTest.java | 32 @Mock protected ConversationActivityUiStateHost mockListener; field in ConversationActivityUiStateTest 39 uiState.setHost(mockListener); in testPickInitialContact() 45 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testPickInitialContact() 65 uiState.setHost(mockListener); in testHybridUiStateStartCompose() 69 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testHybridUiStateStartCompose() 86 uiState.setHost(mockListener); in testHybridUiStateAddParticipant() 89 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testHybridUiStateAddParticipant() 108 uiState.setHost(mockListener); in testCommitAddParticipant() 114 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testCommitAddParticipant()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperV2Test.java | 118 HalFocusListener mockListener = mock(HalFocusListener.class); in registerFocusListener_succeeds() local 120 mAudioControlWrapperV2.registerFocusListener(mockListener); in registerFocusListener_succeeds() 129 HalFocusListener mockListener = mock(HalFocusListener.class); in registerFocusListener_throws() local 132 () -> mAudioControlWrapperV2.registerFocusListener(mockListener)); in registerFocusListener_throws() 141 HalFocusListener mockListener = mock(HalFocusListener.class); in unregisterFocusListener_closesHandle() local 145 mAudioControlWrapperV2.registerFocusListener(mockListener); in unregisterFocusListener_closesHandle() 154 HalFocusListener mockListener = mock(HalFocusListener.class); in requestAudioFocus_forFocusListenerWrapper_succeeds() local 157 mAudioControlWrapperV2.registerFocusListener(mockListener); in requestAudioFocus_forFocusListenerWrapper_succeeds() 162 verify(mockListener).requestAudioFocus(METADATA, ZONE_ID, FOCUS_GAIN); in requestAudioFocus_forFocusListenerWrapper_succeeds() 167 HalFocusListener mockListener = mock(HalFocusListener.class); in abandonAudioFocus_forFocusListenerWrapper_succeeds() local [all …]
|
D | AudioControlWrapperAidlTest.java | 250 HalFocusListener mockListener = mock(HalFocusListener.class); in registerFocusListener_succeeds() local 251 mAudioControlWrapperAidl.registerFocusListener(mockListener); in registerFocusListener_succeeds() 260 HalFocusListener mockListener = mock(HalFocusListener.class); in registerFocusListener_throws() local 263 () -> mAudioControlWrapperAidl.registerFocusListener(mockListener)); in registerFocusListener_throws() 272 HalFocusListener mockListener = mock(HalFocusListener.class); in requestAudioFocus_forFocusListenerWrapper_succeeds() local 275 mAudioControlWrapperAidl.registerFocusListener(mockListener); in requestAudioFocus_forFocusListenerWrapper_succeeds() 280 verify(mockListener).requestAudioFocus(METADATA, ZONE_ID, FOCUS_GAIN); in requestAudioFocus_forFocusListenerWrapper_succeeds() 285 HalFocusListener mockListener = mock(HalFocusListener.class); in requestAudioFocusWithMetaData_forFocusListenerWrapper_succeeds() local 288 mAudioControlWrapperAidl.registerFocusListener(mockListener); in requestAudioFocusWithMetaData_forFocusListenerWrapper_succeeds() 293 verify(mockListener).requestAudioFocus(METADATA, ZONE_ID, FOCUS_GAIN); in requestAudioFocusWithMetaData_forFocusListenerWrapper_succeeds() [all …]
|
D | AudioControlWrapperV1Test.java | 136 HalFocusListener mockListener = mock(HalFocusListener.class); in registerFocusListener_throws() local 139 () -> mAudioControlWrapperV1.registerFocusListener(mockListener)); in registerFocusListener_throws()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | ConnectivityMonitorWithConnectivityManagerTests.java | 51 @Mock private ConnectivityMonitor.Listener mockListener; field in ConnectivityMonitorWithConnectivityManagerTests 62 monitor = new ConnectivityMonitorWithConnectivityManager(mContext, mockListener, sharedLog); in setUp() 108 InOrder inOrder = inOrder(mockListener); in testIntentFired_shouldNotifyListener() 121 inOrder.verify(mockListener).onConnectivityChanged(); in testIntentFired_shouldNotifyListener() 125 inOrder.verify(mockListener).onConnectivityChanged(); in testIntentFired_shouldNotifyListener() 129 inOrder.verify(mockListener).onConnectivityChanged(); in testIntentFired_shouldNotifyListener()
|
/packages/services/Car/cpp/watchdog/vts/ |
D | VtsAidlWatchdogTargetTest.cpp | 157 std::shared_ptr<MockResourceOveruseListener> mockListener = in TEST_P() local 160 watchdogServer->addResourceOveruseListener({ResourceType::IO}, mockListener); in TEST_P() 163 status = watchdogServer->removeResourceOveruseListener(mockListener); in TEST_P() 169 std::shared_ptr<MockResourceOveruseListener> mockListener = in TEST_P() local 171 ASSERT_FALSE(watchdogServer->addResourceOveruseListener({}, mockListener).isOk()) in TEST_P() 181 std::shared_ptr<MockResourceOveruseListener> mockListener = in TEST_P() local 183 ASSERT_FALSE(watchdogServer->removeResourceOveruseListener(mockListener).isOk()) in TEST_P()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | DownloadsDeletionTypeTest.java | 150 DeletionType.FreeableChangedListener mockListener = in testCallbackOnFileLoad() local 152 mDeletion.registerFreeableChangedListener(mockListener); in testCallbackOnFileLoad() 155 verify(mockListener).onFreeableChanged(eq(0), eq(0L)); in testCallbackOnFileLoad() 159 verify(mockListener).onFreeableChanged(eq(2), eq(101L)); in testCallbackOnFileLoad()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | GetOrCreateConversationActionTest.java | 49 @Mock GetOrCreateConversationActionListener mockListener; field in GetOrCreateConversationActionTest 75 mockListener); in testGetOrCreateConversation() 94 mockListener); in testGetOrCreateConversation()
|
D | ReadWriteDraftMessageActionTest.java | 57 @Mock ReadDraftDataActionListener mockListener; field in ReadWriteDraftMessageActionTest 144 ReadDraftDataAction.readDraftData(conversationId, null, data, mockListener); in testReadDraft() 203 ReadDraftDataAction.readDraftData(conversationId, null, data, mockListener); in testReadDraftForNewConversation() 257 mockListener); in testWriteAndReadDraft()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | WatchdogPerfHandlerUnitTest.java | 353 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testAddResourceOveruseListenerThrowsWithInvalidFlag() local 357 mockListener); in testAddResourceOveruseListenerThrowsWithInvalidFlag() 712 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testResourceOveruseListener() local 713 IBinder mockBinder = mockListener.asBinder(); in testResourceOveruseListener() 716 mockListener); in testResourceOveruseListener() 725 verify(mockListener).onOveruse(any()); in testResourceOveruseListener() 727 mWatchdogPerfHandler.removeResourceOveruseListener(mockListener); in testResourceOveruseListener() 729 verify(mockListener, atLeastOnce()).asBinder(); in testResourceOveruseListener() 737 verifyNoMoreInteractions(mockListener); in testResourceOveruseListener() 744 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testDuplicateAddResourceOveruseListener() local [all …]
|
D | CarWatchdogServiceUnitTest.java | 693 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testAddResourceOveruseListener() local 694 mCarWatchdogService.addResourceOveruseListener(FLAG_RESOURCE_OVERUSE_IO, mockListener); in testAddResourceOveruseListener() 697 eq(mockListener)); in testAddResourceOveruseListener() 701 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testAddResourceOveruseListenerForSystem() local 703 mockListener); in testAddResourceOveruseListenerForSystem() 706 eq(FLAG_RESOURCE_OVERUSE_IO), eq(mockListener)); in testAddResourceOveruseListenerForSystem() 711 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testRemoveResourceOveruseListener() local 712 mCarWatchdogService.removeResourceOveruseListener(mockListener); in testRemoveResourceOveruseListener() 714 verify(mMockWatchdogPerfHandler).removeResourceOveruseListener(eq(mockListener)); in testRemoveResourceOveruseListener() 719 IResourceOveruseListener mockListener = createMockResourceOveruseListener(); in testRemoveResourceOveruseListenerForSystem() local [all …]
|