Home
last modified time | relevance | path

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

12345678910

/system/extras/memory_replay/tests/
DLineBufferTest.cpp49 char* line; in TEST_F() local
51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
52 ASSERT_STREQ("Single line with newline.", line); in TEST_F()
55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F()
68 char* line; in TEST_F() local
70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
71 ASSERT_STREQ("Single line with no newline.", line); in TEST_F()
74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F()
89 char* line; in TEST_F() local
91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
[all …]
DActionTest.cpp26 const char* line = "1024"; in TEST() local
27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST()
41 const char* line = ""; in TEST() local
42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); in TEST()
48 const char* line = ""; in TEST() local
49 Action* action = Action::CreateAction(0x1234, "free", line, memory); in TEST()
61 const char* line = "100 10"; in TEST() local
62 Action* action = Action::CreateAction(0x1234, "calloc", line, memory); in TEST()
76 const char* line = ""; in TEST() local
77 Action* action = Action::CreateAction(0, "free", line, memory); in TEST()
[all …]
/system/extras/boottime_tools/bootanalyze/
Dbugreport_anayze.py161 def match_an_event(self, event_patterns, line): argument
163 m = event_pattern.search(line)
168 def get_event_time(self, line, is_kernel): argument
170 m = self.re_time_dmesg.search(line)
172 print "Cannot get time from log:", line
176 m = self.re_time_logcat.search(line)
178 print "Cannot get time from log:", line
198 line = orig_line
202 while len(line) > 0:
203 m = self.re_native_crash_start.search(line)
[all …]
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c41 static char *trim_line(char *line) { in trim_line() argument
43 char *end = line; in trim_line()
49 } while (end >= line && isspace(*end)); in trim_line()
53 while (isspace(*line)) { in trim_line()
54 line++; in trim_line()
56 return line; in trim_line()
63 char line[1024]; in parse_config_entry_count() local
64 while (fgets(line, sizeof(line), cfg_fp) != NULL) { in parse_config_entry_count()
65 char c = line[0]; in parse_config_entry_count()
80 char line[1024]; in output_img_with_config() local
[all …]
/system/tools/hidl/
DDocComment.cpp34 const std::string& line = lines[l]; in DocComment() local
38 for (; idx < line.size() && isspace(line[idx]); idx++) in DocComment()
40 if (idx < line.size() && line[idx] == '*') idx++; in DocComment()
41 if (idx < line.size() && line[idx] == ' ') idx++; in DocComment()
43 if (idx < line.size()) { in DocComment()
49 is << line.substr(idx); in DocComment()
/system/extras/tests/sdcard/
Dplot_sdcard.py50 def __init__(self, line): argument
52 'duration ([0-9.]+). Samples: ([0-9]+)'), line)
97 def Parse(self, line): argument
98 if line.startswith('# Kernel:'):
99 self.kernel = re.search('Linux version ([0-9.]+-[^ ]+)', line).group(1)
100 elif line.startswith('# Command:'):
101 self.command_line = re.search('# Command: [/\w_]+ (.*)', line).group(1)
105 elif line.startswith('# Iterations'):
106 self.iterations = int(re.search('# Iterations: ([0-9]+)', line).group(1))
107 elif line.startswith('# Fadvise'):
[all …]
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
DTestLogger.java37 public void log(String line) { in log() argument
38 Log.i(TAG, line); in log()
39 mLogFile.println(line); in log()
42 public void logAndThrow(String line) throws TestFailException { in logAndThrow() argument
43 Log.e(TAG, line); in logAndThrow()
44 mLogFile.println(line); in logAndThrow()
45 throw new TestFailException(line); in logAndThrow()
/system/netd/server/
DDumpWriter.cpp51 void DumpWriter::println(const std::string& line) { in println() argument
52 if (!line.empty()) { in println()
56 write(mFd, line.c_str(), line.size()); in println()
62 std::string line; in println() local
65 StringAppendV(&line, fmt, ap); in println()
67 println(line); in println()
/system/extras/simpleperf/scripts/
Dreport.py108 line = lines[line_id]
109 if not line or line.find('Event:') == 0:
111 common_report_context.append(line)
124 for line in lines[line_id:]:
125 if not line:
132 cur_event_report.context.append(line)
133 if line.find('Event:') == 0:
138 cur_event_report.title_line = line
139 elif not line[0].isspace():
140 cur_report_item = ReportItem(line)
[all …]
/system/chre/util/nanoapp/
Ddebug.cc32 char line[32]; in logBuffer() local
49 snprintf(&line[offset], sizeof(line) - offset, "%02x ", buffer[i - 1])); in logBuffer()
54 LOGD(" %s\t%s", line, lineChars); in logBuffer()
59 snprintf(&line[offset], sizeof(line) - offset, " ")); in logBuffer()
71 LOGD(" %s%s%s", line, tabs, lineChars); in logBuffer()
/system/core/healthd/
DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { in remove_prefix() argument
41 const char* str = line.c_str(); in remove_prefix()
91 for (const auto& line : base::Split(content, "\n")) { in parse_animation_desc() local
95 if (can_ignore_line(line.c_str())) { in parse_animation_desc()
97 } else if (remove_prefix(line, animation_prefix, &rest)) { in parse_animation_desc()
102 LOGE("Bad animation format: %s\n", line.c_str()); in parse_animation_desc()
107 } else if (remove_prefix(line, fail_prefix, &rest)) { in parse_animation_desc()
109 } else if (remove_prefix(line, clock_prefix, &rest)) { in parse_animation_desc()
111 LOGE("Bad clock_display format: %s\n", line.c_str()); in parse_animation_desc()
114 } else if (remove_prefix(line, percent_prefix, &rest)) { in parse_animation_desc()
[all …]
/system/core/logd/
DLogCommand.cpp101 char* line = NULL; in clientHasLogCredentials() local
103 while (getline(&line, &len, file) > 0) { in clientHasLogCredentials()
108 if (strncmp(groups_string, line, sizeof(groups_string) - 1) == 0) { in clientHasLogCredentials()
109 if (groupIsLog(line + sizeof(groups_string) - 1)) { in clientHasLogCredentials()
112 } else if (strncmp(uid_string, line, sizeof(uid_string) - 1) == 0) { in clientHasLogCredentials()
115 sscanf(line + sizeof(uid_string) - 1, "%u\t%u\t%u\t%u", &u[0], in clientHasLogCredentials()
123 } else if (strncmp(gid_string, line, sizeof(gid_string) - 1) == 0) { in clientHasLogCredentials()
126 sscanf(line + sizeof(gid_string) - 1, "%u\t%u\t%u\t%u", &g[0], in clientHasLogCredentials()
136 free(line); in clientHasLogCredentials()
/system/extras/memory_replay/
DAction.cpp59 MallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { in MallocAction() argument
60 if (sscanf(line, "%zu", &size_) != 1) { in MallocAction()
79 CallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { in CallocAction() argument
80 if (sscanf(line, "%zu %zu", &n_elements_, &size_) != 2) { in CallocAction()
102 ReallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { in ReallocAction() argument
103 if (sscanf(line, "%" SCNxPTR " %zu", &old_pointer_, &size_) != 2) { in ReallocAction()
132 MemalignAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { in MemalignAction() argument
133 if (sscanf(line, "%zu %zu", &align_, &size_) != 2) { in MemalignAction()
180 const char* line, void* action_memory) { in CreateAction() argument
183 action = new (action_memory) MallocAction(key_pointer, line); in CreateAction()
[all …]
DNativeInfo.cpp38 char* line; in GetNativeInfo() local
43 while (line_buf.GetLine(&line, &line_len)) { in GetNativeInfo()
47 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %*4s %*x %*x:%*x %*d %n", in GetNativeInfo()
49 if (strcmp(line + name_pos, "[anon:libc_malloc]") == 0 || in GetNativeInfo()
50 strcmp(line + name_pos, "[heap]") == 0) { in GetNativeInfo()
56 } else if (native_map && sscanf(line, "Pss: %zu", &native_pss_kB) == 1) { in GetNativeInfo()
Dmain.cpp41 char* line; in GetMaxAllocs() local
44 while (line_buf.GetLine(&line, &line_len)) { in GetMaxAllocs()
45 char* word = reinterpret_cast<char*>(memchr(line, ':', line_len)); in GetMaxAllocs()
82 char* line; in ProcessDump() local
85 while (line_buf.GetLine(&line, &line_len)) { in ProcessDump()
95 if (sscanf(line, "%d: %s %" SCNxPTR " %n", &tid, type, &key_pointer, &line_pos) != 3) { in ProcessDump()
96 err(1, "Unparseable line found: %s\n", line); in ProcessDump()
112 Action* action = thread->CreateAction(key_pointer, type, line + line_pos); in ProcessDump()
114 err(1, "Cannot create action from line: %s\n", line); in ProcessDump()
DLineBuffer.cpp26 bool LineBuffer::GetLine(char** line, size_t* line_len) { in GetLine() argument
32 *line = buffer_ + start_; in GetLine()
34 bytes_ -= newline - *line + 1; in GetLine()
35 *line_len = newline - *line; in GetLine()
49 *line = buffer_ + start_; in GetLine()
/system/core/adb/
Dbugreport.cpp81 for (const auto& line : invalid_lines_) { in Done() local
82 fprintf(stderr, "\t%s\n", line.c_str()); in Done()
131 void ProcessLine(const std::string& line) { in ProcessLine() argument
132 if (line.empty()) return; in ProcessLine()
134 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { in ProcessLine()
135 SetSrcFile(&line[strlen(BUGZ_BEGIN_PREFIX)]); in ProcessLine()
136 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) { in ProcessLine()
137 SetSrcFile(&line[strlen(BUGZ_OK_PREFIX)]); in ProcessLine()
138 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) { in ProcessLine()
139 const char* error_message = &line[strlen(BUGZ_FAIL_PREFIX)]; in ProcessLine()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c145 char line[MAXSTR]; in testPrint() local
149 vsnprintf(line, sizeof(line), fmt, args); in testPrint()
151 ALOG(LOG_ERROR, logCatTag, "%s", line); in testPrint()
153 ALOG(LOG_INFO, logCatTag, "%s", line); in testPrint()
321 char line[MAXSTR]; in testXDump() local
324 char *linep = line; in testXDump()
328 if (linep != line) { in testXDump()
329 testPrintE("%s", line); in testXDump()
331 linep = line; in testXDump()
332 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump()
[all …]
/system/tools/aidl/
Daidl_language.cpp41 AidlType::AidlType(const std::string& name, unsigned line, in AidlType() argument
44 line_(line), in AidlType()
53 std::string name, unsigned line) in AidlArgument() argument
58 line_(line) {} in AidlArgument()
60 AidlArgument::AidlArgument(AidlType* type, std::string name, unsigned line) in AidlArgument() argument
65 line_(line) {} in AidlArgument()
134 unsigned line, const std::string& comments, int id) in AidlMethod() argument
139 line_(line), in AidlMethod()
152 unsigned line, const std::string& comments) in AidlMethod() argument
153 : AidlMethod(oneway, type, name, args, line, comments, 0) { in AidlMethod()
[all …]
Daidl_language_y.yy98 { ps->AddImport($2, @1.begin.line); };
121 @2.begin.line, $2->GetText().c_str());
127 $$ = new AidlParcelable($2, @2.begin.line, ps->Package());
130 $$ = new AidlParcelable($2, @2.begin.line, ps->Package(), $4->GetText());
134 ps->FileName().c_str(), @1.begin.line);
139 ps->FileName().c_str(), @2.begin.line, $2->GetText().c_str());
145 $$ = new AidlInterface($3->GetText(), @2.begin.line, $2->GetComments(),
152 $$ = new AidlInterface($4->GetText(), @4.begin.line, $2->GetComments(),
162 ps->FileName().c_str(), @3.begin.line, $3->GetText().c_str());
171 ps->FileName().c_str(), @3.begin.line, $3->GetText().c_str());
[all …]
Dline_reader.cpp42 bool ReadLine(string* line) override { in ReadLine() argument
46 line->clear(); in ReadLine()
47 std::getline(input_stream_, *line); in ReadLine()
62 bool ReadLine(string* line) override { in ReadLine() argument
66 line->clear(); in ReadLine()
67 std::getline(input_stream_, *line); in ReadLine()
/system/tools/aidl/tests/
Daidl_test_sentinel_searcher.cpp43 string line; in ReadLines() local
44 while (getline(watched_file, line)) { in ReadLines()
45 lines->push_back(line); in ReadLines()
52 for (const auto& line : lines) { in HasSentinel() local
53 if (line.find(sentinel) != string::npos) { in HasSentinel()
107 for (const auto& line : lines) { in main() local
108 cout << " " << line << endl; in main()
/system/core/libunwindstack/
DMaps.cpp60 static MapInfo* InternalParseLine(const char* line) { in InternalParseLine() argument
66 const char* old_str = line; in InternalParseLine()
180 char* line = buffer; in Parse() local
182 char* newline = static_cast<char*>(memchr(line, '\n', bytes)); in Parse()
184 memmove(buffer, line, bytes); in Parse()
189 MapInfo* map_info = InternalParseLine(line); in Parse()
196 bytes -= newline - line + 1; in Parse()
197 line = newline + 1; in Parse()
221 std::string line; in Parse() local
224 line = start_of_line; in Parse()
[all …]
/system/core/libmemunreachable/
DLineBuffer.cpp31 bool LineBuffer::GetLine(char** line, size_t* line_len) { in GetLine() argument
37 *line = buffer_ + start_; in GetLine()
39 bytes_ -= newline - *line + 1; in GetLine()
40 *line_len = newline - *line; in GetLine()
54 *line = buffer_ + start_; in GetLine()
/system/core/libbacktrace/
DBacktraceMap.cpp63 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument
74 if (sscanf(line, "%*21c %" SCNx64 "-%" SCNx64 " [%*13c] %3c/%*3c SM=%*3c %n",
81 if (sscanf(line, "%" SCNx64 "-%" SCNx64 " %4s %*x %*x:%*x %*d %n",
100 map->name = line+name_pos;
117 char line[1024]; local
132 while(fgets(line, sizeof(line), fp)) {
134 if (ParseLine(line, &map)) {

12345678910