Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 133) sorted by relevance

123456

/tools/loganalysis/src/com/android/loganalysis/parser/
DMonkeyLogParser.java131 Matcher m; in parseLine() local
138 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine()
139 if (!m.matches()) { in parseLine()
154 m = ABORTED.matcher(line); in parseLine()
155 if (m.matches()) { in parseLine()
164 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine()
165 if (!m.matches() && line.startsWith("// ") && !line.startsWith("// ** ")) { in parseLine()
174 m = TRACES_STOP.matcher(line); in parseLine()
175 if (m.matches()) { in parseLine()
188 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine()
[all …]
DSmartMonkeyLogParser.java118 Matcher m = THROTTLE.matcher(line); in parseLine() local
119 if (m.matches()) { in parseLine()
120 mSmartMonkeyLog.setThrottle(Integer.parseInt(m.group(2))); in parseLine()
122 m = TARGET_INVOCATIONS.matcher(line); in parseLine()
123 if (m.matches()) { in parseLine()
124 mSmartMonkeyLog.setTargetInvocations(Integer.parseInt(m.group(2))); in parseLine()
126 m = APPS_PACKAGES.matcher(line); in parseLine()
127 if (m.matches()) { in parseLine()
128 String apps = m.group(2); in parseLine()
129 String packages = m.group(3); in parseLine()
[all …]
DAnrParser.java69 Matcher m = START.matcher(line); in parse() local
71 if (m.matches()) { in parse()
73 anr.setApp(m.group(1)); in parse()
77 m = PID.matcher(line); in parse()
78 if (m.matches()) { in parse()
79 anr.setPid(Integer.valueOf(m.group(1))); in parse()
81 m = REASON.matcher(line); in parse()
82 if (m.matches()) { in parse()
83 anr.setReason(m.group(1)); in parse()
86 m = LOAD.matcher(line); in parse()
[all …]
DWakelockParser.java57 Matcher m = null; in parse() local
65 m = KERNEL_WAKE_LOCK_PAT.matcher(line); in parse()
66 if (m.matches() && !line.contains("PowerManagerService.WakeLocks")) { in parse()
72 m = PARTIAL_WAKE_LOCK_PAT.matcher(line); in parse()
73 if (m.matches()) { in parse()
89 Matcher m = KERNEL_WAKE_LOCK_PAT.matcher(line); in parseKernelWakeLock() local
90 if (!m.matches()) { in parseKernelWakeLock()
93 final String name = m.group(1); in parseKernelWakeLock()
95 NumberFormattingUtil.parseIntOrZero(m.group(2)), in parseKernelWakeLock()
96 NumberFormattingUtil.parseIntOrZero(m.group(3)), in parseKernelWakeLock()
[all …]
DCompactMemInfoParser.java55 Matcher m = PROC_PATTERN.matcher(line); in parse() local
56 if (m.matches()) { in parse()
57 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()
74 m = LOST_RAM_PATTERN.matcher(line); in parse()
[all …]
DGfxInfoParser.java74 Matcher m = PID_PREFIX.matcher(line); in parse() local
75 if (m.matches() && m.groupCount() == 2) { in parse()
77 pid = Integer.parseInt(m.group(1)); in parse()
78 name = m.group(2); in parse()
87 m = TOTAL_FRAMES_PREFIX.matcher(line); in parse()
88 if (totalFrames == null && m.matches()) { in parse()
89 totalFrames = Long.parseLong(m.group(1)); in parse()
92 m = JANKY_FRAMES_PREFIX.matcher(line); in parse()
93 if (jankyFrames == null && m.matches()) { in parse()
94 jankyFrames = Long.parseLong(m.group(1)); in parse()
[all …]
DProcrankParser.java66 Matcher m = SHORT_LINE_PAT.matcher(line); in parse() local
67 if (m.matches()) { in parse()
68 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()
74 m = LONG_LINE_PAT.matcher(line); in parse()
75 if (m.matches()) { 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()
DProcessUsageParser.java61 Matcher m = UID_PATTERN.matcher(line); in parse() local
62 if (m.matches()) { in parse()
67 processUid = m.group(1); in parse()
71 m = SENSOR_PATTERN.matcher(line); in parse()
72 if (m.matches()) { 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()
[all …]
DBatteryStatsDetailedInfoParser.java65 Matcher m = null;
70 m = TIME_ON_BATTERY_PATTERN.matcher(line);
71 if (m.matches()) {
73 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)));
80 m = SCREEN_OFF_TIME_PATTERN.matcher(line);
81 if (m.matches()) {
[all …]
DDvmLockSampleParser.java91 Matcher m = LOG_CONTENTION_EVENT_PATTERN.matcher(line); in parse() local
93 if(m.matches()) { in parse()
95 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()
[all …]
DKernelLogParser.java134 Matcher m = LOG_LINE.matcher(line); in parseLine() local
135 if (m.matches()) { in parseLine()
136 Double time = Double.parseDouble(m.group(2)); in parseLine()
137 String msg = m.group(3); in parseLine()
172 Matcher m = SELINUX_DENIAL_PATTERN.matcher(message); in checkAndAddKernelEvent() local
173 if (m.matches()) { in checkAndAddKernelEvent()
174 selinuxItem.setSContext(m.group(1)); in checkAndAddKernelEvent()
179 Matcher m = PAGE_ALLOC_FAILURE_PATTERN.matcher(message); in checkAndAddKernelEvent() local
180 if (m.matches()) { in checkAndAddKernelEvent()
181 allocItem.setOrder(Integer.parseInt(m.group(1))); in checkAndAddKernelEvent()
[all …]
DTopParser.java56 Matcher m = TICKS_PAT.matcher(line); in parse() local
57 if (m.matches()) { in parse()
58 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()
DLocationServiceParser.java45 Matcher m = null; in parse() local
47 m = LOCATION_PAT.matcher(line); in parse()
48 if (m.matches()) { in parse()
49 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()
DDumpsysPackageStatsParser.java50 Matcher m = PACKAGE_NAME.matcher(line); in parse() local
51 if (m.matches()) { in parse()
52 packageName = m.group(1); in parse()
57 m = VERSION_CODE.matcher(line); in parse()
58 if (m.matches()) { in parse()
59 versionCode = m.group(1); in parse()
62 m = VERSION_NAME.matcher(line); in parse()
63 if (m.matches()) { in parse()
64 versionName = m.group(1).trim(); in parse()
DNativeCrashParser.java46 Matcher m = FINGERPRINT.matcher(line); in parse() local
47 if (m.matches()) { in parse()
49 nc.setFingerprint(m.group(1)); in parse()
53 m = APP.matcher(line); in parse()
54 if (m.matches()) { 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()
DTracesParser.java61 Matcher m = PID.matcher(line); in parse() local
62 if (m.matches()) { in parse()
63 traces.setPid(Integer.parseInt(m.group(1))); in parse()
65 m = APP.matcher(line); in parse()
66 if (m.matches()) { in parse()
67 traces.setApp(m.group(1)); in parse()
69 m = STACK.matcher(line); in parse()
70 if (m.matches()) { in parse()
DDumpsysProcessMeminfoParser.java46 Matcher m = MEMINFO_OUTPUT.matcher(line); in parse() local
47 if (!m.matches()) continue; in parse()
49 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()
90 private void parseNextValue(Matcher m, Map<String, Long> output, String key) { in parseNextValue() argument
91 if (!m.find()) return; in parseNextValue()
92 String value = m.group(1); in parseNextValue()
DBatteryUsageParser.java46 Matcher m = Capacity.matcher(line); in parse() local
47 if(m.matches()) { in parse()
48 mItem.setBatteryCapacity(Integer.parseInt(m.group(1))); in parse()
50 m = Usage.matcher(line); in parse()
51 if (m.matches()) { in parse()
52 mItem.addBatteryUsage(m.group(1), Double.parseDouble(m.group(2))); in parse()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAaptParser.java73 Matcher m = PKG_PATTERN.matcher(aaptOut); in parse() local
74 if (m.find()) { in parse()
75 mPackageName = m.group(1); in parse()
77 mVersionCode = m.group(2); in parse()
78 mVersionName = m.group(3); in parse()
79 m = LABEL_PATTERN.matcher(aaptOut); in parse()
80 if (m.find()) { in parse()
81 mLabel = m.group(1); in parse()
83 m = SDK_PATTERN.matcher(aaptOut); in parse()
84 if (m.find()) { in parse()
[all …]
DHprofAllocSiteParser.java81 Matcher m = RANK_PATTERN.matcher(line); in handleAllocSites() local
82 if (m.find()) { in handleAllocSites()
85 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()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DTraceFormatParserTest.java69 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testParseFormatLine() local
70 Assert.assertTrue(m.matches()); in testParseFormatLine()
71 Assert.assertEquals(m.group("foo"), "123"); in testParseFormatLine()
72 Assert.assertEquals(m.group("bar"), "enabled"); in testParseFormatLine()
85 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testNoParameters() local
86 Assert.assertTrue(m.matches()); in testNoParameters()
141 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testQuoteInParams() local
142 Assert.assertTrue(m.matches()); in testQuoteInParams()
143 Assert.assertEquals(m.group("foo"), "online"); in testQuoteInParams()
169 Matcher m = parsedItem.getRegex().matcher(shouldMatch); in testCaseConvertParameterName() local
[all …]
/tools/test/graphicsbenchmark/
DAndroid.mk37 gamecore_dist_copy_pairs := $(foreach m, $(gamecore_dist_host_jar) $(tradefed_jars), \
38 $(call intermediates-dir-for,JAVA_LIBRARIES,$(m),HOST,COMMON)/javalib.jar:gamecore/bin/$(m).jar)
39 gamecore_dist_copy_pairs += $(foreach m, $(gamecore_dist_test_exe), \
40 …$(call intermediates-dir-for,NATIVE_TESTS,$(m))/$(m)$(bit_suffix):gamecore/testcases/$(TARGET_ARCH…
41 gamecore_dist_copy_pairs += $(foreach m, $(gamecore_dist_test_apk), \
42 $(call intermediates-dir-for,APPS,$(m))/package.apk:gamecore/testcases/$(m).apk)
/tools/tradefederation/contrib/src/com/android/media/tests/
DMediaTest.java33 Matcher m = VideoEditingMemoryTest.TOTAL_MEM_DIFF_PATTERN.matcher(mPositiveOutput); in testVideoEditorPositiveOut() local
34 assertTrue(m.matches()); in testVideoEditorPositiveOut()
35 assertEquals("Parse test case name", mExpectedTestCaseName, m.group(1)); in testVideoEditorPositiveOut()
36 assertEquals("Paser positive out", mExpectedPositiveOut, m.group(2)); in testVideoEditorPositiveOut()
40 Matcher m = VideoEditingMemoryTest.TOTAL_MEM_DIFF_PATTERN.matcher(mNegativeOutput); in testVideoEditorNegativeOut() local
41 assertTrue(m.matches()); in testVideoEditorNegativeOut()
42 assertEquals("Parse test case name", mExpectedTestCaseName, m.group(1)); in testVideoEditorNegativeOut()
43 assertEquals("Paser negative out", mExpectedNegativeOut, m.group(2)); in testVideoEditorNegativeOut()
DAdbScreenrecordTest.java193 Matcher m = Pattern.compile("(\\d+) (.)b\\/s").matcher(bitrate); in convertBitrateToKilobits() local
194 if (!m.matches()) { in convertBitrateToKilobits()
198 final String unit = m.group(2).toUpperCase(); in convertBitrateToKilobits()
212 long rate = Long.parseLong(m.group(1)); in convertBitrateToKilobits()
285 Matcher m = Pattern.compile(REGEX_IS_VIDEO_OK).matcher(data); in extractDurationAndBitrateFromVideoFileUsingAvprobe() local
286 if (!m.find()) { in extractDurationAndBitrateFromVideoFileUsingAvprobe()
292 String duration = m.group(1); in extractDurationAndBitrateFromVideoFileUsingAvprobe()
294 String bitrate = m.group(2); in extractDurationAndBitrateFromVideoFileUsingAvprobe()
306 Matcher m = Pattern.compile(regEx).matcher(adbOutput); in extractVideoDataFromAdbOutput() local
307 if (!m.find()) { in extractVideoDataFromAdbOutput()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java132 Matcher m = RLE_SEGMENT.matcher(encoded.substring(i)); in decodeRle() local
133 if (m.find()) { in decodeRle()
134 final String c = m.group(2); in decodeRle()
135 final int repeat = toIntOrDefault(m.group(3), 1); in decodeRle()
147 i += m.group(1).length(); in decodeRle()
166 Matcher m = INNER_PAREN_SEGMENT.matcher(work); in decode() local
167 for (; m.matches(); m = INNER_PAREN_SEGMENT.matcher(work)) { in decode()
168 final String prefix = m.group(1); in decode()
169 final String subsection = m.group(2); in decode()
170 final int repeat = toIntOrDefault(m.group(3), 1); in decode()
[all …]

123456