Searched refs:line (Results 1 - 25 of 193) sorted by relevance

12345678

/system/extras/memory_replay/tests/
H A DLineBufferTest.cpp41 line_data += "Single line with newline.\n";
49 char* line; local
51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len));
52 ASSERT_STREQ("Single line with newline.", line);
53 ASSERT_EQ(sizeof("Single line with newline.") - 1, line_len);
55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len));
60 line_data += "Single line with no newline.";
68 char* line; local
70 ASSERT_TRUE(line_buf.GetLine(&line,
89 char* line; local
118 char* line; local
148 char* line; local
183 char* line; local
218 char* line; local
[all...]
/system/tools/hidl/test/error_test/
H A Dhidl_error_test.sh19 echo "$output" | while read line; do echo "test output: $line"; done
30 echo "$output" | while read line; do echo "test output: $line"; done
/system/chre/util/nanoapp/
H A Ddebug.cc32 char line[32]; local
49 snprintf(&line[offset], sizeof(line) - offset, "%02x ", buffer[i - 1]));
54 LOGD(" %s\t%s", line, lineChars);
59 snprintf(&line[offset], sizeof(line) - offset, " "));
71 LOGD(" %s%s%s", line, tabs, lineChars);
/system/netd/server/
H A DDumpWriter.cpp51 void DumpWriter::println(const std::string& line) { argument
52 if (!line.empty()) {
56 write(mFd, line.c_str(), line.size());
62 std::string line; local
65 StringAppendV(&line, fmt, ap);
67 println(line);
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
H A DTestLogger.java37 public void log(String line) { argument
38 Log.i(TAG, line);
39 mLogFile.println(line);
42 public void logAndThrow(String line) throws TestFailException { argument
43 Log.e(TAG, line);
44 mLogFile.println(line);
45 throw new TestFailException(line);
/system/tools/hidl/
H A DDocComment.cpp34 const std::string& line = lines[l]; local
38 for (; idx < line.size() && isspace(line[idx]); idx++)
40 if (idx < line.size() && line[idx] == '*') idx++;
41 if (idx < line.size() && line[idx] == ' ') idx++;
43 if (idx < line.size()) {
49 is << line.substr(idx);
/system/libufdt/utils/src/
H A Dmkdtimg_cfg_create.c41 static char *trim_line(char *line) { argument
43 char *end = line;
49 } while (end >= line && isspace(*end));
53 while (isspace(*line)) {
54 line++;
56 return line;
62 /* Any line without prefix spaces is entry filename */
63 char line[1024]; local
64 while (fgets(line, sizeof(line), cfg_f
80 char line[1024]; local
[all...]
/system/core/libmemunreachable/
H A DLineBuffer.cpp31 bool LineBuffer::GetLine(char** line, size_t* line_len) { argument
37 *line = buffer_ + start_;
39 bytes_ -= newline - *line + 1;
40 *line_len = newline - *line;
54 *line = buffer_ + start_;
/system/extras/memory_replay/
H A DLineBuffer.cpp26 bool LineBuffer::GetLine(char** line, size_t* line_len) { argument
32 *line = buffer_ + start_;
34 bytes_ -= newline - *line + 1;
35 *line_len = newline - *line;
49 *line = buffer_ + start_;
H A DNativeInfo.cpp34 // the line data.
38 char* line; local
43 while (line_buf.GetLine(&line, &line_len)) {
47 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %*4s %*x %*x:%*x %*d %n",
49 if (strcmp(line + name_pos, "[anon:libc_malloc]") == 0 ||
50 strcmp(line + name_pos, "[heap]") == 0) {
56 } else if (native_map && sscanf(line, "Pss: %zu", &native_pss_kB) == 1) {
H A DAction.cpp59 MallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { argument
60 if (sscanf(line, "%zu", &size_) != 1) {
79 CallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { argument
80 if (sscanf(line, "%zu %zu", &n_elements_, &size_) != 2) {
102 ReallocAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { argument
103 if (sscanf(line, "%" SCNxPTR " %zu", &old_pointer_, &size_) != 2) {
132 MemalignAction(uintptr_t key_pointer, const char* line) : AllocAction(key_pointer) { argument
133 if (sscanf(line, "%zu %zu", &align_, &size_) != 2) {
180 const char* line, void* action_memory) {
183 action = new (action_memory) MallocAction(key_pointer, line);
179 CreateAction(uintptr_t key_pointer, const char* type, const char* line, void* action_memory) argument
[all...]
H A Dmain.cpp41 char* line; local
44 while (line_buf.GetLine(&line, &line_len)) {
45 char* word = reinterpret_cast<char*>(memchr(line, ':', line_len));
82 char* line; local
85 while (line_buf.GetLine(&line, &line_len)) {
91 // Every line is of this format:
95 if (sscanf(line, "%d: %s %" SCNxPTR " %n", &tid, type, &key_pointer, &line_pos) != 3) {
96 err(1, "Unparseable line found: %s\n", line);
100 printf(" At line
[all...]
/system/tools/aidl/tests/
H A Daidl_test_sentinel_searcher.cpp43 string line; local
44 while (getline(watched_file, line)) {
45 lines->push_back(line);
52 for (const auto& line : lines) {
53 if (line.find(sentinel) != string::npos) {
107 for (const auto& line : lines) {
108 cout << " " << line << endl;
/system/core/logd/
H A DLogCommand.cpp32 // /proc/PID/status and look for the "Group:" line.
101 char* line = NULL; local
103 while (getline(&line, &len, file) > 0) {
108 if (strncmp(groups_string, line, sizeof(groups_string) - 1) == 0) {
109 if (groupIsLog(line + sizeof(groups_string) - 1)) {
112 } else if (strncmp(uid_string, line, sizeof(uid_string) - 1) == 0) {
115 sscanf(line + sizeof(uid_string) - 1, "%u\t%u\t%u\t%u", &u[0],
123 } else if (strncmp(gid_string, line, sizeof(gid_string) - 1) == 0) {
126 sscanf(line + sizeof(gid_string) - 1, "%u\t%u\t%u\t%u", &g[0],
136 free(line);
[all...]
/system/sepolicy/build/
H A Dfile_utils.py34 """"Removes lines in input_file that match any line in pattern_files."""
44 tmp_output.writelines(line for line in in_file.readlines()
45 if line not in patterns)
/system/extras/boottime_tools/bootanalyze/
H A Dbugreport_anayze.py74 self.java_crash = collections.OrderedDict() #K:time, V:list of crash infos, each entry per line
161 def match_an_event(self, event_patterns, line):
163 m = event_pattern.search(line)
168 def get_event_time(self, line, is_kernel):
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) >
[all...]
/system/core/init/
H A Dtokenizer.h31 int line; member in struct:android::init::parse_state
/system/tools/aidl/
H A Dline_reader.cpp42 bool ReadLine(string* line) override {
46 line->clear();
47 std::getline(input_stream_, *line);
62 bool ReadLine(string* line) override {
66 line->clear();
67 std::getline(input_stream_, *line);
/system/core/healthd/
H A DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { argument
41 const char* str = line.c_str();
91 for (const auto& line : base::Split(content, "\n")) {
95 if (can_ignore_line(line.c_str())) {
97 } else if (remove_prefix(line, animation_prefix, &rest)) {
102 LOGE("Bad animation format: %s\n", line.c_str());
107 } else if (remove_prefix(line, fail_prefix, &rest)) {
109 } else if (remove_prefix(line, clock_prefix, &rest)) {
111 LOGE("Bad clock_display format: %s\n", line.c_str());
114 } else if (remove_prefix(line, percent_prefi
[all...]
/system/extras/simpleperf/scripts/
H A 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[
[all...]
/system/extras/memcpy-perf/
H A Dgraph_memcpy.py23 for line in f:
25 line_split = line.split(",")
29 line, = ax.plot(size, perf, '-', linewidth=0.2, label=arg)
/system/extras/tests/workloads/
H A Dpowerave.py31 for line in f:
33 val = float(line.split(" ")[1]) # xxx take 2nd arg in line
36 print "Can't parse data line, did you remember the timestamp?"
37 print "data was: %s" % line
/system/core/property_service/libpropertyinfoserializer/
H A Dproperty_info_file.cpp59 bool ParsePropertyInfoLine(const std::string& line, PropertyInfoEntry* out, std::string* error) { argument
60 auto tokenizer = SpaceTokenizer(line);
64 *error = "Did not find a property entry in '" + line + "'";
70 *error = "Did not find a context entry in '" + line + "'";
103 for (const auto& line : Split(file_contents, "\n")) {
104 auto trimmed_line = Trim(line);
/system/extras/tests/sdcard/
H A Dplot_sdcard.py50 def __init__(self, line):
52 'duration ([0-9.]+). Samples: ([0-9]+)'), line)
97 def Parse(self, line):
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
[all...]
/system/core/libbacktrace/
H A 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)) {

Completed in 2570 milliseconds

12345678