/system/core/include/cutils/ |
H A D | misc.h | 29 extern void *load_file(const char *fn, unsigned *sz);
|
H A D | config_utils.h | 40 void config_load_file(cnode *root, const char *fn);
|
/system/core/init/ |
H A D | ueventd_parser.h | 24 int ueventd_parse_config_file(const char *fn);
|
H A D | init_parser.h | 34 int init_parse_config_file(const char *fn);
|
H A D | ueventd_parser.cpp | 194 static void parse_config(const char *fn, const std::string& data) argument 200 state.filename = fn; 227 int ueventd_parse_config_file(const char *fn) argument 230 if (!read_file(fn, &data)) { 235 parse_config(fn, data);
|
H A D | property_service.cpp | 368 char *key, *value, *eol, *sol, *tmp, *fn; local 388 fn = key + 7; 389 while (isspace(*fn)) fn++; 391 key = strchr(fn, ' '); 397 load_properties_from_file(fn, key);
|
H A D | init.h | 163 void register_epoll_handler(int fd, void (*fn)());
|
H A D | init.cpp | 87 void register_epoll_handler(int fd, void (*fn)()) { argument 90 ev.data.ptr = reinterpret_cast<void*>(fn); 882 std::function<void(char*,bool)> fn = [&](char* name, bool in_qemu) { local 894 import_kernel_cmdline(false, fn);
|
/system/extras/ext4_utils/ |
H A D | canned_fs_config.h | 22 int load_canned_fs_config(const char* fn);
|
H A D | canned_fs_config.c | 43 int load_canned_fs_config(const char* fn) { argument 44 FILE* f = fopen(fn, "r"); 46 fprintf(stderr, "failed to open %s: %s\n", fn, strerror(errno));
|
/system/core/liblog/tests/ |
H A D | benchmark.h | 38 Benchmark(const char* name, void (*fn)(int)) : name_(strdup(name)), fn_(fn) { argument 61 BenchmarkWantsArgBase(const char* name, void (*fn)(int, T)) : Benchmark(name) { argument 62 fn_arg_ = fn; 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : argument 79 BenchmarkWantsArg<T>(name, fn), arg_(arg) { 100 BenchmarkWantsArg<T>(const char* name, void (*fn)(int, T)) : argument 101 BenchmarkWantsArgBase<T>(name, fn) { } 107 BenchmarkWantsArg<int>(const char* name, void (*fn)(int, int)) : argument 108 BenchmarkWantsArgBase<int>(name, fn) { } 118 BenchmarkFactory(const char* name, void (*fn)(int)) argument 123 BenchmarkFactory(const char* name, void (*fn)(int, T)) argument [all...] |
/system/core/libcutils/ |
H A D | load_file.c | 22 void *load_file(const char *fn, unsigned *_sz) argument 29 fd = open(fn, O_RDONLY);
|
H A D | config_utils.c | 312 void config_load_file(cnode *root, const char *fn) argument 315 data = load_file(fn, 0);
|
/system/extras/sound/ |
H A D | playwav.c | 153 int wav_play(const char *fn) argument 158 fd = open(fn, O_RDONLY); 160 fprintf(stderr, "playwav: cannot open '%s'\n", fn); 174 fprintf(stderr, "playwav: '%s' is not a riff/wave file\n", fn); 179 fprintf(stderr, "playwav: '%s' is not pcm format\n", fn); 183 fprintf(stderr, "playwav: '%s' is not 16bit per sample\n", fn); 193 int wav_rec(const char *fn, unsigned channels, unsigned rate) argument 217 fd = open(fn, O_CREAT | O_RDWR, 0666); 293 unlink(fn); 297 int mp3_play(const char *fn) argument 333 const char *fn = 0; local [all...] |
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | util.c | 188 procfile(const char *fn) argument 199 if (strcmp(fn, "-") == 0) { 200 fn = label != NULL ? label : getstr(1); 203 if (!stat(fn, &sb)) { 212 f = grep_open(fn); 216 warn("%s", fn); 222 ln.file = grep_malloc(strlen(fn) + 1); 223 strcpy(ln.file, fn); 265 printf("%s%c", fn, line_sep); 267 printf("%s%c", fn, line_se [all...] |
H A D | grep.c | 285 read_patterns(const char *fn) argument 292 if ((f = fopen(fn, "r")) == NULL) 293 err(2, "%s", fn); 300 err(2, "%s", fn);
|
H A D | grep.h | 141 int procfile(const char *fn);
|
/system/core/fastboot/ |
H A D | fastboot.cpp | 103 const char *fn; local 107 fn = "boot.img"; 109 fn = "recovery.img"; 111 fn = "system.img"; 113 fn = "vendor.img"; 115 fn = "userdata.img"; 117 fn = "cache.img"; 119 fn = "android-info.txt"; 128 "../../../target/product/%s/%s", product, fn); 138 sprintf(path, "%s/%s", dir, fn); 182 load_file(const char *fn, unsigned *_sz) argument 730 do_update_signature(ZipArchiveHandle zip, char *fn) argument 787 do_send_signature(char *fn) argument [all...] |
/system/core/libutils/ |
H A D | Threads.cpp | 219 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id) 225 pDetails->func = fn; 255 int androidCreateRawThreadEtc(android_thread_func_t fn, 262 return doCreateThread( fn, userData, threadId); 275 int androidCreateThread(android_thread_func_t fn, void* arg) argument 277 return createThreadEtc(fn, arg); 280 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) argument 282 return createThreadEtc(fn, arg, "android:unnamed_thread",
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
|
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 141 load_diskconfig(const char *fn, char *path_override) argument 162 config_load_file(root, fn); 164 ALOGE("Could not read config file %s", fn); 169 ALOGE("Could not find device section in config file '%s'", fn);
|
/system/extras/showmap/ |
H A D | showmap.c | 165 char fn[128]; local 172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 173 fp = fopen(fn, "r");
|
/system/vold/bench/ |
H A D | benchgen.py | 112 for fn in sys.argv[1:]: 113 with open(fn) as f: 114 thread = int(fn.split(".")[-1])
|
/system/core/mkbootimg/ |
H A D | mkbootimg.c | 29 static void *load_file(const char *fn, unsigned *_sz) argument 36 fd = open(fn, O_RDONLY);
|
/system/core/adb/ |
H A D | commandline.cpp | 449 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, argument 481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); 519 static int adb_sideload_host(const char* fn) { argument 526 printf("loading: '%s'", fn); 528 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz)); 531 fprintf(stderr, "* cannot read '%s' *\n", fn); 543 status = adb_download_buffer("sideload", fn, data, sz, true); 594 printf("\rserving: '%s' (~%d%%) ", fn, percent); 600 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, "");
|