Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 24 of 24) sorted by relevance

/system/extras/sound/
Dplaywav.c151 int wav_play(const char *fn) in wav_play() argument
156 fd = open(fn, O_RDONLY); in wav_play()
158 fprintf(stderr, "playwav: cannot open '%s'\n", fn); in wav_play()
172 fprintf(stderr, "playwav: '%s' is not a riff/wave file\n", fn); in wav_play()
177 fprintf(stderr, "playwav: '%s' is not pcm format\n", fn); in wav_play()
181 fprintf(stderr, "playwav: '%s' is not 16bit per sample\n", fn); in wav_play()
191 int wav_rec(const char *fn, unsigned channels, unsigned rate) in wav_rec() argument
215 fd = open(fn, O_CREAT | O_RDWR, 0666); in wav_rec()
291 unlink(fn); in wav_rec()
295 int mp3_play(const char *fn) in mp3_play() argument
[all …]
/system/core/init/
Dueventd_parser.c29 static void parse_config(const char *fn, char *s) in parse_config() argument
35 state.filename = fn; in parse_config()
61 int ueventd_parse_config_file(const char *fn) in ueventd_parse_config_file() argument
64 data = read_file(fn, 0); in ueventd_parse_config_file()
67 parse_config(fn, data); in ueventd_parse_config_file()
Dlogo.c105 int load_565rle_image(char *fn) in load_565rle_image() argument
116 fd = open(fn, O_RDONLY); in load_565rle_image()
118 ERROR("cannot open '%s'\n", fn); in load_565rle_image()
152 unlink(fn); in load_565rle_image()
Dueventd_parser.h22 int ueventd_parse_config_file(const char *fn);
Dinit_parser.h33 int init_parse_config_file(const char *fn);
Dutil.h30 void *read_file(const char *fn, unsigned *_sz);
Dinit_parser.c194 static void parse_config(const char *fn, char *s) in parse_config() argument
201 state.filename = fn; in parse_config()
233 int init_parse_config_file(const char *fn) in init_parse_config_file() argument
236 data = read_file(fn, 0); in init_parse_config_file()
239 parse_config(fn, data); in init_parse_config_file()
Dutil.c127 void *read_file(const char *fn, unsigned *_sz) in read_file() argument
134 fd = open(fn, O_RDONLY); in read_file()
Dproperty_service.c455 static void load_properties_from_file(const char *fn) in load_properties_from_file() argument
460 data = read_file(fn, &sz); in load_properties_from_file()
/system/core/fastboot/
Dfastboot.c80 char *fn; in find_item() local
84 fn = "boot.img"; in find_item()
86 fn = "recovery.img"; in find_item()
88 fn = "system.img"; in find_item()
90 fn = "userdata.img"; in find_item()
92 fn = "android-info.txt"; in find_item()
101 "../../../target/product/%s/%s", product, fn); in find_item()
111 sprintf(path, "%s/%s", dir, fn); in find_item()
116 void *load_file(const char *fn, unsigned *_sz);
118 void *load_file(const char *fn, unsigned *_sz) in load_file() argument
[all …]
Dutil_windows.c51 void *load_file(const char *fn, unsigned *_sz) in load_file() argument
57 file = CreateFile( fn, in load_file()
82 fprintf(stderr, "load_file: could not read %ld bytes from '%s'\n", file_size, fn); in load_file()
/system/core/libcutils/
Dload_file.c22 void *load_file(const char *fn, unsigned *_sz) in load_file() argument
29 fd = open(fn, O_RDONLY); in load_file()
Dconfig_utils.c312 void config_load_file(cnode *root, const char *fn) in config_load_file() argument
315 data = load_file(fn, 0); in config_load_file()
/system/core/sh/
Dmknodes.sh171 echo " ${fn}(n->$struct.$name${cl};"
206 echo " new->$f = ${fn}n->$f${fn:+)};"
Deval.c457 struct arglist fn; in expredir() local
458 fn.lastp = &fn.list; in expredir()
465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR); in expredir()
466 redir->nfile.expfname = fn.list->text; in expredir()
471 expandarg(redir->ndup.vname, &fn, EXP_FULL | EXP_TILDE); in expredir()
472 fixredir(redir, fn.list->text, 1); in expredir()
/system/extras/tests/framebuffer/
Dmdp_test.c34 char *type, *fn; in open_file() local
37 fn = strchr(name, ':'); in open_file()
38 if (!fn) in open_file()
40 *(fn++) = '\0'; in open_file()
51 *fd = open(fn, O_RDONLY); in open_file()
64 printf("Successfully opened file %s (fmt=%d len=%d fd=%d)\n", fn, *fmt, in open_file()
/system/core/include/cutils/
Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
Dconfig_utils.h40 void config_load_file(cnode *root, const char *fn);
/system/extras/showmap/
Dshowmap.c162 char fn[128]; in load_maps() local
169 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); in load_maps()
170 fp = fopen(fn, "r"); in load_maps()
/system/core/libdiskconfig/
Ddiskconfig.c140 load_diskconfig(const char *fn, char *path_override) in load_diskconfig() argument
161 config_load_file(root, fn); in load_diskconfig()
163 LOGE("Could not read config file %s", fn); in load_diskconfig()
168 LOGE("Could not find device section in config file '%s'", fn); in load_diskconfig()
/system/core/mkbootimg/
Dmkbootimg.c28 static void *load_file(const char *fn, unsigned *_sz) in load_file() argument
35 fd = open(fn, O_RDONLY); in load_file()
/system/core/include/diskconfig/
Ddiskconfig.h112 struct disk_info *load_diskconfig(const char *fn, char *path_override);
/system/core/adb/
Dfdevent.c47 static void fatal(const char *fn, const char *fmt, ...) in fatal() argument
51 fprintf(stderr, "%s:", fn); in fatal()
Dsysdeps_win32.c21 void *load_file(const char *fn, unsigned *_sz) in load_file() argument
27 file = CreateFile( fn, in load_file()
52 D("load_file: could not read %ld bytes from '%s'\n", file_size, fn); in load_file()