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()
694 [&](const Method* method, const Interface*) { in generateStubHeader() argument
695 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateStubHeader()
699 out << "static ::android::status_t _hidl_" << method->name() << "(\n"; in generateStubHeader()
717 generateMethods(out, [&](const Method* method, const Interface* iface) { in generateStubHeader() argument
718 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStubHeader()
721 const bool returnsValue = !method->results().empty(); in generateStubHeader()
722 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStubHeader()
725 out << "using " << method->name() << "_cb = " in generateStubHeader()
727 << "::" << method->name() << "_cb;\n"; in generateStubHeader()
729 method->generateCppSignature(out); in generateStubHeader()
785 [&](const Method* method, const Interface*) { in generateProxyHeader() argument
786 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateProxyHeader()
791 method->generateCppReturnType(out); in generateProxyHeader()
792 out << " _hidl_" << method->name() << "(" in generateProxyHeader()
796 if (!method->hasEmptyCppArgSignature()) { in generateProxyHeader()
799 method->emitCppArgSignature(out); in generateProxyHeader()
804 generateMethods(out, [&](const Method* method, const Interface*) { in generateProxyHeader() argument
805 method->generateCppSignature(out); in generateProxyHeader()
967 const Method* method, const Interface* superInterface) const { in generateProxyMethodSource() argument
968 method->generateCppSignature(out, in generateProxyMethodSource()
972 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateProxyMethodSource()
974 method->cppImpl(IMPL_PROXY, out); in generateProxyMethodSource()
980 const bool returnsValue = !method->results().empty(); in generateProxyMethodSource()
981 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateProxyMethodSource()
983 method->generateCppReturnType(out); in generateProxyMethodSource()
990 << method->name() in generateProxyMethodSource()
993 if (!method->hasEmptyCppArgSignature()) { in generateProxyMethodSource()
997 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) { in generateProxyMethodSource()
1002 if (!method->args().empty()) { in generateProxyMethodSource()
1015 … const Method* method, const Interface* superInterface) const { in generateStaticProxyMethodSource() argument
1016 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) { in generateStaticProxyMethodSource()
1020 method->generateCppReturnType(out); in generateStaticProxyMethodSource()
1024 << method->name() in generateStaticProxyMethodSource()
1029 if (!method->hasEmptyCppArgSignature()) { in generateStaticProxyMethodSource()
1033 method->emitCppArgSignature(out); in generateStaticProxyMethodSource()
1045 const bool returnsValue = !method->results().empty(); in generateStaticProxyMethodSource()
1046 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStaticProxyMethodSource()
1052 method, in generateStaticProxyMethodSource()
1063 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1073 for (const auto &arg : method->args()) { in generateStaticProxyMethodSource()
1092 << method->getSerialId() in generateStaticProxyMethodSource()
1094 << method->name() in generateStaticProxyMethodSource()
1097 if (method->isOneway()) { in generateStaticProxyMethodSource()
1107 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1118 if (!method->isOneway()) { in generateStaticProxyMethodSource()
1130 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource()
1144 … out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) { in generateStaticProxyMethodSource()
1158 method, in generateStaticProxyMethodSource()
1186 out << method->results().at(0)->type().getCppResultType(); in generateStaticProxyMethodSource()
1234 [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1235 generateStaticProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1239 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1240 generateProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1312 [&](const Method* method, const Interface* superInterface) { in generateStubSource() argument
1313 … return generateStaticStubMethodSource(out, iface->fqName(), method, superInterface); in generateStubSource()
1317 generateMethods(out, [&](const Method* method, const Interface*) { in generateStubSource() argument
1318 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStubSource()
1321 method->generateCppSignature(out, iface->getStubName()); in generateStubSource()
1324 method->cppImpl(IMPL_STUB_IMPL, out); in generateStubSource()
1346 const Method *method = tuple.method(); in generateStubSource() local
1349 if (!isIBase() && method->isHidlReserved()) { in generateStubSource()
1353 << method->getSerialId() in generateStubSource()
1355 << method->name() in generateStubSource()
1360 generateStubSourceForMethod(out, method, superInterface); in generateStubSource()
1407 void AST::generateStubSourceForMethod(Formatter& out, const Method* method, in generateStubSourceForMethod() argument
1409 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStubSourceForMethod()
1410 method->cppImpl(IMPL_STUB, out); in generateStubSourceForMethod()
1420 << method->name() in generateStubSourceForMethod()
1426 … const Method* method, const Interface* superInterface) const { in generateStaticStubMethodSource() argument
1427 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStaticStubMethodSource()
1433 out << "::android::status_t " << klassName << "::_hidl_" << method->name() << "(\n"; in generateStaticStubMethodSource()
1462 declareCppReaderLocals(out, method->args(), false /* forResults */); in generateStaticStubMethodSource()
1464 for (const auto &arg : method->args()) { in generateStaticStubMethodSource()
1478 method, in generateStaticStubMethodSource()
1481 const bool returnsValue = !method->results().empty(); in generateStaticStubMethodSource()
1482 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStaticStubMethodSource()
1486 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStaticStubMethodSource()
1497 << callee << "->" << method->name() in generateStaticStubMethodSource()
1500 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1527 method, in generateStaticStubMethodSource()
1537 out << "::android::hardware::Return<void> _hidl_ret = " << callee << "->" << method->name() in generateStaticStubMethodSource()
1540 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1549 if (!method->args().empty()) { in generateStaticStubMethodSource()
1555 … out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generateStaticStubMethodSource()
1564 << method->name() in generateStaticStubMethodSource()
1573 for (const auto &arg : method->results()) { in generateStaticStubMethodSource()
1584 if (!method->results().empty()) { in generateStaticStubMethodSource()
1593 method, in generateStaticStubMethodSource()
1607 method, in generateStaticStubMethodSource()
1617 << method->name() in generateStaticStubMethodSource()
1673 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generatePassthroughHeader() argument
1674 generatePassthroughMethod(out, method, superInterface); in generatePassthroughHeader()
1704 generateMethods(out, [&](const Method* method, const Interface*) { in generateInterfaceSource() argument
1705 bool reserved = method->isHidlReserved(); in generateInterfaceSource()
1710 method->generateCppSignature(out, iface->definedName()); in generateInterfaceSource()
1713 method->cppImpl(IMPL_INTERFACE, out); in generateInterfaceSource()
1782 const Method *method) const { in generateCppAtraceCall()
1784 std::string baseString = "HIDL::" + iface->definedName() + "::" + method->name(); in generateCppAtraceCall()
1824 const Method *method, in generateCppInstrumentationCall() argument
1826 generateCppAtraceCall(out, event, method); in generateCppInstrumentationCall()
1837 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1848 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1858 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1868 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1880 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1890 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1907 << "\", \"" << method->name() << "\", &_hidl_args);\n"; in generateCppInstrumentationCall()