/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 | 153 int wav_play(const char *fn) in wav_play() argument 158 fd = open(fn, O_RDONLY); in wav_play() 160 fprintf(stderr, "playwav: cannot open '%s'\n", fn); in wav_play() 174 fprintf(stderr, "playwav: '%s' is not a riff/wave file\n", fn); in wav_play() 179 fprintf(stderr, "playwav: '%s' is not pcm format\n", fn); in wav_play() 183 fprintf(stderr, "playwav: '%s' is not 16bit per sample\n", fn); in wav_play() 193 int wav_rec(const char *fn, unsigned channels, unsigned rate) in wav_rec() argument 217 fd = open(fn, O_CREAT | O_RDWR, 0666); in wav_rec() 293 unlink(fn); in wav_rec() 297 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/init/ |
D | ueventd_parser.cpp | 194 static void parse_config(const char *fn, const std::string& data) in parse_config() argument 200 state.filename = fn; in parse_config() 227 int ueventd_parse_config_file(const char *fn) in ueventd_parse_config_file() argument 230 if (!read_file(fn, &data)) { in ueventd_parse_config_file() 235 parse_config(fn, data); in ueventd_parse_config_file()
|
D | property_service.cpp | 368 char *key, *value, *eol, *sol, *tmp, *fn; in load_properties() local 388 fn = key + 7; in load_properties() 389 while (isspace(*fn)) fn++; in load_properties() 391 key = strchr(fn, ' '); in load_properties() 397 load_properties_from_file(fn, key); in load_properties()
|
D | ueventd_parser.h | 24 int ueventd_parse_config_file(const char *fn);
|
D | init_parser.h | 34 int init_parse_config_file(const char *fn);
|
D | init.h | 163 void register_epoll_handler(int fd, void (*fn)());
|
D | init.cpp | 87 void register_epoll_handler(int fd, void (*fn)()) { in register_epoll_handler() argument 90 ev.data.ptr = reinterpret_cast<void*>(fn); in register_epoll_handler() 882 std::function<void(char*,bool)> fn = [&](char* name, bool in_qemu) { in selinux_status_from_cmdline() local 894 import_kernel_cmdline(false, fn); in selinux_status_from_cmdline()
|
/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/fastboot/ |
D | fastboot.cpp | 103 const char *fn; in find_item() local 107 fn = "boot.img"; in find_item() 109 fn = "recovery.img"; in find_item() 111 fn = "system.img"; in find_item() 113 fn = "vendor.img"; in find_item() 115 fn = "userdata.img"; in find_item() 117 fn = "cache.img"; in find_item() 119 fn = "android-info.txt"; in find_item() 128 "../../../target/product/%s/%s", product, fn); in find_item() 138 sprintf(path, "%s/%s", dir, fn); in find_item() [all …]
|
/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/libutils/ |
D | Threads.cpp | 219 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id) in doCreateThread() argument 225 pDetails->func = fn; in doCreateThread() 255 int androidCreateRawThreadEtc(android_thread_func_t fn, in androidCreateRawThreadEtc() argument 262 return doCreateThread( fn, userData, threadId); in androidCreateRawThreadEtc() 275 int androidCreateThread(android_thread_func_t fn, void* arg) in androidCreateThread() argument 277 return createThreadEtc(fn, arg); in androidCreateThread() 280 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) in androidCreateThreadGetID() argument 282 return createThreadEtc(fn, arg, "android:unnamed_thread", in androidCreateThreadGetID()
|
/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 | 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/vold/bench/ |
D | benchgen.py | 112 for fn in sys.argv[1:]: 113 with open(fn) as f: 114 thread = int(fn.split(".")[-1])
|
/system/core/adb/ |
D | commandline.cpp | 449 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, in adb_download_buffer() argument 481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer() 519 static int adb_sideload_host(const char* fn) { in adb_sideload_host() argument 526 printf("loading: '%s'", fn); in adb_sideload_host() 528 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz)); in adb_sideload_host() 531 fprintf(stderr, "* cannot read '%s' *\n", fn); in adb_sideload_host() 543 status = adb_download_buffer("sideload", fn, data, sz, true); in adb_sideload_host() 594 printf("\rserving: '%s' (~%d%%) ", fn, percent); in adb_sideload_host() 600 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, ""); in adb_sideload_host()
|
/system/core/mkbootimg/ |
D | mkbootimg.c | 29 static void *load_file(const char *fn, unsigned *_sz) in load_file() argument 36 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);
|