Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 130) sorted by relevance

123456

/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
DKeyguardControllerState.java46 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/device/
DDumpsysPackageReceiver.java69 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 …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSimplePerfStatResultParser.java68 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()
DConfigCompletor.java47 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()
DConditionPriorityBlockingQueue.java134 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 …]
DAaptParser.java73 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()
DRegexTrie.java101 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()
DAppVersionFetcher.java90 Matcher matcher = pattern.matcher(lines[0]); in parseVersionString() local
91 if (!matcher.matches()) { in parseVersionString()
94 return matcher.group(1); in parseVersionString()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt75 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/loganalysis/src/com/android/loganalysis/parser/
DTimingsLogParser.java155 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 …]
DMonkeyLogParser.java138 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 …]
DSmartMonkeyLogParser.java118 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 …]
DAnrParser.java69 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()
DGfxInfoParser.java74 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()
DCompactMemInfoParser.java55 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/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DTemperatureThrottlingWaiter.java124 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/tradefederation/core/test_framework/com/android/tradefed/testtype/
DNativeBenchmarkTestParser.java74 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()
DNativeStressTestParser.java71 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/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceLine.kt73 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/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java345 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()
/tools/loganalysis/src/com/android/loganalysis/util/
DRegexTrie.java101 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/tests/src/com/android/tradefed/testtype/
DPythonUnitTestResultParserTest.java72 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/contrib/src/com/android/media/tests/
DCameraBurstStartupTest.java73 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults() local
75 if (matcher.matches()) { in parseResults()
78 parsed.put(keyName, matcher.group("average")); in parseResults()
DCamera2LatencyTest.java83 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults() local
84 if (matcher.matches()) { in parseResults()
86 parsed.put(keyName, matcher.group("latency")); in parseResults()
DCameraShotLatencyTest.java80 Matcher matcher = STATS_REGEX.matcher(metric.getValue()); in parseResults() local
81 if (matcher.matches()) { in parseResults()
84 parsed.put(keyName, matcher.group("average")); in parseResults()

123456