Home | History | Annotate | Download | only in aidl

Lines Matching refs:interface

208 string ClassName(const AidlInterface& interface, ClassNames type) {
209 string c_name = interface.GetName();
221 case ClassNames::INTERFACE:
230 string BuildHeaderGuard(const AidlInterface& interface,
232 string class_name = ClassName(interface, header_type);
240 interface.GetPackage().c_str(),
252 const AidlInterface& interface,
254 const string i_name = ClassName(interface, ClassNames::INTERFACE);
255 const string bp_name = ClassName(interface, ClassNames::CLIENT);
273 // Add the name of the interface we're hoping to call.
304 if (interface.IsOneway() || method.IsOneway()) {
314 if (!interface.IsOneway() && !method.IsOneway()) {
377 const AidlInterface& interface) {
379 HeaderFile(interface, ClassNames::CLIENT, false),
386 const string i_name = ClassName(interface, ClassNames::INTERFACE);
388 ClassName(interface, ClassNames::CLIENT),
394 for (const auto& method : interface.GetMethods()) {
396 types, interface, *method);
402 NestInNamespaces(std::move(file_decls), interface.GetSplitPackage())}};
424 // Check that the client is calling the correct interface.
502 const AidlInterface& interface) {
503 const string bn_name = ClassName(interface, ClassNames::SERVER);
505 HeaderFile(interface, ClassNames::SERVER, false),
527 for (const auto& method : interface.GetMethods()) {
560 NestInNamespaces(std::move(on_transact), interface.GetSplitPackage())}};
564 const AidlInterface& interface) {
566 HeaderFile(interface, ClassNames::INTERFACE, false),
567 HeaderFile(interface, ClassNames::CLIENT, false),
570 string fq_name = ClassName(interface, ClassNames::INTERFACE);
571 if (!interface.GetPackage().empty()) {
572 fq_name = interface.GetPackage() + "." + fq_name;
577 ArgList{vector<string>{ClassName(interface, ClassNames::BASE),
582 NestInNamespaces(std::move(meta_if), interface.GetSplitPackage())}};
586 const AidlInterface& interface) {
587 const string i_name = ClassName(interface, ClassNames::INTERFACE);
588 const string bp_name = ClassName(interface, ClassNames::CLIENT);
605 for (const auto& method: interface.GetMethods()) {
617 BuildHeaderGuard(interface, ClassNames::CLIENT),
621 HeaderFile(interface, ClassNames::INTERFACE, false)},
622 NestInNamespaces(std::move(bp_class), interface.GetSplitPackage())}};
626 const AidlInterface& interface) {
627 const string i_name = ClassName(interface, ClassNames::INTERFACE);
628 const string bn_name = ClassName(interface, ClassNames::SERVER);
651 BuildHeaderGuard(interface, ClassNames::SERVER),
653 HeaderFile(interface, ClassNames::INTERFACE, false)},
654 NestInNamespaces(std::move(bn_class), interface.GetSplitPackage())}};
658 const AidlInterface& interface) {
662 for (const auto& method : interface.GetMethods()) {
673 new ClassDecl{ClassName(interface, ClassNames::INTERFACE),
677 ArgList{vector<string>{ClassName(interface, ClassNames::BASE)}}}});
680 for (const auto& constant : interface.GetConstants()) {
689 for (const auto& method : interface.GetMethods()) {
700 BuildHeaderGuard(interface, ClassNames::INTERFACE),
702 NestInNamespaces(std::move(if_class), interface.GetSplitPackage())}};
707 const AidlInterface& interface,
712 case ClassNames::INTERFACE:
713 header = BuildInterfaceHeader(types, interface);
716 header = BuildClientHeader(types, interface);
719 header = BuildServerHeader(types, interface);
730 HeaderFile(interface, header_type);
746 string HeaderFile(const AidlInterface& interface,
749 string file_path = interface.GetPackage();
758 file_path += ClassName(interface, class_type);
766 const AidlInterface& interface,
768 auto interface_src = BuildInterfaceSource(types, interface);
769 auto client_src = BuildClientSource(types, interface);
770 auto server_src = BuildServerSource(types, interface);
777 interface.GetSplitPackage())) {
782 if (!WriteHeader(options, types, interface, io_delegate,
783 ClassNames::INTERFACE) ||
784 !WriteHeader(options, types, interface, io_delegate,
786 !WriteHeader(options, types, interface, io_delegate,