Lines Matching refs:arg

435 static std::string wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg,  in wrapPassthroughArg()  argument
437 if (!arg->type().isInterface()) { in wrapPassthroughArg()
441 const Interface &iface = static_cast<const Interface &>(arg->type()); in wrapPassthroughArg()
486 for (const auto &arg : method->args()) { in generatePassthroughMethod() local
487 std::string name = wrapPassthroughArg(out, arg, arg->name(), [&] { in generatePassthroughMethod()
507 for (const std::string& arg : wrappedArgNames) { in generatePassthroughMethod() local
508 out << ", " << arg; in generatePassthroughMethod()
518 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument
519 out << (arg->type().isInterface() ? "_hidl_wrapped_" : "") << arg->name(); in generatePassthroughMethod()
537 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod() argument
539 << arg->name(); in generatePassthroughMethod()
551 for (const auto &arg : method->results()) { in generatePassthroughMethod() local
553 wrapPassthroughArg(out, arg, "_hidl_out_" + arg->name(), kHandlePassthroughError)); in generatePassthroughMethod()
558 [&](const std::string& arg) { out << arg; }); in generatePassthroughMethod() argument
954 for (const auto &arg : args) { in declareCppReaderLocals() local
955 const Type &type = arg->type(); in declareCppReaderLocals()
959 << (forResults ? "_hidl_out_" : "") + arg->name() in declareCppReaderLocals()
967 const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, in emitCppReaderWriter() argument
969 const Type &type = arg->type(); in emitCppReaderWriter()
973 addPrefixToName ? ("_hidl_out_" + arg->name()) : arg->name(), in emitCppReaderWriter()
1011 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generateProxyMethodSource() argument
1012 out << arg->name(); in generateProxyMethodSource()
1090 for (const auto &arg : method->args()) { in generateStaticProxyMethodSource() local
1091 if (arg->type().isInterface()) { in generateStaticProxyMethodSource()
1098 arg, in generateStaticProxyMethodSource()
1146 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource() local
1151 arg, in generateStaticProxyMethodSource()
1160 … out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) { in generateStaticProxyMethodSource() argument
1161 if (arg->type().resultNeedsDeref()) { in generateStaticProxyMethodSource()
1164 out << "_hidl_out_" << arg->name(); in generateStaticProxyMethodSource()
1485 for (const auto &arg : method->args()) { in generateStaticStubMethodSource() local
1490 arg, in generateStaticStubMethodSource()
1521 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource() argument
1522 if (arg->type().resultNeedsDeref()) { in generateStaticStubMethodSource()
1525 out << arg->name(); in generateStaticStubMethodSource()
1561 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource() argument
1562 if (arg->type().resultNeedsDeref()) { in generateStaticStubMethodSource()
1566 out << arg->name(); in generateStaticStubMethodSource()
1576 … out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generateStaticStubMethodSource() argument
1577 out << "const auto &_hidl_out_" << arg->name(); in generateStaticStubMethodSource()
1594 for (const auto &arg : method->results()) { in generateStaticStubMethodSource() local
1599 arg, in generateStaticStubMethodSource()
1858 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1860 << (arg->type().resultNeedsDeref() ? "" : "&") in generateCppInstrumentationCall()
1861 << arg->name() in generateCppInstrumentationCall()
1869 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1871 << arg->name() in generateCppInstrumentationCall()
1879 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1881 << arg->name() in generateCppInstrumentationCall()
1889 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1891 << (arg->type().resultNeedsDeref() ? "" : "&") in generateCppInstrumentationCall()
1893 << arg->name() in generateCppInstrumentationCall()
1901 for (const auto &arg : method->args()) { in generateCppInstrumentationCall() local
1903 << arg->name() in generateCppInstrumentationCall()
1911 for (const auto &arg : method->results()) { in generateCppInstrumentationCall() local
1913 << arg->name() in generateCppInstrumentationCall()