Searched refs:line_buf (Results 1 – 5 of 5) sorted by relevance
/system/extras/memory_replay/tests/ |
D | LineBufferTest.cpp | 47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() local 51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F() 55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F() 66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() local 70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F() 74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); in TEST_F() 87 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() local 91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F() 95 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F() 99 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); in TEST_F() [all …]
|
/system/sepolicy/tools/fc_sort/ |
D | fc_sort.c | 333 char *input_name, *output_name, *line_buf; in main() local 368 line_buf = NULL; in main() 370 while ( getline(&line_buf, &buf_len, in_file) != -1 ){ in main() 371 line_len = strlen(line_buf); in main() 378 if (!isspace(line_buf[i])) in main() 386 if (line_buf[i] == '#') in main() 392 free(line_buf); in main() 401 while (i < line_len && (!isspace(line_buf[i]))) in main() 413 temp->path = (char*)strndup(&line_buf[start], regex_len); in main() 417 free(line_buf); in main() [all …]
|
/system/extras/memory_replay/ |
D | main.cpp | 40 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer)); in GetMaxAllocs() local 44 while (line_buf.GetLine(&line, &line_len)) { in GetMaxAllocs() 81 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer)); in ProcessDump() local 85 while (line_buf.GetLine(&line, &line_len)) { in ProcessDump()
|
D | NativeInfo.cpp | 37 LineBuffer line_buf(smaps_fd, map_buffer, sizeof(map_buffer)); in GetNativeInfo() local 43 while (line_buf.GetLine(&line, &line_len)) { in GetNativeInfo()
|
/system/sepolicy/tools/ |
D | check_seapp.c | 1075 char line_buf[BUFSIZ]; in parse_file() local 1078 while (fgets(line_buf, sizeof(line_buf) - 1, in_file->file)) { in parse_file() 1083 len = strlen(line_buf); in parse_file() 1084 if (line_buf[len - 1] == '\n') in parse_file() 1085 line_buf[len - 1] = '\0'; in parse_file() 1086 p = line_buf; in parse_file()
|