Lines Matching refs:arg

431 static std::string wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg,  in wrapPassthroughArg()  argument
433 if (!arg->type().isInterface()) { in wrapPassthroughArg()
437 const Interface &iface = static_cast<const Interface &>(arg->type()); in wrapPassthroughArg()
482 for (const auto &arg : method->args()) { in generatePassthroughMethod() local
483 std::string name = wrapPassthroughArg(out, arg, arg->name(), [&] { in generatePassthroughMethod()
503 for (const std::string& arg : wrappedArgNames) { in generatePassthroughMethod() local
504 out << ", " << arg; in generatePassthroughMethod()
514 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument
515 out << (arg->type().isInterface() ? "_hidl_wrapped_" : "") << arg->name(); in generatePassthroughMethod()
533 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument
535 << arg->name(); in generatePassthroughMethod()
547 for (const auto &arg : method->results()) { in generatePassthroughMethod() local
549 wrapPassthroughArg(out, arg, "_hidl_out_" + arg->name(), kHandlePassthroughError)); in generatePassthroughMethod()
554 [&](const std::string& arg) { out << arg; }); in generatePassthroughMethod() argument
940 for (const auto &arg : args) { in declareCppReaderLocals() local
941 const Type &type = arg->type(); in declareCppReaderLocals()
945 << (forResults ? "_hidl_out_" : "") + arg->name() in declareCppReaderLocals()
953 const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, in emitCppReaderWriter() argument
955 const Type &type = arg->type(); in emitCppReaderWriter()
959 addPrefixToName ? ("_hidl_out_" + arg->name()) : arg->name(), in emitCppReaderWriter()
997 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generateProxyMethodSource() argument
998 out << arg->name(); in generateProxyMethodSource()
1073 for (const auto &arg : method->args()) { in generateStaticProxyMethodSource() local
1074 if (arg->type().isInterface()) { in generateStaticProxyMethodSource()
1081 arg, in generateStaticProxyMethodSource()
1130 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource() local
1135 arg, in generateStaticProxyMethodSource()
1144 … out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) { in generateStaticProxyMethodSource() argument
1145 if (arg->type().resultNeedsDeref()) { in generateStaticProxyMethodSource()
1148 out << "_hidl_out_" << arg->name(); in generateStaticProxyMethodSource()
1464 for (const auto &arg : method->args()) { in generateStaticStubMethodSource() local
1469 arg, in generateStaticStubMethodSource()
1500 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource() argument
1501 if (arg->type().resultNeedsDeref()) { in generateStaticStubMethodSource()
1504 out << arg->name(); in generateStaticStubMethodSource()
1540 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource() argument
1541 if (arg->type().resultNeedsDeref()) { in generateStaticStubMethodSource()
1545 out << arg->name(); in generateStaticStubMethodSource()
1555 … out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generateStaticStubMethodSource() argument
1556 out << "const auto &_hidl_out_" << arg->name(); in generateStaticStubMethodSource()
1573 for (const auto &arg : method->results()) { in generateStaticStubMethodSource() local
1578 arg, in generateStaticStubMethodSource()
1837 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1839 << (arg->type().resultNeedsDeref() ? "" : "&") in generateCppInstrumentationCall()
1840 << arg->name() in generateCppInstrumentationCall()
1848 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1850 << arg->name() in generateCppInstrumentationCall()
1858 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1860 << arg->name() in generateCppInstrumentationCall()
1868 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1870 << (arg->type().resultNeedsDeref() ? "" : "&") in generateCppInstrumentationCall()
1872 << arg->name() in generateCppInstrumentationCall()
1880 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1882 << arg->name() in generateCppInstrumentationCall()
1890 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1892 << arg->name() in generateCppInstrumentationCall()