Home | History | Annotate | Download | only in hidl

Lines Matching refs:method

21 #include "Method.h"
218 for (const auto &method : iface->methods()) {
219 if (method->isHiddenFromJava()) {
223 const bool returnsValue = !method->results().empty();
224 const bool needsCallback = method->results().size() > 1;
227 out << "\n@java.lang.FunctionalInterface\npublic interface " << method->name()
233 method->emitJavaResultSignature(out);
240 method->emitDocComment(out);
243 out << method->results()[0]->type().getJavaType();
249 << method->name()
251 method->emitJavaArgSignature(out);
254 if (!method->args().empty()) {
258 out << method->name()
313 const Method *method = tuple.method();
315 if (method->isHiddenFromJava()) {
326 const bool returnsValue = !method->results().empty();
327 const bool needsCallback = method->results().size() > 1;
331 out << method->results()[0]->type().getJavaType();
337 << method->name()
339 method->emitJavaArgSignature(out);
342 if (!method->args().empty()) {
346 out << method->name()
356 if (method->isHidlReserved() && method->overridesJavaImpl(IMPL_PROXY)) {
357 method->javaImpl(IMPL_PROXY, out);
367 for (const auto &arg : method->args()) {
380 << method->getSerialId()
382 << method->name()
385 if (method->isOneway()) {
393 if (!method->isOneway()) {
404 for (const auto &arg : method->results()) {
417 for (const auto &arg : method->results()) {
428 const std::string returnName = method->results()[0]->name();
459 for (Method *method : iface->hidlReservedMethods()) {
460 if (method->isHiddenFromJava()) {
465 CHECK_LE(method->results().size(), 1u);
466 std::string resultType = method->results().size() == 0 ? "void" :
467 method->results()[0]->type().getJavaType();
471 << method->name()
473 method->emitJavaArgSignature(out);
477 method->javaImpl(IMPL_INTERFACE, out);
524 const Method *method = tuple.method();
527 const bool returnsValue = !method->results().empty();
528 const bool needsCallback = method->results().size() > 1;
531 << method->getSerialId()
533 << method->name()
540 out << "if (_hidl_is_oneway != " << (method->isOneway() ? "true" : "false") << ") ";
547 if (method->isHidlReserved() && method->overridesJavaImpl(IMPL_STUB)) {
548 method->javaImpl(IMPL_STUB, out);
559 if (method->isHiddenFromJava()) {
560 // This is a method hidden from the Java side of things, it must not
572 for (const auto &arg : method->args()) {
582 const NamedReference<Type>* returnArg = method->results()[0];
590 out << method->name()
594 for (const auto &arg : method->args()) {
609 out << "new " << method->name() << "Callback() {\n";
614 method->emitJavaResultSignature(out);
620 for (const auto &arg : method->results()) {
639 if (!needsCallback && !method->isOneway()) {
643 const NamedReference<Type>* returnArg = method->results()[0];