/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 138 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine() 154 m = ABORTED.matcher(line); in parseLine() 164 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine() 174 m = TRACES_STOP.matcher(line); in parseLine() 188 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine() 196 m = THROTTLE.matcher(line); in parseLine() 200 m = SEED_AND_TARGET_COUNT.matcher(line); in parseLine() 205 m = SECURITY_EXCEPTIONS.matcher(line); in parseLine() 209 m = PACKAGES.matcher(line); in parseLine() 213 m = CATEGORIES.matcher(line); in parseLine() [all …]
|
D | TimingsLogParser.java | 155 Matcher matcher = durationPattern.mStartTimePattern.matcher(line); in parseGenericTimingItem() local 156 if (matcher.find()) { in parseGenericTimingItem() 161 matcher = durationPattern.mEndTimePattern.matcher(line); in parseGenericTimingItem() 162 if (matcher.find()) { in parseGenericTimingItem() 228 Matcher matcher = SYSTEM_SERVICES_DURATION.matcher(line); in parseSystemServicesTimingItem() local 229 boolean durationMatched = matcher.matches(); in parseSystemServicesTimingItem() 231 matcher = SYSTEM_SERVICES_START_TIME.matcher(line); in parseSystemServicesTimingItem() 233 if (!matcher.matches()) { in parseSystemServicesTimingItem() 237 item.setComponent(matcher.group("componentname").trim()); in parseSystemServicesTimingItem() 238 item.setSubcomponent(matcher.group("subname").trim()); in parseSystemServicesTimingItem() [all …]
|
D | SmartMonkeyLogParser.java | 118 Matcher m = THROTTLE.matcher(line); in parseLine() 122 m = TARGET_INVOCATIONS.matcher(line); in parseLine() 126 m = APPS_PACKAGES.matcher(line); in parseLine() 141 m = INTERMEDIATE_COUNT.matcher(line); in parseLine() 145 m = START_TIME.matcher(line); in parseLine() 149 m = START_UPTIME.matcher(line); in parseLine() 153 m = STOP_UPTIME.matcher(line); in parseLine() 159 m = INTERMEDIATE_TIME.matcher(line); in parseLine() 163 m = FINAL_COUNT.matcher(line); in parseLine() 167 m = FINISHED.matcher(line); in parseLine() [all …]
|
D | AnrParser.java | 69 Matcher m = START.matcher(line); in parse() 77 m = PID.matcher(line); in parse() 81 m = REASON.matcher(line); in parse() 86 m = LOAD.matcher(line); in parse() 93 m = TOTAL.matcher(line); in parse() 98 m = USER.matcher(line); in parse() 102 m = KERNEL.matcher(line); in parse() 106 m = IOWAIT.matcher(line); in parse()
|
D | GfxInfoParser.java | 74 Matcher m = PID_PREFIX.matcher(line); in parse() 87 m = TOTAL_FRAMES_PREFIX.matcher(line); in parse() 92 m = JANKY_FRAMES_PREFIX.matcher(line); in parse() 97 m = PERCENTILE_90_PREFIX.matcher(line); in parse() 102 m = PERCENTILE_95_PREFIX.matcher(line); in parse() 107 m = PERCENTILE_99_PREFIX.matcher(line); in parse()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | BufferReader.kt | 75 var matcher: Matcher? = null variable in trebuchet.util.MatchResult 79 reader.index = startIndex + matcher!!.start(group) in int() 84 return if (matcher!!.start(group) == -1) default else int(group) in intOr() 88 reader.index = startIndex + matcher!!.start(group) in double() 93 reader.index = startIndex + matcher!!.start(group) in long() 98 reader.index = startIndex + matcher!!.start(group) in string() 99 val endAt = startIndex + matcher!!.end(group) in string() 104 reader.index = startIndex + matcher!!.start(group) in slice() 105 val endAt = startIndex + matcher!!.end(group) in slice() 110 reader.index = startIndex + matcher!!.start(group) in reader() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 827 Matcher crashMatcher = crashPattern.matcher(systemStatusOutput); in getErrorDialogCount() 831 Matcher anrMatcher = anrPattern.matcher(systemStatusOutput); in getErrorDialogCount() 907 Matcher m = INPUT_DISPATCH_STATE_REGEX.matcher(output); in isDeviceInputReady() 1024 Matcher matcher = in parseApexesFromOutput() local 1026 ? APEXES_WITH_PATH_REGEX.matcher(output) in parseApexesFromOutput() 1027 : APEXES_WITHOUT_PATH_REGEX.matcher(output); in parseApexesFromOutput() 1028 while (matcher.find()) { in parseApexesFromOutput() 1030 String sourceDir = matcher.group(1); in parseApexesFromOutput() 1031 String name = matcher.group(2); in parseApexesFromOutput() 1032 long version = Long.valueOf(matcher.group(3)); in parseApexesFromOutput() [all …]
|
D | DumpsysPackageReceiver.java | 69 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 70 if (matcher.find()) { in parse() 71 String name = matcher.group(1); in parse() 104 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 105 if (matcher.find()) { in parse() 106 String name = matcher.group(1); in parse() 147 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 148 if (matcher.find()) { in parse() 149 String name = matcher.group(1); in parse() 181 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local [all …]
|
D | WifiHelper.java | 102 Matcher matcher = PACKAGE_VERSION_PAT.matcher(inst); in ensureDeviceSetup() local 103 if (matcher.find()) { in ensureDeviceSetup() 105 if (PACKAGE_VERSION_CODE <= Integer.parseInt(matcher.group(1))) { in ensureDeviceSetup() 109 CLog.w("failed to parse WifiUtil version code: %s", matcher.group(1)); in ensureDeviceSetup() 634 Matcher resultMatcher = RESULT_PAT.matcher(line); in processNewLines() 640 Matcher errorMatcher = ERROR_PAT.matcher(line); in processNewLines()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 72 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 73 assertFalse(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 75 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 77 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 79 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 81 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 83 assertFalse(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 84 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 86 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() 88 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() [all …]
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | KeyguardControllerState.java | 46 final Matcher matcher = NAME_PATTERN.matcher(line); in create() local 47 if (!matcher.matches()) { in create() 60 Matcher matcher = SHOWING_PATTERN.matcher(line); in extract() local 61 if (matcher.matches()) { in extract() 63 final String showingString = matcher.group(1); in extract() 69 matcher = OCCLUDED_PATTERN.matcher(line); in extract() 70 if (matcher.matches()) { in extract() 72 final String occludedString = matcher.group(1); in extract()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SimplePerfStatResultParser.java | 68 Matcher matcher; in parseSingleLine() local 69 matcher = TOTAL_TIME_SENTENCE_PATTERN.matcher(line); in parseSingleLine() 70 if (matcher.matches()) { in parseSingleLine() 71 result.add(matcher.group(1)); in parseSingleLine() 76 matcher = TOTAL_METRIC_SENTENCE_PATTERN.matcher(line); in parseSingleLine() 77 if (matcher.matches()) { in parseSingleLine() 78 result.add(matcher.group(1)); in parseSingleLine() 79 result.add(matcher.group(3)); in parseSingleLine() 80 result.add(matcher.group(4)); in parseSingleLine()
|
D | ConditionPriorityBlockingQueue.java | 134 public T poll(IMatcher<T> matcher) { in poll() argument 142 if (matcher.matches(obj) && compareObjects(obj, minObject) < 0) { in poll() 180 public T poll(long timeout, TimeUnit unit, IMatcher<T> matcher) throws InterruptedException { in poll() argument 182 return blockingPoll(nanos, matcher); in poll() 198 private T blockingPoll(Long nanos, IMatcher<T> matcher) throws InterruptedException { in blockingPoll() argument 203 ConditionMatcherPair<T> myMatcherPair = new ConditionMatcherPair<T>(matcher, in blockingPoll() 207 while ((matchedObj = poll(matcher)) == null && (nanos == null || nanos > 0)) { in blockingPoll() 272 public T take(IMatcher<T> matcher) throws InterruptedException { in take() argument 273 return blockingPoll(null, matcher); in take() 389 public T addUnique(IMatcher<T> matcher, T object) { in addUnique() argument [all …]
|
D | AaptParser.java | 73 Matcher m = PKG_PATTERN.matcher(aaptOut); in parse() 79 m = LABEL_PATTERN.matcher(aaptOut); in parse() 83 m = SDK_PATTERN.matcher(aaptOut); in parse() 87 m = TARGET_SDK_PATTERN.matcher(aaptOut); in parse() 91 m = NATIVE_CODE_PATTERN.matcher(aaptOut); in parse() 99 m = ALT_NATIVE_CODE_PATTERN.matcher(aaptOut); in parse() 107 m = USES_PERMISSION_MANAGE_EXTERNAL_STORAGE_PATTERN.matcher(aaptOut); in parse() 117 Matcher m = REQUEST_LEGACY_STORAGE_PATTERN.matcher(aaptOut); in parseXmlTree()
|
D | RegexTrie.java | 101 public Matcher matcher(String string) { in matcher() method in RegexTrie.CompPattern 102 return mPattern.matcher(string); in matcher() 215 Matcher matcher = pattern.matcher(curKey); in recursiveRetrieve() local 216 if (matcher.matches()) { in recursiveRetrieve() 218 List<String> curCaptures = new ArrayList<String>(matcher.groupCount()); in recursiveRetrieve() 219 for (int i = 0; i < matcher.groupCount(); i++) { in recursiveRetrieve() 221 curCaptures.add(matcher.group(i+1)); in recursiveRetrieve()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParser.java | 345 Matcher matcher = PRODUCT_REQUIRE_PATTERN.matcher(line); in parseAndroidInfo() local 346 if (matcher.matches()) { in parseAndroidInfo() 347 String product = matcher.group(1); in parseAndroidInfo() 348 String key = matcher.group(2); in parseAndroidInfo() 349 String values = matcher.group(3); in parseAndroidInfo() 356 matcher = REQUIRE_PATTERN.matcher(line); in parseAndroidInfo() 357 if (matcher.matches()) { in parseAndroidInfo() 358 String key = matcher.group(1); in parseAndroidInfo() 359 String values = matcher.group(2); in parseAndroidInfo()
|
D | FastbootDeviceFlasher.java | 261 return regex.matcher(result.getStderr()).find(); in hasPartition() 716 Matcher matcher = versionOutputPattern.matcher(queryOutput); in getImageVersion() local 717 if (matcher.find()) { in getImageVersion() 718 return matcher.group(1); in getImageVersion() 744 Matcher matcher; in getCurrentSlot() local 748 matcher = outputPattern.matcher(queryOutput); in getCurrentSlot() 753 matcher = outputPattern.matcher(queryOutput); in getCurrentSlot() 755 if (matcher.find()) { in getCurrentSlot() 756 return matcher.group(1); in getCurrentSlot()
|
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 135 val matcher = PACKAGE_PATTERN.matcher(source) in getPackage() constant 136 return if (matcher.find()) { in getPackage() 137 matcher.group(1).trim() in getPackage() 144 val matcher = CLASS_PATTERN.matcher(source.replace('\n', ' ')) in getClassName() constant 146 while (matcher.find(start)) { in getClassName() 147 val cls = matcher.group(2) in getClassName() 148 val groupStart = matcher.start(2) in getClassName() 161 start = matcher.end(2) in getClassName()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | TemperatureThrottlingWaiter.java | 124 Matcher matcher = TEMPERATURE_RAW_FORMAT_REGEX.matcher(result); in getDeviceTemperature() local 125 if (matcher.find()) { in getDeviceTemperature() 126 deviceTemp = Integer.parseInt(matcher.group(1)); in getDeviceTemperature() 128 matcher = TEMPERATURE_FORMAT_REGEX.matcher(result); in getDeviceTemperature() 129 if (matcher.find()) { in getDeviceTemperature() 130 deviceTemp = Integer.parseInt(matcher.group()); in getDeviceTemperature()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceLine.kt | 73 private val matcher: Matcher constant 74 get() = matcherLocal.getOrSet { Pattern.compile(FtraceLineRE).matcher("") } in <lambda>() 81 tryMatch(matcher) { in create() 86 if (matcher!!.start(3) == -1) InvalidId else int(3), in create() 106 private val matcher = Pattern.compile(FtraceLineRE).matcher("") constant 110 match(matcher) { in parseLine_new() 114 if (matcher!!.start(3) == -1) InvalidId else int(3), in parseLine_new()
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | RegexTrie.java | 101 public Matcher matcher(String string) { in matcher() method in RegexTrie.CompPattern 102 return mPattern.matcher(string); in matcher() 215 Matcher matcher = pattern.matcher(curKey); in recursiveRetrieve() local 216 if (matcher.matches()) { in recursiveRetrieve() 218 List<String> curCaptures = new ArrayList<String>(matcher.groupCount()); in recursiveRetrieve() 219 for (int i = 0; i < matcher.groupCount(); i++) { in recursiveRetrieve() 221 curCaptures.add(matcher.group(i+1)); in recursiveRetrieve()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | TraceFormatParserTest.java | 69 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testParseFormatLine() 85 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testNoParameters() 141 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testQuoteInParams() 169 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testCaseConvertParameterName() 181 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testMatchInt() 194 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testMatchFloat() 208 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testMatchHex() 222 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testMatchString()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | AnnotationsMerger.kt | 382 val matcher = XML_SIGNATURE.matcher(signature) in mergeDocument() constant 383 if (matcher.matches()) { in mergeDocument() 384 val containingClass = matcher.group(1) in mergeDocument() 402 val methodName = matcher.group(5) in mergeDocument() 404 val parameters = matcher.group(6) in mergeDocument() 406 if (matcher.group(7) != null) { in mergeDocument() 407 Integer.parseInt(matcher.group(7).trim()) in mergeDocument() 413 val fieldName = matcher.group(2) in mergeDocument()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 215 protected String getAggregationLabel(Matcher matcher, String rawLabel) { in getAggregationLabel() argument 216 if (matcher.groupCount() == 0) { in getAggregationLabel() 220 if (matcher.groupCount() > 9) { in getAggregationLabel() 227 for (int i = 1; i <= matcher.groupCount(); i++) { in getAggregationLabel() 233 matcher.pattern(), marker, rawLabel); in getAggregationLabel() 236 label = label.replace(marker, matcher.group(i)); in getAggregationLabel() 269 Matcher m = pattern.getKey().matcher(stat.getKey()); in performAggregation()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | NativeBenchmarkTestParser.java | 74 Matcher matcher = COMPLETE_PATTERN.matcher(line); in parseLine() local 75 if (matcher.find()) { in parseLine() 77 mMinOpTime = parseDoubleValue(line, matcher.group(1)); in parseLine() 78 mAvgOpTime = parseDoubleValue(line, matcher.group(2)); in parseLine() 79 mMaxOpTime = parseDoubleValue(line, matcher.group(3)); in parseLine()
|