/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MatcherUtils.java | 26 import org.hamcrest.Matcher; 60 public static <RECEIVER, PROP> Matcher<RECEIVER> propertyMatches( in propertyMatches() 63 Matcher<? extends PROP> propCondition) { in propertyMatches() 84 public static <SUPER, SUB extends SUPER> Matcher<SUPER> instanceOf( 85 Class<SUB> type, Matcher<? super SUB> cond) { 86 return (Matcher<SUPER>) both(CoreMatchers.instanceOf(type)).and((Matcher) cond); 93 public static Matcher<Throwable> hasMessageThat(Matcher<? super String> condition) { 101 public static Matcher<AccessibilityNodeInfo> hasTextThat(Matcher<? super String> condition) { 109 public static Matcher<AccessibilityNodeInfo> hasIdThat(Matcher<? super String> condition) { 117 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) { [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | MatcherUtils.java | 24 import org.hamcrest.Matcher; 58 public static <RECEIVER, PROP> Matcher<RECEIVER> propertyMatches( in propertyMatches() 61 Matcher<? extends PROP> propCondition) { in propertyMatches() 82 public static <SUPER, SUB extends SUPER> Matcher<SUPER> instanceOf( 83 Class<SUB> type, Matcher<? super SUB> cond) { 84 return (Matcher<SUPER>) both(CoreMatchers.instanceOf(type)).and((Matcher) cond); 91 public static Matcher<Throwable> hasMessageThat(Matcher<? super String> condition) { 99 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) { 115 E exception, Matcher<? super E> condition) throws AssertionError {
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | InMatcher.java | 21 import org.hamcrest.Matcher; 62 public static <T> Matcher<T> in(T... operand) { in in() 67 public static <T> Matcher<T> in(Collection<T> operand) { in in()
|
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/ |
D | RunAsHostTest.java | 22 import java.util.regex.Matcher; 38 Matcher appIdMatcher = Pattern.compile("^([0-9]+)$").matcher(runAsResult); in testRunAs()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | GestureUtils.java | 31 import org.hamcrest.Matcher; 40 public static final Matcher<MotionEvent> IS_ACTION_DOWN = 42 public static final Matcher<MotionEvent> IS_ACTION_POINTER_DOWN = 44 public static final Matcher<MotionEvent> IS_ACTION_UP = 46 public static final Matcher<MotionEvent> IS_ACTION_POINTER_UP = 48 public static final Matcher<MotionEvent> IS_ACTION_CANCEL = 50 public static final Matcher<MotionEvent> IS_ACTION_MOVE = 241 public static Matcher<MotionEvent> isAtPoint(final PointF point) { in isAtPoint() 245 public static Matcher<MotionEvent> isAtPoint(final PointF point, final float tol) { in isAtPoint() 265 public static Matcher<MotionEvent> isRawAtPoint(final PointF point) { [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtilsMatchers.java | 20 import org.hamcrest.Matcher; 29 public static Matcher<List<Integer>> inAscendingOrder() { in inAscendingOrder()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 33 import java.util.regex.Matcher; 149 Matcher m = p.matcher(content); in parseTestMethod() 155 Matcher titleM = Pattern.compile("@title (.*)", Pattern.DOTALL) in parseTestMethod() 167 Matcher constraintM = Pattern.compile("@constraint (.*)").matcher( in parseTestMethod() 224 Matcher m = p.matcher(methodSource); in parseTestClassName() 232 Matcher loadMatcher = loadPattern.matcher(methodSource); in parseTestClassName() 241 Matcher loadAndRunMatcher = loadAndRunPattern.matcher(methodSource); in parseTestClassName()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | HostsideMainlineModuleDetector.java | 24 import java.util.regex.Matcher; 51 Matcher matcher = Pattern.compile("Play managed modules are: <(.*?)>").matcher(logcat); in getPlayManagedModules()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | DexApiDocumentParser.java | 25 import java.util.regex.Matcher; 98 Matcher matchField = REGEX_FIELD.matcher(signature); in parseLine() 99 Matcher matchMethod = REGEX_METHOD.matcher(signature); in parseLine()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | Version.java | 25 import java.util.regex.Matcher; 66 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in parse() 80 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in isValidVersion()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | AndroidManifestParser.java | 30 import java.util.regex.Matcher; 94 Matcher matcher; in parseElement() 117 Matcher matcher; in parseElementItem() 146 Matcher matcher; in parseItem() 241 Matcher matcher; in getElementName()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | ProtoDumpTestCase.java | 44 import java.util.regex.Matcher; 183 protected Matcher execCommandAndFind(String command, String pattern, int patternFlags) in execCommandAndFind() 186 final Matcher matcher = Pattern.compile(pattern, patternFlags).matcher(output); in execCommandAndFind() 195 protected Matcher execCommandAndFind(String command, String pattern) throws Exception { in execCommandAndFind() 204 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup()
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | PropertyDeviceInfo.java | 25 import java.util.regex.Matcher; 65 Matcher matcher = pattern.matcher(line); in parseProps()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BaseDumpsysTest.java | 37 import java.util.regex.Matcher; 207 protected Matcher execCommandAndFind(String command, String pattern) throws Exception { in execCommandAndFind() 211 final Matcher matcher = Pattern.compile(pattern).matcher(output); in execCommandAndFind() 221 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | AutoRestoreHostSideTest.java | 32 import java.util.regex.Matcher; 126 Matcher matcher = pattern.matcher(output.trim()); in isAutoRestoreEnabled()
|
D | BackupPreparer.java | 39 import java.util.regex.Matcher; 187 Matcher matcher = pattern.matcher(output.trim()); in enableBackup() 202 Matcher matcher = pattern.matcher(output); in setBackupTransport()
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/ |
D | IntentsResolutionHelper.java | 33 import org.hamcrest.Matcher; 72 private Matcher<ResolveInfo> activity(String packageName, String simpleClassName) { in activity()
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 14 import java.util.regex.Matcher; 136 Matcher m = p.matcher(getFile("/proc/self/attr/current")); in appDomainContext() 149 Matcher m = p.matcher(getFileContext(appDataDir.getAbsolutePath())); in appDataContext()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AspectRatioTestsBase.java | 35 import org.hamcrest.Matcher; 154 static Matcher<Float> greaterThanOrEqualToInexact(float expected) { in greaterThanOrEqualToInexact() 158 static Matcher<Float> lessThanOrEqualToInexact(float expected) { in lessThanOrEqualToInexact()
|
/cts/tests/tests/content/HelloWorldApp/src_res_hardening_lib/com/example/helloworld/lib/ |
D | TestUtils.java | 40 import org.hamcrest.Matcher; 299 Matcher<? super T> checkSuccess, in testReadSuccessAndFailure() 300 Matcher<? super T> checkFailure) throws Exception { in testReadSuccessAndFailure() 311 Matcher<? super T> checkSuccess, in testReadSuccessAndFailureException() 312 Matcher<Throwable> checkFailure) throws Exception { in testReadSuccessAndFailureException()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextViewActions.java | 35 import org.hamcrest.Matcher; 70 public Matcher<View> getConstraints() { in getConstraints()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SPMITest.java | 24 import java.util.regex.Matcher;
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AslrTest.java | 33 import java.util.regex.Matcher; 61 Matcher m = p.matcher(line); in readMappingAddress()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageManagerStatsTestsBase.java | 33 import java.util.regex.Matcher; 83 final Matcher matcher = pattern.matcher(uidLine); in getAppUid()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 50 import java.util.regex.Matcher; 206 Function<Matcher, T> resultParser, in executeAndParseCommand() argument 209 Matcher matcher = regex.matcher(output); in executeAndParseCommand() 220 protected <T> T executeAndParseCommand(Pattern regex, Function<Matcher, T> resultParser, in executeAndParseCommand() argument 389 Matcher matcher = pattern.matcher(line); in removeUsers() 536 private UserInfo(Matcher matcher) {
|