Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 123) sorted by relevance

12345

/tools/loganalysis/src/com/android/loganalysis/parser/
DProcrankParser.java68 item.addProcrankLine(Integer.parseInt(m.group(1)), m.group(6), in parse()
69 Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)), in parse()
70 Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5))); in parse()
76 item.addProcrankLine(Integer.parseInt(m.group(1)), m.group(10), in parse()
77 Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)), in parse()
78 Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5))); in parse()
DWakelockParser.java93 final String name = m.group(1); in parseKernelWakeLock()
95 NumberFormattingUtil.parseIntOrZero(m.group(2)), in parseKernelWakeLock()
96 NumberFormattingUtil.parseIntOrZero(m.group(3)), in parseKernelWakeLock()
97 NumberFormattingUtil.parseIntOrZero(m.group(4)), in parseKernelWakeLock()
98 NumberFormattingUtil.parseIntOrZero(m.group(5)), in parseKernelWakeLock()
99 NumberFormattingUtil.parseIntOrZero(m.group(6))); in parseKernelWakeLock()
101 final int timesCalled = Integer.parseInt(m.group(7)); in parseKernelWakeLock()
117 final String processUID = m.group(1); in parsePartialWakeLock()
118 final String name = m.group(2); in parsePartialWakeLock()
120 NumberFormattingUtil.parseIntOrZero(m.group(3)), in parsePartialWakeLock()
[all …]
DCompactMemInfoParser.java57 String type = m.group(1); in parse()
58 String name = m.group(2); in parse()
60 int pid = Integer.parseInt(m.group(3)); in parse()
61 long pss = Long.parseLong(m.group(4)); in parse()
63 if (m.group(6) != null && !"N/A".equals(m.group(6))) { in parse()
64 swap = Long.parseLong(m.group(6)); in parse()
66 boolean activities = "a".equals(m.group(7)); in parse()
77 long lostRam = Long.parseLong(m.group(1)); in parse()
88 item.setFreeRam(Long.parseLong(m.group(2))); in parse()
98 item.setTotalZram(Long.parseLong(m.group(1))); in parse()
[all …]
DDvmLockSampleParser.java95 m.group(1)); in parse()
98 1 == Integer.parseInt(m.group(2))); in parse()
101 m.group(3)); in parse()
104 Integer.parseInt(m.group(4))); in parse()
107 m.group(5)); in parse()
110 Integer.parseInt(m.group(6))); in parse()
115 m.group(7).equals("-") ? m.group(5) : m.group(7)); in parse()
118 Integer.parseInt(m.group(8))); in parse()
121 Integer.parseInt(m.group(9))); in parse()
DTopParser.java58 item.setUser(Integer.parseInt(m.group(1))); in parse()
59 item.setNice(Integer.parseInt(m.group(2))); in parse()
60 item.setSystem(Integer.parseInt(m.group(3))); in parse()
61 item.setIdle(Integer.parseInt(m.group(4))); in parse()
62 item.setIow(Integer.parseInt(m.group(5))); in parse()
63 item.setIrq(Integer.parseInt(m.group(6))); in parse()
64 item.setSirq(Integer.parseInt(m.group(7))); in parse()
65 item.setTotal(Integer.parseInt(m.group(8))); in parse()
DSmartMonkeyLogParser.java120 mSmartMonkeyLog.setThrottle(Integer.parseInt(m.group(2))); in parseLine()
124 mSmartMonkeyLog.setTargetInvocations(Integer.parseInt(m.group(2))); in parseLine()
128 String apps = m.group(2); in parseLine()
129 String packages = m.group(3); in parseLine()
143 mSmartMonkeyLog.setIntermediateCount(Integer.parseInt(m.group(2))); in parseLine()
147 mSmartMonkeyLog.setStartTime(parseTime(m.group(1))); in parseLine()
151 mSmartMonkeyLog.setStartUptimeDuration((Long.parseLong(m.group(2)))); in parseLine()
155 mSmartMonkeyLog.setStopTime(parseTime(m.group(1))); in parseLine()
156 mSmartMonkeyLog.setStopUptimeDuration(Long.parseLong(m.group(2))); in parseLine()
157 mSmartMonkeyLog.setTotalDuration(Long.parseLong(m.group(3))); in parseLine()
[all …]
DLocationServiceParser.java49 mItem.addLocationClient(m.group(5), NumberFormattingUtil.parseIntOrZero(m.group(1)), in parse()
50 NumberFormattingUtil.parseIntOrZero(m.group(2)), in parse()
51 NumberFormattingUtil.parseIntOrZero(m.group(3)), m.group(6), in parse()
52 NumberFormattingUtil.parseIntOrZero(m.group(4))); in parse()
DProcessUsageParser.java67 processUid = m.group(1); in parse()
74 NumberFormattingUtil.parseIntOrZero(m.group(2)), in parse()
75 NumberFormattingUtil.parseIntOrZero(m.group(3)), in parse()
76 NumberFormattingUtil.parseIntOrZero(m.group(4)), in parse()
77 NumberFormattingUtil.parseIntOrZero(m.group(5)), in parse()
78 NumberFormattingUtil.parseIntOrZero(m.group(6))); in parse()
79 mSensorUsage.add(new SensorInfoItem(m.group(1), duration)); in parse()
84 alarmWakeups = Integer.parseInt(m.group(1)); in parse()
DMonkeyLogParser.java198 mMonkeyLog.setThrottle(Integer.parseInt(m.group(1))); in parseLine()
202 mMonkeyLog.setSeed(Long.parseLong(m.group(1))); in parseLine()
203 mMonkeyLog.setTargetCount(Integer.parseInt(m.group(2))); in parseLine()
211 mMonkeyLog.addPackage(m.group(1)); in parseLine()
215 mMonkeyLog.addCategory(m.group(1)); in parseLine()
219 mMonkeyLog.setStartTime(parseTime(m.group(1))); in parseLine()
220 mMonkeyLog.setStartUptimeDuration((long) (Double.parseDouble(m.group(2)) * 1000)); in parseLine()
224 mMonkeyLog.setStopTime(parseTime(m.group(1))); in parseLine()
225 mMonkeyLog.setStopUptimeDuration((long) (Double.parseDouble(m.group(2)) * 1000)); in parseLine()
226 mMonkeyLog.setTotalDuration(60 * 1000 * Integer.parseInt(m.group(3)) + in parseLine()
[all …]
DAnrParser.java73 anr.setApp(m.group(1)); in parse()
79 anr.setPid(Integer.valueOf(m.group(1))); in parse()
83 anr.setReason(m.group(1)); in parse()
88 anr.setLoad(AnrItem.LoadCategory.LOAD_1, Double.parseDouble(m.group(1))); in parse()
89 anr.setLoad(AnrItem.LoadCategory.LOAD_5, Double.parseDouble(m.group(2))); in parse()
90 anr.setLoad(AnrItem.LoadCategory.LOAD_15, Double.parseDouble(m.group(3))); in parse()
96 anr.setCpuUsage(AnrItem.CpuUsageCategory.TOTAL, Double.parseDouble(m.group(1))); in parse()
99 Double usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
103 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
107 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
DBatteryStatsSummaryInfoParser.java74 final int year = Integer.parseInt(resetTimeMatcher.group(1)); in parse()
75 final int month = Integer.parseInt(resetTimeMatcher.group(2)); in parse()
76 final int day = Integer.parseInt(resetTimeMatcher.group(3)); in parse()
77 final int hour = Integer.parseInt(resetTimeMatcher.group(4)); in parse()
78 final int minute = Integer.parseInt(resetTimeMatcher.group(5)); in parse()
79 final int second = Integer.parseInt(resetTimeMatcher.group(6)); in parse()
83 final int days = NumberFormattingUtil.parseIntOrZero(dischargeMatcher.group(1)); in parse()
84 final int hours = NumberFormattingUtil.parseIntOrZero(dischargeMatcher.group(2)); in parse()
85 final int mins = NumberFormattingUtil.parseIntOrZero(dischargeMatcher.group(3)); in parse()
86 final int secs = NumberFormattingUtil.parseIntOrZero(dischargeMatcher.group(4)); in parse()
[all …]
DBatteryStatsDetailedInfoParser.java73 NumberFormattingUtil.parseIntOrZero(m.group(1)),
74 NumberFormattingUtil.parseIntOrZero(m.group(2)),
75 NumberFormattingUtil.parseIntOrZero(m.group(3)),
76 NumberFormattingUtil.parseIntOrZero(m.group(4)),
77 NumberFormattingUtil.parseIntOrZero(m.group(5)));
83 NumberFormattingUtil.parseIntOrZero(m.group(1)),
84 NumberFormattingUtil.parseIntOrZero(m.group(2)),
85 NumberFormattingUtil.parseIntOrZero(m.group(3)),
86 NumberFormattingUtil.parseIntOrZero(m.group(4)),
87 NumberFormattingUtil.parseIntOrZero(m.group(5)));
DDmesgParser.java170 serviceItem.setServiceName(match.group(SERVICENAME)); in parseServiceInfo()
172 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
173 getServiceInfoItems().put(match.group(SERVICENAME), serviceItem); in parseServiceInfo()
176 if (getServiceInfoItems().containsKey(match.group(SERVICENAME))) { in parseServiceInfo()
178 match.group(SERVICENAME)); in parseServiceInfo()
180 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
201 stageInfoItem.setStageName(match.group(STAGE)); in parseStageInfo()
203 match.group(TIMESTAMP)) * 1000)); in parseStageInfo()
209 stageInfoItem.setStageName(String.format("%s_%s", UEVENTD, match.group(STAGE))); in parseStageInfo()
211 match.group(DURATION)) * 1000)); in parseStageInfo()
[all …]
DGfxInfoParser.java77 pid = Integer.parseInt(m.group(1)); in parse()
78 name = m.group(2); in parse()
89 totalFrames = Long.parseLong(m.group(1)); in parse()
94 jankyFrames = Long.parseLong(m.group(1)); in parse()
99 percentile90 = Integer.parseInt(m.group(1)); in parse()
104 percentile95 = Integer.parseInt(m.group(1)); in parse()
109 percentile99 = Integer.parseInt(m.group(1)); in parse()
DDumpsysProcessMeminfoParser.java49 item.setPid(Integer.parseInt(m.group(2))); in parse()
53 item.setProcessName(m.group(3)); in parse()
55 String mainValues = m.group(4); in parse()
68 String additionalData = m.group(5); in parse()
73 String curLabel = additionalMatcher.group(1); in parse()
75 MEMINFO_VALUE.matcher(additionalMatcher.group(2)); in parse()
92 String value = m.group(1); in parseNextValue()
DTraceFormatParser.java98 String printfString = formatLineMatcher.group("printf"); in parse()
99 String paramsString = formatLineMatcher.group("params"); in parse()
112 CaseFormat.LOWER_CAMEL, paramsMatcher.group("param")); in parse()
125 if (printfMatcher.group("num") != null) { in parse()
129 } else if (printfMatcher.group("hex") != null) { in parse()
133 } else if (printfMatcher.group("str") != null) { in parse()
138 throw new RuntimeException("Unrecognized specifier: " + printfMatcher.group()); in parse()
DNativeCrashParser.java49 nc.setFingerprint(m.group(1)); in parse()
55 nc.setPid(Integer.valueOf(m.group(1))); in parse()
56 nc.setTid(Integer.valueOf(m.group(2))); in parse()
57 nc.setApp(m.group(4)); in parse()
DBatteryDischargeStatsInfoParser.java53 int percent = Integer.parseInt(m.group(8)); in parse()
64 NumberFormattingUtil.parseIntOrZero(m.group(2)), in parse()
65 NumberFormattingUtil.parseIntOrZero(m.group(4)), in parse()
66 NumberFormattingUtil.parseIntOrZero(m.group(6)), in parse()
67 NumberFormattingUtil.parseIntOrZero(m.group(7))); in parse()
/tools/tradefederation/core/src/com/android/tradefed/util/
DHprofAllocSiteParser.java85 m.group(2), in handleAllocSites()
86 m.group(4), in handleAllocSites()
87 m.group(6), in handleAllocSites()
88 m.group(8), in handleAllocSites()
89 m.group(10), in handleAllocSites()
90 m.group(12), in handleAllocSites()
91 m.group(14), in handleAllocSites()
92 m.group(16), in handleAllocSites()
93 m.group(18)); in handleAllocSites()
94 currentRes.put(String.format("Rank%s", m.group(2)), m.group(12)); in handleAllocSites()
DAaptParser.java64 mPackageName = m.group(1); in parse()
66 mVersionCode = m.group(2); in parse()
67 mVersionName = m.group(3); in parse()
70 mLabel = m.group(1); in parse()
74 mSdkVersion = Integer.parseInt(m.group(1)); in parse()
79 if (m.group(i) != null) { in parse()
80 mNativeCode.add(m.group(i).replace("'", "").trim()); in parse()
87 if (m.group(i) != null) { in parse()
88 mNativeCode.add(m.group(i).replace("'", "")); in parse()
DTimeVal.java90 timeValue = val(m.group("d")); in fromString()
94 timeValue = LongMath.checkedAdd(timeValue, val(m.group("h"))); in fromString()
98 timeValue = LongMath.checkedAdd(timeValue, val(m.group("m"))); in fromString()
102 timeValue = LongMath.checkedAdd(timeValue, val(m.group("s"))); in fromString()
106 timeValue = LongMath.checkedAdd(timeValue, val(m.group("ms"))); in fromString()
/tools/tradefederation/contrib/src/com/android/media/tests/
DMediaTest.java35 assertEquals("Parse test case name", mExpectedTestCaseName, m.group(1)); in testVideoEditorPositiveOut()
36 assertEquals("Paser positive out", mExpectedPositiveOut, m.group(2)); in testVideoEditorPositiveOut()
42 assertEquals("Parse test case name", mExpectedTestCaseName, m.group(1)); in testVideoEditorNegativeOut()
43 assertEquals("Paser negative out", mExpectedNegativeOut, m.group(2)); in testVideoEditorNegativeOut()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DTraceFormatParserTest.java71 Assert.assertEquals(m.group("foo"), "123"); in testParseFormatLine()
72 Assert.assertEquals(m.group("bar"), "enabled"); in testParseFormatLine()
143 Assert.assertEquals(m.group("foo"), "online"); in testQuoteInParams()
171 Assert.assertEquals(m.group("fooBar"), "123"); in testCaseConvertParameterName()
183 Assert.assertEquals(m.group("foo"), "-123"); in testMatchInt()
184 Assert.assertEquals(m.group("bar"), "456"); in testMatchInt()
196 Assert.assertEquals(m.group("foo"), "123.4567"); in testMatchFloat()
197 Assert.assertEquals(m.group("bar"), "456.78"); in testMatchFloat()
210 Assert.assertEquals(m.group("foo"), "007b"); in testMatchHex()
211 Assert.assertEquals(m.group("bar"), "000001C8"); in testMatchHex()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestResultParser.java213 mCurrentTestName = mCurrentMatcher.group(1); in processTestCase()
214 mCurrentTestClass = mCurrentMatcher.group(2); in processTestCase()
215 mCurrentTestStatus = mCurrentMatcher.group(3); in processTestCase()
218 mCurrentTestName = mCurrentMatcher.group(1); in processTestCase()
219 mCurrentTestClass = mCurrentMatcher.group(2); in processTestCase()
221 mCurrentTestStatus = mCurrentMatcher.group(2); in processTestCase()
233 mCurrentTestName = mCurrentMatcher.group(2); in processFailMessage()
234 mCurrentTestClass = mCurrentMatcher.group(3); in processFailMessage()
235 mCurrentTestStatus = mCurrentMatcher.group(1); in processFailMessage()
261 mTotalTestCount = Integer.parseInt(mCurrentMatcher.group(1)); in processRunSummary()
[all …]
/tools/repohooks/tools/
Dcpplint.py593 if matched.group(1):
597 category = matched.group(2)
1314 line = leading_space.group(1) + '""' + line[end + len(delimiter):]
1337 matched.group(1))):
1338 delimiter = ')' + matched.group(2) + '"'
1340 end = matched.group(3).find(delimiter)
1343 line = (matched.group(1) + '""' +
1344 matched.group(3)[end + len(delimiter):])
1348 line = matched.group(1) + '""'
1499 collapsed += head + match_literal.group(1).replace("'", '')
[all …]

12345