Searched refs:fn (Results 1 - 25 of 28) sorted by relevance

12

/system/core/init/
H A Dueventd_parser.h22 int ueventd_parse_config_file(const char *fn);
H A Dueventd_parser.c29 static void parse_config(const char *fn, char *s) argument
35 state.filename = fn;
61 int ueventd_parse_config_file(const char *fn) argument
64 data = read_file(fn, 0);
67 parse_config(fn, data);
H A Dinit_parser.h33 int init_parse_config_file(const char *fn);
H A Dlogo.c105 int load_565rle_image(char *fn) argument
116 fd = open(fn, O_RDONLY);
118 ERROR("cannot open '%s'\n", fn);
152 unlink(fn);
H A Dutil.h30 void *read_file(const char *fn, unsigned *_sz);
H A Dutil.c142 void *read_file(const char *fn, unsigned *_sz) argument
150 fd = open(fn, O_RDONLY);
156 ERROR("fstat failed for '%s'\n", fn);
160 ERROR("skipping insecure file '%s'\n", fn);
H A Dinit_parser.c347 static void parse_config(const char *fn, char *s) argument
356 state.filename = fn;
400 import->filename, fn);
404 int init_parse_config_file(const char *fn) argument
407 data = read_file(fn, 0);
410 parse_config(fn, data);
/system/core/include/cutils/
H A Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
H A Dconfig_utils.h40 void config_load_file(cnode *root, const char *fn);
/system/core/libcutils/
H A Dload_file.c22 void *load_file(const char *fn, unsigned *_sz) argument
29 fd = open(fn, O_RDONLY);
H A Dconfig_utils.c312 void config_load_file(cnode *root, const char *fn) argument
315 data = load_file(fn, 0);
/system/extras/sound/
H A Dplaywav.c151 int wav_play(const char *fn) argument
156 fd = open(fn, O_RDONLY);
158 fprintf(stderr, "playwav: cannot open '%s'\n", fn);
172 fprintf(stderr, "playwav: '%s' is not a riff/wave file\n", fn);
177 fprintf(stderr, "playwav: '%s' is not pcm format\n", fn);
181 fprintf(stderr, "playwav: '%s' is not 16bit per sample\n", fn);
191 int wav_rec(const char *fn, unsigned channels, unsigned rate) argument
215 fd = open(fn, O_CREAT | O_RDWR, 0666);
291 unlink(fn);
295 int mp3_play(const char *fn) argument
331 const char *fn = 0; local
[all...]
/system/core/sh/
H A Dmknodes.sh165 nodeptr ) fn=calcsize;;
166 nodelist ) fn=sizenodelist;;
167 string ) fn="funcstringsize += strlen"
171 echo " ${fn}(n->$struct.$name${cl};"
199 nodeptr ) fn="copynode(";;
200 nodelist ) fn="copynodelist(";;
201 string ) fn="nodesavestr(";;
202 int ) fn=;;
206 echo " new->$f = ${fn}n->$f${fn
[all...]
H A Deval.c457 struct arglist fn; local
458 fn.lastp = &fn.list;
465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR);
466 redir->nfile.expfname = fn.list->text;
471 expandarg(redir->ndup.vname, &fn, EXP_FULL | EXP_TILDE);
472 fixredir(redir, fn.list->text, 1);
/system/core/libcutils/tests/memset_mips/
H A Dtest_memset.c56 timeone(void (*fn)(), void *d, uint32_t val, uint32_t bytes) argument
60 (*fn)(d, val, bytes);
82 testone(char *tag, void (*fn)(), int trials, int minbytes, int maxbytes, int size, int threshold) argument
136 units = timeone(fn, d, v, n);
198 void (*fn)();
223 (fp->fn)(arena, 0xffffffff, ARENASIZE); /* one call to get the code into Icache */
229 testone(tag, fp->fn, pp->trials, pp->minbytes, pp->maxbytes, fp->size, threshold);
/system/core/toolbox/grep/
H A Dutil.c187 procfile(const char *fn) argument
198 if (strcmp(fn, "-") == 0) {
199 fn = label != NULL ? label : getstr(1);
202 if (!stat(fn, &sb)) {
211 f = grep_open(fn);
215 warn("%s", fn);
221 ln.file = grep_malloc(strlen(fn) + 1);
222 strcpy(ln.file, fn);
264 printf("%s%c", fn, line_sep);
266 printf("%s%c", fn, line_se
[all...]
H A Dgrep.c286 read_patterns(const char *fn) argument
293 if ((f = fopen(fn, "r")) == NULL)
294 err(2, "%s", fn);
303 err(2, "%s", fn);
H A Dgrep.h145 int procfile(const char *fn);
/system/core/fastboot/
H A Dfastboot.c125 char *fn; local
129 fn = "boot.img";
131 fn = "recovery.img";
133 fn = "system.img";
135 fn = "userdata.img";
137 fn = "cache.img";
139 fn = "android-info.txt";
148 "../../../target/product/%s/%s", product, fn);
158 sprintf(path, "%s/%s", dir, fn);
202 static void *load_file(const char *fn, unsigne argument
698 do_update_signature(zipfile_t zip, char *fn) argument
708 do_update(usb_handle *usb, char *fn, int erase_first) argument
768 do_send_signature(char *fn) argument
[all...]
/system/core/libutils/
H A DThreads.cpp216 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id)
222 pDetails->func = fn;
252 int androidCreateRawThreadEtc(android_thread_func_t fn,
259 return doCreateThread( fn, userData, threadId);
274 int androidCreateThread(android_thread_func_t fn, void* arg) argument
276 return createThreadEtc(fn, arg);
279 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) argument
281 return createThreadEtc(fn, arg, "android:unnamed_thread",
/system/core/include/diskconfig/
H A Ddiskconfig.h113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
/system/core/libdiskconfig/
H A Ddiskconfig.c140 load_diskconfig(const char *fn, char *path_override) argument
161 config_load_file(root, fn);
163 ALOGE("Could not read config file %s", fn);
168 ALOGE("Could not find device section in config file '%s'", fn);
/system/extras/showmap/
H A Dshowmap.c163 char fn[128]; local
170 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid);
171 fp = fopen(fn, "r");
/system/core/mkbootimg/
H A Dmkbootimg.c28 static void *load_file(const char *fn, unsigned *_sz) argument
35 fd = open(fn, O_RDONLY);
/system/core/adb/
H A Dcommandline.c389 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument
425 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total))));
450 int adb_download(const char *service, const char *fn, unsigned progress) argument
455 data = load_file(fn, &sz);
457 fprintf(stderr,"* cannot read '%s' *\n", fn);
461 int status = adb_download_buffer(service, fn, data, sz, progress);

Completed in 294 milliseconds

12