Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 81) sorted by relevance

1234

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAmStartOptionsTests.java157 Matcher matcher = sNotStartedWarningPattern.matcher(line); in verifyShellOutput() local
158 if (matcher.matches()) { in verifyShellOutput()
162 matcher = sStatusPattern.matcher(line); in verifyShellOutput()
163 if (matcher.matches()) { in verifyShellOutput()
164 status = matcher.group(1); in verifyShellOutput()
167 matcher = sActivityPattern.matcher(line); in verifyShellOutput()
168 if (matcher.matches()) { in verifyShellOutput()
169 reportedActivity = matcher.group(1); in verifyShellOutput()
DMultiDisplayTestBase.java212 Matcher matcher = PHYSICAL_SIZE.matcher(lines); in ReportedDisplayMetrics() local
213 assertTrue("Physical display size must be reported", matcher.find()); in ReportedDisplayMetrics()
214 log(matcher.group()); in ReportedDisplayMetrics()
216 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics()
218 matcher = PHYSICAL_DENSITY.matcher(lines); in ReportedDisplayMetrics()
219 assertTrue("Physical display density must be reported", matcher.find()); in ReportedDisplayMetrics()
220 log(matcher.group()); in ReportedDisplayMetrics()
221 physicalDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics()
223 matcher = OVERRIDE_SIZE.matcher(lines); in ReportedDisplayMetrics()
224 if (matcher.find()) { in ReportedDisplayMetrics()
[all …]
DWindowInsetsPolicyTest.java184 Matcher<? super Insets> matcher) { in assertForAllInsets() argument
186 actual.getSystemWindowInsets(), matcher); in assertForAllInsets()
188 actual.getStableInsets(), matcher); in assertForAllInsets()
190 actual.getSystemGestureInsets(), matcher); in assertForAllInsets()
192 actual.getMandatorySystemGestureInsets(), matcher); in assertForAllInsets()
194 actual.getTappableElementInsets(), matcher); in assertForAllInsets()
197 private <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) { in assertThat() argument
198 mErrorCollector.checkThat(reason, actual, matcher); in assertThat()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java52 Matcher matcher = null; in assertFind() local
56 matcher = Pattern.compile( in assertFind()
57 pattern, Pattern.DOTALL|Pattern.MULTILINE).matcher(timedInput); in assertFind()
59 matcher = Pattern.compile(pattern).matcher(timedInput); in assertFind()
64 boolean found = matcher.find(); in assertFind()
73 String substring = input.substring(matcher.start(), matcher.end()); in assertFind()
74 String context = getInputContext(input, matcher.start(), matcher.end(), in assertFind()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DAndroidManifestParser.java94 Matcher matcher; in parseElement() local
117 Matcher matcher; in parseElementItem() local
146 Matcher matcher; in parseItem() local
149 matcher = pattern_item.matcher(line); in parseItem()
150 if (matcher.find()) { in parseItem()
152 key = matcher.group(1); in parseItem()
153 value = matcher.group(2).replace("\"", ""); in parseItem()
241 Matcher matcher; in getElementName() local
244 matcher = pattern_element.matcher(line); in getElementName()
245 if (matcher.find()) { in getElementName()
[all …]
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerTestBase.java191 final Matcher matcher = activityPattern.matcher(line); in getActivityTaskId() local
192 if (matcher.matches()) { in getActivityTaskId()
217 Matcher matcher = sCurrentUiModePattern.matcher(line); in isUiModeLockedToVrHeadset() local
218 if (matcher.find()) { in isUiModeLockedToVrHeadset()
219 curUiMode = Integer.parseInt(matcher.group(1), 16); in isUiModeLockedToVrHeadset()
221 matcher = sUiModeLockedPattern.matcher(line); in isUiModeLockedToVrHeadset()
222 if (matcher.find()) { in isUiModeLockedToVrHeadset()
223 uiModeLocked = matcher.group(1).equals("true"); in isUiModeLockedToVrHeadset()
249 final Matcher matcher = sDisplayStatePattern.matcher(output); in isDisplayOn() local
250 if (matcher.find()) { in isDisplayOn()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPropertyDeviceInfo.java53 Matcher matcher = pattern.matcher(line); in collectRoProperties() local
54 if (matcher.matches()) { in collectRoProperties()
55 String name = matcher.group(1); in collectRoProperties()
56 String value = matcher.group(2); in collectRoProperties()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DPackageTest.java43 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage()
44 assertFalse("Chimp found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage()
57 assertFalse("Monkey found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage()
58 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage()
73 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testMultiplePackages()
74 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testMultiplePackages()
/cts/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java129 Matcher matcher = pattern.matcher(output.trim()); in enableBackup() local
130 if (matcher.find()) { in enableBackup()
131 previouslyEnabled = "enabled".equals(matcher.group(1)); in enableBackup()
144 Matcher matcher = pattern.matcher(output); in setBackupTransport() local
145 if (matcher.find()) { in setBackupTransport()
146 return matcher.group(1); in setBackupTransport()
DBaseBackupHostSideTest.java141 Matcher matcher = pattern.matcher(output); in getCurrentTransport() local
142 if (matcher.find()) { in getCurrentTransport()
143 return matcher.group(1); in getCurrentTransport()
/cts/hostsidetests/os/src/android/os/cts/
DPowerManagerTests.java77 assertTrue(CACHED_PATTERN.matcher(processes).find()); in testCachedProcessReleasesWakeLock()
81 WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
82 assertTrue("Wake lock not acquired", WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
90 WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
91 assertTrue("Wake lock not disabled", WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
/cts/libs/vogar-expect/src/vogar/util/
DStrings.java107 Matcher matcher = XML_INVALID_CHARS.matcher(text); in xmlSanitize() local
108 while (matcher.find()) { in xmlSanitize()
109 matcher.appendReplacement(result, ""); in xmlSanitize()
110 result.append(escapeCodePoint(matcher.group())); in xmlSanitize()
112 matcher.appendTail(result); in xmlSanitize()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java153 Matcher matcher = pattern.matcher(lsusbOutput); in testUsbSerialReadOnDeviceMatches() local
155 while (matcher.find()) { in testUsbSerialReadOnDeviceMatches()
156 String currentSerial = matcher.group(1).toLowerCase(); in testUsbSerialReadOnDeviceMatches()
171 matcher = pattern.matcher(logs); in testUsbSerialReadOnDeviceMatches()
173 while (matcher.find()) { in testUsbSerialReadOnDeviceMatches()
174 String currentSerial = matcher.group(1).toLowerCase(); in testUsbSerialReadOnDeviceMatches()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java105 Matcher matcher = pattern.matcher(line); in getClientIds() local
106 if (matcher.find()) { in getClientIds()
107 String name = matcher.group(1); in getClientIds()
108 String value = matcher.group(2); in getClientIds()
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java125 Matcher matcher = pattern.matcher(output); in setBackupTransport() local
126 if (matcher.find()) { in setBackupTransport()
127 return matcher.group(1); in setBackupTransport()
137 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled() local
138 if (matcher.find()) { in setBackupEnabled()
139 previouslyEnabled = "enabled".equals(matcher.group(1)); in setBackupEnabled()
348 final Matcher matcher = PATTERN_STORAGE_PATH.matcher(path); in getRelativeFile() local
349 if (matcher.find()) { in getRelativeFile()
350 return new File(path.substring(matcher.end())); in getRelativeFile()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPropertyUtil.java104 Matcher matcher = pattern.matcher(line); in getClientIds() local
105 if (matcher.find()) { in getClientIds()
106 String name = matcher.group(1); in getClientIds()
107 String value = matcher.group(2); in getClientIds()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java211 final Matcher matcher = Pattern.compile(pattern).matcher(output); in execCommandAndFind() local
212 assertTrue("Pattern '" + pattern + "' didn't match. Output=\n" + output, matcher.find()); in execCommandAndFind()
213 return matcher; in execCommandAndFind()
221 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup() local
222 assertTrue("No group found for pattern '" + pattern + "'", matcher.groupCount() > 0); in execCommandAndGetFirstGroup()
223 return matcher.group(1); in execCommandAndGetFirstGroup()
DStoragedDumpsysTest.java43 Matcher matcher = pattern.matcher(log); in getCgroupFromLog() local
44 if (matcher.find()) { in getCgroupFromLog()
45 return matcher.group(1); in getCgroupFromLog()
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java235 assertTrue(BOARD_PATTERN.matcher(Build.BOARD).matches()); in testBuildConstants()
237 assertTrue(BRAND_PATTERN.matcher(Build.BRAND).matches()); in testBuildConstants()
239 assertTrue(DEVICE_PATTERN.matcher(Build.DEVICE).matches()); in testBuildConstants()
243 assertTrue(HARDWARE_PATTERN.matcher(Build.HARDWARE).matches()); in testBuildConstants()
247 assertTrue(ID_PATTERN.matcher(Build.ID).matches()); in testBuildConstants()
253 assertTrue(PRODUCT_PATTERN.matcher(Build.PRODUCT).matches()); in testBuildConstants()
255 assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches()); in testBuildConstants()
257 assertTrue(TAGS_PATTERN.matcher(Build.TAGS).matches()); in testBuildConstants()
261 assertTrue(TYPE_PATTERN.matcher(Build.TYPE).matches()); in testBuildConstants()
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/
DMediaPreparerAppTest.java71 Matcher matcher = pattern.matcher(resolution); in Resolution() local
72 matcher.find(); in Resolution()
73 this.width = Integer.parseInt(matcher.group(WIDTH_INDEX)); in Resolution()
74 this.height = Integer.parseInt(matcher.group(HEIGHT_INDEX)); in Resolution()
/cts/hostsidetests/statsd/
DPROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt26 matcher: -2987742411590785849
56 matcher: 509484152027467470
57 matcher: -3293304223207806916
/cts/hostsidetests/incident/src/com/android/server/cts/
DProtoDumpTestCase.java186 final Matcher matcher = Pattern.compile(pattern, patternFlags).matcher(output); in execCommandAndFind() local
187 assertTrue("Pattern '" + pattern + "' didn't match. Output=\n" + output, matcher.find()); in execCommandAndFind()
188 return matcher; in execCommandAndFind()
204 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup() local
205 assertTrue("No group found for pattern '" + pattern + "'", matcher.groupCount() > 0); in execCommandAndGetFirstGroup()
206 return matcher.group(1); in execCommandAndGetFirstGroup()
DPackageIncidentTest.java54 final Matcher matcher = in testPackageServiceDump() local
59 final int uid = Integer.parseInt(matcher.group(1)); in testPackageServiceDump()
60 final int versionCode = Integer.parseInt(matcher.group(2)); in testPackageServiceDump()
61 final String versionString = matcher.group(3).trim(); in testPackageServiceDump()
/cts/tests/tests/opengl/src/android/opengl/cts/
DEgl14Utils.java51 Matcher matcher = pattern.matcher(version); in getMajorVersion() local
52 if (matcher.find()) { in getMajorVersion()
53 return Integer.parseInt(matcher.group(1)); in getMajorVersion()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java213 Matcher matcher = getMatcher(expectedRegex, actual); in assertContainsRegex() local
214 if (!matcher.find()) { in assertContainsRegex()
217 return matcher; in assertContainsRegex()
228 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotMatchesRegex() local
229 if (matcher.matches()) { in assertNotMatchesRegex()
236 return pattern.matcher(actual); in getMatcher()

1234