/system/core/adb/ |
H A D | fdevent.h | 84 void fdevent_run_on_main_thread(std::function<void()> fn);
|
H A D | fdevent.cpp | 294 std::function<void()> fn; local 300 fn = run_queue.front(); 303 fn(); 343 void fdevent_run_on_main_thread(std::function<void()> fn) { argument 345 run_queue.push_back(std::move(fn));
|
/system/extras/libfec/include/fec/ |
H A D | io.h | 126 explicit io(const std::string& fn, int mode = O_RDONLY, int flags = 0, argument 128 open(fn, mode, flags, roots); 135 bool open(const std::string& fn, int mode = O_RDONLY, int flags = 0, argument 139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
|
/system/netd/server/ |
H A D | NetlinkListener.cpp | 87 Status NetlinkListener::subscribe(uint16_t type, const DispatchFn& fn) { argument 89 mDispatchMap[type] = fn; 104 const auto& fn = findWithDefault(mDispatchMap, nlmsg.nlmsg_type, kDefaultDispatchFn); 105 fn(nlmsg, buf);
|
H A D | NFLogListenerTest.cpp | 59 MOCK_METHOD2(subscribe, netdutils::Status(uint16_t type, const DispatchFn& fn)); 81 void subscribe(uint16_t type, NFLogListenerInterface::DispatchFn fn) { argument 84 mListener->subscribe(type, fn);
|
H A D | NFLogListener.cpp | 153 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); 154 fn(nlmsg, nfmsg, drop(msg, sizeof(nfmsg))); 177 Status NFLogListener::subscribe(uint16_t nfLogGroup, const DispatchFn& fn) { argument 178 return subscribe(nfLogGroup, kDefaultPacketRange, fn); 182 uint16_t nfLogGroup, uint32_t copyRange, const DispatchFn& fn) { 184 // Install fn into the dispatch map BEFORE requesting delivery of messages 187 mDispatchMap[nfLogGroup] = fn; 181 subscribe( uint16_t nfLogGroup, uint32_t copyRange, const DispatchFn& fn) argument
|
H A D | InterfaceController.cpp | 109 // Run @fn on each interface as well as 'default' in the path @dirname. 111 std::function<void(const std::string& path, const std::string& iface)> fn) { 113 fn(dirname, "default"); 127 fn(dirname, ent->d_name); 133 auto fn = [basename, value](const std::string& path, const std::string& iface) { local 136 forEachInterface(dirname, fn); 159 auto fn = [min, max](const std::string& prefix, const std::string& iface) { local 170 forEachInterface(ipv6_proc_path, fn); 110 forEachInterface(const std::string& dirname, std::function<void(const std::string& path, const std::string& iface)> fn) argument
|
/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/libcutils/ |
H A D | properties.cpp | 141 int property_list(void (*fn)(const char* name, const char* value, void* cookie), void* cookie) { 142 callback_data data = { fn, cookie };
|
H A D | config_utils.cpp | 311 void config_load_file(cnode *root, const char *fn) argument 313 char* data = static_cast<char*>(load_file(fn, nullptr));
|
/system/core/libunwindstack/include/unwindstack/ |
H A D | Regs.h | 102 virtual void IterateRegisters(std::function<void(const char*, uint64_t)> fn) override { 104 fn(std::to_string(i).c_str(), regs_[i]);
|
/system/core/libutils/ |
H A D | Threads.cpp | 213 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id) 219 pDetails->func = fn; 249 int androidCreateRawThreadEtc(android_thread_func_t fn, 256 return doCreateThread( fn, userData, threadId); 269 int androidCreateThread(android_thread_func_t fn, void* arg) argument 271 return createThreadEtc(fn, arg); 274 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) argument 276 return createThreadEtc(fn, arg, "android:unnamed_thread",
|
/system/sepolicy/tests/ |
H A D | mini_parser.py | 97 fn = basename(policyFile) 98 m = re.match(r"(\d+\.\d+).+\.cil", fn)
|
/system/core/libbacktrace/ |
H A D | backtrace_benchmarks.cpp | 155 static void CreateBacktrace(benchmark::State& state, BacktraceMap* map, BacktraceCreateFn fn) { argument 157 std::unique_ptr<Backtrace> backtrace(fn(getpid(), gettid(), map));
|
/system/extras/perfprofd/ |
H A D | perfprofd_threaded_handler.h | 103 template <typename ConfigFn> bool StartProfiling(ConfigFn fn, std::string* error_msg) { argument 113 fn(*cur_config_);
|
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 139 load_diskconfig(const char *fn, char *path_override) argument 160 config_load_file(root, fn); 162 ALOGE("Could not read config file %s", fn); 167 ALOGE("Could not find device section in config file '%s'", fn);
|
/system/core/libdiskconfig/include/diskconfig/ |
H A D | diskconfig.h | 113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
|
/system/extras/showmap/ |
H A D | showmap.cpp | 175 char fn[128]; local 182 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 183 fp = fopen(fn, "r");
|
/system/netd/libnetdutils/ |
H A D | Syscalls.cpp | 27 // Retry syscall fn as long as it returns -1 with errno == EINTR 29 typename std::result_of<FnT(Params...)>::type syscallRetry(FnT fn, Params&&... params) { argument 30 auto rv = fn(std::forward<Params>(params)...); 32 rv = fn(std::forward<Params>(params)...);
|
/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/include/private/ |
H A D | android_logger.h | 131 __android_log_pmsg_file_read_fn fn,
|
/system/core/liblog/include/private/ |
H A D | android_logger.h | 131 __android_log_pmsg_file_read_fn fn,
|
/system/bt/vendor_libs/linux/interface/ |
H A D | bluetooth_hci.cc | 43 #define WRITE_NO_INTR(fn) \ 45 } while ((fn) == -1 && errno == EINTR)
|