Searched refs:line_len (Results 1 – 3 of 3) sorted by relevance
/system/logging/logwrapper/ |
D | logwrap.cpp | 107 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/ |
D | test_http_server.cc | 230 const size_t line_len) { in WritePayload() argument 232 CHECK_GT(line_len, static_cast<size_t>(0)); in WritePayload() 234 LOG(INFO) << "writing payload: " << line_len << "-byte lines starting with `" in WritePayload() 240 line.reserve(line_len); in WritePayload() 243 for (i = 0; i < line_len; i++) in WritePayload() 252 size_t start_modulo = start_offset % line_len; in WritePayload() 261 while (success && remaining_len >= line_len) { in WritePayload() 263 if ((success = (ret >= 0 && static_cast<size_t>(ret) == line_len))) in WritePayload() 264 remaining_len -= line_len; in WritePayload()
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 593 ssize_t line_len; in ForEachVmaFromFile() local 596 while ((line_len = getline(&line, &line_alloc, fp.get())) > 0) { in ForEachVmaFromFile() 598 line[line_len] = '\0'; in ForEachVmaFromFile()
|