/system/extras/memory_replay/tests/ |
LineBufferTest.cpp | 47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); 51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); 66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); 70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len)); 87 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); 91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 95 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)); 99 ASSERT_TRUE(line_buf.GetLine(&line, &line_len)) [all...] |
/external/selinux/libselinux/src/ |
label_media.c | 33 static int process_line(const char *path, char *line_buf, int pass, 41 buf_p = line_buf; 47 items = sscanf(line_buf, "%ms %ms ", &key, &context); 76 char *line_buf = NULL; local 117 while (getline(&line_buf, &line_len, fp) > 0 && 119 if (process_line(path, line_buf, pass, ++lineno, rec)) 137 free(line_buf);
|
label_support.c | 56 * line_buf - Buffer containing the spec entries . 66 int hidden read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...) 74 len = strlen(line_buf); 75 if (line_buf[len - 1] == '\n') 76 line_buf[len - 1] = '\0'; 83 buf_p = line_buf; 98 if (len - 1 == buf_p - line_buf) {
|
label_x.c | 35 static int process_line(const char *path, char *line_buf, int pass, 43 buf_p = line_buf; 49 items = sscanf(line_buf, "%ms %ms %ms ", &type, &key, &context); 103 char *line_buf = NULL; local 144 while (getline(&line_buf, &line_len, fp) > 0 && 146 if (process_line(path, line_buf, pass, ++lineno, rec)) 164 free(line_buf);
|
label_backends_android.c | 84 const char *path, char *line_buf, 94 items = read_spec_entries(line_buf, &errbuf, 2, &prop, &context); 143 char line_buf[BUFSIZ]; local 173 while (fgets(line_buf, sizeof(line_buf) - 1, fp) && 175 if (process_line(rec, path, line_buf, pass, ++lineno))
|
selinux_config.c | 160 char *line_buf = NULL, *buf_p, *value, *type = NULL, *end; local 169 while ((len = getline(&line_buf, &line_len, fp)) > 0) { 170 if (line_buf[len - 1] == '\n') 171 line_buf[len - 1] = 0; 172 buf_p = line_buf; 211 free(line_buf);
|
label_db.c | 91 process_line(const char *path, char *line_buf, unsigned int line_num, 99 temp = strchr(line_buf, '#'); 108 items = sscanf(line_buf, "%ms %ms %ms %ms", 243 char *line_buf = NULL; local 298 while (getline(&line_buf, &line_len, filp) > 0) { 320 if (process_line(path, line_buf, ++line_num, catalog) < 0) 323 free(line_buf);
|
booleans.c | 93 char *line_buf = NULL; local 104 while (getline(&line_buf, &line_len, cfg) != -1) { 106 char *src = line_buf; 136 free(line_buf);
|
label_internal.h | 153 extern int read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...);
|
/system/sepolicy/tools/fc_sort/ |
fc_sort.c | 319 char *input_name, *output_name, *line_buf; local 352 line_buf = NULL; 355 while ( getline(&line_buf, &buf_len, in_file) != -1 ){ 356 line_len = strlen(line_buf); 361 if (!isspace(line_buf[i])) 369 if (line_buf[i] == '#') 385 while (i < line_len && (!isspace(line_buf[i]))) 400 temp->path = (char*)strndup(&line_buf[start], regex_len); 411 if (!isspace(line_buf[i])) 423 if (line_buf[i] == '-') [all...] |
/system/core/libmemunreachable/ |
ProcessMappings.cpp | 40 LineBuffer line_buf(fd, map_buffer, sizeof(map_buffer)); 43 while (line_buf.GetLine(&line, &line_len)) {
|
/external/v8/src/ |
utils.cc | 155 char line_buf[256]; local 161 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) { 168 int len = StrLength(line_buf); 170 line_buf[len - 2] == '\\' && 171 line_buf[len - 1] == '\n') { 174 line_buf[len - 2] = '\n'; 175 line_buf[len - 1] = 0; 177 } else if ((len > 0) && (line_buf[len - 1] == '\n')) { 196 MemCopy(result + offset, line_buf, len * kCharSize) [all...] |
/system/extras/memory_replay/ |
NativeInfo.cpp | 35 LineBuffer line_buf(smaps_fd, map_buffer, sizeof(map_buffer)); 41 while (line_buf.GetLine(&line, &line_len)) {
|
main.cpp | 40 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer)); 44 while (line_buf.GetLine(&line, &line_len)) { 81 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer)); 85 while (line_buf.GetLine(&line, &line_len)) {
|
/external/selinux/libsepol/include/sepol/policydb/ |
util.h | 41 extern int tokenize(char *line_buf, char delim, int num_args, ...);
|
/external/selinux/restorecond/ |
watch.c | 220 char *line_buf = NULL; local 223 while (getline(&line_buf, &len, cfg) > 0) { 224 char *buffer = line_buf; 248 free(line_buf);
|
/external/selinux/libsepol/src/ |
util.c | 240 * line_buf - Buffer containing string to tokenize. 241 * delim - The delimiter used to tokenize line_buf. A whitespace delimiter will 250 * contain the remaining content of line_buf. If the delimiter is any whitespace 253 int hidden tokenize(char *line_buf, char delim, int num_args, ...) 260 buf_p = line_buf;
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
TensorFFT.h | 220 ComplexScalar* line_buf = (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * line_len); local 253 // get data into line_buf 256 memcpy(line_buf, &buf[base_offset], line_len*sizeof(ComplexScalar)); 260 line_buf[j] = buf[offset]; 266 processDataLineCooleyTukey(line_buf, line_len, log_len); 269 processDataLineBluestein(line_buf, line_len, good_composite, log_len, a, b, pos_j_base_powered); 274 memcpy(&buf[base_offset], line_buf, line_len*sizeof(ComplexScalar)); 279 buf[offset] = (FFTDir == FFT_FORWARD) ? line_buf[j] : line_buf[j] * div_factor; 283 m_device.deallocate(line_buf); [all...] |
/system/nfc/halimpl/bcm2079x/adaptation/ |
android_logmsg.cpp | 55 char line_buf[(MAX_NCI_PACKET_SIZE * 2) + 1]; local 56 ToHex(nciPacket, nciPacketLen, line_buf, sizeof(line_buf)); 58 line_buf);
|
/system/nfc/src/adaptation/ |
android_logmsg.cpp | 56 char line_buf[(MAX_NCI_PACKET_SIZE * 2) + 1]; local 57 ToHex(nciPacket, nciPacketLen, line_buf, sizeof(line_buf)); 59 line_buf);
|
/toolchain/binutils/binutils-2.25/opcodes/ |
opc2c.c | 29 static char * line_buf = NULL; variable 39 if (line_buf == NULL) 41 line_buf = (char *) malloc (LBUFINCR); 46 line_ptr = line_buf + line_buf_size - 1; 50 if (fgets (line_buf, line_buf_size, f) == 0) 58 line_buf = (char *) realloc (line_buf, line_buf_size); 61 line_ptr = line_buf + line_buf_size - 1; 65 if (fgets (line_buf + line_buf_size - LBUFINCR - 1, LBUFINCR + 1, f) == 0) 69 return line_buf; [all...] |
/external/selinux/libsemanage/src/ |
semanage_store.c | 2483 const char *line_buf, *line_end; local 2825 const char *line_buf, *line_end; local [all...] |
/external/pdfium/core/fxcodec/codec/ |
fx_codec_jpeg.cpp | 540 uint8_t* line_buf = nullptr; local 542 line_buf = FX_Alloc2D(uint8_t, width, nComponents); 551 uint8_t* dest_scan = line_buf; 565 row_pointer[0] = line_buf; 581 FX_Free(line_buf);
|
/external/e2fsprogs/misc/ |
badblocks.c | 218 char diff_buf[32], line_buf[128]; local 222 len = snprintf(line_buf, sizeof(line_buf), 232 len = mbstowcs(NULL, line_buf, sizeof(line_buf)); 234 fputs(line_buf, stderr); 235 memset(line_buf, '\b', len); 236 line_buf[len] = 0; 237 fputs(line_buf, stderr); [all...] |
/external/selinux/libselinux/utils/ |
sefcontext_compile.c | 36 char *line_buf = NULL; local 50 while (getline(&line_buf, &line_len, context_file) > 0) { 51 rc = process_line(rec, filename, prefix, line_buf, ++line_num); 63 free(line_buf);
|