/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 52 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()
|
D | HostsideMainlineModuleDetector.java | 51 Matcher matcher = Pattern.compile("Play managed modules are: <(.*?)>").matcher(logcat); in getPlayManagedModules() local 52 if (matcher.find()) { in getPlayManagedModules() 53 playManagedModules = ImmutableSet.copyOf(matcher.group(1).split(",")); in getPlayManagedModules()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | AndroidManifestParser.java | 94 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/ |
D | ActivityManagerTestBase.java | 191 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/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayTestBase.java | 213 Matcher matcher = PHYSICAL_SIZE.matcher(lines); in ReportedDisplayMetrics() local 214 assertTrue("Physical display size must be reported", matcher.find()); in ReportedDisplayMetrics() 215 log(matcher.group()); in ReportedDisplayMetrics() 217 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics() 219 matcher = PHYSICAL_DENSITY.matcher(lines); in ReportedDisplayMetrics() 220 assertTrue("Physical display density must be reported", matcher.find()); in ReportedDisplayMetrics() 221 log(matcher.group()); in ReportedDisplayMetrics() 222 physicalDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics() 224 matcher = OVERRIDE_SIZE.matcher(lines); in ReportedDisplayMetrics() 225 if (matcher.find()) { in ReportedDisplayMetrics() [all …]
|
D | WindowInsetsPolicyTest.java | 184 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/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | CompatChangesValidConfigTest.java | 76 Matcher matcher = CHANGE_REGEX.matcher(line); in fromString() local 77 if (!matcher.matches()) { in fromString() 82 changeId = Long.parseLong(matcher.group("changeId")); in fromString() 86 changeName = matcher.group("changeName"); in fromString() 87 String targetSdkAsString = matcher.group("targetSdk"); in fromString() 95 if (matcher.group("disabled") != null) { in fromString() 98 if (matcher.group("loggingOnly") != null) { in fromString() 101 if (matcher.group("overrides") != null) { in fromString()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 129 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()
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
D | PackageTest.java | 43 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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PropertyDeviceInfo.java | 53 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/usb/src/com/android/cts/usb/ |
D | TestUsbTest.java | 153 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/libs/vogar-expect/src/vogar/expect/util/ |
D | Strings.java | 107 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/tests/tests/os/src/android/os/cts/ |
D | BuildTest.java | 237 assertTrue(BOARD_PATTERN.matcher(Build.BOARD).matches()); in testBuildConstants() 239 assertTrue(BRAND_PATTERN.matcher(Build.BRAND).matches()); in testBuildConstants() 241 assertTrue(DEVICE_PATTERN.matcher(Build.DEVICE).matches()); in testBuildConstants() 245 assertTrue(HARDWARE_PATTERN.matcher(Build.HARDWARE).matches()); in testBuildConstants() 249 assertTrue(ID_PATTERN.matcher(Build.ID).matches()); in testBuildConstants() 255 assertTrue(PRODUCT_PATTERN.matcher(Build.PRODUCT).matches()); in testBuildConstants() 257 assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches()); in testBuildConstants() 259 assertTrue(SKU_PATTERN.matcher(Build.SKU).matches()); in testBuildConstants() 261 assertTrue(TAGS_PATTERN.matcher(Build.TAGS).matches()); in testBuildConstants() 265 assertTrue(TYPE_PATTERN.matcher(Build.TYPE).matches()); in testBuildConstants()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | PowerManagerTests.java | 77 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/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 132 Matcher matcher = pattern.matcher(output); in setBackupTransport() local 133 if (matcher.find()) { in setBackupTransport() 134 return matcher.group(1); in setBackupTransport() 144 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled() local 145 if (matcher.find()) { in setBackupEnabled() 146 previouslyEnabled = "enabled".equals(matcher.group(1)); in setBackupEnabled() 377 final Matcher matcher = PATTERN_STORAGE_PATH.matcher(path); in getRelativeFile() local 378 if (matcher.find()) { in getRelativeFile() 379 return new File(path.substring(matcher.end())); in getRelativeFile()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BaseDumpsysTest.java | 211 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()
|
D | StoragedDumpsysTest.java | 43 Matcher matcher = pattern.matcher(log); in getCgroupFromLog() local 44 if (matcher.find()) { in getCgroupFromLog() 45 return matcher.group(1); in getCgroupFromLog()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 119 Matcher matcher = pattern.matcher(line); in getClientIds() local 120 if (matcher.find()) { in getClientIds() 121 String name = matcher.group(1); in getClientIds() 122 String value = matcher.group(2); in getClientIds()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 104 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/incident/src/com/android/server/cts/ |
D | ProtoDumpTestCase.java | 186 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()
|
D | PackageIncidentTest.java | 54 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/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 71 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/ |
D | PROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt | 26 matcher: -2987742411590785849 56 matcher: 509484152027467470 57 matcher: -3293304223207806916
|
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 213 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()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | Egl14Utils.java | 51 Matcher matcher = pattern.matcher(version); in getMajorVersion() local 52 if (matcher.find()) { in getMajorVersion() 53 return Integer.parseInt(matcher.group(1)); in getMajorVersion()
|