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

1234567

/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/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/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.cpp32 // the line data.
36 char* line; local
41 while (line_buf.GetLine(&line, &line_len)) {
45 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %*4s %*x %*x:%*x %*d %n",
47 if (strcmp(line + name_pos, "[anon:libc_malloc]") == 0 ||
48 strcmp(line + name_pos, "[heap]") == 0) {
54 } 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/bt/btif/src/
H A Dbtif_sock_util.cc59 BTIF_TRACE_ERROR("## %s assert %s failed at line:%d ##", __func__, #s, \
166 char* line; local
172 line = line_buff;
173 *line++ = ' ';
174 *line++ = ' ';
175 *line++ = ' ';
176 *line++ = ' ';
177 *line++ = ' ';
178 *line++ = ' ';
180 byte2hex((const char*)&j, &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/extras/perfprofd/quipper/base/
H A Dlogging.cc60 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) argument
61 : severity_(severity), file_(file), line_(line) {
62 Init(file, line);
65 LogMessage::LogMessage(const char* file, int line, std::string* result) argument
66 : severity_(LOG_FATAL), file_(file), line_(line) {
67 Init(file, line);
72 LogMessage::LogMessage(const char* file, int line, LogSeverity severity, argument
74 : severity_(severity), file_(file), line_(line) {
75 Init(file, line);
107 void LogMessage::Init(const char* /* file */, int /* line */) {
[all...]
/system/core/init/
H A Dparser.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.py107 line = lines[line_id]
108 if not line or line.find('Event:') == 0:
110 common_report_context.append(line)
123 for line in lines[line_id:]:
124 if not line:
131 cur_event_report.context.append(line)
132 if line.find('Event:') == 0:
137 cur_event_report.title_line = line
138 elif not line[
[all...]
/system/core/libunwindstack/
H A DMaps.cpp58 bool Maps::ParseLine(const char* line, MapInfo* map_info) { argument
63 if (sscanf(line, "%" SCNx64 "-%" SCNx64 " %4s %" SCNx64 " %*x:%*x %*d %n", &map_info->start,
78 if (line[name_pos] != '\0') {
79 map_info->name = &line[name_pos];
101 char* line = nullptr; local
103 while (getline(&line, &line_len, fp.get()) > 0) {
105 if (!ParseLine(line, &map_info)) {
112 free(line);
127 std::string line; local
130 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/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/tools/hidl/
H A DLocation.h31 inline size_t line() const { return mLine; } function in struct:android::Position
37 // Current line number.
47 return ostr << pos.line() << "." << pos.column();
69 loc.end().line(),
74 } else if (loc.begin().line() != last.line()) {
75 ostr << "-" << last.line() << "." << last.column();
/system/extras/tests/lib/testUtil/
H A DtestUtil.c147 char line[MAXSTR]; local
151 vsnprintf(line, sizeof(line), fmt, args);
153 ALOG(LOG_ERROR, logCatTag, "%s", line);
155 ALOG(LOG_INFO, logCatTag, "%s", line);
311 * Each line of output is indented by a number of spaces that
323 char line[MAXSTR]; local
326 char *linep = line;
330 if (linep != line) {
331 testPrintE("%s", line);
[all...]
/system/bt/embdrv/sbc/decoder/include/
H A Doi_assert.h49 void OI_AssertFail(char* file, int line, char* reason);

Completed in 3728 milliseconds

1234567