• Home
  • Raw
  • Download

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()
1082 for (const auto &arg : method->args()) { in generateStaticProxyMethodSource()
1101 << method->getSerialId() in generateStaticProxyMethodSource()
1103 << method->name() in generateStaticProxyMethodSource()
1106 if (method->isOneway()) { in generateStaticProxyMethodSource()
1116 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1127 if (!method->isOneway()) { in generateStaticProxyMethodSource()
1139 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource()
1153 … out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) { in generateStaticProxyMethodSource()
1167 method, in generateStaticProxyMethodSource()
1195 out << method->results().at(0)->type().getCppResultType(); in generateStaticProxyMethodSource()
1243 [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1244 generateStaticProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1248 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generateProxySource() argument
1249 generateProxyMethodSource(out, klassName, method, superInterface); in generateProxySource()
1326 [&](const Method* method, const Interface* superInterface) { in generateStubSource() argument
1327 … return generateStaticStubMethodSource(out, iface->fqName(), method, superInterface); in generateStubSource()
1331 generateMethods(out, [&](const Method* method, const Interface*) { in generateStubSource() argument
1332 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStubSource()
1335 method->generateCppSignature(out, iface->getStubName()); in generateStubSource()
1338 method->cppImpl(IMPL_STUB_IMPL, out); in generateStubSource()
1360 const Method *method = tuple.method(); in generateStubSource() local
1363 if (!isIBase() && method->isHidlReserved()) { in generateStubSource()
1367 << method->getSerialId() in generateStubSource()
1369 << method->name() in generateStubSource()
1374 generateStubSourceForMethod(out, method, superInterface); in generateStubSource()
1421 void AST::generateStubSourceForMethod(Formatter& out, const Method* method, in generateStubSourceForMethod() argument
1423 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStubSourceForMethod()
1424 method->cppImpl(IMPL_STUB, out); in generateStubSourceForMethod()
1434 << method->name() in generateStubSourceForMethod()
1440 … const Method* method, const Interface* superInterface) const { in generateStaticStubMethodSource() argument
1441 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) { in generateStaticStubMethodSource()
1447 out << "::android::status_t " << klassName << "::_hidl_" << method->name() << "(\n"; in generateStaticStubMethodSource()
1476 declareCppReaderLocals(out, method->args(), false /* forResults */); in generateStaticStubMethodSource()
1478 for (const auto &arg : method->args()) { in generateStaticStubMethodSource()
1492 method, in generateStaticStubMethodSource()
1495 const bool returnsValue = !method->results().empty(); in generateStaticStubMethodSource()
1496 const NamedReference<Type>* elidedReturn = method->canElideCallback(); in generateStaticStubMethodSource()
1500 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB_IMPL)) { in generateStaticStubMethodSource()
1511 << callee << "->" << method->name() in generateStaticStubMethodSource()
1514 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1541 method, in generateStaticStubMethodSource()
1551 out << "::android::hardware::Return<void> _hidl_ret = " << callee << "->" << method->name() in generateStaticStubMethodSource()
1554 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) { in generateStaticStubMethodSource()
1563 if (!method->args().empty()) { in generateStaticStubMethodSource()
1569 … out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generateStaticStubMethodSource()
1578 << method->name() in generateStaticStubMethodSource()
1587 for (const auto &arg : method->results()) { in generateStaticStubMethodSource()
1598 if (!method->results().empty()) { in generateStaticStubMethodSource()
1607 method, in generateStaticStubMethodSource()
1621 method, in generateStaticStubMethodSource()
1631 << method->name() in generateStaticStubMethodSource()
1687 generateMethods(out, [&](const Method* method, const Interface* superInterface) { in generatePassthroughHeader() argument
1688 generatePassthroughMethod(out, method, superInterface); in generatePassthroughHeader()
1718 generateMethods(out, [&](const Method* method, const Interface*) { in generateInterfaceSource() argument
1719 bool reserved = method->isHidlReserved(); in generateInterfaceSource()
1724 method->generateCppSignature(out, iface->definedName()); in generateInterfaceSource()
1727 method->cppImpl(IMPL_INTERFACE, out); in generateInterfaceSource()
1796 const Method *method) const { in generateCppAtraceCall()
1798 std::string baseString = "HIDL::" + iface->definedName() + "::" + method->name(); in generateCppAtraceCall()
1838 const Method *method, in generateCppInstrumentationCall() argument
1840 generateCppAtraceCall(out, event, method); in generateCppInstrumentationCall()
1851 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1862 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1872 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1882 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1894 for (const auto &arg : method->args()) { in generateCppInstrumentationCall()
1904 for (const auto &arg : method->results()) { in generateCppInstrumentationCall()
1921 << "\", \"" << method->name() << "\", &_hidl_args);\n"; in generateCppInstrumentationCall()