Home
last modified time | relevance | path

Searched refs:line_len (Results 1 – 3 of 3) sorted by relevance

/system/core/logwrapper/
Dlogwrap.cpp107 static int add_line_to_linear_buf(struct beginning_buf* b_buf, char* line, ssize_t line_len) { in add_line_to_linear_buf() argument
110 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf()
114 memcpy(b_buf->buf + b_buf->used_len, line, line_len); in add_line_to_linear_buf()
115 b_buf->used_len += line_len; in add_line_to_linear_buf()
121 static void add_line_to_circular_buf(struct ending_buf* e_buf, char* line, ssize_t line_len) { in add_line_to_circular_buf() argument
130 if (line_len > e_buf->buf_size) { in add_line_to_circular_buf()
136 if (line_len > free_len) { in add_line_to_circular_buf()
139 needed_space = line_len - free_len; in add_line_to_circular_buf()
147 cnt = std::min(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf()
149 if (cnt < line_len) { in add_line_to_circular_buf()
[all …]
/system/update_engine/
Dtest_http_server.cc229 const size_t line_len) { in WritePayload() argument
231 CHECK_GT(line_len, static_cast<size_t>(0)); in WritePayload()
233 LOG(INFO) << "writing payload: " << line_len << "-byte lines starting with `" in WritePayload()
239 line.reserve(line_len); in WritePayload()
242 for (i = 0; i < line_len; i++) in WritePayload()
251 size_t start_modulo = start_offset % line_len; in WritePayload()
260 while (success && remaining_len >= line_len) { in WritePayload()
262 if ((success = (ret >= 0 && (size_t)ret == line_len))) in WritePayload()
263 remaining_len -= line_len; in WritePayload()
/system/memory/libmeminfo/
Dprocmeminfo.cpp442 ssize_t line_len; in ForEachVmaFromFile() local
445 while ((line_len = getline(&line, &line_alloc, fp.get())) > 0) { in ForEachVmaFromFile()
447 line[line_len] = '\0'; in ForEachVmaFromFile()