Lines Matching refs:method
301 const Method* method = tuple.method(); in generateInterfaceHeader() local
305 const bool returnsValue = !method->results().empty(); in generateInterfaceHeader()
306 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateInterfaceHeader()
309 DocComment("Return callback for " + method->name(), HIDL_LOCATION_HERE).emit(out); in generateInterfaceHeader()
311 << method->name() in generateInterfaceHeader()
313 method->emitCppResultSignature(out, true /* specify namespaces */); in generateInterfaceHeader()
317 method->emitDocComment(out); in generateInterfaceHeader()
326 out << method->name() in generateInterfaceHeader()
328 method->emitCppArgSignature(out, true /* specify namespaces */); in generateInterfaceHeader()
330 if (method->isHidlReserved()) { in generateInterfaceHeader()
458 void AST::generatePassthroughMethod(Formatter& out, const Method* method, const Interface* superInt… in generatePassthroughMethod() argument
459 method->generateCppSignature(out); in generatePassthroughMethod()
464 if (method->isHidlReserved() in generatePassthroughMethod()
465 && method->overridesCppImpl(IMPL_PASSTHROUGH)) { in generatePassthroughMethod()
466 method->cppImpl(IMPL_PASSTHROUGH, out); in generatePassthroughMethod()
472 const bool returnsValue = !method->results().empty(); in generatePassthroughMethod()
473 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generatePassthroughMethod()
478 method, in generatePassthroughMethod()
482 for (const auto &arg : method->args()) { in generatePassthroughMethod()
497 if (method->isOneway()) { in generatePassthroughMethod()
511 << method->name() in generatePassthroughMethod()
514 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod()
529 if (!method->args().empty()) { in generatePassthroughMethod()
533 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod()
543 method, in generatePassthroughMethod()
547 for (const auto &arg : method->results()) { in generatePassthroughMethod()
582 method, in generatePassthroughMethod()
586 if (method->isOneway()) { in generatePassthroughMethod()
604 const Method *method = tuple.method(); in generateMethods() local
620 gen(method, superInterface); in generateMethods()
703 [&](const Method* method, const Interface*) { in generateStubHeader() argument
704 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateStubHeader()
708 out << "static ::android::status_t _hidl_" << method->name() << "(\n"; in generateStubHeader()
726 generateMethods(out, [&](const Method* method, const Interface* iface) { in generateStubHeader() argument
727 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStubHeader()
730 const bool returnsValue = !method->results().empty(); in generateStubHeader()
731 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStubHeader()
734 out << "using " << method->name() << "_cb = " in generateStubHeader()
736 << "::" << method->name() << "_cb;\n"; in generateStubHeader()
738 method->generateCppSignature(out); in generateStubHeader()
794 [&](const Method* method, const Interface*) { in generateProxyHeader() argument
795 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateProxyHeader()
800 method->generateCppReturnType(out); in generateProxyHeader()
801 out << " _hidl_" << method->name() << "(" in generateProxyHeader()
805 if (!method->hasEmptyCppArgSignature()) { in generateProxyHeader()
808 method->emitCppArgSignature(out); in generateProxyHeader()
813 generateMethods(out, [&](const Method* method, const Interface*) { in generateProxyHeader() argument
814 method->generateCppSignature(out); in generateProxyHeader()
976 const Method* method, const Interface* superInterface) const { in generateProxyMethodSource() argument
977 method->generateCppSignature(out, in generateProxyMethodSource()
981 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateProxyMethodSource()
983 method->cppImpl(IMPL_PROXY, out); in generateProxyMethodSource()
989 const bool returnsValue = !method->results().empty(); in generateProxyMethodSource()
990 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateProxyMethodSource()
992 method->generateCppReturnType(out); in generateProxyMethodSource()
999 << method->name() in generateProxyMethodSource()
1002 if (!method->hasEmptyCppArgSignature()) { in generateProxyMethodSource()
1006 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generateProxyMethodSource()
1011 if (!method->args().empty()) { in generateProxyMethodSource()
1024 … const Method* method, const Interface* superInterface) const { in generateStaticProxyMethodSource() argument
1025 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateStaticProxyMethodSource()
1029 method->generateCppReturnType(out); in generateStaticProxyMethodSource()
1033 << method->name() in generateStaticProxyMethodSource()
1038 if (!method->hasEmptyCppArgSignature()) { in generateStaticProxyMethodSource()
1042 method->emitCppArgSignature(out); in generateStaticProxyMethodSource()
1054 const bool returnsValue = !method->results().empty(); in generateStaticProxyMethodSource()
1055 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStaticProxyMethodSource()
1061 method, in generateStaticProxyMethodSource()
1072 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1085 for (const auto &arg : method->args()) { in generateStaticProxyMethodSource()
1104 << method->getSerialId() << " /* " << method->name() in generateStaticProxyMethodSource()
1107 if (method->isOneway()) { in generateStaticProxyMethodSource()
1118 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1129 if (!method->isOneway()) { in generateStaticProxyMethodSource()
1141 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource()
1155 … out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) { in generateStaticProxyMethodSource()
1169 method, in generateStaticProxyMethodSource()
1197 out << method->results().at(0)->type().getCppResultType(); in generateStaticProxyMethodSource()
1245 [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1246 generateStaticProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1250 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1251 generateProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1328 [&](const Method* method, const Interface* superInterface) { in generateStubSource() argument
1329 … return generateStaticStubMethodSource(out, iface->fqName(), method, superInterface); in generateStubSource()
1333 generateMethods(out, [&](const Method* method, const Interface*) { in generateStubSource() argument
1334 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStubSource()
1337 method->generateCppSignature(out, iface->getStubName()); in generateStubSource()
1340 method->cppImpl(IMPL_STUB_IMPL, out); in generateStubSource()
1362 const Method *method = tuple.method(); in generateStubSource() local
1365 if (!isIBase() && method->isHidlReserved()) { in generateStubSource()
1369 << method->getSerialId() in generateStubSource()
1371 << method->name() in generateStubSource()
1376 generateStubSourceForMethod(out, method, superInterface); in generateStubSource()
1423 void AST::generateStubSourceForMethod(Formatter& out, const Method* method, in generateStubSourceForMethod() argument
1425 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStubSourceForMethod()
1426 method->cppImpl(IMPL_STUB, out); in generateStubSourceForMethod()
1436 << method->name() in generateStubSourceForMethod()
1442 … const Method* method, const Interface* superInterface) const { in generateStaticStubMethodSource() argument
1443 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStaticStubMethodSource()
1449 out << "::android::status_t " << klassName << "::_hidl_" << method->name() << "(\n"; in generateStaticStubMethodSource()
1478 declareCppReaderLocals(out, method->args(), false /* forResults */); in generateStaticStubMethodSource()
1480 for (const auto &arg : method->args()) { in generateStaticStubMethodSource()
1494 method, in generateStaticStubMethodSource()
1497 const bool returnsValue = !method->results().empty(); in generateStaticStubMethodSource()
1498 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStaticStubMethodSource()
1502 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStaticStubMethodSource()
1513 << callee << "->" << method->name() in generateStaticStubMethodSource()
1516 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1543 method, in generateStaticStubMethodSource()
1553 out << "::android::hardware::Return<void> _hidl_ret = " << callee << "->" << method->name() in generateStaticStubMethodSource()
1556 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1565 if (!method->args().empty()) { in generateStaticStubMethodSource()
1571 … out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generateStaticStubMethodSource()
1580 << method->name() in generateStaticStubMethodSource()
1589 for (const auto &arg : method->results()) { in generateStaticStubMethodSource()
1600 if (!method->results().empty()) { in generateStaticStubMethodSource()
1609 method, in generateStaticStubMethodSource()
1623 method, in generateStaticStubMethodSource()
1633 << method->name() in generateStaticStubMethodSource()
1689 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generatePassthroughHeader() argument
1690 generatePassthroughMethod(out, method, superInterface); in generatePassthroughHeader()
1720 generateMethods(out, [&](const Method* method, const Interface*) { in generateInterfaceSource() argument
1721 bool reserved = method->isHidlReserved(); in generateInterfaceSource()
1726 method->generateCppSignature(out, iface->definedName()); in generateInterfaceSource()
1729 method->cppImpl(IMPL_INTERFACE, out); in generateInterfaceSource()
1798 const Method *method) const { in generateCppAtraceCall()
1800 std::string baseString = "HIDL::" + iface->definedName() + "::" + method->name(); in generateCppAtraceCall()
1840 const Method *method, in generateCppInstrumentationCall() argument
1842 generateCppAtraceCall(out, event, method); in generateCppInstrumentationCall()
1853 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1864 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1874 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1884 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1896 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1906 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1923 << "\", \"" << method->name() << "\", &_hidl_args);\n"; in generateCppInstrumentationCall()