Home
last modified time | relevance | path

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

12

/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.c30 static void parse_config(const char *fn, char *s) in parse_config() argument
36 state.filename = fn; in parse_config()
62 int ueventd_parse_config_file(const char *fn) in ueventd_parse_config_file() argument
65 data = read_file(fn, 0); in ueventd_parse_config_file()
68 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.c182 static void parse_config(const char *fn, char *s) in parse_config() argument
189 state.filename = fn; in parse_config()
220 int init_parse_config_file(const char *fn) in init_parse_config_file() argument
223 data = read_file(fn, 0); in init_parse_config_file()
226 parse_config(fn, data); in init_parse_config_file()
Dutil.c164 void *read_file(const char *fn, unsigned *_sz) in read_file() argument
171 fd = open(fn, O_RDONLY); in read_file()
Dproperty_service.c451 static void load_properties_from_file(const char *fn) in load_properties_from_file() argument
456 data = read_file(fn, &sz); in load_properties_from_file()
/system/core/fastboot/
Dfastboot.c78 char *fn; in find_item() local
82 fn = "boot.img"; in find_item()
84 fn = "recovery.img"; in find_item()
86 fn = "system.img"; in find_item()
88 fn = "userdata.img"; in find_item()
90 fn = "android-info.txt"; in find_item()
99 "../../../target/product/%s/%s", product, fn); in find_item()
109 sprintf(path, "%s/%s", dir, fn); in find_item()
114 void *load_file(const char *fn, unsigned *_sz);
116 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/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/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/wlan/ti/sta_dk_4_0_4_32/pform/common/inc/
DosApi.h339 void _os_profile (TI_HANDLE OsContext, UINT32 fn, UINT32 par);
340 #define os_profile(hos,fn,par) _os_profile (hos, fn, par) argument
342 #define os_profile(hos,fn,par) argument
/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/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.c35 static void fatal(const char *fn, const char *fmt, ...) in fatal() argument
39 fprintf(stderr, "%s:", fn); in fatal()
/system/wlan/ti/wilink_6_1/platforms/os/common/inc/
DosApi.h538 #define os_profile(hos,fn,par) argument
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
Dosapi.c1747 void _os_profile (TI_HANDLE OsContext, UINT32 fn, UINT32 par) in _os_profile() argument
1749 tiwlan_profile (OsContext, fn, par); in _os_profile()

12