/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 | 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()
|
D | CompactMemInfoParser.java | 55 Matcher m = PROC_PATTERN.matcher(line); in parse() 74 m = LOST_RAM_PATTERN.matcher(line); in parse() 85 m = RAM_PATTERN.matcher(line); in parse() 95 m = ZRAM_PATTERN.matcher(line); in parse() 106 m = TUNING_PATTERN.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 | DumpsysPackageReceiver.java | 67 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 68 if (matcher.find()) { in parse() 69 String name = matcher.group(1); in parse() 102 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 103 if (matcher.find()) { in parse() 104 String name = matcher.group(1); in parse() 145 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local 146 if (matcher.find()) { in parse() 147 String name = matcher.group(1); in parse() 179 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse() local [all …]
|
D | TestDevice.java | 748 Matcher crashMatcher = crashPattern.matcher(systemStatusOutput); in getErrorDialogCount() 752 Matcher anrMatcher = anrPattern.matcher(systemStatusOutput); in getErrorDialogCount() 828 Matcher m = INPUT_DISPATCH_STATE_REGEX.matcher(output); in isDeviceInputReady() 936 Matcher m = APEXES_REGEX.matcher(output); in getActiveApexes() 1015 Matcher m = PACKAGE_REGEX.matcher(output); in getInstalledPackageNames() 1278 Matcher matcher = pattern.matcher(pmListUsersOutput); in findUserInfo() local 1279 return matcher; in findUserInfo() 1289 Matcher matcher = findUserInfo(commandOutput); in getUserFlags() local 1290 while(matcher.find()) { in getUserFlags() 1291 if (Integer.parseInt(matcher.group(2)) == userId) { in getUserFlags() [all …]
|
/tools/tradefederation/core/src/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()
|
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 | 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()
|
D | ConfigCompletor.java | 47 Matcher matcher = mRunPattern.matcher(buffer); in complete() local 48 if (matcher.find()) { in complete() 50 String match = matcher.group(1) + configName; in complete() 55 return buffer.length() - matcher.group(2).length(); in complete()
|
D | AaptParser.java | 62 Matcher m = PKG_PATTERN.matcher(aaptOut); in parse() 68 m = LABEL_PATTERN.matcher(aaptOut); in parse() 72 m = SDK_PATTERN.matcher(aaptOut); in parse() 76 m = NATIVE_CODE_PATTERN.matcher(aaptOut); in parse() 84 m = ALT_NATIVE_CODE_PATTERN.matcher(aaptOut); in parse()
|
D | AppVersionFetcher.java | 90 Matcher matcher = pattern.matcher(lines[0]); in parseVersionString() local 91 if (!matcher.matches()) { in parseVersionString() 94 return matcher.group(1); in parseVersionString()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParserTest.java | 70 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 71 assertFalse(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 73 assertTrue(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.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 assertFalse(PythonUnitTestResultParser.PATTERN_ONE_LINE_RESULT.matcher(s).matches()); in testRegexTestCase() 82 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_FIRST.matcher(s).matches()); in testRegexTestCase() 84 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() 86 assertTrue(PythonUnitTestResultParser.PATTERN_TWO_LINE_RESULT_SECOND.matcher(s).matches()); in testRegexTestCase() [all …]
|
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 136 val matcher = PACKAGE_PATTERN.matcher(source) in getPackage() constant 137 return if (matcher.find()) { in getPackage() 138 matcher.group(1).trim() in getPackage() 145 val matcher = CLASS_PATTERN.matcher(source.replace('\n', ' ')) in getClassName() constant 147 while (matcher.find(start)) { in getClassName() 148 val cls = matcher.group(2) in getClassName() 149 val groupStart = matcher.start(2) in getClassName() 162 start = matcher.end(2) in getClassName()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParser.java | 328 Matcher matcher = PRODUCT_REQUIRE_PATTERN.matcher(line); in parseAndroidInfo() local 329 if (matcher.matches()) { in parseAndroidInfo() 330 String product = matcher.group(1); in parseAndroidInfo() 331 String key = matcher.group(2); in parseAndroidInfo() 332 String values = matcher.group(3); in parseAndroidInfo() 339 matcher = REQUIRE_PATTERN.matcher(line); in parseAndroidInfo() 340 if (matcher.matches()) { in parseAndroidInfo() 341 String key = matcher.group(1); in parseAndroidInfo() 342 String values = matcher.group(2); in parseAndroidInfo()
|
D | FastbootDeviceFlasher.java | 252 return regex.matcher(result.getStderr()).find(); in hasPartition() 688 Matcher matcher = versionOutputPattern.matcher(queryOutput); in getImageVersion() local 689 if (matcher.find()) { in getImageVersion() 690 return matcher.group(1); in getImageVersion() 715 Matcher matcher; in getCurrentSlot() local 719 matcher = outputPattern.matcher(queryOutput); in getCurrentSlot() 724 matcher = outputPattern.matcher(queryOutput); in getCurrentSlot() 726 if (matcher.find()) { in getCurrentSlot() 727 return matcher.group(1); in getCurrentSlot()
|
/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 in trebuchet.importers.ftrace.FtraceLine.Parser 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/tradefederation/core/src/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()
|
D | NativeStressTestParser.java | 71 Matcher matcher = ITERATION_COMPLETE_PATTERN.matcher(line); in parseLine() local 72 if (matcher.find()) { in parseLine() 73 parseIterationValue(line, matcher.group(1)); in parseLine()
|
/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/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()
|