Home
last modified time | relevance | path

Searched refs:Ret (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/include/ftl/details/
Dfunction.h37 template <typename Class, typename Ret, typename... Args>
38 struct remove_member_function_pointer<Ret (Class::*)(Args...)> {
39 using type = Ret(Args...);
42 template <typename Class, typename Ret, typename... Args>
43 struct remove_member_function_pointer<Ret (Class::*)(Args...) const> {
44 using type = Ret(Args...);
53 template <typename Ret, typename... Args>
54 auto bind_opaque_no_op() -> Ret (*)(void*, Args...) {
55 return [](void*, Args...) -> Ret {
56 if constexpr (!std::is_void_v<Ret>) {
[all …]
/frameworks/native/include/ftl/
Dfunction.h155 template <typename Ret, typename... Args, std::size_t N>
156 class Function<Ret(Args...), N> final {
165 using result_type = Ret;
176 Function(NoOpTag) : function_(details::bind_opaque_no_op<Ret, Args...>()) {}
184 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>>
187 function_(details::bind_opaque_function_object<F, Ret, Args...>(f)) {}
189 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>>
192 details::bind_opaque_function_object<F, Ret, Args...>(f)};
198 Function(const Function<Ret(Args...), M>& other)
202 auto& operator=(const Function<Ret(Args...), M>& other) {
[all …]
/frameworks/av/media/utils/include/mediautils/
DInPlaceFunction.h28 template <typename Ret, typename... Args>
33 Ret (*invoke)(void* storage, Args&&...) = nullptr;
75 template <typename Ret, typename... Args, size_t BufferSize>
76 class InPlaceFunction<Ret(Args...), BufferSize> {
89 [[noreturn]] Ret operator()(Args...) { std::abort(); } in operator()
114 constexpr static detail::ICallableTable<Ret, Args...> table = {
117 .invoke = [](void* storage, Args&&... args) -> Ret {
118 if constexpr (std::is_void_v<Ret>) {
143 struct IsInPlaceFunction<InPlaceFunction<Ret(Args...), BufferSize_>> : std::true_type {};
171 if constexpr (std::is_void_v<Ret>) {
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DAsyncCallRecorder.h150 template <typename Ret, typename... Args>
151 class AsyncCallRecorderWithCannedReturn<Ret (*)(Args...)>
154 explicit AsyncCallRecorderWithCannedReturn(Ret returnvalue) : mReturnValue(returnvalue) {} in AsyncCallRecorderWithCannedReturn()
164 const Ret mReturnValue;
/frameworks/libs/binary_translation/assembler/
Dassembler_test.cc91 assembler.Ret(); in AssemblerTest()
147 as.Ret(); in LabelTest()
164 as.Ret(); in CondTest1()
194 as.Ret(); in CondTest2()
241 as.Ret(); in JccTest()
274 as.Ret(); in ShiftTest()
292 as.Ret(); in LogicTest()
310 as.Ret(); in BsrTest()
329 as.Ret(); in CallFPTest()
348 as.Ret(); in XmmTest()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_reduce.cpp169 clang::FunctionDecl *Ret = nullptr; in lookupFunction() local
176 if (Ret) { in lookupFunction()
180 << Ret->getLocation().printToString(S.PP.getSourceManager()) in lookupFunction()
185 Ret = FDecl; in lookupFunction()
188 if (!Ret) { in lookupFunction()
196 if (Ret) { in lookupFunction()
198 if (Ret->getFormalLinkage() != clang::InternalLinkage) { in lookupFunction()
199 S.RSC.ReportError(Ret->getLocation(), "%0 must be static") in lookupFunction()
204 if (Ret == nullptr) in lookupFunction()
206 return Ret; in lookupFunction()
Dslang_rs_pragma_handler.cpp253 std::string Ret; in ListKeywords() local
259 Ret += ", "; in ListKeywords()
260 Ret += "'"; in ListKeywords()
261 Ret += entry.first; in ListKeywords()
262 Ret += "'"; in ListKeywords()
264 return Ret; in ListKeywords()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dcall_intrinsic_tests.cc81 as.Ret(); in Init()
/frameworks/libs/binary_translation/code_gen_lib/
Dgen_wrapper_riscv64_to_x86_64.cc239 as.Ret(); in GenWrapGuestFunction()
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp793 auto *Ret = StructType::create(Context, Name); in createIdentifiedStructType() local
794 IdentifiedStructTypes.push_back(Ret); in createIdentifiedStructType()
795 return Ret; in createIdentifiedStructType()
799 auto *Ret = StructType::create(Context); in createIdentifiedStructType() local
800 IdentifiedStructTypes.push_back(Ret); in createIdentifiedStructType()
801 return Ret; in createIdentifiedStructType()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.cpp1068 auto *Ret = StructType::create(Context, Name); in createIdentifiedStructType() local
1069 IdentifiedStructTypes.push_back(Ret); in createIdentifiedStructType()
1070 return Ret; in createIdentifiedStructType()
1074 auto *Ret = StructType::create(Context); in createIdentifiedStructType() local
1075 IdentifiedStructTypes.push_back(Ret); in createIdentifiedStructType()
1076 return Ret; in createIdentifiedStructType()
/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_exec_test.cc90 as.Ret(); in Init()
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp1149 case Instruction::Ret: in WriteInstruction()
/frameworks/compile/slang/BitWriter_2_9_func/
DBitcodeWriter.cpp1147 case Instruction::Ret: in WriteInstruction()
/frameworks/compile/slang/BitWriter_3_2/
DBitcodeWriter.cpp1180 case Instruction::Ret: in WriteInstruction()