/system/extras/memory_replay/tests/ |
LineBufferTest.cpp | 50 size_t line_len; local 51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 53 ASSERT_EQ(sizeof("Single line with newline.") - 1, line_len); 55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); 69 size_t line_len; local 70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 72 ASSERT_EQ(sizeof("Single line with no newline.") - 1, line_len); 74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); 90 size_t line_len; local 91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 119 size_t line_len; local 149 size_t line_len; local 184 size_t line_len; local 219 size_t line_len; local [all...] |
/external/selinux/libselinux/src/ |
selinux_check_securetty_context.c | 13 size_t line_len = 0; local 22 while ((len = getline(&line, &line_len, fp)) != -1) {
|
/hardware/qcom/gps/msm8960/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 93 char rd_hw_platform[LINE_LEN]; 94 char rd_id[LINE_LEN]; 95 char rd_mdm[LINE_LEN]; 96 char baseband[LINE_LEN]; 99 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 100 read_a_line( id, rd_id, LINE_LEN); 117 if (!read_a_line( mdm, rd_mdm, LINE_LEN))
|
/system/core/libmemunreachable/ |
LineBuffer.cpp | 29 bool LineBuffer::GetLine(char** line, size_t* line_len) { 38 *line_len = newline - *line; 53 *line_len = bytes_;
|
ProcessMappings.cpp | 40 size_t line_len; local 41 while (line_buf.GetLine(&line, &line_len)) { 59 if ((size_t)name_pos < line_len) {
|
LineBuffer.h | 26 bool GetLine(char** line, size_t* line_len);
|
/system/extras/memory_replay/ |
LineBuffer.cpp | 26 bool LineBuffer::GetLine(char** line, size_t* line_len) { 35 *line_len = newline - *line; 50 *line_len = bytes_;
|
LineBuffer.h | 26 bool GetLine(char** line, size_t* line_len);
|
/prebuilts/go/darwin-x86/test/bench/shootout/ |
fasta.c | 58 #define LINE_LEN 60 87 char buffer[len + LINE_LEN]; 91 memcpy(buffer + len, alu, LINE_LEN); 95 int bytes = n > LINE_LEN ? LINE_LEN : n; 144 char line_buffer[LINE_LEN + 1]; 147 line_buffer[LINE_LEN] = '\n'; 154 if (j == LINE_LEN) { 155 fwrite_unlocked(line_buffer, LINE_LEN + 1, 1, stdout);
|
/prebuilts/go/linux-x86/test/bench/shootout/ |
fasta.c | 58 #define LINE_LEN 60 87 char buffer[len + LINE_LEN]; 91 memcpy(buffer + len, alu, LINE_LEN); 95 int bytes = n > LINE_LEN ? LINE_LEN : n; 144 char line_buffer[LINE_LEN + 1]; 147 line_buffer[LINE_LEN] = '\n'; 154 if (j == LINE_LEN) { 155 fwrite_unlocked(line_buffer, LINE_LEN + 1, 1, stdout);
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
proc_cpuinfo_reader.h | 57 unsigned line_len; local 65 if (!line_reader_.GetNextLine(&line, &line_len)) 68 pop_count_ = static_cast<int>(line_len); 70 const char* line_end = line + line_len; 77 char* sep = static_cast<char*>(my_memchr(line, ':', line_len));
|
/device/google/marlin/dataservices/datatop/src/ |
datatop_meminfo_file_poll.c | 112 int *line_len = malloc(sizeof(int) * local 127 line_len[n] = dt_read_line(((struct dtop_meminfo_vars *) 133 sum += (line_len[n] + 1); 141 (dpg->priv))->line[i], line_len[i], i, &dict); 161 free(line_len); 223 int *line_len = malloc(sizeof(int) * storage->line_count); local 240 line_len[n] = dt_read_line(storage->line[n], 244 sum += (line_len[n] + 1); 250 line_len[i], i, &dict); 267 free(line_len); [all...] |
datatop_single_line_poll.c | 73 int *line_len = malloc(sizeof(int) * local 88 line_len[n] = dt_read_line(((struct dtop_single_line_vars *) 94 sum += (line_len[n] + 1); 103 (dpg->priv))->line[i], line_len[i], i, &dict); 114 free(line_len); 178 int *line_len = malloc(sizeof(int) * storage->line_count); local 195 line_len[n] = dt_read_line(storage->line[n], 199 sum += (line_len[n] + 1); 205 line_len[i], i, &dict); 225 free(line_len); [all...] |
datatop_dual_line_poll.c | 76 int *line_len = malloc(sizeof(int) * local 101 line_len[n] = dt_read_line(((struct dtop_dual_line_vars *) 111 sum += (line_len[n] + 1); 122 line_len[2*i], 125 line_len[(2*i)+1], 151 free(line_len); 222 int *line_len = malloc(sizeof(int) * storage->line_count); local 247 line_len[n] = dt_read_line(storage->line[n], 254 sum += (line_len[n] + 1); 262 dt_parse_proc_dictionary(storage->line[2*i], line_len[2*i] [all...] |
datatop_value_only_poll.c | 59 int line_len; local 75 line_len = dt_read_line(line, DTOP_SINGLE_LINE, data, 79 dt_single_line_parse(line, line_len, &dict); 146 int line_len; local 158 line_len = dt_read_line(line, 163 dt_single_line_parse(line, line_len, &dict);
|
datatop_dev_poll.c | 112 int *line_len = malloc(sizeof(int) * local 131 line_len[n] = dt_read_line(((struct dtop_dev_vars *) 137 sum += (line_len[n] + 1); 145 (dpg->priv))->line[n], line_len[n], 162 free(line_len); 235 int *line_len = malloc(sizeof(int) * storage->line_count); local 274 line_len[n] = dt_read_line(storage->line[n], 278 sum += (line_len[n] + 1); 284 dt_dev_parse(storage->line[n], line_len[n], index, &dict); 306 free(line_len); [all...] |
datatop_stat_poll.c | 119 int *line_len = malloc(sizeof(int) * local 135 line_len[n] = dt_read_line(((struct dtop_stat_vars *) 141 sum += (line_len[n] + 1); 149 (dpg->priv))->line[i], line_len[i], i, dp_count, &dict); 158 free(line_len); 224 int *line_len = malloc(sizeof(int) * storage->line_count); local 245 line_len[n] = dt_read_line(storage->line[n], 249 sum += (line_len[n] + 1); 258 line_len[i], i, dp_count, &dict); 304 free(line_len); [all...] |
datatop_gen_poll.c | 66 int line_len; local 70 line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0); 76 if (line_len < 1) { 82 for (i = 0; i < line_len; i++) { 104 int line_len; local 109 line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0); 114 dt_single_line_parse(line, line_len, &dict);
|
/hardware/qcom/gps/msm8084/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 188 char rd_hw_platform[LINE_LEN]; 189 char rd_id[LINE_LEN]; 190 char rd_mdm[LINE_LEN]; 191 char baseband[LINE_LEN]; 201 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 203 read_a_line(hw_platform_dep, rd_hw_platform, LINE_LEN); 206 read_a_line(id, rd_id, LINE_LEN); 208 read_a_line(id_dep, rd_id, LINE_LEN); 226 if (!read_a_line( mdm, rd_mdm, LINE_LEN)) [all...] |
/hardware/qcom/gps/msm8909/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 189 char rd_hw_platform[LINE_LEN]; 190 char rd_id[LINE_LEN]; 191 char rd_mdm[LINE_LEN]; 192 char baseband[LINE_LEN]; 202 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 204 read_a_line(hw_platform_dep, rd_hw_platform, LINE_LEN); 207 read_a_line(id, rd_id, LINE_LEN); 209 read_a_line(id_dep, rd_id, LINE_LEN); 232 if (!read_a_line( mdm, rd_mdm, LINE_LEN)) [all...] |
/hardware/qcom/gps/msm8994/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 189 char rd_hw_platform[LINE_LEN]; 190 char rd_id[LINE_LEN]; 191 char rd_mdm[LINE_LEN]; 192 char baseband[LINE_LEN]; 202 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 204 read_a_line(hw_platform_dep, rd_hw_platform, LINE_LEN); 207 read_a_line(id, rd_id, LINE_LEN); 209 read_a_line(id_dep, rd_id, LINE_LEN); 232 if (!read_a_line( mdm, rd_mdm, LINE_LEN)) [all...] |
/hardware/qcom/gps/msm8996/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 189 char rd_hw_platform[LINE_LEN]; 190 char rd_id[LINE_LEN]; 191 char rd_mdm[LINE_LEN]; 192 char baseband[LINE_LEN]; 202 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 204 read_a_line(hw_platform_dep, rd_hw_platform, LINE_LEN); 207 read_a_line(id, rd_id, LINE_LEN); 209 read_a_line(id_dep, rd_id, LINE_LEN); 232 if (!read_a_line( mdm, rd_mdm, LINE_LEN)) [all...] |
/hardware/qcom/gps/utils/ |
loc_target.cpp | 51 #define LINE_LEN 100 189 char rd_hw_platform[LINE_LEN]; 190 char rd_id[LINE_LEN]; 191 char rd_mdm[LINE_LEN]; 192 char baseband[LINE_LEN]; 202 read_a_line(hw_platform, rd_hw_platform, LINE_LEN); 204 read_a_line(hw_platform_dep, rd_hw_platform, LINE_LEN); 207 read_a_line(id, rd_id, LINE_LEN); 209 read_a_line(id_dep, rd_id, LINE_LEN); 232 if (!read_a_line( mdm, rd_mdm, LINE_LEN)) [all...] |
/external/wpa_supplicant_8/src/utils/ |
base64.c | 35 int line_len; local 49 line_len = 0; 58 line_len += 4; 59 if (line_len >= 72) { 61 line_len = 0; 76 line_len += 4; 79 if (line_len)
|
/system/core/logwrapper/ |
logwrap.c | 105 char *line, ssize_t line_len) 109 if ((line_len + b_buf->used_len) > b_buf->buf_size) { 113 memcpy(b_buf->buf + b_buf->used_len, line, line_len); 114 b_buf->used_len += line_len; 121 char *line, ssize_t line_len) 131 if (line_len > e_buf->buf_size) { 137 if (line_len > free_len) { 140 needed_space = line_len - free_len; 148 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); 150 if (cnt < line_len) { [all...] |