/prebuilts/devtools/tools/lib/ |
hamcrest-core-1.3.jar | |
/prebuilts/misc/common/robolectric/lib/ |
hamcrest-core-1.3.jar | |
hamcrest-library-1.3.jar | |
/prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-core/1.3/ |
hamcrest-core-1.3.jar | |
/external/guava/guava-tests/test/com/google/common/base/ |
CharMatcherTest.java | 133 private void doTestSetBits(CharMatcher matcher) { 135 matcher.setBits(bitset); 137 assertEquals(matcher.matches((char) i), bitset.get(i)); 170 private void doTestEmpty(CharMatcher matcher) throws Exception { 171 reallyTestEmpty(matcher); 172 reallyTestEmpty(matcher.negate()); 173 reallyTestEmpty(matcher.precomputed()); 176 private void reallyTestEmpty(CharMatcher matcher) throws Exception { 177 assertEquals(-1, matcher.indexIn("")); 178 assertEquals(-1, matcher.indexIn("", 0)) [all...] |
/external/guice/core/src/com/google/inject/matcher/ |
Matcher.java | 17 package com.google.inject.matcher; 24 public interface Matcher<T> { 32 * Returns a new matcher which returns {@code true} if both this and the 33 * given matcher return {@code true}. 35 Matcher<T> and(Matcher<? super T> other); 38 * Returns a new matcher which returns {@code true} if either this or the 39 * given matcher return {@code true}. 41 Matcher<T> or(Matcher<? super T> other) [all...] |
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/ |
Matcher.java | 5 * A matcher over acceptable values. 6 * A matcher is able to describe itself to give feedback when it fails. 9 * Matcher implementations should <b>NOT directly implement this interface</b>. 11 * which will ensure that the Matcher API can grow to support 12 * new features and remain compatible with all Matcher implementations. 20 public interface Matcher<T> extends SelfDescribing { 23 * Evaluates the matcher for argument <var>item</var>. 26 * because the caller of the Matcher does not know at runtime what the type is 30 * @param item the object against which the matcher is evaluated. 38 * Generate a description of why the matcher has not accepted the item [all...] |
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
CharMatcherTest.java | 107 private void doTestEmpty(CharMatcher matcher) throws Exception { 108 reallyTestEmpty(matcher); 109 reallyTestEmpty(matcher.negate()); 110 reallyTestEmpty(matcher.precomputed()); 113 private void reallyTestEmpty(CharMatcher matcher) throws Exception { 114 assertEquals(-1, matcher.indexIn("")); 115 assertEquals(-1, matcher.indexIn("", 0)); 117 matcher.indexIn("", 1); 122 matcher.indexIn("", -1); 126 assertEquals(-1, matcher.lastIndexIn("")) [all...] |
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
IsAnything.java | 5 import org.hamcrest.Matcher; 9 * A matcher that always returns <code>true</code>. 34 * Creates a matcher that always matches, regardless of the examined object. 36 public static Matcher<Object> anything() { 41 * Creates a matcher that always matches, regardless of the examined object, but describes 47 public static Matcher<Object> anything(String description) {
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
ArgumentMatcherAction.java | 11 * Implementations must apply the given matcher to the argument and return 17 * @param matcher 20 * to be processed by the matcher, can be <code>null</code> 23 * <li><code>true</code> if the <b>matcher</b> was successfully 24 * applied to the <b>argument</b> and the next pair of matcher and 31 boolean apply(ArgumentMatcher<?> matcher, Object argument);
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
IsArrayContaining.java | 4 import org.hamcrest.Matcher; 12 * Matches if an array contains an item satisfying a nested matcher. 15 private final Matcher<? super T> elementMatcher; 17 public IsArrayContaining(Matcher<? super T> elementMatcher) { 44 * Creates a matcher for arrays that matches when the examined array contains at least one item 51 * the matcher to apply to elements in examined arrays 53 public static <T> Matcher<T[]> hasItemInArray(Matcher<? super T> elementMatcher) { 67 public static <T> Matcher<T[]> hasItemInArray(T element) { 68 Matcher<? super T> matcher = equalTo(element) local [all...] |
IsIterableWithSize.java | 4 import org.hamcrest.Matcher; 12 public IsIterableWithSize(Matcher<? super Integer> sizeMatcher) { 27 * Creates a matcher for {@link Iterable}s that matches when a single pass over the 29 * matcher. 34 * a matcher for the number of items that should be yielded by an examined {@link Iterable} 36 public static <E> Matcher<Iterable<E>> iterableWithSize(Matcher<? super Integer> sizeMatcher) { 41 * Creates a matcher for {@link Iterable}s that matches when a single pass over the 50 public static <E> Matcher<Iterable<E>> iterableWithSize(int size) {
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/io/ |
FileMatchers.java | 5 import org.hamcrest.Matcher; 15 public static Matcher<File> anExistingDirectory() { 19 public static Matcher<File> anExistingFileOrDirectory() { 23 public static Matcher<File> anExistingFile() { 27 public static Matcher<File> aReadableFile() { 31 public static Matcher<File> aWritableFile() { 35 public static Matcher<File> aFileWithSize(long size) { 39 public static Matcher<File> aFileWithSize(final Matcher<Long> expected) { 45 public static Matcher<File> aFileNamed(final Matcher<String> expected) [all...] |
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/ |
HasToString.java | 4 import org.hamcrest.Matcher; 9 public HasToString(Matcher<? super String> toStringMatcher) { 19 * Creates a matcher that matches any examined object whose <code>toString</code> method 20 * returns a value that satisfies the specified matcher. 25 * the matcher used to verify the toString result 27 public static <T> Matcher<T> hasToString(Matcher<? super String> toStringMatcher) { 32 * Creates a matcher that matches any examined object whose <code>toString</code> method 40 public static <T> Matcher<T> hasToString(String expectedToString) {
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/ |
IsArrayContainingInOrderTest.java | 4 import org.hamcrest.Matcher; 13 protected Matcher<?> createMatcher() { 34 Matcher<Integer[]> matcher = arrayContaining(1, 2, 3); local 35 assertMismatchDescription("was null", matcher, null); 36 assertMismatchDescription("no item was <1>", matcher, new Integer[] {}); 37 assertMismatchDescription("no item was <2>", matcher, new Integer[] {1}); 38 assertMismatchDescription("item 0: was <4>", matcher, new Integer[] {4,3,2,1}); 39 assertMismatchDescription("item 2: was <4>", matcher, new Integer[] {1,2, 4});
|
/external/junit/src/main/java/org/junit/ |
AssumptionViolatedException.java | 3 import org.hamcrest.Matcher; 18 * An assumption exception with the given <i>actual</i> value and a <i>matcher</i> describing 21 public <T> AssumptionViolatedException(T actual, Matcher<T> matcher) { 22 super(actual, matcher); 27 * <i>matcher</i> describing the expectation that failed. 29 public <T> AssumptionViolatedException(String message, T expected, Matcher<T> matcher) { 30 super(message, expected, matcher);
|
/external/mockito/src/main/java/org/mockito/internal/matchers/text/ |
MatcherToString.java | 14 * Provides better toString() text for matcher that don't have toString() method declared. 19 * Attempts to provide more descriptive toString() for given matcher. 20 * Searches matcher class hierarchy for toString() method. If it is found it will be used. 21 * If no toString() is defined for the matcher hierarchy, 25 * @param matcher 28 static String toString(ArgumentMatcher<?> matcher) { 29 Class<?> cls = matcher.getClass(); 34 return matcher.toString(); 39 return decamelizeMatcher(matcher.getClass().getSimpleName());
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue4847.go | 16 type matcher func(s *S) E type 18 func matchList(s *S) E { return matcher(matchAnyFn)(s) } 20 var foo = matcher(matchList) 22 var matchAny = matcher(matchList) // ERROR "initialization loop|depends upon itself"
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue4847.go | 16 type matcher func(s *S) E type 18 func matchList(s *S) E { return matcher(matchAnyFn)(s) } 20 var foo = matcher(matchList) 22 var matchAny = matcher(matchList) // ERROR "initialization loop|depends upon itself"
|
/external/llvm/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -*- C++ -*-===// 22 class Matcher; 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 33 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher, 35 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP, 39 /// Matcher - Base class for all the DAG ISel Matcher representation 41 class Matcher { [all...] |
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -----------===// 22 class Matcher; 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 33 Matcher *OptimizeMatcher(Matcher *Matcher, const CodeGenDAGPatterns &CGP); 34 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP, 38 /// Matcher - Base class for all the the DAG ISel Matcher representatio [all...] |
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/ |
WindowManagerState.java | 35 import java.util.regex.Matcher; 232 Matcher matcher = sFocusedWindowPattern.matcher(line); local 233 if (matcher.matches()) { 235 final String focusedWindow = matcher.group(3); 241 matcher = sAppErrorFocusedWindowPattern.matcher(line); 242 if (matcher.matches()) { 244 final String focusedWindow = matcher.group(3) 601 final Matcher matcher = stackIdPattern.matcher(line); local 695 final Matcher matcher = taskIdPattern.matcher(line); local 724 Matcher matcher = sTempInsetBoundsPattern.matcher(line); local 765 final Matcher matcher = sFullscreenPattern.matcher(line); local 777 final Matcher matcher = sBoundsPattern.matcher(line); local 854 Matcher matcher = sDisplayIdPattern.matcher(line); local 872 final Matcher matcher = sDisplayInfoPattern.matcher(line); local 1032 Matcher matcher = sWindowPattern.matcher(line); local 1063 Matcher matcher = sWindowAssociationPattern.matcher(line); local [all...] |
/prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-library/1.3/ |
hamcrest-library-1.3.jar | |
/external/guice/core/src/com/google/inject/internal/ |
MethodAspect.java | 21 import com.google.inject.matcher.Matcher; 30 * Ties a matcher to a method interceptor. 36 private final Matcher<? super Class<?>> classMatcher; 37 private final Matcher<? super Method> methodMatcher; 47 MethodAspect(Matcher<? super Class<?>> classMatcher, 48 Matcher<? super Method> methodMatcher, List<MethodInterceptor> interceptors) { 49 this.classMatcher = checkNotNull(classMatcher, "class matcher"); 50 this.methodMatcher = checkNotNull(methodMatcher, "method matcher"); 54 MethodAspect(Matcher<? super Class<?>> classMatcher [all...] |
/prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-integration/1.3/ |
hamcrest-integration-1.3.jar | |