Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 52) sorted by relevance

123

/system/core/libcutils/
Ddir_hash.c70 FILE *f = fopen(path, "rb"); in get_file_hash() local
73 if (f == NULL) { in get_file_hash()
79 while ((len = fread(buf, 1, sizeof(buf), f)) > 0) { in get_file_hash()
83 if (ferror(f)) { in get_file_hash()
84 fclose(f); in get_file_hash()
88 fclose(f); in get_file_hash()
132 struct list *f; in recurse() local
154 for (f = list; f != NULL; f = next) { in recurse()
155 next = f->next; in recurse()
156 free(f->name); in recurse()
[all …]
/system/core/adb/
Dsysdeps_win32.c81 void (*_fh_init) ( FH f );
82 int (*_fh_close)( FH f );
83 int (*_fh_lseek)( FH f, int pos, int origin );
84 int (*_fh_read) ( FH f, void* buf, int len );
85 int (*_fh_write)( FH f, const void* buf, int len );
86 void (*_fh_hook) ( FH f, int events, EventHook hook );
126 FH f; in _fh_from_int() local
136 f = &_win32_fhs[fd]; in _fh_from_int()
138 if (f->used == 0) { in _fh_from_int()
144 return f; in _fh_from_int()
[all …]
Dusb_vendors.c83 FILE * f = fopen(temp, "rt"); in usb_vendors_init() local
85 if (f != NULL) { in usb_vendors_init()
88 while (fgets(temp, sizeof(temp), f) != NULL) { in usb_vendors_init()
/system/core/libzipfile/
Dtest_zipfile.c11 FILE* f; in main() local
34 f = fopen(argv[1], "r"); in main()
35 if (f == NULL) { in main()
40 fseek(f, 0, SEEK_END); in main()
41 size = ftell(f); in main()
42 rewind(f); in main()
45 fread(buf, 1, size, f); in main()
53 fclose(f); in main()
68 f = fopen(argv[4], "w"); in main()
69 if (f == NULL) { in main()
[all …]
/system/extras/latencytop/
Dlatencytop.c51 static struct latency_entry *read_latency_file(FILE *f, struct latency_entry *list);
52 static void erase_latency_file(FILE *f);
175 FILE *f; in read_global_stats() local
179 f = fopen(GLOBAL_STATS_FILE, "w"); in read_global_stats()
180 if (!f) { in read_global_stats()
184 fprintf(f, "erase\n"); in read_global_stats()
185 fclose(f); in read_global_stats()
188 f = fopen(GLOBAL_STATS_FILE, "r"); in read_global_stats()
189 if (!f) { in read_global_stats()
194 e = read_latency_file(f, list); in read_global_stats()
[all …]
/system/core/sh/
Doutput.c280 doformat(struct output *dest, const char *f, va_list ap) in doformat() argument
285 vasprintf(&s, f, ap); in doformat()
312 while ((c = *f++) != '\0') { in doformat()
324 if (*f == '-') in doformat()
326 else if (*f == '#') in doformat()
330 f++; in doformat()
332 if (*f == '*') { in doformat()
334 f++; in doformat()
336 while (is_digit(*f)) { in doformat()
337 width = 10 * width + digit_val(*f++); in doformat()
[all …]
Dredir.c179 int f; in openredirect() local
196 if ((f = open(fname, O_RDONLY|eflags)) < 0) in openredirect()
199 (void)fcntl(f, F_SETFL, fcntl(f, F_GETFL, 0) & ~eflags); in openredirect()
203 if ((f = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) in openredirect()
212 if ((f = open(fname, oflags, 0666)) < 0) in openredirect()
217 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) in openredirect()
232 f = openhere(redir); in openredirect()
238 if (f != fd) { in openredirect()
239 copyfd(f, fd); in openredirect()
240 close(f); in openredirect()
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/IPC/Linux/
Dproc_main.c61 FILE *f = fopen("/dev/console", "w" ); in main() local
63 if( !f ) in main()
67 if( dup2( f->_fileno, 1 ) == -1 ) in main()
69 fprintf(f, "dup2(hfile, 1) failed: %d(%s)\n", errno, strerror(errno) ); in main()
71 if( dup2( f->_fileno, 2 ) == -1 ) in main()
73 fprintf(f, "dup2(hfile, 2) failed: %d(%s)\n", errno, strerror(errno) ); in main()
125 if( f > 0 ) in main()
126 fclose( f ); in main()
/system/core/toolbox/
Dvmstat.c160 FILE *f; in read_meminfo() local
162 f = fopen("/proc/meminfo", "r"); in read_meminfo()
163 if (!f) return errno; in read_meminfo()
165 while (fgets(line, MAX_LINE, f)) { in read_meminfo()
172 fclose(f); in read_meminfo()
178 FILE *f; in read_stat() local
180 f = fopen("/proc/stat", "r"); in read_stat()
181 if (!f) return errno; in read_stat()
183 while (fgets(line, MAX_LINE, f)) { in read_stat()
195 fclose(f); in read_stat()
[all …]
Dumount.c15 FILE* f; in is_loop_mount() local
23 f = fopen("/proc/mounts", "r"); in is_loop_mount()
24 if (!f) { in is_loop_mount()
30 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest); in is_loop_mount()
39 fclose(f); in is_loop_mount()
Ddf.c31 FILE *f = fopen("/proc/mounts", "r"); in df_main() local
33 while (fgets(s, 2000, f)) { in df_main()
53 fclose(f); in df_main()
Dmount.c202 FILE* f; in print_mounts() local
206 f = fopen("/proc/mounts", "r"); in print_mounts()
207 if (!f) { in print_mounts()
213 length = fread(buffer, 1, 100, f); in print_mounts()
218 fclose(f); in print_mounts()
/system/extras/tests/bionic/libc/other/
Dtest_zlib.c177 FILE* f; in main() local
220 FILE* f = fopen(argv[1], "rb"); in main() local
225 if (f == NULL) { in main()
231 fseek( f, 0, SEEK_END ); in main()
232 fsize = ftell(f); in main()
233 fseek( f, 0, SEEK_SET ); in main()
238 fclose(f); in main()
244 ret = def( f, out, compression_level ); in main()
250 fclose(f); in main()
253 f = fopen( tempfile, "rb" ); in main()
[all …]
Dtest_jpeg.c241 FILE* f; in main() local
311 FILE* f = fopen( argv[1], "rb" ); in main() local
314 if (f == NULL) { in main()
319 fseek( f, 0, SEEK_END ); in main()
320 fsize = ftell(f); in main()
321 fseek( f, 0, SEEK_SET ); in main()
329 fseek( f, 0, SEEK_SET ); in main()
330 decompress(f, dct_method, disable_rgb); in main()
332 fclose( f ); in main()
339 fclose(f); in main()
[all …]
/system/core/libpixelflinger/
Dbuffer.cpp116 const GGLFormat* f = &(c->formats[s->format]); in read_pixel() local
118 uint8_t* const data = s->data + index * f->size; in read_pixel()
120 switch (f->size) { in read_pixel()
127 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel()
129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel()
173 const GGLFormat* f = &(c->formats[s->format]); in write_pixel() local
175 uint8_t* const data = s->data + index * f->size; in write_pixel()
181 if (f->components>=GGL_LUMINANCE && in write_pixel()
186 const int l = f->c[i].l; in write_pixel()
187 const int h = f->c[i].h; in write_pixel()
[all …]
Dfixed.cpp148 GGLfixed f = x << exp; in gglPowx() local
149 x = (f & 0x0FFF)<<4; in gglPowx()
150 f = (f >> 12) & 0x7; in gglPowx()
152 ggl_log_approx_tab[f+1] - ggl_log_approx_tab[f], x, in gglPowx()
153 ggl_log_approx_tab[f]); in gglPowx()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h199 reg_t(int r, int f=0)
200 : reg(r), flags(f) { in reg()
202 void setTo(int r, int f=0) {
203 reg=r; flags=f;
212 integer_t(int r, int sz=32, int f=0)
213 : reg_t(r, f), s(sz) { in reg_t()
215 void setTo(int r, int sz=32, int f=0) {
216 reg_t::setTo(r, f); s=sz;
226 pixel_t(int r, const GGLFormat* fmt, int f=0)
227 : reg_t(r, f), format(*fmt) { in reg_t()
[all …]
Dblending.cpp51 CONTEXT_LOAD(factor.reg, generated_vars.f); in build_fog()
265 integer_t& factor, int f, int component, in build_blend_factor() argument
277 switch(f) { in build_blend_factor()
285 if (!mBlendFactorCached || mBlendFactorCached==f) { in build_blend_factor()
294 mBlendFactorCached = f; in build_blend_factor()
309 mBlendFactorCached = f; in build_blend_factor()
337 switch(f) { in build_blend_factor()
370 switch(f) { in build_blend_factor()
485 const integer_t& f) in mul_factor() argument
488 int fs = f.size(); in mul_factor()
[all …]
DGGLAssembler.cpp405 int f = ydfdy; in build_scanline_prolog() local
408 MLA(AL, 0, f, Rx, dfdx, ydfdy); in build_scanline_prolog()
409 CONTEXT_STORE(f, generated_vars.f); in build_scanline_prolog()
802 int f = scratches.obtain(); in build_iterate_f() local
803 CONTEXT_LOAD(f, generated_vars.f); in build_iterate_f()
805 ADD(AL, 0, f, f, dfdx); in build_iterate_f()
806 CONTEXT_STORE(f, generated_vars.f); in build_iterate_f()
1116 int f = ~mRegs & 0xFFFF; in countFreeRegs() local
1118 f = (f & 0x5555) + ((f>>1) & 0x5555); in countFreeRegs()
1119 f = (f & 0x3333) + ((f>>2) & 0x3333); in countFreeRegs()
[all …]
/system/core/vold/
Dvolmgr_ext3.c158 char **f; in ext_mount() local
159 for (f = fs; *f != NULL; f++) { in ext_mount()
160 rc = mount(devpath, vol->mount_point, *f, flags, NULL); in ext_mount()
165 rc = mount(devpath, vol->mount_point, *f, flags, NULL); in ext_mount()
168 LOG_VOL("ext_mount(%s, %s): %s mount rc = %d", devpath, *f, in ext_mount()
/system/core/init/
Dgrab-bootchart.sh17 for f in $FILES; do
18 adb pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null
/system/extras/tests/bionic/libstdc++/
Dtest_csetjmp.cpp38 #define FAIL_UNLESS(f) if (!android::f()) return kFailed; argument
Dtest_csignal.cpp37 #define FAIL_UNLESS(f) if (!android::f()) return kFailed; argument
Dtest_cmath.cpp38 #define FAIL_UNLESS(f) if (!android::f()) return kFailed; argument
/system/extras/tests/bionic/libc/common/
Dtest_static_cpp_mutex.cpp58 static Foo f; variable
62 printf( "f.getValue() returned: %d\n", f.getValue() ); in main()

123