HomeSort by relevance Sort by last modified time
    Searched defs:Matchers (Results 1 - 25 of 46) sorted by null

1 2

  /external/mockito/src/main/java/org/mockito/
Matchers.java 9 * <code>org.hamcrest.Matchers</code> class. This class will likely be removed in version 3.0.
12 public class Matchers extends ArgumentMatchers {
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
Matchers.java 31 * Support methods for working with Espresso related matchers 'n stuff.
33 public final class Matchers {
35 private Matchers() {}
SortHeaderBot.java 30 import static org.hamcrest.Matchers.allOf;
70 if (Matchers.present(mDropBot.MATCHER)) {
81 assertTrue(Matchers.present(mDropBot.MATCHER));
87 // assertTrue(Matchers.present(mColumnBot.MATCHER));
92 assertFalse(Matchers.present(mDropBot.MATCHER));
113 return Matchers.present(allOf(
120 final boolean ascending = Matchers.present(
129 final boolean descending = Matchers.present(
161 Matchers.present(
170 Matchers.present
    [all...]
  /packages/apps/TV/tests/unit/src/com/android/tv/menu/
MenuTest.java 28 import org.mockito.Matchers;
82 .onMenuVisibilityChange(Matchers.eq(true));
84 .onMenuVisibilityChange(Matchers.eq(false));
86 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE),
87 Matchers.isNull(String.class), Matchers.isNull(Runnable.class));
92 .onMenuVisibilityChange(Matchers.eq(false));
103 .onMenuVisibilityChange(Matchers.eq(true));
105 .onMenuVisibilityChange(Matchers.eq(false));
107 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE)
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
ImageRequestTest.java 30 import org.mockito.Matchers;
64 Matchers.eq(ImageRequest.UNSPECIFIED_SIZE),
65 Matchers.eq(ImageRequest.UNSPECIFIED_SIZE));
95 Matchers.eq(DOWNSAMPLE_IMAGE_SIZE), Matchers.eq(DOWNSAMPLE_IMAGE_SIZE));
  /packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
AudioRecordViewTest.java 29 import org.mockito.Matchers;
47 Mockito.verify(mockHost).onAudioRecorded(Matchers.any(MessagePartData.class));
59 Mockito.when(mockRecorder.startRecording(Matchers.<OnErrorListener>any(),
60 Matchers.<OnInfoListener>any(), Matchers.anyInt())).thenReturn(true);
64 Mockito.verify(mockRecorder).startRecording(Matchers.<OnErrorListener>any(),
65 Matchers.<OnInfoListener>any(), Matchers.anyInt());
  /external/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
216 MatchersByType Matchers;
229 /// Multiple results occur when using matchers like \c forEachDescendant,
  /external/clang/unittests/ASTMatchers/Dynamic/
ParserTest.cpp 29 // Optimizations on the matcher framework make simple matchers like
60 Matchers.push_back(ToStore);
73 std::vector<MatcherInfo> Matchers;
139 EXPECT_EQ(3ULL, Sema.Matchers.size());
140 const MockSema::MatcherInfo Bar = Sema.Matchers[0];
146 const MockSema::MatcherInfo Baz = Sema.Matchers[1];
152 const MockSema::MatcherInfo Foo = Sema.Matchers[2];
  /packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
ConversationFragmentTest.java 42 import org.mockito.Matchers;
87 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString()))
89 Mockito.when(mockConversationData.isBound(Matchers.anyString()))
95 Matchers.any(Activity.class),
96 Matchers.any(ConversationDataListener.class),
97 Matchers.anyString()))
ComposeMessageViewTest.java 42 import org.mockito.Matchers;
104 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString()))
108 Matchers.<BindingBase<DraftMessageData>>any()))
130 Mockito.verify(mockDraftMessageData).loadFromStorage(Matchers.any(BindingBase.class),
131 Matchers.any(MessageData.class), Mockito.eq(false));
158 Mockito.when(mockDraftMessageData.isBound(Matchers.anyString()))
162 Matchers.<BindingBase<DraftMessageData>>any()))
173 Mockito.verify(mockDraftMessageData).loadFromStorage(Matchers.any(BindingBase.class),
174 Matchers.any(MessageData.class), Mockito.eq(false));
182 Matchers.any(Boolean.class), Matchers.any(Runnable.class))
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 10 // Provides a way to construct an ASTConsumer that runs given matchers
55 /// After creation, you can add multiple matchers to the MatchFinder via
58 /// Once all matchers are added, newASTConsumer() returns an ASTConsumer
63 /// traversal on the AST, and applying the matchers in the order in which they
66 /// See ASTMatchers.h for more information about how to create matchers.
109 /// \brief An id used to group the matchers.
219 MatchersByType Matchers;
232 /// Multiple results occur when using matchers like \c forEachDescendant,
  /external/clang/lib/ASTMatchers/Dynamic/
VariantValue.cpp 65 // Abort if any of the inner matchers can't be converted to
114 : Matchers(std::move(MatchersIn)) {}
119 if (Matchers.size() != 1)
121 return Matchers[0];
126 for (size_t i = 0, e = Matchers.size(); i != e; ++i) {
129 Inner += Matchers[i].getSupportedKind().asStringRef();
139 for (size_t i = 0, e = Matchers.size(); i != e; ++i) {
141 if (Ops.canConstructFrom(Matchers[i], IsExactMatch)) {
148 Found = &Matchers[i];
162 for (const DynTypedMatcher &Matcher : Matchers) {
    [all...]
Marshallers.h 132 /// Returns whether the matcher is variadic. Variadic matchers can take any
152 /// Such matchers are excluded from code completion results.
231 /// \brief Helper methods to extract and merge all possible typed matchers
259 std::vector<DynTypedMatcher> Matchers;
260 mergePolyMatchers(PolyMatcher, Matchers, typename T::ReturnTypes());
261 VariantMatcher Out = VariantMatcher::PolymorphicMatcher(std::move(Matchers));
  /external/guice/core/src/com/google/inject/matcher/
Matchers.java 34 public class Matchers {
35 private Matchers() {}
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
MockKeyStore.java 3 import static org.mockito.Matchers.anyInt;
4 import static org.mockito.Matchers.anyString;
11 import org.mockito.Matchers;
39 when(mock.put(anyString(), Matchers.any(byte[].class), anyInt(), anyInt()))
50 when(mock.importKey(anyString(), Matchers.any(byte[].class), anyInt(), anyInt()))
  /packages/apps/Contacts/tests/src/com/android/contacts/
DynamicShortcutsTests.java 41 import org.hamcrest.Matchers;
50 import static org.hamcrest.Matchers.equalTo;
51 import static org.mockito.Matchers.anyString;
52 import static org.mockito.Matchers.eq;
245 assertThat(DynamicShortcuts.isJobScheduled(getContext()), Matchers.is(true));
  /packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
CallLogBackupAgentTest.java 32 import org.mockito.Matchers;
177 verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt());
178 verify(mBackupDataOutput).writeEntityData((byte[]) Matchers.any(), Matchers.anyInt());
192 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt());
194 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt());
195 inOrder.verify(mBackupDataOutput).writeEntityHeader(eq("102"), Matchers.anyInt());
197 writeEntityData((byte[]) Matchers.any(), Matchers.anyInt())
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
Matchers.java 3 public class Matchers {
6 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
10 public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>> matchers) {
11 return org.hamcrest.core.AllOf.<T>allOf(matchers);
15 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
19 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) {
20 return org.hamcrest.core.AllOf.<T>allOf(matchers);
24 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
33 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
42 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers
    [all...]

Completed in 4094 milliseconds

1 2