/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/ |
D | function_wrappers.h | 32 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 …]
|
D | guest_function_wrapper_signature.h | 128 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/ |
D | handle_not_executable_test.cc | 38 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()
|
D | runtime_code_patching_test.cc | 96 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/ |
D | handle_not_executable_test.cc | 38 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()
|
D | runtime_code_patching_test.cc | 67 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/ |
D | handle_not_executable_test.cc | 38 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()
|
D | runtime_code_patching_test.cc | 90 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/ |
D | file_parsing.h | 28 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/ |
D | egl_layers.h | 73 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/ |
D | AidlConversionUtil-impl.h | 91 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/ |
D | ByteBucketArray.h | 86 template <class Func> 87 void forEachItem(Func f) { in forEachItem() 98 template <class Func> 99 void trimBuckets(Func isEmptyFunc) { in trimBuckets()
|
D | MutexGuard.h | 63 template <class Func> 64 void safeDelete(Func f) { in safeDelete()
|
/frameworks/compile/libbcc/lib/ |
D | RSAddDebugInfoPass.cpp | 180 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/ |
D | code_gen_lib_riscv64_test.cc | 177 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/ |
D | host_function_wrapper_test.cc | 49 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/ |
D | host_function_wrapper_test.cc | 50 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/ |
D | host_function_wrapper_test.cc | 46 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/ |
D | vulkan_xml.h | 69 typename Func> 70 inline GuestType<Func> WrapHostFunctionIfNeeded(Func func, const char* name) { in WrapHostFunctionIfNeeded()
|
/frameworks/native/services/surfaceflinger/Scheduler/tests/ |
D | AsyncCallRecorder.h | 72 template <typename Func> 147 template <typename Func>
|
/frameworks/compile/libbcc/bcinfo/ |
D | MetadataExtractor.cpp | 473 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/ |
D | Hal2AidlMapper.h | 65 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/ |
D | layers_extensions.cpp | 108 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/ |
D | XmlParser.cpp | 91 template <typename Func> 93 Func&& predicate) { in FindAttribute()
|
/frameworks/base/libs/androidfw/ |
D | Util.cpp | 173 template <class Func> 174 static std::vector<std::string> SplitAndTransform(StringPiece str, char sep, Func&& f) { in SplitAndTransform()
|