Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 68) sorted by relevance

123

/system/core/libunwindstack/
DRegsMips64.cpp65 void RegsMips64::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
66 fn("r0", regs_[MIPS64_REG_R0]); in IterateRegisters()
67 fn("r1", regs_[MIPS64_REG_R1]); in IterateRegisters()
68 fn("r2", regs_[MIPS64_REG_R2]); in IterateRegisters()
69 fn("r3", regs_[MIPS64_REG_R3]); in IterateRegisters()
70 fn("r4", regs_[MIPS64_REG_R4]); in IterateRegisters()
71 fn("r5", regs_[MIPS64_REG_R5]); in IterateRegisters()
72 fn("r6", regs_[MIPS64_REG_R6]); in IterateRegisters()
73 fn("r7", regs_[MIPS64_REG_R7]); in IterateRegisters()
74 fn("r8", regs_[MIPS64_REG_R8]); in IterateRegisters()
[all …]
DRegsMips.cpp65 void RegsMips::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
66 fn("r0", regs_[MIPS_REG_R0]); in IterateRegisters()
67 fn("r1", regs_[MIPS_REG_R1]); in IterateRegisters()
68 fn("r2", regs_[MIPS_REG_R2]); in IterateRegisters()
69 fn("r3", regs_[MIPS_REG_R3]); in IterateRegisters()
70 fn("r4", regs_[MIPS_REG_R4]); in IterateRegisters()
71 fn("r5", regs_[MIPS_REG_R5]); in IterateRegisters()
72 fn("r6", regs_[MIPS_REG_R6]); in IterateRegisters()
73 fn("r7", regs_[MIPS_REG_R7]); in IterateRegisters()
74 fn("r8", regs_[MIPS_REG_R8]); in IterateRegisters()
[all …]
DRegsArm64.cpp85 void RegsArm64::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
86 fn("x0", regs_[ARM64_REG_R0]); in IterateRegisters()
87 fn("x1", regs_[ARM64_REG_R1]); in IterateRegisters()
88 fn("x2", regs_[ARM64_REG_R2]); in IterateRegisters()
89 fn("x3", regs_[ARM64_REG_R3]); in IterateRegisters()
90 fn("x4", regs_[ARM64_REG_R4]); in IterateRegisters()
91 fn("x5", regs_[ARM64_REG_R5]); in IterateRegisters()
92 fn("x6", regs_[ARM64_REG_R6]); in IterateRegisters()
93 fn("x7", regs_[ARM64_REG_R7]); in IterateRegisters()
94 fn("x8", regs_[ARM64_REG_R8]); in IterateRegisters()
[all …]
DRegsArm.cpp64 void RegsArm::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
65 fn("r0", regs_[ARM_REG_R0]); in IterateRegisters()
66 fn("r1", regs_[ARM_REG_R1]); in IterateRegisters()
67 fn("r2", regs_[ARM_REG_R2]); in IterateRegisters()
68 fn("r3", regs_[ARM_REG_R3]); in IterateRegisters()
69 fn("r4", regs_[ARM_REG_R4]); in IterateRegisters()
70 fn("r5", regs_[ARM_REG_R5]); in IterateRegisters()
71 fn("r6", regs_[ARM_REG_R6]); in IterateRegisters()
72 fn("r7", regs_[ARM_REG_R7]); in IterateRegisters()
73 fn("r8", regs_[ARM_REG_R8]); in IterateRegisters()
[all …]
DRegsX86_64.cpp66 void RegsX86_64::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
67 fn("rax", regs_[X86_64_REG_RAX]); in IterateRegisters()
68 fn("rbx", regs_[X86_64_REG_RBX]); in IterateRegisters()
69 fn("rcx", regs_[X86_64_REG_RCX]); in IterateRegisters()
70 fn("rdx", regs_[X86_64_REG_RDX]); in IterateRegisters()
71 fn("r8", regs_[X86_64_REG_R8]); in IterateRegisters()
72 fn("r9", regs_[X86_64_REG_R9]); in IterateRegisters()
73 fn("r10", regs_[X86_64_REG_R10]); in IterateRegisters()
74 fn("r11", regs_[X86_64_REG_R11]); in IterateRegisters()
75 fn("r12", regs_[X86_64_REG_R12]); in IterateRegisters()
[all …]
DRegsX86.cpp65 void RegsX86::IterateRegisters(std::function<void(const char*, uint64_t)> fn) { in IterateRegisters() argument
66 fn("eax", regs_[X86_REG_EAX]); in IterateRegisters()
67 fn("ebx", regs_[X86_REG_EBX]); in IterateRegisters()
68 fn("ecx", regs_[X86_REG_ECX]); in IterateRegisters()
69 fn("edx", regs_[X86_REG_EDX]); in IterateRegisters()
70 fn("ebp", regs_[X86_REG_EBP]); in IterateRegisters()
71 fn("edi", regs_[X86_REG_EDI]); in IterateRegisters()
72 fn("esi", regs_[X86_REG_ESI]); in IterateRegisters()
73 fn("esp", regs_[X86_REG_ESP]); in IterateRegisters()
74 fn("eip", regs_[X86_REG_EIP]); in IterateRegisters()
/system/extras/sound/
Dplaywav.c154 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/security/keystore/
Dkeystore_aidl_hidl_marshalling_utils.h30 inline auto nullable(Fn fn, const android::Parcel& in, Args&&... args)
31 -> NullOr<decltype(fn(in, std::forward<Args>(args)...))> {
36 return fn(in, std::forward<Args>(args)...);
39 inline android::status_t nullable(Fn fn, const NullOr<Arg>& arg, android::Parcel* out) { in nullable() argument
46 return fn(arg.value(), out); in nullable()
49 inline android::status_t nullable(Fn fn, Arg&& arg, android::Parcel* out) { in nullable() argument
53 return fn(std::forward<Arg>(arg), out); in nullable()
/system/netd/libnetdutils/include/netdutils/
DMisc.h40 explicit Cleanup(FnT fn) : mFn(fn) {} in Cleanup() argument
56 Cleanup<FnT> makeCleanup(FnT fn) { in makeCleanup() argument
57 return Cleanup<FnT>(fn); in makeCleanup()
/system/netd/server/
DNFLogListener.h42 virtual netdutils::Status subscribe(uint16_t nfLogGroup, const DispatchFn& fn) = 0;
47 uint16_t nfLogGroup, uint32_t copyRange, const DispatchFn& fn) = 0;
71 netdutils::Status subscribe(uint16_t nfLogGroup, const DispatchFn& fn) override;
74 uint16_t nfLogGroup, uint32_t copyRange, const DispatchFn& fn) override;
DNetlinkListener.cpp94 Status NetlinkListener::subscribe(uint16_t type, const DispatchFn& fn) { in subscribe() argument
96 mDispatchMap[type] = fn; in subscribe()
115 const auto& fn = findWithDefault(mDispatchMap, nlmsg.nlmsg_type, kDefaultDispatchFn); in run() local
116 fn(nlmsg, buf); in run()
DNFLogListener.cpp151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener() local
152 fn(nlmsg, nfmsg, drop(msg, sizeof(nfmsg))); in NFLogListener()
175 Status NFLogListener::subscribe(uint16_t nfLogGroup, const DispatchFn& fn) { in subscribe() argument
176 return subscribe(nfLogGroup, kDefaultPacketRange, fn); in subscribe()
180 uint16_t nfLogGroup, uint32_t copyRange, const DispatchFn& fn) { in subscribe() argument
185 mDispatchMap[nfLogGroup] = fn; in subscribe()
DNetlinkListener.h50 virtual netdutils::Status subscribe(uint16_t type, const DispatchFn& fn) = 0;
84 netdutils::Status subscribe(uint16_t type, const DispatchFn& fn) override EXCLUDES(mMutex);
/system/bt/gd/cert/
Dbehavior.py61 def set_default(self, fn): argument
62 assertThat(fn).isNotNone()
63 self._default_fn = fn
126 def _commit(self, fn): argument
127 self._behavior.append(BehaviorInstance(self._matcher, self._persistence, fn))
132 def __init__(self, matcher, persistence, fn): argument
135 self._fn = fn
/system/bt/gd/os/
Dutils.h22 #define RUN_NO_INTR(fn) \ argument
24 } while ((fn) == -1 && errno == EINTR)
/system/bt/common/
Dutils.h21 #define RUN_NO_INTR(fn) \ argument
23 } while ((fn) == -1 && errno == EINTR)
/system/memory/libmemunreachable/
DBinder.cpp38 std::function<ssize_t(size_t, uintptr_t*)> fn) { in BinderReferencesToVector() argument
39 if (fn == nullptr) { in BinderReferencesToVector()
48 ssize_t ret = fn(refs.size(), refs.data()); in BinderReferencesToVector()
/system/apex/apexer/
Dapexer_test.py256 fd, fn = tempfile.mkstemp(prefix=self._testMethodName+"_repacked_", suffix=apex_suffix)
258 self._to_cleanup.append(fn)
259 cmd.extend([payload_dir, fn])
262 return fn
265 fd, fn = tempfile.mkstemp(prefix=self._testMethodName+"_repacked_", suffix=".apex")
267 self._to_cleanup.append(fn)
275 unsigned_apex, fn]
277 return fn
311 fd, fn = tempfile.mkstemp(prefix=self._testMethodName+"_input_", suffix=".apex")
313 shutil.copyfile(apex_file_path, fn)
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dpolled_socket.h32 #define WHILE_EINTR(fn) \ argument
34 } while ((fn) == -1 && errno == EINTR)
/system/bt/osi/include/
Dosi.h56 #define OSI_NO_INTR(fn) \ argument
58 } while ((fn) == -1 && errno == EINTR)
/system/core/adb/fdevent/
Dfdevent.cpp158 std::function<void()> fn; in FlushRunQueue() local
164 fn = std::move(this->run_queue_.front()); in FlushRunQueue()
167 fn(); in FlushRunQueue()
177 void fdevent_context::Run(std::function<void()> fn) { in Run() argument
180 run_queue_.push_back(std::move(fn)); in Run()
242 void fdevent_run_on_main_thread(std::function<void()> fn) { in fdevent_run_on_main_thread() argument
243 fdevent_get_ambient()->Run(std::move(fn)); in fdevent_run_on_main_thread()
/system/core/libcutils/
Dload_file.cpp24 void *load_file(const char *fn, unsigned *_sz) in load_file() argument
31 fd = open(fn, O_RDONLY); in load_file()
Dcanned_fs_config.cpp44 int load_canned_fs_config(const char* fn) { in load_canned_fs_config() argument
48 f = fopen(fn, "r"); in load_canned_fs_config()
50 fprintf(stderr, "failed to open %s: %s\n", fn, strerror(errno)); in load_canned_fs_config()
/system/extras/libfec/include/fec/
Dio.h126 explicit io(const std::string& fn, int mode = O_RDONLY, int flags = 0,
128 open(fn, mode, flags, roots); in handle_()
135 bool open(const std::string& fn, int mode = O_RDONLY, int flags = 0,
139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
/system/apex/apexd/
Dapexd_prepostinstall.cpp66 Result<void> StageFnInstall(const std::vector<ApexFile>& apexes, Fn fn, in StageFnInstall() argument
72 if (!(apexes[i].GetManifest().*fn)().empty()) { in StageFnInstall()
147 int RunFnInstall(char** in_argv, Fn fn, const char* name) { in RunFnInstall() argument
163 auto bind_fn = [&fn, name](const std::string& mount_point) { in RunFnInstall()
184 hook = (manifest.*fn)(); in RunFnInstall()

123