/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerAmStartOptionsTests.java | 130 Matcher matcher = sNotStartedWarningPattern.matcher(line); in verifyShellOutput() local 131 if (matcher.matches()) { in verifyShellOutput() 135 matcher = sStatusPattern.matcher(line); in verifyShellOutput() 136 if (matcher.matches()) { in verifyShellOutput() 137 status = matcher.group(1); in verifyShellOutput() 140 matcher = sActivityPattern.matcher(line); in verifyShellOutput() 141 if (matcher.matches()) { in verifyShellOutput() 142 reportedActivity = matcher.group(1); in verifyShellOutput()
|
D | ActivityManagerDisplayTestBase.java | 179 Matcher matcher = PHYSICAL_SIZE.matcher(lines); in ReportedDisplayMetrics() local 180 assertTrue("Physical display size must be reported", matcher.find()); in ReportedDisplayMetrics() 181 log(matcher.group()); in ReportedDisplayMetrics() 183 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics() 185 matcher = PHYSICAL_DENSITY.matcher(lines); in ReportedDisplayMetrics() 186 assertTrue("Physical display density must be reported", matcher.find()); in ReportedDisplayMetrics() 187 log(matcher.group()); in ReportedDisplayMetrics() 188 physicalDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics() 190 matcher = OVERRIDE_SIZE.matcher(lines); in ReportedDisplayMetrics() 191 if (matcher.find()) { in ReportedDisplayMetrics() [all …]
|
D | ActivityManagerConfigChangeTests.java | 200 final Matcher matcher = sConfigurationPattern.matcher(line); in readAssetSeqNumber() local 201 if (matcher.matches()) { in readAssetSeqNumber() 202 final String assetSeqNumber = matcher.group(3); in readAssetSeqNumber() 227 final Matcher matcher = sDeviceDensityPattern.matcher(line); in getActivityDensityDpi() local 228 if (matcher.matches()) { in getActivityDensityDpi() 229 return Integer.parseInt(matcher.group(2)); in getActivityDensityDpi() 244 final Matcher matcher = sFontSizePattern.matcher(line); in assertExpectedFontPixelSize() local 245 if (matcher.matches()) { in assertExpectedFontPixelSize() 247 Integer.parseInt(matcher.group(2))); in assertExpectedFontPixelSize()
|
D | VirtualDisplayHelper.java | 129 final Matcher matcher = DISPLAY_DEVICE_PATTERN.matcher(line); in getDisplayState() local 130 if (matcher.matches() && displayNameMatcher.test(matcher)) { in getDisplayState() 131 return "ON".equals(matcher.group(2)); in getDisplayState()
|
D | KeyguardTestBase.java | 63 Matcher matcher = pattern.matcher(line); in assertInLogcat() local 64 if (matcher.matches()) { in assertInLogcat()
|
D | ActivityAndWindowManagerOverrideConfigTests.java | 61 Matcher matcher = CONFIGURATION_CHANGED_PATTERN.matcher(line); in findConfigurationChange() local 62 if (matcher.matches()) { in findConfigurationChange()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | GlUtils.java | 48 Matcher matcher = pattern.matcher(version); in getVersion() local 49 if (matcher.find()) { in getVersion() 51 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in getVersion()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 70 Matcher matcher = pattern.matcher(output); in setBackupTransport() local 71 if (matcher.find()) { in setBackupTransport() 72 return matcher.group(1); in setBackupTransport() 82 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled() local 83 if (matcher.find()) { in setBackupEnabled() 84 previouslyEnabled = "enabled".equals(matcher.group(1)); in setBackupEnabled()
|
/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/tests/framework/base/activitymanager/util/src/android/server/am/ |
D | ActivityManagerTestBase.java | 530 Matcher matcher = sCurrentUiModePattern.matcher(line); in isUiModeLockedToVrHeadset() local 531 if (matcher.find()) { in isUiModeLockedToVrHeadset() 532 curUiMode = Integer.parseInt(matcher.group(1), 16); in isUiModeLockedToVrHeadset() 534 matcher = sUiModeLockedPattern.matcher(line); in isUiModeLockedToVrHeadset() 535 if (matcher.find()) { in isUiModeLockedToVrHeadset() 536 uiModeLocked = matcher.group(1).equals("true"); in isUiModeLockedToVrHeadset() 580 final Matcher matcher = sDisplayStatePattern.matcher(output); in isDisplayOn() local 581 if (matcher.find()) { in isDisplayOn() 582 final String state = matcher.group(1); in isDisplayOn() 773 Matcher matcher = pattern.matcher(displays); [all …]
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ActivityManagerTestBase.java | 193 final Matcher matcher = activityPattern.matcher(line); in getActivityTaskId() local 194 if (matcher.matches()) { in getActivityTaskId() 219 Matcher matcher = sCurrentUiModePattern.matcher(line); in isUiModeLockedToVrHeadset() local 220 if (matcher.find()) { in isUiModeLockedToVrHeadset() 221 curUiMode = Integer.parseInt(matcher.group(1), 16); in isUiModeLockedToVrHeadset() 223 matcher = sUiModeLockedPattern.matcher(line); in isUiModeLockedToVrHeadset() 224 if (matcher.find()) { in isUiModeLockedToVrHeadset() 225 uiModeLocked = matcher.group(1).equals("true"); in isUiModeLockedToVrHeadset() 251 final Matcher matcher = sDisplayStatePattern.matcher(output); in isDisplayOn() local 252 if (matcher.find()) { in isDisplayOn() [all …]
|
/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/hostsidetests/backup/src/android/cts/backup/ |
D | BaseBackupHostSideTest.java | 202 Matcher matcher = pattern.matcher(output.trim()); in isBackupEnabled() local 203 if (matcher.find()) { in isBackupEnabled() 204 isEnabled = "enabled".equals(matcher.group(1)); in isBackupEnabled() 214 Matcher matcher = pattern.matcher(output); in getCurrentTransport() local 215 if (matcher.find()) { in getCurrentTransport() 216 return matcher.group(1); in getCurrentTransport()
|
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/libs/vogar-expect/src/vogar/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/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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 98 Matcher matcher = pattern.matcher(line); in getClientIds() local 99 if (matcher.find()) { in getClientIds() 100 String name = matcher.group(1); in getClientIds() 101 String value = matcher.group(2); in getClientIds()
|
D | TextUtils.java | 42 if (start.matcher(line).matches()) { in extractSection() 54 if (end.matcher(line).matches()) { in extractSection()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BuildTest.java | 196 assertTrue(BOARD_PATTERN.matcher(Build.BOARD).matches()); in testBuildConstants() 198 assertTrue(BRAND_PATTERN.matcher(Build.BRAND).matches()); in testBuildConstants() 200 assertTrue(DEVICE_PATTERN.matcher(Build.DEVICE).matches()); in testBuildConstants() 204 assertTrue(HARDWARE_PATTERN.matcher(Build.HARDWARE).matches()); in testBuildConstants() 208 assertTrue(ID_PATTERN.matcher(Build.ID).matches()); in testBuildConstants() 214 assertTrue(PRODUCT_PATTERN.matcher(Build.PRODUCT).matches()); in testBuildConstants() 216 assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches()); in testBuildConstants() 218 assertTrue(TAGS_PATTERN.matcher(Build.TAGS).matches()); in testBuildConstants() 222 assertTrue(TYPE_PATTERN.matcher(Build.TYPE).matches()); in testBuildConstants()
|
/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/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 70 Matcher matcher = pattern.matcher(resolution); in Resolution() local 71 matcher.find(); in Resolution() 72 this.width = Integer.parseInt(matcher.group(WIDTH_INDEX)); in Resolution() 73 this.height = Integer.parseInt(matcher.group(HEIGHT_INDEX)); in Resolution()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
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()
|
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()
|
/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()
|