/system/media/wilhelm/tools/mphtogen/ |
H A D | mphtogen.c | 27 FILE *fp = fopen(filename, "w"); local 28 assert(NULL != fp); 29 fputs("// This file is automagically generated by mphtogen, do not edit\n", fp); 34 fputc(',', fp); 38 fputc('\n', fp); 41 fprintf(fp, "%3d", MPH_to[i]); 45 fputc('\n', fp); 47 fclose(fp);
|
/system/core/sh/ |
H A D | show.c | 73 shtree(union node *n, int ind, char *pfx, FILE *fp) argument 81 indent(ind, pfx, fp); 92 shtree(n->nbinary.ch1, ind, NULL, fp); 94 fputs(s, fp); 95 shtree(n->nbinary.ch2, ind, NULL, fp); 98 shcmd(n, fp); 100 putc('\n', fp); 104 shcmd(lp->n, fp); 106 fputs(" | ", fp); 109 fputs(" &", fp); 124 shcmd(union node *cmd, FILE *fp) argument 166 sharg(union node *arg, FILE *fp) argument 250 indent(int amount, char *pfx, FILE *fp) argument [all...] |
/system/vold/ |
H A D | Xwarp.cpp | 45 FILE *fp; local 50 if (!(fp = fopen(XWARP_READY, "r"))) { 54 fscanf(fp, "%d", (int *) ready); 55 fclose(fp); 57 if (!(fp = fopen(XWARP_MIRROR_STATUS, "r"))) { 61 fscanf(fp, "%u %u", mirrorPos, maxSize); 62 fclose(fp);
|
H A D | main.cpp | 162 FILE *fp; local 166 if (!(fp = fopen("/etc/vold.fstab", "r"))) { 170 while(fgets(line, sizeof(line), fp)) { 243 fclose(fp); 250 fclose(fp);
|
H A D | VolumeManager.cpp | 858 FILE *fp; local 861 if (!(fp = fopen("/proc/mounts", "r"))) { 873 while(fgets(line, sizeof(line), fp)) { 895 fclose(fp); 981 FILE* fp; local 983 if ((fp = fopen("/proc/sys/vm/dirty_ratio", "r+"))) { 985 if (fgets(line, sizeof(line), fp) && sscanf(line, "%d", &mSavedDirtyRatio)) { 986 fprintf(fp, "%d\n", mUmsDirtyRatio); 990 fclose(fp); 1032 FILE* fp; local 1138 FILE *fp; local [all...] |
H A D | Volume.cpp | 266 FILE *fp; local 269 if (!(fp = fopen("/proc/mounts", "r"))) { 274 while(fgets(line, sizeof(line), fp)) { 278 fclose(fp); 284 fclose(fp);
|
H A D | CommandListener.cpp | 96 FILE *fp = fopen("/proc/mounts", "r"); local 97 if (fp) { 99 while (fgets(line, sizeof(line), fp)) { 103 fclose(fp);
|
/system/core/toolbox/ |
H A D | netstat.c | 92 FILE *fp = fopen(filename, "r"); local 93 if (fp == NULL) { 97 fgets(buf, BUFSIZ, fp); 98 while (fgets(buf, BUFSIZ, fp)){ 115 fclose(fp); 119 FILE *fp = fopen(filename, "r"); local 120 if (fp == NULL) { 124 fgets(buf, BUFSIZ, fp); 125 while (fgets(buf, BUFSIZ, fp)){ 143 fclose(fp); [all...] |
H A D | cat.c | 53 cook_buf(FILE *fp) argument 59 for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) { 127 FILE *fp; local 129 fp = stdin; 134 fp = stdin; 135 else if ((fp = fopen(*argv, 144 cook_buf(fp); 145 if (fp != stdin) 146 fclose(fp);
|
/system/core/nexus/ |
H A D | Controller.cpp | 96 FILE *fp = fopen("/proc/modules", "r"); local 98 if (!fp) { 104 while(fgets(line, sizeof(line), fp)) { 112 fclose(fp); 117 fclose(fp);
|
/system/core/libcutils/ |
H A D | sched_policy.c | 134 FILE *fp; local 137 if (!(fp = fopen(pathBuf, "r"))) { 141 while(fgets(lineBuf, sizeof(lineBuf) -1, fp)) { 173 fclose(fp); 178 fclose(fp); 182 fclose(fp);
|
H A D | open_memstream.c | 227 FILE* fp; local 239 fp = funopen(stream, 241 if (fp == NULL) { 251 return fp; 277 * fp = fopencookie(stream, "w", iofuncs);
|
/system/core/libpixelflinger/ |
H A D | raster.cpp | 105 const GGLFormat* fp = &(c->formats[cb->format]); local 107 + (xs + (cb->stride * ys)) * fp->size; 109 + (xd + (cb->stride * yd)) * fp->size; 110 const size_t bpr = cb->stride * fp->size; 111 const size_t rowsize = width * fp->size;
|
H A D | scanline.cpp | 2206 const GGLFormat* fp = &(c->formats[cb->format]); local 2208 (x + (cb->stride * y)) * fp->size; 2214 (u + (tex->stride * v)) * fp->size; 2216 const size_t size = ct * fp->size; 2259 const GGLFormat* fp = &(c->formats[cb->format]); local 2261 (x + (cb->stride * y)) * fp->size; 2262 const size_t size = ct * fp->size; 2272 const GGLFormat* fp = &(c->formats[cb->format]); local 2274 (x + (cb->stride * y)) * fp->size; 2275 const size_t size = ct * fp 2297 const GGLFormat* fp = &(c->formats[cb->format]); local [all...] |
H A D | trap.cpp | 455 const GGLFormat* fp = &(c->formats[cb->format]); local 457 (x + (cb->stride * y)) * fp->size; 458 const size_t size = ct * fp->size;
|
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 395 FILE *fp; local 405 if ((fp = popen(cmd, "r")) == NULL) { 411 while (fgets(str, sizeof(str), fp) != NULL) { 420 status = pclose(fp);
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 195 FILE *fp; local 198 fp = fopen(data, "r"); 199 if(fp) { 200 x = fgets(data, 1024, fp); 201 fclose(fp); 258 FILE *fp; local 278 fp = fopen(data, "r"); 279 if(fp) { 280 while(fgets(data, 1024, fp)) { 287 fclose(fp); [all...] |
/system/extras/showmap/ |
H A D | showmap.c | 166 FILE *fp; local 173 fp = fopen(fn, "r"); 174 if (fp == 0) { 179 while (fgets(line, sizeof(line), fp) != 0) { 201 fclose(fp);
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 659 FILE *fp; local 662 fp = fopen("/proc/net/route", "r"); 663 if (fp == NULL) 666 if (fscanf(fp, "%*[^\n]\n") < 0) { 667 fclose(fp); 672 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", 693 fclose(fp); 712 FILE *fp; local 714 fp = fopen("/proc/net/route", "r"); 715 if (fp [all...] |
/system/extras/tests/fstest/ |
H A D | perm_checker.c | 155 static int read_rules(FILE *fp) argument 165 while ((res = fscanf(fp, "%s %lo %lo %s %s %s %s\n", spec, 409 FILE *fp; local 422 if (!(fp = fopen(config_file, "r"))) { 426 read_rules(fp); 427 fclose(fp);
|
/system/netd/ |
H A D | BandwidthController.cpp | 610 FILE *fp; local 615 fp = fopen(fname, "r"); 617 if (!fp) { 621 scanRes = fscanf(fp, "%lld", bytes); 623 fclose(fp); 661 FILE *fp; local 665 fp = fopen(fname, "w"); 667 if (!fp) { 671 fprintf(fp, "%lld\n", bytes); 672 fclose(fp); 928 parseForwardChainStats(TetherStats &stats, FILE *fp) argument [all...] |
H A D | CommandListener.cpp | 848 FILE *fp = fopen("/proc/net/dev", "r"); local 849 if (!fp) { 856 fgets(buffer, sizeof(buffer), fp); // Header 1 857 fgets(buffer, sizeof(buffer), fp); // Header 2 858 while(fgets(buffer, sizeof(buffer), fp)) { 878 fclose(fp); 882 fclose(fp);
|
H A D | BandwidthController.h | 124 * fp should be a file to the FORWARD rules of iptables. 126 static int parseForwardChainStats(TetherStats &stats, FILE *fp);
|
/system/extras/tests/wifi/stress/ |
H A D | wifiLoadScanAssoc.c | 127 FILE *fp; local
|