Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 271) sorted by relevance

1234567891011

/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceLineTest.kt32 line -> in <lambda>() method
33 assertEquals("atrace", line.task) in <lambda>()
34 assertEquals(7100, line.pid) in <lambda>()
35 assertEquals(7100, line.tgid) in <lambda>()
36 assertEquals(1, line.cpu) in <lambda>()
37 assertEquals(4492.047432, line.timestamp, .1) in <lambda>()
38 assertEquals("sched_switch", line.function.toString()) in <lambda>()
40 " next_pid=0 next_prio=120", line.functionDetailsReader.stringTo { end() }) in <lambda>()
48 line -> in <lambda>() method
49 assertNull(line.task) in <lambda>()
[all …]
/tools/test/connectivity/acts/tests/google/bt/pts/
Dcmd_input.py78 def do_EOF(self, line): argument
82 def do_reset_mac_address(self, line): argument
93 def do_gattc_socket_conn_begin_connect_thread_psm(self, line): argument
96 self.pri_dut.gattc.socket_conn_begin_connect_thread_psm(line)
100 def do_gattc_socket_conn_begin_accept_thread_psm(self, line): argument
103 self.pri_dut.gattc.socket_conn_begin_accept_thread_psm(line)
107 def do_gattc_request_le_connection_parameters(self, line): argument
114 def do_gattc_connect_over_le(self, line): argument
119 if line:
120 autoconnect = bool(line)
[all …]
/tools/repohooks/tools/
Dcpplint.py619 for line in lines:
620 if _SEARCH_C_FILE.search(line):
623 if _SEARCH_KERNEL_FILE.search(line):
1266 def IsCppString(line): argument
1279 line = line.replace(r'\\', 'XX') # after this, \\" does not match to \"
1280 return ((line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1
1305 for line in raw_lines:
1308 end = line.find(delimiter)
1313 leading_space = Match(r'^(\s*)\S', line)
1314 line = leading_space.group(1) + '""' + line[end + len(delimiter):]
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DMonkeyLogParser.java105 String line; in parse() local
106 while ((line = input.readLine()) != null) { in parse()
107 parseLine(line); in parse()
120 for (String line : lines) { in parse()
121 parseLine(line); in parse()
130 private void parseLine(String line) { in parseLine() argument
134 if ("".equals(line)) { in parseLine()
138 m = MONKEY_LOG_MESSAGE.matcher(line); in parseLine()
140 mBlock.add(line); in parseLine()
147 if (!mMatchingJavaCrash && !mMatchingNativeCrash && line.startsWith("// Short Msg: ")) { in parseLine()
[all …]
DSmartMonkeyLogParser.java88 String line; in parse() local
89 while ((line = input.readLine()) != null) { in parse()
90 parseLine(line); in parse()
102 for (String line : lines) { in parse()
103 parseLine(line); in parse()
117 private void parseLine(String line) { in parseLine() argument
118 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()
[all …]
DTimingsLogParser.java134 String line; in parseGenericTimingItems() local
137 while ((line = input.readLine()) != null) { in parseGenericTimingItems()
138 items.addAll(parseGenericTimingItem(line, pendingItems)); in parseGenericTimingItems()
152 String line, Map<String, Double> pendingItems) { in parseGenericTimingItem() argument
155 Matcher matcher = durationPattern.mStartTimePattern.matcher(line); in parseGenericTimingItem()
157 double startTimeMillis = parseTime(line); in parseGenericTimingItem()
161 matcher = durationPattern.mEndTimePattern.matcher(line); in parseGenericTimingItem()
163 double endTimeMillis = parseTime(line); in parseGenericTimingItem()
183 private double parseTime(String line) { in parseTime() argument
184 String timeStr = String.format("%s-%s", DEFAULT_YEAR, line); in parseTime()
[all …]
DDmesgParser.java104 for (String line : lines) { in parse()
105 parse(line); in parse()
121 String line; in parseInfo() local
122 while ((line = bufferedLog.readLine()) != null) { in parseInfo()
123 parse(line); in parseInfo()
143 private void parse(String line) { in parse() argument
145 if (parseServiceInfo(line)) { in parse()
148 if (parseStageInfo(line)) { in parse()
151 if (parseActionInfo(line)) { in parse()
166 boolean parseServiceInfo(String line) { in parseServiceInfo() argument
[all …]
/tools/external_updater/
Dgit_utils.py60 return dict([line.split()[0:2] for line in lines])
81 stripped = [line.strip() for line in lines]
84 return [line[remote_path_len:] for line in stripped
85 if line.startswith(remote_path)]
88 def _parse_remote_tag(line): argument
92 line = line[line.index(tag_prefix):]
95 line = line[len(tag_prefix):]
96 if line.endswith(tag_suffix):
97 line = line[:-len(tag_suffix)]
98 return line
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DPythonUnitTestResultParser.java221 for (String line : lines) { in processNewLines()
222 parse(line); in processNewLines()
235 void parse(String line) throws PythonUnitTestParseException { in parse() argument
238 processTestCase(line); in parse()
241 processTraceback(line); in parse()
244 processRunSummary(line); in parse()
247 processFailMessage(line); in parse()
255 void processTestCase(String line) throws PythonUnitTestParseException { in processTestCase() argument
257 mCurrentTestCaseString = mCurrentTestCaseString + "\n" + line; in processTestCase()
258 line = mCurrentTestCaseString; in processTestCase()
[all …]
DNativeBenchmarkTestParser.java67 for (String line : lines) { in processNewLines()
68 parseLine(line); in processNewLines()
72 private void parseLine(String line) { in parseLine() argument
73 Log.d(LOG_TAG, line); in parseLine()
74 Matcher matcher = COMPLETE_PATTERN.matcher(line); in parseLine()
76 Log.i(LOG_TAG, String.format("Found result for benchmark %s: %s", getRunName(), line)); 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()
83 private double parseDoubleValue(String line, String valueString) { in parseDoubleValue() argument
[all …]
/tools/dexter/testdata/expected/
Dmi.rewrite5 .line 1
7 .line 1
16 .line 3
18 .line 3
31 .line 15
33 .line 15
35 .line 16
37 .line 17
39 .line 18
47 .line 21
[all …]
Dmi.object_exit_hook5 .line 1
7 .line 1
16 .line 3
18 .line 3
31 .line 15
33 .line 15
35 .line 16
37 .line 17
39 .line 18
47 .line 21
[all …]
Dmi.compact_cfg6 .line 1
8 .line 1
19 .line 3
21 .line 3
36 .line 15
38 .line 15
40 .line 16
42 .line 17
44 .line 18
54 .line 21
[all …]
Dtry_catch.asm5 .line 2
7 .line 2
18 .line 6
20 .line 6
31 .line 10
33 .line 10
45 .line 27
47 .line 27
52 .line 28
55 .line 31
[all …]
Dexit_hooks.asm5 .line 28
7 .line 28
19 .line 32
21 .line 32
27 .line 33
29 .line 34
33 .line 35
40 .line 39
42 .line 39
49 .line 40
[all …]
Dtry_catch.rewrite5 .line 2
7 .line 2
18 .line 6
20 .line 6
31 .line 10
33 .line 10
45 .line 27
47 .line 27
52 .line 28
55 .line 31
[all …]
Dtry_catch.exit_hook5 .line 2
7 .line 2
19 .line 6
21 .line 6
33 .line 10
35 .line 10
48 .line 27
50 .line 27
55 .line 28
58 .line 31
[all …]
Dmi.mi5 .line 1
7 .line 1
16 .line 3
18 .line 3
31 .line 15
33 .line 15
35 .line 16
37 .line 17
39 .line 18
47 .line 21
[all …]
Dtry_catch.scratch_regs5 .line 2
10 .line 2
21 .line 6
26 .line 6
37 .line 10
42 .line 10
54 .line 27
59 .line 27
64 .line 28
67 .line 31
[all …]
Dmi.scratch_regs5 .line 1
10 .line 1
19 .line 3
30 .line 3
43 .line 15
54 .line 15
56 .line 16
58 .line 17
60 .line 18
68 .line 21
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java205 private static boolean isLineMacro(CommandLine line) { in isLineMacro() argument
206 return line.size() >= 4 && "MACRO".equals(line.get(0)) && "=".equals(line.get(2)); in isLineMacro()
215 private static boolean isLineLongMacro(CommandLine line) { in isLineLongMacro() argument
216 return line.size() == 3 && "LONG".equals(line.get(0)) && "MACRO".equals(line.get(1)); in isLineLongMacro()
224 private static boolean isLineIncludeDirective(CommandLine line) { in isLineIncludeDirective() argument
225 return line.size() == 2 && "INCLUDE".equals(line.get(0)); in isLineIncludeDirective()
235 private static boolean shouldParseLine(String line) { in shouldParseLine() argument
236 line = line.trim(); in shouldParseLine()
237 return !(line.isEmpty() || line.startsWith("#")); in shouldParseLine()
305 CommandLine line = new CommandLine(Arrays.asList( in scanFile() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DDumpsysPackageReceiver.java56 ParserState parse(String line) throws ParseException; in parse() argument
68 public ParserState parse(String line) throws ParseException { in parse() argument
69 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse()
102 public ParserState parse(String line) throws ParseException { in parse() argument
104 Matcher matcher = PACKAGE_PATTERN.matcher(line); in parse()
109 if (line.startsWith(HIDDEN_SYSTEM_PACKAGES_PREFIX)) { in parse()
113 parseAttributes(line); in parse()
118 private void parseAttributes(String line) { in parseAttributes() argument
119 String[] prop = line.split("="); in parseAttributes()
124 String[] vn = line.split(" |="); in parseAttributes()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DSourcePositionInfo.kt20 private val line: Int constant in com.android.tools.metalava.doclava1.SourcePositionInfo
23 return "$file:$line" in toString()
28 return if (r != 0) r else line - other.line in compareTo()
48 var line = that.line in add() variable
53 line++ in add()
57 return SourcePositionInfo(that.file, line) in add()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Drfcomm_lib.py36 def connect(self, line): argument
39 if len(line) > 0:
40 uuid = line
56 def write(self, line): argument
58 self.dut.droid.bluetoothRfcommWrite(line)
60 def write_binary(self, line): argument
62 self.dut.droid.bluetoothRfcommWriteBinary(line)
68 def accept(self, line): argument
71 if len(line) > 0:
72 uuid = line
/tools/loganalysis/src/com/android/loganalysis/util/
DLogTailUtil.java44 public LogLine(Integer id, String line) { in LogLine() argument
46 mLine = line; in LogLine()
76 public void addLine(Integer id, String line) { in addLine() argument
77 mRingBuffer.add(new LogLine(id, line)); in addLine()
103 for (LogLine line : mRingBuffer.subList(fromIndex, toIndex)) { in getLastTail()
104 tail.add(line.mLine); in getLastTail()
130 LogLine line = li.previous(); in getIdTail() local
132 if (line.mId != null && line.mId.equals(id)) { in getIdTail()
133 tail.addFirst(line.mLine); in getIdTail()

1234567891011