Home | History | Annotate | Download | only in hidl

Lines Matching refs:method

23 #include "Method.h"
487 for (const auto &method : iface->methods()) {
490 const bool returnsValue = !method->results().empty();
491 const TypedVar *elidedReturn = method->canElideCallback();
495 << method->name()
497 method->emitCppResultSignature(out, true /* specify namespaces */);
501 method->dumpAnnotations(out);
510 out << method->name()
512 method->emitCppArgSignature(out, true /* specify namespaces */);
515 if (!method->args().empty()) {
519 out << method->name() << "_cb _hidl_cb";
523 if (method->isHidlReserved()) {
679 const Method *method) const {
680 method->generateCppSignature(out);
685 if (method->isHidlReserved()
686 && method->overridesCppImpl(IMPL_PASSTHROUGH)) {
687 method->cppImpl(IMPL_PASSTHROUGH, out);
693 const bool returnsValue = !method->results().empty();
694 const TypedVar *elidedReturn = method->canElideCallback();
703 method);
706 for (const auto &arg : method->args()) {
719 if (method->isOneway()) {
724 for (const auto &arg : method->args()) {
734 << method->name()
737 out.join(method->args().begin(), method->args().end(), ", ", [&](const auto &arg) {
741 if (!method->args().empty()) {
745 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) {
755 method);
760 for (const auto &arg : method->results()) {
772 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) {
792 method);
798 if (method->isOneway()) {
817 const Method *method = tuple.method();
829 status_t err = gen(method, superInterface);
915 status_t err = generateMethods(out, [&](const Method *method, const Interface *iface) {
916 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) {
919 const bool returnsValue = !method->results().empty();
920 const TypedVar *elidedReturn = method->canElideCallback();
923 out << "using " << method->name() << "_cb = "
925 << "::" << method->name() << "_cb;\n";
927 method->generateCppSignature(out);
1003 status_t err = generateMethods(out, [&](const Method *method, const Interface *) {
1004 method->generateCppSignature(out);
1272 const Method *method,
1275 method->generateCppSignature(out,
1279 const bool returnsValue = !method->results().empty();
1280 const TypedVar *elidedReturn = method->canElideCallback();
1286 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_PROXY)) {
1287 method->cppImpl(IMPL_PROXY, out);
1300 method);
1311 out, method->results(), true /* forResults */);
1320 for (const auto &arg : method->args()) {
1335 for (const auto &arg : method->args()) {
1351 << method->getSerialId()
1353 << method->name()
1356 if (method->isOneway()) {
1363 if (!method->isOneway()) {
1370 for (const auto &arg : method->results()) {
1382 for (const auto &arg : method->results()) {
1396 out.join(method->results().begin(), method->results().end(), ", ", [&] (const auto &arg) {
1409 method);
1430 out << method->results().at(0)->type().getCppResultType();
1467 status_t err = generateMethods(out, [&](const Method *method, const Interface *superInterface) {
1468 return generateProxyMethodSource(out, klassName, method, superInterface);
1536 status_t err = generateMethods(out, [&](const Method *method, const Interface *) {
1537 if (!method->isHidlReserved() || !method->overridesCppImpl(IMPL_STUB_IMPL)) {
1540 method->generateCppSignature(out, iface->getStubName());
1543 method->cppImpl(IMPL_STUB_IMPL, out);
1569 const Method *method = tuple.method();
1572 << method->getSerialId()
1574 << method->name()
1580 generateStubSourceForMethod(out, superInterface, method);
1634 Formatter &out, const Interface *iface, const Method *method) const {
1635 if (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB)) {
1636 method->cppImpl(IMPL_STUB, out);
1651 declareCppReaderLocals(out, method->args(), false /* forResults */);
1654 for (const auto &arg : method->args()) {
1666 for (const auto &arg : method->args()) {
1680 method);
1685 const bool returnsValue = !method->results().empty();
1686 const TypedVar *elidedReturn = method->canElideCallback();
1688 (method->isHidlReserved() && method->overridesCppImpl(IMPL_STUB_IMPL))
1696 << callee << "->" << method->name()
1699 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) {
1730 method);
1741 out << callee << "->" << method->name() << "(";
1743 out.join(method->args().begin(), method->args().end(), ", ", [&] (const auto &arg) {
1752 if (!method->args().empty()) {
1758 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) {
1767 << method->name()
1777 for (const auto &arg : method->results()) {
1789 for (const auto &arg : method->results()) {
1803 method);
1817 method);
1827 << method->name()
1906 status_t err = generateMethods(out, [&](const Method *method, const Interface *) {
1907 return generatePassthroughMethod(out, method);
1945 status_t err = generateMethods(out, [&](const Method *method, const Interface *) {
1946 bool reserved = method->isHidlReserved();
1951 method->generateCppSignature(out, iface->localName());
1954 method->cppImpl(IMPL_INTERFACE, out);
2053 const Method *method) const {
2055 method->name();
2095 const Method *method) const {
2096 status_t err = generateCppAtraceCall(out, event, method);
2110 for (const auto &arg : method->args()) {
2121 for (const auto &arg : method->results()) {
2131 for (const auto &arg : method->args()) {
2141 for (const auto &arg : method->results()) {
2153 for (const auto &arg : method->args()) {
2163 for (const auto &arg : method->results()) {
2190 << method->name()