/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/ |
D | Version.java | 68 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in parse() local 69 if (!matcher.matches()) { in parse() 73 int major = Integer.parseInt(matcher.group(1)); in parse() 74 int minor = Integer.parseInt(matcher.group(2)); in parse() 75 int patch = Integer.parseInt(matcher.group(3)); in parse() 76 String description = matcher.group(4) != null ? matcher.group(4) : ""; in parse() 82 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in isValidVersion() local 83 return matcher.matches(); in isValidVersion()
|
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/ |
D | Change.java | 75 Matcher matcher = CHANGE_REGEX.matcher(line); in fromString() local 76 if (!matcher.matches()) { in fromString() 81 changeId = Long.parseLong(matcher.group("changeId")); in fromString() 85 changeName = matcher.group("changeName"); in fromString() 86 String sinceSdkAsString = matcher.group("sinceSdk"); in fromString() 94 if (matcher.group("disabled") != null) { in fromString() 97 if (matcher.group("loggingOnly") != null) { in fromString() 100 if (matcher.group("overrides") != null) { in fromString() 102 overridesStr = matcher.group("overrides"); in fromString() 104 if (matcher.group("rawOverrides") != null) { in fromString() [all …]
|
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/ |
D | TimeDetectorShellHelper.java | 79 Matcher matcher = pattern.matcher(value); in parseTestUnixEpochTimeFromToString() local 80 if (!matcher.matches()) { in parseTestUnixEpochTimeFromToString() 83 long elapsedRealtimeMillis = Long.parseLong(matcher.group(1)); in parseTestUnixEpochTimeFromToString() 84 long unixEpochTimeMillis = Long.parseLong(matcher.group(2)); in parseTestUnixEpochTimeFromToString() 144 Matcher matcher = pattern.matcher(value); in parseFromNetworkTimeSuggestionToString() local 145 if (!matcher.matches()) { in parseFromNetworkTimeSuggestionToString() 148 String unixEpochTimeValue = matcher.group(1); in parseFromNetworkTimeSuggestionToString() 149 Integer uncertaintyMillis = Integer.parseInt(matcher.group(2)); in parseFromNetworkTimeSuggestionToString()
|
/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/hostsidetests/security/src/android/security/cts/ |
D | SELinuxNeverallowRule.java | 121 Matcher matcher = uncommentConditions.matcher(policy); in parsePolicy() local 122 policy = matcher.replaceAll("$1"); in parsePolicy() 126 matcher = comments.matcher(policy); in parsePolicy() 127 policy = matcher.replaceAll(""); in parsePolicy() 137 matcher = neverAllowPattern.matcher(policy); in parsePolicy() 138 while (matcher.find()) { in parsePolicy() 139 String rule = matcher.group(1).replace("\n", " "); in parsePolicy()
|
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/user/ |
D | InitializedUsersCommand.java | 63 Matcher matcher = USER_PATTERN.matcher(userInfoList[i]); in parseCommandReturn() local 64 if (!matcher.find()) { in parseCommandReturn() 67 int userId = Integer.parseInt(matcher.group(USER_PATTERN_GROUP_ID)); in parseCommandReturn() 69 String type = matcher.group(USER_PATTERN_GROUP_TYPE); in parseCommandReturn()
|
/cts/libs/input/src/com/android/cts/input/ |
D | EventVerifier.kt | 27 fun assertReceivedMotion(matcher: Matcher<MotionEvent>) { in assertReceivedMotion() 29 assertThat("Additional MotionEvent checks", event, matcher) in assertReceivedMotion() 39 fun assertReceivedKey(matcher: Matcher<KeyEvent>) { in assertReceivedKey() 41 assertThat("Additional KeyEvent checks", event, matcher) in assertReceivedKey()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 82 Matcher matcher = pattern.matcher(output); in setBackupTransport() local 83 if (matcher.find()) { in setBackupTransport() 84 return matcher.group(1); in setBackupTransport() 94 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled() local 95 if (matcher.find()) { in setBackupEnabled() 96 previouslyEnabled = "enabled".equals(matcher.group(1)); in setBackupEnabled()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PropertyUtil.java | 198 Matcher matcher = pattern.matcher(line); in getClientIds() local 199 if (matcher.find()) { in getClientIds() 200 String name = matcher.group(1); in getClientIds() 201 String value = matcher.group(2); in getClientIds() 289 Matcher matcher = pattern.matcher(line); in getPropertiesWithPrefix() local 290 if (matcher.find()) { in getPropertiesWithPrefix() 291 String prop = matcher.group(1); in getPropertiesWithPrefix() 292 String value = matcher.group(2); in getPropertiesWithPrefix()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | IgnoreOrientationRequestSession.java | 44 Matcher matcher = IGNORE_ORIENTATION_REQUEST_PATTERN.matcher( in IgnoreOrientationRequestSession() local 47 matcher.find()); in IgnoreOrientationRequestSession() 48 mInitialIgnoreOrientationRequest = Boolean.parseBoolean(matcher.group(1)); in IgnoreOrientationRequestSession()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/ |
D | HotwordMetricsTestUtils.java | 45 final Matcher matcher = pattern.matcher(uidLine); in getTestAppUid() local 46 assertWithMessage("Pkg not found: " + TEST_PKG).that(matcher.find()).isTrue(); in getTestAppUid() 47 return Integer.parseInt(matcher.group(1)); in getTestAppUid()
|
/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/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageManagerStatsTestsBase.java | 87 final Matcher matcher = pattern.matcher(uidLine); in getAppUid() local 88 if (matcher.find()) { in getAppUid() 89 return Integer.parseInt(matcher.group(1)); in getAppUid() 104 final Matcher matcher = pattern.matcher(uidLine); in isLibraryInstalled() local 105 return matcher.find(); in isLibraryInstalled()
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | PropertyDeviceInfo.java | 65 Matcher matcher = pattern.matcher(line); in parseProps() local 66 if (matcher.matches()) { in parseProps() 67 String name = matcher.group(1); in parseProps() 68 String value = matcher.group(2); in parseProps()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BuildTest.java | 228 assertTrue(BOARD_PATTERN.matcher(Build.BOARD).matches()); in testBuildConstants() 230 assertTrue(BRAND_PATTERN.matcher(Build.BRAND).matches()); in testBuildConstants() 232 assertTrue(DEVICE_PATTERN.matcher(Build.DEVICE).matches()); in testBuildConstants() 236 assertTrue(HARDWARE_PATTERN.matcher(Build.HARDWARE).matches()); in testBuildConstants() 240 assertTrue(ID_PATTERN.matcher(Build.ID).matches()); in testBuildConstants() 247 assertTrue(SOC_MANUFACTURER_PATTERN.matcher(Build.SOC_MANUFACTURER).matches()); in testBuildConstants() 253 assertTrue(SOC_MODEL_PATTERN.matcher(Build.SOC_MODEL).matches()); in testBuildConstants() 258 assertTrue(PRODUCT_PATTERN.matcher(Build.PRODUCT).matches()); in testBuildConstants() 260 assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches()); in testBuildConstants() 262 assertTrue(SKU_PATTERN.matcher(Build.SKU).matches()); in testBuildConstants() [all …]
|
/cts/hostsidetests/car/util/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 248 Matcher matcher = regex.matcher(output); in executeAndParseCommand() local 249 if (!matcher.find()) { in executeAndParseCommand() 253 return resultParser.apply(matcher); in executeAndParseCommand() 262 return resultParser.apply(regex.matcher(output)); in executeAndParseCommand() 270 ArrayList<UserInfo> allUsers = executeAndParseCommand(USER_PATTERN, (matcher) -> { in onAllUsers() 272 while (matcher.find()) { in onAllUsers() 273 users.add(new UserInfo(matcher)); in onAllUsers() 354 matcher -> Integer.parseInt(matcher.group(1)), in createUser() 518 Matcher matcher = pattern.matcher(line); in removeUsers() local 519 if (!matcher.find()) continue; in removeUsers() [all …]
|
/cts/tests/framework/base/grammaticalinflection/src/android/grammaticalinflection/cts/ |
D | GrammaticalInflectionManagerTest.java | 90 Matcher matcher = pattern.matcher(mOriginalGrammaticalGender); in tearDown() local 91 if (matcher.find()) { in tearDown() 92 mOriginalGrammaticalGender = matcher.group(1); in tearDown() 155 Matcher matcher = pattern.matcher(value); in testGetSystemGrammaticalGender_setMasculineForSysApp_returnMasculineToSysApp() local 156 if (matcher.find()) { in testGetSystemGrammaticalGender_setMasculineForSysApp_returnMasculineToSysApp() 157 value = matcher.group(1); in testGetSystemGrammaticalGender_setMasculineForSysApp_returnMasculineToSysApp()
|
/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/hostsidetests/os/src/android/os/cts/ |
D | PowerManagerTests.java | 78 assertTrue(CACHED_PATTERN.matcher(processes).find()); in testCachedProcessReleasesWakeLock() 82 WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 83 assertTrue("Wake lock not acquired", WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 91 WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 92 assertTrue("Wake lock not disabled", WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
|
/cts/hostsidetests/usb/src/com/android/cts/usb/ |
D | TestUsbTest.java | 160 Matcher matcher = pattern.matcher(lsusbOutput); in testUsbSerialReadOnDeviceMatches() local 162 while (matcher.find()) { in testUsbSerialReadOnDeviceMatches() 163 String currentSerial = matcher.group(1).toLowerCase(); in testUsbSerialReadOnDeviceMatches() 179 matcher = pattern.matcher(logs); in testUsbSerialReadOnDeviceMatches() 181 while (matcher.find()) { in testUsbSerialReadOnDeviceMatches() 182 String currentSerial = matcher.group(1).toLowerCase(); in testUsbSerialReadOnDeviceMatches()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 187 Matcher matcher = pattern.matcher(commandOutput); in waitForUserRemove() local 188 while(matcher.find()) { in waitForUserRemove() 189 if (Integer.parseInt(matcher.group(2)) == userId in waitForUserRemove() 190 && matcher.group(6).contains("removing")) { in waitForUserRemove() 219 Matcher matcher = PACKAGE_NAME_PATTERN.matcher(line); in errorLogsToPackageNames() local 220 if (matcher.find()) { in errorLogsToPackageNames() 221 result.add(matcher.group(1)); in errorLogsToPackageNames()
|
/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/ |
D | GpuWorkDumpsysTest.java | 130 Matcher matcher = uidInfoPattern.matcher(lines[i]); in testOutputFormat() 131 if (!matcher.lookingAt()) { in testOutputFormat() 134 if (appUid == Long.parseLong(matcher.group(1)) in testOutputFormat() 135 && Long.parseLong(matcher.group(2)) > 0 in testOutputFormat() 136 && Long.parseLong(matcher.group(3)) > 0) { in testOutputFormat()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/telephony/ |
D | TelephonyStatsTests.java | 317 Matcher matcher = classNamePattern.matcher(responseLines.poll()); in getTelephonyDumpEntries() local 318 if (matcher.matches()) { in getTelephonyDumpEntries() 319 final int classIndentLevel = matcher.group(1).length(); in getTelephonyDumpEntries() 323 matcher = indentPattern.matcher(responseLines.peek()); in getTelephonyDumpEntries() 324 if (responseLines.peek().length() == 0 || !matcher.matches()) { in getTelephonyDumpEntries() 329 final int indentLevel = matcher.group(1).length(); in getTelephonyDumpEntries() 334 matcher = keyValuePattern.matcher(responseLines.poll()); in getTelephonyDumpEntries() 335 if (indentLevel == classIndentLevel + 1 && matcher.matches()) { in getTelephonyDumpEntries() 336 instanceEntries.put(matcher.group(2), matcher.group(3)); in getTelephonyDumpEntries()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 188 Matcher matcher = pattern.matcher(output.trim()); in enableBackup() local 189 if (matcher.find()) { in enableBackup() 190 previouslyEnabled = "enabled".equals(matcher.group(1)); in enableBackup() 203 Matcher matcher = pattern.matcher(output); in setBackupTransport() local 204 if (matcher.find()) { in setBackupTransport() 205 return matcher.group(1); in setBackupTransport()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | BiometricsDeviceInfo.java | 174 Matcher matcher = pattern.matcher(output); in getSensorInfo() local 176 while (matcher.find()) { in getSensorInfo() 178 final int sensorId = Integer.parseInt(matcher.group("ID")); in getSensorInfo() 179 final int modality = toModality(Integer.parseInt(matcher.group("modality"))); in getSensorInfo() 181 matcher.group("strength"))); in getSensorInfo() 183 matcher.group("curStrength"))); in getSensorInfo()
|