Home
last modified time | relevance | path

Searched refs:Func (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/
Dfunction_wrappers.h32 template <typename Func,
73 TrampolineFuncGenerator<Res(Args...), kCallingConventionsVariant>::Func,
88 static void Func(HostCode callee, ThreadState* state) {
89 using Func = Res (*)(Args...);
90 auto func = reinterpret_cast<Func>(const_cast<void*>(callee));
95 template <typename Func, typename std::size_t... I>
96 static void FuncImpl(Func func, ThreadState* state, std::index_sequence<I...>) {
97 GuestParamsValues<Func, kCallingConventionsVariant> params(state);
102 auto&& [ret] = GuestReturnReference<Func, kCallingConventionsVariant>(state);
118 template <typename Func,
[all …]
Dguest_function_wrapper_signature.h128 template <typename Func>
139 template <typename Func>
141 kGuestFunctionWrapperSignatureHelper<std::decay_t<Func>>::kValue)] =
142 kGuestFunctionWrapperSignatureHelper<std::decay_t<Func>>::kValue;
/frameworks/libs/binary_translation/tests/ndk_program_tests/riscv64/
Dhandle_not_executable_test.cc38 using Func = void (*)(); in TEST() typedef
39 ASSERT_EXIT((reinterpret_cast<Func>(code))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
44 using Func = void (*)(); in TEST() typedef
45 ASSERT_EXIT((reinterpret_cast<Func>(const_cast<void*>(g_null_addr)))(), in TEST()
48 ASSERT_EXIT((reinterpret_cast<Func>(4095))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
108 using Func = void (*)(void (*)()); in TEST() typedef
109 ASSERT_EXIT((reinterpret_cast<Func>(start_addr))(&FirstPageExecutionHelper), in TEST()
Druntime_code_patching_test.cc96 auto Func = reinterpret_cast<uint64_t (*)(void*)>(code); in TEST() local
97 uint64_t result = Func(reinterpret_cast<void*>(ClearInsnCache)); in TEST()
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/
Dhandle_not_executable_test.cc38 using Func = void (*)(); in TEST() typedef
39 ASSERT_EXIT((reinterpret_cast<Func>(code))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
44 using Func = void (*)(); in TEST() typedef
45 ASSERT_EXIT((reinterpret_cast<Func>(const_cast<void*>(g_null_addr)))(), in TEST()
48 ASSERT_EXIT((reinterpret_cast<Func>(4095))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
102 using Func = void (*)(void (*)()); in TEST() typedef
103 ASSERT_EXIT((reinterpret_cast<Func>(start_addr))(&FirstPageExecutionHelper), in TEST()
Druntime_code_patching_test.cc67 using Func = int32_t (*)(); in TEST() typedef
68 int32_t result = (reinterpret_cast<Func>(code))(); in TEST()
98 using Func = void* (*)(void*); in TEST() typedef
102 reinterpret_cast<Func>(code), in TEST()
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm64/
Dhandle_not_executable_test.cc38 using Func = void (*)(); in TEST() typedef
39 ASSERT_EXIT((reinterpret_cast<Func>(code))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
44 using Func = void (*)(); in TEST() typedef
45 ASSERT_EXIT((reinterpret_cast<Func>(const_cast<void*>(g_null_addr)))(), in TEST()
48 ASSERT_EXIT((reinterpret_cast<Func>(4095))(), testing::KilledBySignal(SIGSEGV), ""); in TEST()
102 using Func = void (*)(void (*)()); in TEST() typedef
103 ASSERT_EXIT((reinterpret_cast<Func>(start_addr))(&FirstPageExecutionHelper), in TEST()
Druntime_code_patching_test.cc90 auto Func = reinterpret_cast<uint64_t (*)(void*)>(code); in TEST() local
91 uint64_t result = Func(reinterpret_cast<void*>(ClearInsnCache)); in TEST()
/frameworks/native/cmds/installd/
Dfile_parsing.h28 template<typename Func>
29 bool ParseFile(std::istream& input_stream, Func parse) { in ParseFile()
53 template<typename Func>
54 bool ParseFile(const std::string& str_file, Func parse) { in ParseFile()
/frameworks/native/opengl/libs/EGL/
Degl_layers.h73 template <typename Func = void*>
74 Func GetTrampoline(const char* name) const { in GetTrampoline()
76 return reinterpret_cast<Func>( in GetTrampoline()
79 return reinterpret_cast<Func>(dlsym(dlhandle_, name)); in GetTrampoline()
/frameworks/av/media/audioaidlconversion/include/media/
DAidlConversionUtil-impl.h91 template<typename InputIterator, typename OutputIterator, typename Func>
95 const Func& itemConversion) { in convertRange()
106 template<typename InputIterator, typename OutputIterator, typename Func>
110 const Func& itemConversion, in convertRangeWithLimit()
126 template<typename InputContainer, typename OutputContainer, typename Func>
128 const Func& itemConversion) { in convertContainer()
139 template<typename OutputContainer, typename InputContainer, typename Func>
141 convertContainer(const InputContainer& input, const Func& itemConversion) { in convertContainer()
154 template<typename OutputContainer, typename InputContainer, typename Func, typename Parameter>
156 convertContainer(const InputContainer& input, const Func& itemConversion, const Parameter& param) { in convertContainer()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DByteBucketArray.h86 template <class Func>
87 void forEachItem(Func f) { in forEachItem()
98 template <class Func>
99 void trimBuckets(Func isEmptyFunc) { in trimBuckets()
DMutexGuard.h63 template <class Func>
64 void safeDelete(Func f) { in safeDelete()
/frameworks/compile/libbcc/lib/
DRSAddDebugInfoPass.cpp180 void attachDebugInfo(llvm::DIBuilder &DebugInfo, llvm::Function &Func) { in attachDebugInfo() argument
183 for (llvm::Instruction &inst : llvm::instructions(Func)) { in attachDebugInfo()
195 Func.getName(), Func.getName(), in attachDebugInfo()
199 Func.setSubprogram(ExpandedFunc); in attachDebugInfo()
202 llvm::IRBuilder<> ir(&*Func.getEntryBlock().begin()); in attachDebugInfo()
209 for (llvm::Argument &arg : Func.getArgumentList()) { in attachDebugInfo()
250 for (llvm::Instruction &inst : llvm::instructions(Func)) { in attachDebugInfo()
/frameworks/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_test.cc177 using Func = uint8_t( in TEST() typedef
179 uint8_t res = exec.get<Func>()(0, 0xff, 2, 3, 4, 5, 6, 0xf9, 0xf8, 9); in TEST()
210 using Func = in TEST() typedef
212 int8_t res = exec.get<Func>()(0, -1, 2, 3, 4, 5, 6, -7, -8, 9); in TEST()
243 using Func = uint16_t(uint16_t, in TEST() typedef
253 uint16_t res = exec.get<Func>()(0, 0xffff, 2, 3, 4, 5, 6, 0xfff9, 0xfff8, 9); in TEST()
284 using Func = int16_t( in TEST() typedef
286 int16_t res = exec.get<Func>()(0, -1, 2, 3, 4, 5, 6, -7, -8, 9); in TEST()
317 using Func = int(int, int, int, int, int, int, int, int, int, int); in TEST() typedef
318 int res = exec.get<Func>()(0, -1, 2, 3, 4, 5, 6, -7, -8, 9); in TEST()
[all …]
/frameworks/libs/binary_translation/guest_abi/arm64/
Dhost_function_wrapper_test.cc49 typename Func,
52 Func host_function, in CallWrappedHostFunctionFromWrappedGuestFunction()
57 bit_cast<GuestType<GuestResultType (*)(Func, AdditionalParams...)>>(guest_function), in CallWrappedHostFunctionFromWrappedGuestFunction()
/frameworks/libs/binary_translation/guest_abi/arm/
Dhost_function_wrapper_test.cc50 typename Func,
53 Func host_function, in CallWrappedHostFunctionFromWrappedGuestFunction()
58 bit_cast<GuestType<GuestResultType (*)(Func, AdditionalParams...)>>(guest_function), in CallWrappedHostFunctionFromWrappedGuestFunction()
/frameworks/libs/binary_translation/guest_abi/riscv64/
Dhost_function_wrapper_test.cc46 typename Func,
49 Func host_function, in CallWrappedHostFunctionFromWrappedGuestFunction()
54 bit_cast<GuestType<GuestResultType (*)(Func, AdditionalParams...)>>(guest_function), in CallWrappedHostFunctionFromWrappedGuestFunction()
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_xml.h69 typename Func>
70 inline GuestType<Func> WrapHostFunctionIfNeeded(Func func, const char* name) { in WrapHostFunctionIfNeeded()
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DAsyncCallRecorder.h72 template <typename Func>
147 template <typename Func>
/frameworks/compile/libbcc/bcinfo/
DMetadataExtractor.cpp473 llvm::Function *Func = in populateForEachMetadata() local
476 TmpInputCountList[i] = (Func != nullptr) ? in populateForEachMetadata()
477 calculateNumInputs(Func, TmpSigList[i]) : 0; in populateForEachMetadata()
546 llvm::Function *Func = in populateReduceMetadata() local
550 …TmpReduceList[i].mInputCount = (Func ? calculateNumInputs(Func, TmpReduceList[i].mSignature) - 1 :… in populateReduceMetadata()
/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.h65 template<typename OutputContainer, typename Func>
66 status_t getAudioPorts(OutputContainer* ports, Func converter) { in getAudioPorts()
70 template<typename OutputContainer, typename Func>
71 status_t getAudioRoutes(OutputContainer* routes, Func converter) { in getAudioRoutes()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp108 template<typename Func = void*>
109 Func GetTrampoline(const char* name) const { in GetTrampoline()
111 return reinterpret_cast<Func>(android::NativeBridgeGetTrampoline( in GetTrampoline()
114 return reinterpret_cast<Func>(dlsym(dlhandle_, name)); in GetTrampoline()
/frameworks/base/cmds/idmap2/libidmap2/
DXmlParser.cpp91 template <typename Func>
93 Func&& predicate) { in FindAttribute()
/frameworks/base/libs/androidfw/
DUtil.cpp173 template <class Func>
174 static std::vector<std::string> SplitAndTransform(StringPiece str, char sep, Func&& f) { in SplitAndTransform()

12