HomeSort by relevance Sort by last modified time
    Searched refs:line_buf (Results 1 - 25 of 34) sorted by null

1 2

  /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/libsepol/include/sepol/policydb/
util.h 41 extern int tokenize(char *line_buf, char delim, 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...]
  /external/selinux/libselinux/src/
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_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);
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_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);
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/extras/memory_replay/
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)) {
NativeInfo.cpp 35 LineBuffer line_buf(smaps_fd, map_buffer, sizeof(map_buffer));
41 while (line_buf.GetLine(&line, &line_len)) {
  /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...]
  /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/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...]
  /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);
  /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);