Home
last modified time | relevance | path

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

/system/extras/memory_replay/tests/
DLineBufferTest.cpp50 size_t line_len; in TEST_F() local
51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
53 ASSERT_EQ(sizeof("Single line with newline.") - 1, line_len); in TEST_F()
55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F()
69 size_t line_len; in TEST_F() local
70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
72 ASSERT_EQ(sizeof("Single line with no newline.") - 1, line_len); in TEST_F()
74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F()
90 size_t line_len; in TEST_F() local
91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F()
[all …]
/system/sepolicy/tools/fc_sort/
Dfc_sort.c318 size_t line_len, buf_len, i, j; in main() local
355 line_len = strlen(line_buf); in main()
356 if( line_len == 0 || line_len == 1) in main()
359 for (i = 0; i < line_len; i++) { in main()
365 if (i >= line_len) in main()
384 while (i < line_len && (!isspace(line_buf[i]))) in main()
408 for (; i < line_len; i++) { in main()
414 if (i == line_len) { in main()
429 if( i + 2 >= line_len ) { in main()
443 for (; i < line_len; i++) { in main()
[all …]
/system/extras/memory_replay/
Dmain.cpp42 size_t line_len; 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()
83 size_t line_len; in ProcessDump() local
85 while (line_buf.GetLine(&line, &line_len)) { in ProcessDump()
DLineBuffer.cpp26 bool LineBuffer::GetLine(char** line, size_t* line_len) { in GetLine() argument
35 *line_len = newline - *line; in GetLine()
50 *line_len = bytes_; in GetLine()
DNativeInfo.cpp39 size_t line_len; in GetNativeInfo() local
41 while (line_buf.GetLine(&line, &line_len)) { in GetNativeInfo()
DLineBuffer.h26 bool GetLine(char** line, size_t* line_len);
/system/core/libmemunreachable/
DLineBuffer.cpp29 bool LineBuffer::GetLine(char** line, size_t* line_len) { in GetLine() argument
38 *line_len = newline - *line; in GetLine()
53 *line_len = bytes_; in GetLine()
DProcessMappings.cpp40 size_t line_len; in ProcessMappings() local
41 while (line_buf.GetLine(&line, &line_len)) { in ProcessMappings()
59 if ((size_t)name_pos < line_len) { in ProcessMappings()
DLineBuffer.h26 bool GetLine(char** line, size_t* line_len);
/system/core/logwrapper/
Dlogwrap.c105 char *line, ssize_t line_len) in add_line_to_linear_buf() argument
109 if ((line_len + b_buf->used_len) > b_buf->buf_size) { in add_line_to_linear_buf()
113 memcpy(b_buf->buf + b_buf->used_len, line, line_len); in add_line_to_linear_buf()
114 b_buf->used_len += line_len; in add_line_to_linear_buf()
121 char *line, ssize_t line_len) in add_line_to_circular_buf() argument
131 if (line_len > e_buf->buf_size) { in add_line_to_circular_buf()
137 if (line_len > free_len) { in add_line_to_circular_buf()
140 needed_space = line_len - free_len; in add_line_to_circular_buf()
148 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf()
150 if (cnt < line_len) { in add_line_to_circular_buf()
[all …]
/system/update_engine/
Dtest_http_server.cc223 const char first_byte, const size_t line_len) { in WritePayload() argument
225 CHECK_GT(line_len, static_cast<size_t>(0)); in WritePayload()
227 LOG(INFO) << "writing payload: " << line_len << "-byte lines starting with `" in WritePayload()
233 line.reserve(line_len); in WritePayload()
236 for (i = 0; i < line_len; i++) in WritePayload()
245 size_t start_modulo = start_offset % line_len; in WritePayload()
254 while (success && remaining_len >= line_len) { in WritePayload()
256 if ((success = (ret >= 0 && (size_t) ret == line_len))) in WritePayload()
257 remaining_len -= line_len; in WritePayload()