Home
last modified time | relevance | path

Searched refs:Matchers (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java23 import org.mockito.Matchers;
76 .onMenuVisibilityChange(Matchers.eq(true)); in testShowHide_ReasonNone()
78 .onMenuVisibilityChange(Matchers.eq(false)); in testShowHide_ReasonNone()
80 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE), in testShowHide_ReasonNone()
81 Matchers.isNull(String.class), Matchers.isNull(Runnable.class)); in testShowHide_ReasonNone()
86 .onMenuVisibilityChange(Matchers.eq(false)); in testShowHide_ReasonNone()
96 .onMenuVisibilityChange(Matchers.eq(true)); in testShowHide_ReasonGuide()
98 .onMenuVisibilityChange(Matchers.eq(false)); in testShowHide_ReasonGuide()
100 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE), in testShowHide_ReasonGuide()
101 Matchers.eq(ChannelsRow.ID), Matchers.isNull(Runnable.class)); in testShowHide_ReasonGuide()
[all …]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java32 import org.mockito.Matchers;
177 verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt()); in testRunBackup_OneNewCall()
178 verify(mBackupDataOutput).writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); in testRunBackup_OneNewCall()
192 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt()); in testRunBackup_MultipleCall()
194 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); in testRunBackup_MultipleCall()
195 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("102"), Matchers.anyInt()); in testRunBackup_MultipleCall()
197 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); in testRunBackup_MultipleCall()
214 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("102"), Matchers.anyInt()); in testRunBackup_PartialMultipleCall()
216 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); in testRunBackup_PartialMultipleCall()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DComposeMessageViewTest.java42 import org.mockito.Matchers;
104 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) in testSend()
108 Matchers.<BindingBase<DraftMessageData>>any())) in testSend()
130 Mockito.verify(mockDraftMessageData).loadFromStorage(Matchers.any(BindingBase.class), in testSend()
131 Matchers.any(MessageData.class), Mockito.eq(false)); in testSend()
158 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) in testNotDefaultSms()
162 Matchers.<BindingBase<DraftMessageData>>any())) in testNotDefaultSms()
173 Mockito.verify(mockDraftMessageData).loadFromStorage(Matchers.any(BindingBase.class), in testNotDefaultSms()
174 Matchers.any(MessageData.class), Mockito.eq(false)); in testNotDefaultSms()
182 Matchers.any(Boolean.class), Matchers.any(Runnable.class)); in testNotDefaultSms()
DConversationFragmentTest.java42 import org.mockito.Matchers;
87 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) in loadWith()
89 Mockito.when(mockConversationData.isBound(Matchers.anyString())) in loadWith()
95 Matchers.any(Activity.class), in loadWith()
96 Matchers.any(ConversationDataListener.class), in loadWith()
97 Matchers.anyString())) in loadWith()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DAudioRecordViewTest.java29 import org.mockito.Matchers;
47 Mockito.verify(mockHost).onAudioRecorded(Matchers.any(MessagePartData.class)); in verifyAudioSubmitted()
59 Mockito.when(mockRecorder.startRecording(Matchers.<OnErrorListener>any(), in testRecording()
60 Matchers.<OnInfoListener>any(), Matchers.anyInt())).thenReturn(true); in testRecording()
64 Mockito.verify(mockRecorder).startRecording(Matchers.<OnErrorListener>any(), in testRecording()
65 Matchers.<OnInfoListener>any(), Matchers.anyInt()); in testRecording()
DGalleryGridItemViewTest.java33 import org.mockito.Matchers;
75 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBind()
88 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBindMultiSelectUnSelected()
101 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBindMultiSelectSelected()
114 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testClick()
126 Mockito.when(mockHost.isItemSelected(Matchers.<GalleryGridItemData>any())) in testBindTwice()
DMediaPickerTest.java33 import org.mockito.Matchers;
69 Mockito.when(mMockMediaPickerData.isBound(Matchers.anyString())) in initFragment()
71 Mockito.when(mMockDraftMessageData.isBound(Matchers.anyString())) in initFragment()
90 Matchers.eq(fragment.getLoaderManager())); in initFragment()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSortHeaderBot.java30 import static org.hamcrest.Matchers.allOf;
70 if (Matchers.present(mDropBot.MATCHER)) { in sortBy()
81 assertTrue(Matchers.present(mDropBot.MATCHER)); in assertDropdownMode()
92 assertFalse(Matchers.present(mDropBot.MATCHER)); in assertColumnMode()
113 return Matchers.present(allOf( in sortBy()
120 final boolean ascending = Matchers.present( in getDirection()
129 final boolean descending = Matchers.present( in getDirection()
161 Matchers.present( in getDirection()
170 Matchers.present( in getDirection()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java39 import org.mockito.Matchers;
94 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString())) in loadWith()
103 Matchers.anyString())) in loadWith()
127 Matchers.eq(fragment.mBinding), Matchers.eq((MessageData) null), in loadWith()
128 Matchers.eq(false)); in loadWith()
167 Mockito.verify(mockDraftMessageData).removeExistingAttachments(Matchers.argThat( in testUnselect()
169 Mockito.verify(mockDraftMessageData).saveToStorage(Matchers.eq(getFragment().mBinding)); in testUnselect()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java30 import org.mockito.Matchers;
64 Matchers.eq(ImageRequest.UNSPECIFIED_SIZE), in testLoadImageUnspecifiedSize()
65 Matchers.eq(ImageRequest.UNSPECIFIED_SIZE)); in testLoadImageUnspecifiedSize()
95 Matchers.eq(DOWNSAMPLE_IMAGE_SIZE), Matchers.eq(DOWNSAMPLE_IMAGE_SIZE)); in testLoadImageWithDownsampling()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DContactsAsyncHelperTest.java33 import static org.mockito.Matchers.any;
34 import static org.mockito.Matchers.anyInt;
35 import static org.mockito.Matchers.anyObject;
36 import static org.mockito.Matchers.eq;
37 import static org.mockito.Matchers.isNull;
DNewOutgoingCallIntentBroadcasterTest.java47 import static org.mockito.Matchers.any;
48 import static org.mockito.Matchers.anyBoolean;
49 import static org.mockito.Matchers.anyInt;
50 import static org.mockito.Matchers.anyString;
51 import static org.mockito.Matchers.eq;
52 import static org.mockito.Matchers.isNotNull;
53 import static org.mockito.Matchers.isNull;
DCallerInfoLookupHelperTest.java43 import static org.mockito.Matchers.any;
44 import static org.mockito.Matchers.anyInt;
45 import static org.mockito.Matchers.anyString;
46 import static org.mockito.Matchers.eq;
47 import static org.mockito.Matchers.isNull;
DCallScreeningServiceFilterTest.java52 import static org.mockito.Matchers.any;
53 import static org.mockito.Matchers.anyBoolean;
54 import static org.mockito.Matchers.anyInt;
55 import static org.mockito.Matchers.anyString;
56 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBugReportInPowerPreferenceControllerTest.java41 import static org.mockito.Matchers.any;
42 import static org.mockito.Matchers.anyBoolean;
43 import static org.mockito.Matchers.anyInt;
44 import static org.mockito.Matchers.anyString;
45 import static org.mockito.Matchers.eq;
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DRecordingTaskTest.java19 import static org.mockito.Matchers.anyLong;
20 import static org.mockito.Matchers.anyObject;
21 import static org.mockito.Matchers.anyString;
22 import static org.mockito.Matchers.argThat;
23 import static org.mockito.Matchers.eq;
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java25 import static org.hamcrest.Matchers.allOf;
26 import static org.hamcrest.Matchers.equalTo;
29 import static org.mockito.Matchers.any;
30 import static org.mockito.Matchers.anyString;
70 import org.hamcrest.Matchers;
378 Matchers.<Set<SimContact>>equalTo(ImmutableSet.of(existing1, existing2))); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
421 assertThat(existing, Matchers.<Map<AccountWithDataSet, Set<SimContact>>>equalTo( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
455 assertThat(existing.get(account), Matchers.<Set<SimContact>>equalTo( in matchesByNameIfSimContactHasNoPhone()
489 assertThat(existing.get(account), Matchers.<Set<SimContact>>equalTo( in largeNumberOfSimContacts()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DCreateManagedProfileTaskTest.java22 import static org.mockito.Matchers.any;
23 import static org.mockito.Matchers.anyInt;
24 import static org.mockito.Matchers.anyString;
25 import static org.mockito.Matchers.eq;
DCopyAccountToUserTaskTest.java21 import static org.mockito.Matchers.any;
22 import static org.mockito.Matchers.anyLong;
23 import static org.mockito.Matchers.eq;
24 import static org.mockito.Matchers.nullable;
DInstallPackageTaskTest.java22 import static org.mockito.Matchers.any;
23 import static org.mockito.Matchers.anyInt;
24 import static org.mockito.Matchers.anyString;
25 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizationPreferenceControllerTest.java21 import static org.mockito.Matchers.any;
22 import static org.mockito.Matchers.anyInt;
23 import static org.mockito.Matchers.anyString;
24 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProviderImplTest.java40 import static org.mockito.Matchers.any;
41 import static org.mockito.Matchers.anyBoolean;
42 import static org.mockito.Matchers.anyString;
43 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java20 import static org.mockito.Matchers.any;
21 import static org.mockito.Matchers.anyInt;
22 import static org.mockito.Matchers.anyString;
23 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DDefaultHomePickerTest.java50 import static org.mockito.Matchers.any;
51 import static org.mockito.Matchers.anyInt;
52 import static org.mockito.Matchers.anyList;
53 import static org.mockito.Matchers.eq;
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/instantapps/
DInstantAppButtonsControllerTest.java24 import static org.mockito.Matchers.eq;
25 import static org.mockito.Matchers.any;
26 import static org.mockito.Matchers.anyInt;
27 import static org.mockito.Matchers.isNull;

12345678910>>...12