Home
last modified time | relevance | path

Searched refs:Matcher (Results 1 – 25 of 141) sorted by relevance

123456

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMatcherUtils.java26 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/
DMatcherUtils.java24 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/libs/input/src/com/android/cts/input/
DInputEventMatchers.kt26 import org.hamcrest.Matcher
31 fun withCoords(pt: PointF): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withCoords()
42 fun withPointerCount(count: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withPointerCount()
52 fun withCoords(pt: Point): Matcher<MotionEvent> = withCoords(PointF(pt)) in withCoords()
54 fun withCoordsForPointerIndex(index: Int, pt: PointF): Matcher<MotionEvent> = in withCoords()
66 fun withRawCoords(pt: PointF): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withRawCoords()
81 fun withMotionAction(action: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withMotionAction()
96 fun withMotionAction(action: Int, index: Int): Matcher<MotionEvent> = in withMotionAction()
114 fun withRawCoords(pt: Point): Matcher<MotionEvent> { in withRawCoords()
118 fun withSource(source: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withSource()
[all …]
DEventVerifier.kt22 import org.hamcrest.Matcher
27 fun assertReceivedMotion(matcher: Matcher<MotionEvent>) { in assertReceivedMotion()
39 fun assertReceivedKey(matcher: Matcher<KeyEvent>) { in assertReceivedKey()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DInMatcher.java21 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/
DRunAsHostTest.java22 import java.util.regex.Matcher;
38 Matcher appIdMatcher = Pattern.compile("^([0-9]+)$").matcher(runAsResult); in testRunAs()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMixingRuleTest.java51 import org.hamcrest.Matcher;
313 private static Matcher isAudioMixUidCriterion(int uid, boolean exclude) { in isAudioMixUidCriterion()
331 private static Matcher isAudioMixMatchUidCriterion(int uid) {
335 private static Matcher isAudioMixCapturePresetCriterion(int audioSource, boolean exclude) {
357 private static Matcher isAudioMixMatchCapturePresetCriterion(int audioSource) {
361 private static Matcher isAudioMixUsageCriterion(int usage, boolean exclude) {
382 private static Matcher isAudioMixMatchUsageCriterion(int usage) {
386 private static Matcher isAudioMixSessionCriterion(int sessionId, boolean exclude) {
405 private static Matcher isAudioMixSessionCriterion(int sessionId) {
409 private static Matcher isAudioMixExcludeSessionCriterion(int sessionId) {
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtilsMatchers.java20 import org.hamcrest.Matcher;
29 public static Matcher<List<Integer>> inAscendingOrder() { in inAscendingOrder()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java33 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/tests/framework/base/windowmanager/util/src/android/server/wm/
DIgnoreOrientationRequestSession.java26 import java.util.regex.Matcher;
44 Matcher matcher = IGNORE_ORIENTATION_REQUEST_PATTERN.matcher( in IgnoreOrientationRequestSession()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordMetricsTestUtils.java25 import java.util.regex.Matcher;
45 final Matcher matcher = pattern.matcher(uidLine); in getTestAppUid()
/cts/tests/signature/lib/common/src/android/signature/cts/
DDexApiDocumentParser.java26 import java.util.regex.Matcher;
110 Matcher matchField = REGEX_FIELD.matcher(signature); in parseLine()
116 Matcher matchMethod = REGEX_METHOD.matcher(signature); in parseLine()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DVoiceInteractionHelperTest.java32 import java.util.regex.Matcher;
67 Matcher matchDisabled = Pattern.compile("mTemporarilyDisabled: *(true|false)") in isVoiceInteractionDisabledFromDump()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DVersion.java25 import java.util.regex.Matcher;
68 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in parse()
82 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in isValidVersion()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-23704/src/android/security/cts/CVE_2024_23704/
DDeviceTest.java40 import java.util.regex.Matcher;
104 final Matcher resumedMatcher = resumedPattern.matcher(dumpsysOutput); in checkActivityLaunched()
105 final Matcher visibleMatcher = visiblePattern.matcher(dumpsysOutput); in checkActivityLaunched()
/cts/tests/tests/security/src/android/security/cts/BUG_293602970/
DBUG_293602970.java44 import java.util.regex.Matcher;
110 final Matcher resumedMatcher = resumedPattern.matcher(dumpsysOutput); in checkActivityLaunched()
111 final Matcher visibleMatcher = visiblePattern.matcher(dumpsysOutput); in checkActivityLaunched()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DAndroidManifestParser.java30 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/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java36 import org.hamcrest.Matcher;
49 public static final Matcher<MotionEvent> IS_ACTION_DOWN =
51 public static final Matcher<MotionEvent> IS_ACTION_POINTER_DOWN =
53 public static final Matcher<MotionEvent> IS_ACTION_UP =
55 public static final Matcher<MotionEvent> IS_ACTION_POINTER_UP =
57 public static final Matcher<MotionEvent> IS_ACTION_CANCEL =
59 public static final Matcher<MotionEvent> IS_ACTION_MOVE =
310 public static Matcher<MotionEvent> isAtPoint(final PointF point) { in isAtPoint()
314 public static Matcher<MotionEvent> isAtPoint(final PointF point, final float tol) { in isAtPoint()
333 public static Matcher<MotionEvent> isRawAtPoint(final PointF point) {
[all …]
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/user/
DInitializedUsersCommand.java27 import java.util.regex.Matcher;
63 Matcher matcher = USER_PATTERN.matcher(userInfoList[i]); in parseCommandReturn()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DPackageManagerStatsTestsBase.java32 import java.util.regex.Matcher;
87 final Matcher matcher = pattern.matcher(uidLine); in getAppUid()
104 final Matcher matcher = pattern.matcher(uidLine); in isLibraryInstalled()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/
DDeviceTest.java44 import java.util.regex.Matcher;
90 Matcher matcher = pattern.matcher(runShellCommand(contentQueryForImage)); in withAScreenShotImage()
105 Matcher idmatcher = pattern.matcher(runShellCommand(contentQueryForImage)); in withAScreenShotImage()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DTimeDetectorShellHelper.java19 import java.util.regex.Matcher;
79 Matcher matcher = pattern.matcher(value); in parseTestUnixEpochTimeFromToString()
144 Matcher matcher = pattern.matcher(value); in parseFromNetworkTimeSuggestionToString()
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java32 import java.util.regex.Matcher;
82 Matcher matcher = pattern.matcher(output); in setBackupTransport()
94 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled()
/cts/hostsidetests/car/src/android/car/cts/
DOptionalFeatureHostTest.java41 import java.util.regex.Matcher;
246 Matcher listMatcher = listPattern.matcher(output); in findFeatureListFromCarServiceDump()
247 Matcher setMatcher = setPattern.matcher(output); in findFeatureListFromCarServiceDump()
248 Matcher matcher; in findFeatureListFromCarServiceDump()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java37 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()

123456