Home
last modified time | relevance | path

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

12345678910

/tools/repohooks/tools/
Dcpplint.py599 if matched.group(1):
603 category = matched.group(2)
1320 line = leading_space.group(1) + '""' + line[end + len(delimiter):]
1343 matched.group(1))):
1344 delimiter = ')' + matched.group(2) + '"'
1346 end = matched.group(3).find(delimiter)
1349 line = (matched.group(1) + '""' +
1350 matched.group(3)[end + len(delimiter):])
1354 line = matched.group(1) + '""'
1505 collapsed += head + match_literal.group(1).replace("'", '')
[all …]
/tools/tradefederation/core/atest/
Dresult_reporter_unittest.py246 group = self.rr.runners['someTestRunner'].get('someTestModule')
247 self.assertIsNotNone(group)
249 mock_update.assert_called_with(RESULT_PASSED_TEST, group)
255 mock_update.assert_called_with(RESULT_FAILED_TEST, group)
323 group = result_reporter.RunStat()
324 self.rr._update_stats(RESULT_PASSED_TEST, group)
329 self.assertEquals(group.passed, 1)
330 self.assertEquals(group.failed, 0)
331 self.assertEquals(group.ignored, 0)
332 self.assertEquals(group.run_errors, False)
[all …]
/tools/asuite/atest/
Dresult_reporter_unittest.py247 group = self.rr.runners['someTestRunner'].get('someTestModule')
248 self.assertIsNotNone(group)
250 mock_update.assert_called_with(RESULT_PASSED_TEST, group)
256 mock_update.assert_called_with(RESULT_FAILED_TEST, group)
324 group = result_reporter.RunStat()
325 self.rr._update_stats(RESULT_PASSED_TEST, group)
330 self.assertEqual(group.passed, 1)
331 self.assertEqual(group.failed, 0)
332 self.assertEqual(group.ignored, 0)
333 self.assertEqual(group.run_errors, False)
[all …]
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/logger/
DCurrentInvocation.java81 ThreadGroup group = Thread.currentThread().getThreadGroup(); in addInvocationInfo() local
83 if (mPerGroupInfo.get(group) == null) { in addInvocationInfo()
84 mPerGroupInfo.put(group, new InternalInvocationTracking()); in addInvocationInfo()
86 mPerGroupInfo.get(group).mInvocationInfoFiles.put(key, value); in addInvocationInfo()
92 ThreadGroup group = Thread.currentThread().getThreadGroup(); in getInfo() local
94 if (mPerGroupInfo.get(group) == null) { in getInfo()
95 mPerGroupInfo.put(group, new InternalInvocationTracking()); in getInfo()
97 return mPerGroupInfo.get(group).mInvocationInfoFiles.get(key); in getInfo()
103 ThreadGroup group = Thread.currentThread().getThreadGroup(); in clearInvocationInfos() local
105 mPerGroupInfo.remove(group); in clearInvocationInfos()
[all …]
DInvocationMetricLogger.java128 ThreadGroup group = Thread.currentThread().getThreadGroup(); in addInvocationMetrics() local
130 if (mPerGroupMetrics.get(group) == null) { in addInvocationMetrics()
131 mPerGroupMetrics.put(group, new HashMap<>()); in addInvocationMetrics()
133 mPerGroupMetrics.get(group).put(key, value); in addInvocationMetrics()
139 ThreadGroup group = Thread.currentThread().getThreadGroup(); in getInvocationMetrics() local
141 if (mPerGroupMetrics.get(group) == null) { in getInvocationMetrics()
142 mPerGroupMetrics.put(group, new HashMap<>()); in getInvocationMetrics()
145 return new HashMap<>(mPerGroupMetrics.get(group)); in getInvocationMetrics()
150 ThreadGroup group = Thread.currentThread().getThreadGroup(); in clearInvocationMetrics() local
152 mPerGroupMetrics.remove(group); in clearInvocationMetrics()
/tools/loganalysis/src/com/android/loganalysis/parser/
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 …]
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 …]
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 …]
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 …]
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 …]
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()
DLogcatParser.java233 time = parseTime(m.group(1)); in parseLine()
234 pid = Integer.parseInt(m.group(2)); in parseLine()
235 tid = Integer.parseInt(m.group(3)); in parseLine()
236 level = m.group(4); in parseLine()
237 tag = m.group(5); in parseLine()
238 msg = m.group(6); in parseLine()
240 time = parseTime(tm.group(1)); in parseLine()
241 level = tm.group(2); in parseLine()
242 tag = tm.group(3); in parseLine()
243 pid = Integer.parseInt(tm.group(4)); in parseLine()
[all …]
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 …]
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()
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()
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)));
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt78 fun int(group: Int): Int { in int()
79 reader.index = startIndex + matcher!!.start(group) in int()
83 fun intOr(group: Int, default: Int): Int { in intOr()
84 return if (matcher!!.start(group) == -1) default else int(group) in intOr()
87 fun double(group: Int): Double { in double()
88 reader.index = startIndex + matcher!!.start(group) in double()
92 fun long(group: Int): Long { in long()
93 reader.index = startIndex + matcher!!.start(group) in long()
97 fun string(group: Int): String { in string()
98 reader.index = startIndex + matcher!!.start(group) in string()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/logger/
DTfObjectTracker.java66 ThreadGroup group = Thread.currentThread().getThreadGroup(); in directCount() local
67 if (mPerGroupUsage.get(group) == null) { in directCount()
68 mPerGroupUsage.put(group, new ConcurrentHashMap<>()); in directCount()
70 Map<String, Long> countMap = mPerGroupUsage.get(group); in directCount()
86 ThreadGroup group = Thread.currentThread().getThreadGroup(); in count() local
103 if (mPerGroupUsage.get(group) == null) { in count()
104 mPerGroupUsage.put(group, new ConcurrentHashMap<>()); in count()
106 Map<String, Long> countMap = mPerGroupUsage.get(group); in count()
118 ThreadGroup group = Thread.currentThread().getThreadGroup(); in getUsage() local
119 if (mPerGroupUsage.get(group) == null) { in getUsage()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py126 current_mcs = self.MCS_ID(self.MODE_MAP[match.group('mode')],
127 int(match.group('num_streams')) + 1,
128 self.BW_MAP[match.group('bw')],
129 int(match.group('mcs')),
130 int(match.group('rate'), 16) / 1000)
132 txmpdu=int(match.group('txmpdu')),
133 rxmpdu=int(match.group('rxmpdu')),
134 mpdu_lost=int(match.group('mpdu_lost')),
135 retries=int(match.group('retries')),
136 retries_short=int(match.group('retries_short')),
[all …]
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/model/
DSliceGroupBuilderTest.kt26 val group = SliceGroupBuilder() in testSimpleBuild() constant
27 group.beginSlice { in testSimpleBuild()
31 val slice = group.endSlice { in testSimpleBuild()
37 assertEquals(slice, group.slices.first()) in testSimpleBuild()
41 val group = SliceGroupBuilder() in testNestedBuild() constant
42 group.beginSlice { in testNestedBuild()
46 group.beginSlice { in testNestedBuild()
50 val child = group.endSlice { in testNestedBuild()
56 assertEquals(0, group.slices.size) in testNestedBuild()
57 val slice = group.endSlice { in testNestedBuild()
[all …]
/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/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.java75 mPackageName = m.group(1); in parse()
77 mVersionCode = m.group(2); in parse()
78 mVersionName = m.group(3); in parse()
81 mLabel = m.group(1); in parse()
85 mSdkVersion = Integer.parseInt(m.group(1)); in parse()
89 mTargetSdkVersion = Integer.parseInt(m.group(1)); in parse()
94 if (m.group(i) != null) { in parse()
95 mNativeCode.add(m.group(i).replace("'", "").trim()); in parse()
102 if (m.group(i) != null) { in parse()
103 mNativeCode.add(m.group(i).replace("'", "")); in parse()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DPythonUnitTestResultParser.java288 mCurrentTestName = r.group(1); in processTestCase()
289 mCurrentTestClass = r.group(2); in processTestCase()
290 mCurrentTestStatus = r.group(3); in processTestCase()
305 mCurrentTestName = mCurrentMatcher.group(1); in processTestCase()
306 mCurrentTestClass = mCurrentMatcher.group(2); in processTestCase()
309 mCurrentTestStatus = mCurrentMatcher.group(2); in processTestCase()
317 message.append(mCurrentMatcher.group(2)); in processTestCase()
335 mCurrentTestName = mCurrentMatcher.group(2); in processFailMessage()
336 mCurrentTestClass = mCurrentMatcher.group(3); in processFailMessage()
337 mCurrentTestStatus = mCurrentMatcher.group(1); in processFailMessage()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/pts/
Dpts_base_class.py202 handle = int(raw_handle.group(1), 16)
204 size = int(raw_size.group(1))
212 handle = int(raw_handle.group(1), 16)
214 size = int(raw_size.group(1))
223 handle = int(raw_handle.group(1), 16)
225 size = int(math.floor(int(raw_size.group(1)) / 2))
234 handle = int(raw_handle.group(1), 16)
237 offset = int(raw_offset.group(1))
246 handle = int(raw_handle.group(1), 16)
249 size = int(raw_size.group(1))
[all …]

12345678910