/system/core/adb/ |
adb_auth_host.cpp | 267 FILE* fp = fopen(file, "r"); local 268 if (!fp) { 276 if (!PEM_read_RSAPrivateKey(fp, &key->rsa, NULL, NULL)) { 278 fclose(fp); 284 fclose(fp);
|
/system/core/libcutils/ |
sched_policy.c | 166 FILE *fp; local 169 if (!(fp = fopen(pathBuf, "r"))) { 173 while(fgets(lineBuf, sizeof(lineBuf) -1, fp)) { 205 fclose(fp); 210 fclose(fp); 214 fclose(fp);
|
/system/core/libutils/ |
ProcessCallStack.cpp | 56 FILE* fp; local 59 if ((fp = fopen(path, "r"))) { 60 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 61 fclose(fp); 84 FILE* fp; local 87 if ((fp = fopen(path, "r"))) { 88 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 89 fclose(fp);
|
/system/core/logd/ |
LogStatistics.cpp | 552 FILE *fp = fopen(buffer, "r"); local 553 if (fp) { 554 while (fgets(buffer, sizeof(buffer), fp)) { 557 fclose(fp); 561 fclose(fp);
|
/system/extras/showmap/ |
showmap.cpp | 172 FILE *fp; local 179 fp = fopen(fn, "r"); 180 if (fp == 0) { 185 while (fgets(line, sizeof(line), fp) != 0) { 207 fclose(fp);
|
/system/extras/simpleperf/ |
read_elf.cpp | 58 FILE* fp = fopen(filename.c_str(), mode.c_str()); local 59 if (fp == nullptr) { 62 bool result = IsValidElfFile(fileno(fp)); 63 fclose(fp);
|
/system/extras/tests/lib/testUtil/ |
testUtil.c | 396 FILE *fp; local 406 if ((fp = popen(cmd, "r")) == NULL) { 412 while (fgets(str, sizeof(str), fp) != NULL) { 421 status = pclose(fp);
|
/system/extras/tests/wifi/stress/ |
wifiLoadScanAssoc.c | 128 FILE *fp; local
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/bfin/ |
load.s | 10 FP.L = 0xfedc; 20 fp = 0xff20 (Z); define 32 fp = 44 (X); define 46 Sp = [ fp]; 47 FP = [ p0++ ]; 50 p3 = [fp + 0]; 51 P4 = [FP + 0x0001FFFC]; 52 sp = [fp-0x0001fffc]; 54 P5 = [FP-128]; 63 R4 = [Fp + 40] [all...] |
/toolchain/binutils/binutils-2.25/intl/ |
localealias.c | 97 # define FEOF(fp) feof_unlocked (fp) 98 # define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) 100 # define FEOF(fp) feof (fp) 101 # define FGETS(buf, n, fp) fgets (buf, n, fp) 222 FILE *fp; local 236 fp = fopen (relocate (full_fname), "r") [all...] |
relocatable.c | 308 FILE *fp; local 311 fp = fopen ("/proc/self/maps", "r"); 312 if (fp) 320 if (fscanf (fp, "%lx-%lx", &start, &end) != 2) 325 while (c = getc (fp), c != EOF && c != '\n' && c != '/') 332 ungetc (c, fp); 334 len = getline (&shared_library_fullname, &size, fp); 344 while (c = getc (fp), c != EOF && c != '\n') 347 fclose (fp);
|
/toolchain/binutils/binutils-2.25/opcodes/ |
i960-dis.c | 28 /* 24 */ "g8", "g9", "g10", "g11", "g12", "g13", "g14", "fp", 467 int fp; 712 fp = 1; 717 fp = 0; 738 regop (m1, s1, src, fp); 741 dstop (m3, dst, fp); 744 regop (m1, s1, src, fp); 746 regop (m2, s2, src2, fp); 749 regop (m1, s1, src, fp); 751 dstop (m3, dst, fp); 466 int fp; local [all...] |
/libcore/ojluni/src/main/java/java/text/ |
DecimalFormat.java | 473 * @param fp The java.text.NumberFormat.Field field position 476 private static FieldPosition getIcuFieldPosition(FieldPosition fp) { 477 if (fp.getFieldAttribute() == null) return fp; 480 if (fp.getFieldAttribute() == Field.INTEGER) { 482 } else if (fp.getFieldAttribute() == Field.FRACTION) { 484 } else if (fp.getFieldAttribute() == Field.DECIMAL_SEPARATOR) { 486 } else if (fp.getFieldAttribute() == Field.EXPONENT_SYMBOL) { 488 } else if (fp.getFieldAttribute() == Field.EXPONENT_SIGN) { 490 } else if (fp.getFieldAttribute() == Field.EXPONENT) [all...] |
/art/tools/dmtracedump/ |
createtesttrace.cc | 306 void write2LE(FILE* fp, uint16_t val) { 307 putc(val & 0xff, fp); 308 putc(val >> 8, fp); 311 void write4LE(FILE* fp, uint32_t val) { 312 putc(val & 0xff, fp); 313 putc((val >> 8) & 0xff, fp); 314 putc((val >> 16) & 0xff, fp); 315 putc((val >> 24) & 0xff, fp); 318 void write8LE(FILE* fp, uint64_t val) { 319 putc(val & 0xff, fp); 398 FILE* fp = fopen(traceFileName, "w"); local [all...] |
/bionic/libc/stdio/ |
stdio.cpp | 93 ScopedFileLock(FILE* fp) : fp_(fp) { 129 FILE *fp; local 135 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) 136 if (fp->_flags == 0) 147 fp = g->iobs; 149 fp->_flags = 1; /* reserve this slot; caller sets real flags */ 151 fp->_p = NULL; /* no current pointer */ 152 fp->_w = 0; /* nothing to read or write * 184 FILE* fp = __sfp(); local 207 FILE* fp = __fopen(fd, flags); local 396 FILE* fp = reinterpret_cast<FILE*>(cookie); local 401 FILE* fp = reinterpret_cast<FILE*>(cookie); local 412 FILE* fp = reinterpret_cast<FILE*>(cookie); local 417 FILE* fp = reinterpret_cast<FILE*>(cookie); local 422 FILE* fp = reinterpret_cast<FILE*>(cookie); local 558 FILE* fp = __sfp(); local 583 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); local 595 FILE* fp = __funopen(cookie, read_fn, write_fn, close_fn); local [all...] |
/bionic/tests/ |
stdio_test.cpp | 49 FILE* fp = fopen("/dev/null", "w"); local 50 ASSERT_TRUE(fp != NULL); 51 flockfile(fp); 52 feof(fp); 53 funlockfile(fp); 54 fclose(fp); 58 FILE* fp = tmpfile(); local 59 ASSERT_TRUE(fp != NULL); 61 int fd = fileno(fp); 69 rc = fprintf(fp, "hello\n") 83 FILE* fp = tmpfile64(); local 107 FILE* fp = tmpfile(); local 142 FILE* fp = tmpfile(); local 167 FILE* fp = fopen("\/proc", "r"); local 176 FILE* fp = tmpfile(); local 218 FILE* fp = tmpfile(); local 573 FILE* fp; local 595 FILE* fp = popen("cat \/proc\/version", "r"); local 607 FILE* fp = fopen("\/proc\/version", "r"); local 618 FILE* fp = fopen("\/proc\/version", "r"); local 637 FILE* fp = fopen("\/proc\/version", "r"); local 679 FILE* fp = tmpfile(); local 749 FILE* fp = fdopen(tf.fd, "w+"); local 802 FILE* fp = fmemopen(buf, sizeof(buf), "r+"); local 820 FILE* fp = fmemopen(nullptr, 128, "r+"); local 850 FILE* fp = open_memstream(&p, &size); local 887 FILE* fp = fdopen(fd, "re"); local 900 FILE* fp = fopen("\/proc\/version", "r"); local 919 FILE* fp = fopen64("\/proc\/version", "r"); local 929 FILE* fp = fopen("\/dev\/zero", "r"); local 959 FILE* fp = fmemopen(&digits[0], digits.size(), "r"); local 981 FILE* fp = fopen("\/dev\/null", "w"); local 1002 FILE* fp = fdopen(tf.fd, "w+"); local 1036 FILE* fp = fopen(tf.filename, "w+"); local 1123 FILE* fp = funopen(nullptr, read_fn, nullptr, nullptr, nullptr); local 1164 FILE* fp = funopen(nullptr, read_fn, nullptr, seek_fn, nullptr); local 1192 FILE* fp = fopen(tf->filename, "w+"); local 1231 FILE* fp = fdopen(tf.fd, "w+"); local 1274 FILE* fp = fdopen(tf.fd, "w+"); local [all...] |
/bootable/recovery/ |
wear_ui.cpp | 502 void WearRecoveryUI::ShowFile(FILE* fp) { 504 offsets.push_back(ftell(fp)); 508 fstat(fileno(fp), &sb); 514 static_cast<int>(100 * (double(ftell(fp)) / double(sb.st_size))), 527 fseek(fp, offsets.back(), SEEK_SET); 530 if (feof(fp)) { 533 offsets.push_back(ftell(fp)); 539 int ch = getc(fp); 564 FILE* fp = fopen_path(filename, "re"); local 565 if (fp == nullptr) [all...] |
/device/generic/goldfish/fingerprint/ |
fingerprint.c | 98 FILE* fp = openForWrite(listener->fp_filename); local 99 if (fp == NULL) { 110 if (fseek(fp, (idx) * sizeof(uint64_t), SEEK_SET) < 0) { 113 fclose(fp); 116 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp); 118 if (fseek(fp, (MAX_NUM_FINGERS + idx) * sizeof(uint64_t), SEEK_SET) < 0) { 121 fclose(fp); 124 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp); 129 fclose(fp); 138 FILE* fp = fopen(filename, "r+"); // write but don't truncat 157 FILE* fp = openForWrite(filename); local 177 FILE* fp = fopen(authid_filename, "r"); local 201 FILE* fp = fopen(listener->fp_filename, "r"); local [all...] |
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpeg_test.c | 45 FILE *fp = fopen(filename, "w+"); \ 46 if (fp) { \ 47 fwrite(p_addr, 1, len, fp); \ 48 fclose(fp); \ 222 FILE *fp = NULL; local 224 fp = fopen(p_obj->filename[idx], "rb"); 225 if (!fp) { 229 fseek(fp, 0, SEEK_END); 230 file_size = (size_t)ftell(fp); 231 fseek(fp, 0, SEEK_SET) [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpeg_test.c | 45 FILE *fp = fopen(filename, "w+"); \ 46 if (fp) { \ 47 fwrite(p_addr, 1, len, fp); \ 48 fclose(fp); \ 222 FILE *fp = NULL; local 224 fp = fopen(p_obj->filename[idx], "rb"); 225 if (!fp) { 229 fseek(fp, 0, SEEK_END); 230 file_size = (size_t)ftell(fp); 231 fseek(fp, 0, SEEK_SET) [all...] |
/device/lge/bullhead/power/ |
power.c | 570 FILE *fp; local 576 fp = fopen(file, "r"); 577 if (fp == NULL) { 584 ((read = getline(&line, &len, fp) != -1) && (index < num_parameters)); 615 fclose(fp);
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpeg_test.c | 45 FILE *fp = fopen(filename, "w+"); \ 46 if (fp) { \ 47 fwrite(p_addr, 1, len, fp); \ 48 fclose(fp); \ 222 FILE *fp = NULL; local 224 fp = fopen(p_obj->filename[idx], "rb"); 225 if (!fp) { 229 fseek(fp, 0, SEEK_END); 230 file_size = ftell(fp); 231 fseek(fp, 0, SEEK_SET) [all...] |
/external/boringssl/src/crypto/err/ |
err.c | 579 FILE* fp = ctx; local 580 int res = fputs(msg, fp);
|
/external/clang/test/Analysis/ |
taint-tester.c | 87 FILE *fp; local 97 if((fp=fopen("test", "w")) == 0) // expected-warning + {{tainted}} 99 fprintf(fp, "%s %d", s, t); // expected-warning + {{tainted}} 100 fclose(fp); // expected-warning + {{tainted}} 103 if((fp=fopen("test","r")) == 0) // expected-warning + {{tainted}} 105 fscanf(fp, "%s%d", s, &t); // expected-warning + {{tainted}} 161 FILE *fp; local
|
/external/clang/test/SemaCXX/ |
cstyle-cast.cpp | 37 f fp = 0; local 39 f *fpp = (f*)(&fp); 207 fnptr fp = 0; local 208 (void)(fnptr2)(fp); 209 void *vp = (void*)(fp);
|