/system/extras/sound/ |
D | playwav.c | 151 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/ |
D | ueventd_parser.c | 29 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()
|
D | logo.c | 105 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()
|
D | ueventd_parser.h | 22 int ueventd_parse_config_file(const char *fn);
|
D | init_parser.h | 33 int init_parse_config_file(const char *fn);
|
D | util.h | 30 void *read_file(const char *fn, unsigned *_sz);
|
D | init_parser.c | 194 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()
|
D | util.c | 127 void *read_file(const char *fn, unsigned *_sz) in read_file() argument 134 fd = open(fn, O_RDONLY); in read_file()
|
D | property_service.c | 455 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/ |
D | fastboot.c | 80 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 …]
|
D | util_windows.c | 51 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/ |
D | load_file.c | 22 void *load_file(const char *fn, unsigned *_sz) in load_file() argument 29 fd = open(fn, O_RDONLY); in load_file()
|
D | config_utils.c | 312 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/ |
D | mknodes.sh | 171 echo " ${fn}(n->$struct.$name${cl};" 206 echo " new->$f = ${fn}n->$f${fn:+)};"
|
D | eval.c | 457 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/ |
D | mdp_test.c | 34 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/ |
D | misc.h | 29 extern void *load_file(const char *fn, unsigned *sz);
|
D | config_utils.h | 40 void config_load_file(cnode *root, const char *fn);
|
/system/extras/showmap/ |
D | showmap.c | 162 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/ |
D | diskconfig.c | 140 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/ |
D | mkbootimg.c | 28 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/ |
D | diskconfig.h | 112 struct disk_info *load_diskconfig(const char *fn, char *path_override);
|
/system/core/adb/ |
D | fdevent.c | 47 static void fatal(const char *fn, const char *fmt, ...) in fatal() argument 51 fprintf(stderr, "%s:", fn); in fatal()
|
D | sysdeps_win32.c | 21 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()
|