Searched defs:fn (Results 1 - 20 of 20) sorted by relevance

/system/core/libcutils/
H A Dload_file.c22 void *load_file(const char *fn, unsigned *_sz) argument
29 fd = open(fn, O_RDONLY);
H A Dcanned_fs_config.c43 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));
H A Dconfig_utils.c312 void config_load_file(cnode *root, const char *fn) argument
315 data = load_file(fn, 0);
/system/core/init/
H A Dueventd_parser.cpp194 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 Dproperty_service.cpp332 char *key, *value, *eol, *sol, *tmp, *fn; local
352 fn = key + 7;
353 while (isspace(*fn)) fn++;
355 key = strchr(fn, ' ');
361 load_properties_from_file(fn, key);
H A Dinit.cpp88 void register_epoll_handler(int fd, void (*fn)()) { argument
91 ev.data.ptr = reinterpret_cast<void*>(fn);
H A Dutil.cpp429 std::function<void(const std::string&, const std::string&, bool)> fn) {
436 fn(pieces[0], pieces[1], in_qemu);
428 import_kernel_cmdline(bool in_qemu, std::function<void(const std::string&, const std::string&, bool)> fn) argument
/system/core/libdiskconfig/
H A Ddiskconfig.c141 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/core/liblog/tests/
H A Dbenchmark.h38 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/toolbox/upstream-netbsd/usr.bin/grep/
H A Dutil.c188 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 Dgrep.c285 read_patterns(const char *fn) argument
292 if ((f = fopen(fn, "r")) == NULL)
293 err(2, "%s", fn);
300 err(2, "%s", fn);
/system/extras/libfec/include/fec/
H A Dio.h125 io(const std::string& fn, int mode = O_RDONLY, int flags = 0, argument
127 open(fn, mode, flags, roots);
134 bool open(const std::string& fn, int mode = O_RDONLY, int flags = 0, argument
138 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
/system/extras/showmap/
H A Dshowmap.cpp171 char fn[128]; local
178 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid);
179 fp = fopen(fn, "r");
/system/extras/sound/
H A Dplaywav.c153 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/liblog/
H A Dpmsg_reader.c263 __android_log_pmsg_file_read_fn fn, void *arg) {
288 if (!fn) {
570 r = (*fn)(names->id, names->prio, names->name, buf, len, arg);
259 __android_log_pmsg_file_read( log_id_t logId, char prio, const char *prefix, __android_log_pmsg_file_read_fn fn, void *arg) argument
/system/core/libutils/
H A DThreads.cpp220 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id)
226 pDetails->func = fn;
256 int androidCreateRawThreadEtc(android_thread_func_t fn,
263 return doCreateThread( fn, userData, threadId);
276 int androidCreateThread(android_thread_func_t fn, void* arg) argument
278 return createThreadEtc(fn, arg);
281 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) argument
283 return createThreadEtc(fn, arg, "android:unnamed_thread",
/system/tools/aidl/
H A Daidl.cpp78 string fn; local
82 if (!IoDelegate::GetAbsolutePath(filename, &fn)) {
102 len = fn.length();
106 p = fn.c_str() + (len - expected.length());
/system/core/adb/
H A Dcommandline.cpp816 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, argument
849 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total))));
888 static int adb_sideload_host(const char* fn) { argument
895 printf("loading: '%s'", fn);
897 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz));
900 fprintf(stderr, "* cannot read '%s' *\n", fn);
912 status = adb_download_buffer("sideload", fn, data, sz, true);
963 printf("\rserving: '%s' (~%d%%) ", fn, percent);
969 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, "");
H A Dsysdeps_win32.cpp118 void *load_file(const char *fn, unsigned *_sz) argument
125 if (!android::base::UTF8ToWide(fn, &fn_wide))
153 D("load_file: could not read %ld bytes from '%s'", file_size, fn);
/system/core/fastboot/
H A Dfastboot.cpp115 const char *fn; local
119 fn = "boot.img";
121 fn = "recovery.img";
123 fn = "system.img";
125 fn = "vendor.img";
127 fn = "userdata.img";
129 fn = "cache.img";
131 fn = "android-info.txt";
140 "../../../target/product/%s/%s", product, fn);
150 sprintf(path, "%s/%s", dir, fn);
184 load_file(const char* fn, int64_t* sz) argument
968 do_update_signature(ZipArchiveHandle zip, char* fn) argument
1027 do_send_signature(char* fn) argument
[all...]

Completed in 645 milliseconds