/system/core/liblog/tests/ |
D | benchmark.h | 38 Benchmark(const char* name, void (*fn)(int)) : name_(strdup(name)), fn_(fn) { in Benchmark() 61 BenchmarkWantsArgBase(const char* name, void (*fn)(int, T)) : Benchmark(name) { in BenchmarkWantsArgBase() 62 fn_arg_ = fn; in BenchmarkWantsArgBase() 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : in BenchmarkWithArg() 79 BenchmarkWantsArg<T>(name, fn), arg_(arg) { in BenchmarkWithArg() 100 BenchmarkWantsArg<T>(const char* name, void (*fn)(int, T)) : 101 BenchmarkWantsArgBase<T>(name, fn) { } 107 BenchmarkWantsArg<int>(const char* name, void (*fn)(int, int)) : 108 BenchmarkWantsArgBase<int>(name, fn) { } 118 static inline Benchmark* BenchmarkFactory(const char* name, void (*fn)(int)) { in BenchmarkFactory() [all …]
|
/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/toolbox/upstream-netbsd/usr.bin/grep/ |
D | util.c | 188 procfile(const char *fn) in procfile() argument 199 if (strcmp(fn, "-") == 0) { in procfile() 200 fn = label != NULL ? label : getstr(1); in procfile() 203 if (!stat(fn, &sb)) { in procfile() 212 f = grep_open(fn); in procfile() 216 warn("%s", fn); in procfile() 222 ln.file = grep_malloc(strlen(fn) + 1); in procfile() 223 strcpy(ln.file, fn); in procfile() 265 printf("%s%c", fn, line_sep); in procfile() 267 printf("%s%c", fn, line_sep); in procfile() [all …]
|
D | grep.c | 285 read_patterns(const char *fn) in read_patterns() argument 292 if ((f = fopen(fn, "r")) == NULL) in read_patterns() 293 err(2, "%s", fn); in read_patterns() 300 err(2, "%s", fn); in read_patterns()
|
D | grep.h | 141 int procfile(const char *fn);
|
/system/core/fastboot/ |
D | fastboot.c | 114 char *fn; in find_item() local 118 fn = "boot.img"; in find_item() 120 fn = "recovery.img"; in find_item() 122 fn = "system.img"; in find_item() 124 fn = "vendor.img"; in find_item() 126 fn = "userdata.img"; in find_item() 128 fn = "cache.img"; in find_item() 130 fn = "android-info.txt"; in find_item() 139 "../../../target/product/%s/%s", product, fn); in find_item() 149 sprintf(path, "%s/%s", dir, fn); in find_item() [all …]
|
/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/init/ |
D | ueventd_parser.c | 200 static void parse_config(const char *fn, char *s) in parse_config() argument 206 state.filename = fn; in parse_config() 233 int ueventd_parse_config_file(const char *fn) in ueventd_parse_config_file() argument 236 data = read_file(fn, 0); in ueventd_parse_config_file() 239 parse_config(fn, data); in ueventd_parse_config_file()
|
D | property_service.c | 366 char *key, *value, *eol, *sol, *tmp, *fn; in load_properties() local 386 fn = key + 7; in load_properties() 387 while (isspace(*fn)) fn++; in load_properties() 389 key = strchr(fn, ' '); in load_properties() 395 load_properties_from_file(fn, key); in load_properties() 424 static void load_properties_from_file(const char *fn, const char *filter) in load_properties_from_file() argument 429 data = read_file(fn, &sz); in load_properties_from_file()
|
D | ueventd_parser.h | 24 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 | util.c | 150 void *read_file(const char *fn, unsigned *_sz) in read_file() argument 158 fd = open(fn, O_RDONLY); in read_file() 164 ERROR("fstat failed for '%s'\n", fn); in read_file() 168 ERROR("skipping insecure file '%s'\n", fn); in read_file()
|
D | init_parser.c | 347 static void parse_config(const char *fn, char *s) in parse_config() argument 356 state.filename = fn; in parse_config() 400 import->filename, fn); in parse_config() 404 int init_parse_config_file(const char *fn) in init_parse_config_file() argument 407 data = read_file(fn, 0); in init_parse_config_file() 410 parse_config(fn, data); in init_parse_config_file()
|
/system/extras/ext4_utils/ |
D | canned_fs_config.c | 43 int load_canned_fs_config(const char* fn) { in load_canned_fs_config() argument 44 FILE* f = fopen(fn, "r"); in load_canned_fs_config() 46 fprintf(stderr, "failed to open %s: %s\n", fn, strerror(errno)); in load_canned_fs_config()
|
D | canned_fs_config.h | 22 int load_canned_fs_config(const char* fn);
|
/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/core/libutils/ |
D | Threads.cpp | 222 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id) in doCreateThread() argument 228 pDetails->func = fn; in doCreateThread() 258 int androidCreateRawThreadEtc(android_thread_func_t fn, in androidCreateRawThreadEtc() argument 265 return doCreateThread( fn, userData, threadId); in androidCreateRawThreadEtc() 280 int androidCreateThread(android_thread_func_t fn, void* arg) in androidCreateThread() argument 282 return createThreadEtc(fn, arg); in androidCreateThread() 285 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) in androidCreateThreadGetID() argument 287 return createThreadEtc(fn, arg, "android:unnamed_thread", in androidCreateThreadGetID()
|
/system/extras/showmap/ |
D | showmap.c | 165 char fn[128]; in load_maps() local 172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); in load_maps() 173 fp = fopen(fn, "r"); in load_maps()
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 141 load_diskconfig(const char *fn, char *path_override) in load_diskconfig() argument 162 config_load_file(root, fn); in load_diskconfig() 164 ALOGE("Could not read config file %s", fn); in load_diskconfig() 169 ALOGE("Could not find device section in config file '%s'", fn); in load_diskconfig()
|
/system/core/adb/ |
D | commandline.c | 453 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, in adb_download_buffer() argument 489 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer() 514 int adb_download(const char *service, const char *fn, unsigned progress) in adb_download() argument 519 data = load_file(fn, &sz); in adb_download() 521 fprintf(stderr,"* cannot read '%s' *\n", fn); in adb_download() 525 int status = adb_download_buffer(service, fn, data, sz, progress); in adb_download() 551 int adb_sideload_host(const char* fn) { in adb_sideload_host() argument 557 printf("loading: '%s'", fn); in adb_sideload_host() 559 data = load_file(fn, &sz); in adb_sideload_host() 562 fprintf(stderr, "* cannot read '%s' *\n", fn); in adb_sideload_host() [all …]
|
/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 | 113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
|