Home
last modified time | relevance | path

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

123456789

/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/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/src/com/android/loganalysis/parser/
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 …]
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 …]
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()
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()
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)));
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()
/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/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/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/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/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/common_util/com/android/tradefed/util/zip/
DMergedZipEntryCollection.java80 List<CentralDirectoryInfo> group = new ArrayList<>(); in createCollections() local
88 - group.get(0).getLocalHeaderOffset(); in createCollections()
92 collections.add(new MergedZipEntryCollection(group)); in createCollections()
93 group = new ArrayList<>(); in createCollections()
97 group.add(entry); in createCollections()
98 if (group.size() > 1 && entry.getLocalHeaderOffset() > endOffset) { in createCollections()
103 collections.add(new MergedZipEntryCollection(group)); in createCollections()
/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/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()

123456789