/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/preference/ |
D | PreferenceTest.java | 82 Preference.OnPreferenceChangeListener mockListener = mock( in testListPreference() local 84 when(mockListener.onPreferenceChange(any(), any())).thenReturn(true); in testListPreference() 85 mActivity.setOnPreferenceChangeListener("list", mockListener); in testListPreference() 106 verify(mockListener, times(1)).onPreferenceChange(any(), eq(mEntriesValues[0])); in testListPreference() 131 verify(mockListener, times(1)).onPreferenceChange(any(), eq(mEntriesValues[1])); in testListPreference() 152 Preference.OnPreferenceChangeListener mockListener = mock( in testMultiSelectListPreference() local 154 when(mockListener.onPreferenceChange(any(), any())).thenReturn(true); in testMultiSelectListPreference() 155 mActivity.setOnPreferenceChangeListener("multi_select_list", mockListener); in testMultiSelectListPreference() 183 verify(mockListener, times(1)).onPreferenceChange(any(), eq(expectedUpdate)); in testMultiSelectListPreference() 216 Preference.OnPreferenceChangeListener mockListener = mock( in testCheckboxPreference() local [all …]
|
/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 | 81 IFocusListener mockListener = mock(IFocusListener.class); in registerFocusListener_succeeds() local 82 audioControlWrapperV2.registerFocusListener(mockListener); in registerFocusListener_succeeds() 84 verify(mAudioControlV2).registerFocusListener(mockListener); in registerFocusListener_succeeds() 89 IFocusListener mockListener = mock(IFocusListener.class); in unregisterFocusListener_closesHandle() local 91 when(mAudioControlV2.registerFocusListener(mockListener)).thenReturn(mockCloseHandle); in unregisterFocusListener_closesHandle() 94 audioControlWrapperV2.registerFocusListener(mockListener); in unregisterFocusListener_closesHandle()
|
D | AudioControlWrapperV1Test.java | 91 IFocusListener mockListener = mock(IFocusListener.class); in registerFocusListener_throws() local 94 () -> audioControlWrapperV1.registerFocusListener(mockListener)); in registerFocusListener_throws() 100 IFocusListener mockListener = mock(IFocusListener.class); in unregisterFocusListener_throws() local
|
/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 | 48 @Mock GetOrCreateConversationActionListener mockListener; field in GetOrCreateConversationActionTest 74 mockListener); in testGetOrCreateConversation() 93 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()
|