• Home
  • Raw
  • Download

Lines Matching refs:interface

231                                                 const AidlInterface& interface,  in DefineClientTransaction()  argument
233 const string i_name = ClassName(interface, ClassNames::INTERFACE); in DefineClientTransaction()
234 const string bp_name = ClassName(interface, ClassNames::CLIENT); in DefineClientTransaction()
245 if (interface.IsSensitiveData()) { in DefineClientTransaction()
263 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str())); in DefineClientTransaction()
304 string transaction_code = GetTransactionIdFor(interface, method); in DefineClientTransaction()
311 if (interface.IsSensitiveData()) flags.push_back("::android::IBinder::FLAG_CLEAR_BUF"); in DefineClientTransaction()
396 b->AddLiteral(GenLogAfterExecute(bp_name, interface, method, kStatusVarName, kReturnVarName, in DefineClientTransaction()
407 const AidlInterface& interface, in DefineClientMetaTransaction() argument
412 const string iface = ClassName(interface, ClassNames::INTERFACE); in DefineClientMetaTransaction()
413 const string proxy = ClassName(interface, ClassNames::CLIENT); in DefineClientMetaTransaction()
424 … << " ::android::status_t err = remote()->transact(" << GetTransactionIdFor(interface, method) in DefineClientMetaTransaction()
439 const string iface = ClassName(interface, ClassNames::INTERFACE); in DefineClientMetaTransaction()
440 const string proxy = ClassName(interface, ClassNames::CLIENT); in DefineClientMetaTransaction()
448 … << " ::android::status_t err = remote()->transact(" << GetTransactionIdFor(interface, method) in DefineClientMetaTransaction()
468 const AidlInterface& interface, const Options& options) { in BuildClientSource() argument
470 HeaderFile(interface, ClassNames::CLIENT, false), in BuildClientSource()
471 HeaderFile(interface, ClassNames::SERVER, false), // for TRANSACTION_* consts in BuildClientSource()
483 const string i_name = ClassName(interface, ClassNames::INTERFACE); in BuildClientSource()
484 const string bp_name = ClassName(interface, ClassNames::CLIENT); in BuildClientSource()
500 for (const auto& method : interface.GetMethods()) { in BuildClientSource()
503 m = DefineClientTransaction(typenames, interface, *method, options); in BuildClientSource()
505 m = DefineClientMetaTransaction(typenames, interface, *method, options); in BuildClientSource()
512 NestInNamespaces(std::move(file_decls), interface.GetSplitPackage())}}; in BuildClientSource()
583 bool HandleServerTransaction(const AidlTypenames& typenames, const AidlInterface& interface, in HandleServerTransaction() argument
611 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str())); in HandleServerTransaction()
638 const string bn_name = ClassName(interface, ClassNames::SERVER); in HandleServerTransaction()
652 b->AddLiteral(GenLogAfterExecute(bn_name, interface, method, kStatusVarName, kReturnVarName, in HandleServerTransaction()
695 bool HandleServerMetaTransaction(const AidlTypenames&, const AidlInterface& interface, in HandleServerMetaTransaction() argument
704 << "_aidl_reply->writeInt32(" << ClassName(interface, ClassNames::INTERFACE) in HandleServerMetaTransaction()
713 << "_aidl_reply->writeUtf8AsUtf16(" << ClassName(interface, ClassNames::INTERFACE) in HandleServerMetaTransaction()
724 const AidlInterface& interface, const Options& options) { in BuildServerSource() argument
725 const string bn_name = ClassName(interface, ClassNames::SERVER); in BuildServerSource()
727 HeaderFile(interface, ClassNames::SERVER, false), in BuildServerSource()
738 if (interface.IsVintfStability()) { in BuildServerSource()
765 for (const auto& method : interface.GetMethods()) { in BuildServerSource()
766 StatementBlock* b = s->AddCase(GetTransactionIdFor(interface, *method)); in BuildServerSource()
771 success = HandleServerTransaction(typenames, interface, *method, options, b); in BuildServerSource()
773 success = HandleServerMetaTransaction(typenames, interface, *method, options, b); in BuildServerSource()
806 bool deprecated = interface.IsDeprecated() || in BuildServerSource()
807 std::any_of(interface.GetMethods().begin(), interface.GetMethods().end(), in BuildServerSource()
822 << " return " << ClassName(interface, ClassNames::INTERFACE) << "::VERSION;\n" in BuildServerSource()
829 << " return " << ClassName(interface, ClassNames::INTERFACE) << "::HASH;\n" in BuildServerSource()
843 new CppSource{include_list, NestInNamespaces(std::move(decls), interface.GetSplitPackage())}}; in BuildServerSource()
847 const AidlInterface& interface, in BuildInterfaceSource() argument
850 HeaderFile(interface, ClassNames::RAW, false), in BuildInterfaceSource()
851 HeaderFile(interface, ClassNames::CLIENT, false), in BuildInterfaceSource()
858 ArgList{vector<string>{ClassName(interface, ClassNames::BASE), in BuildInterfaceSource()
859 '"' + interface.GetDescriptor() + '"'}}}}; in BuildInterfaceSource()
862 BuildConstantDefinitions(interface, typenames, {}, ClassName(interface, ClassNames::INTERFACE), in BuildInterfaceSource()
867 NestInNamespaces(std::move(decls), interface.GetSplitPackage())}}; in BuildInterfaceSource()
871 const AidlInterface& interface, const Options& options) { in BuildClientHeader() argument
872 const string i_name = ClassName(interface, ClassNames::INTERFACE); in BuildClientHeader()
873 const string bp_name = ClassName(interface, ClassNames::CLIENT); in BuildClientHeader()
876 HeaderFile(interface, ClassNames::RAW, false)}; in BuildClientHeader()
895 for (const auto& method: interface.GetMethods()) { in BuildClientHeader()
920 const string attribute = GetDeprecatedAttribute(interface); in BuildClientHeader()
931 new CppHeader{includes, NestInNamespaces(std::move(bp_class), interface.GetSplitPackage())}}; in BuildClientHeader()
935 const AidlInterface& interface, const Options& options) { in BuildServerHeader() argument
936 const string i_name = ClassName(interface, ClassNames::INTERFACE); in BuildServerHeader()
937 const string bn_name = ClassName(interface, ClassNames::SERVER); in BuildServerHeader()
951 vector<string> includes = {"binder/IInterface.h", HeaderFile(interface, ClassNames::RAW, false)}; in BuildServerHeader()
956 for (const auto& method : interface.GetMethods()) { in BuildServerHeader()
985 const string attribute = GetDeprecatedAttribute(interface); in BuildServerHeader()
996 new CppHeader{includes, NestInNamespaces(std::move(bn_class), interface.GetSplitPackage())}}; in BuildServerHeader()
1000 const AidlInterface& interface, const Options& options) { in BuildInterfaceHeader() argument
1003 for (const auto& method : interface.GetMethods()) { in BuildInterfaceHeader()
1011 const string i_name = ClassName(interface, ClassNames::INTERFACE); in BuildInterfaceHeader()
1012 const string attribute = GetDeprecatedAttribute(interface); in BuildInterfaceHeader()
1016 ArgList{vector<string>{ClassName(interface, ClassNames::BASE)}}}}); in BuildInterfaceHeader()
1031 BuildConstantDeclarations(interface, typenames, if_class, includes); in BuildInterfaceHeader()
1037 if (!interface.GetMethods().empty()) { in BuildInterfaceHeader()
1038 for (const auto& method : interface.GetMethods()) { in BuildInterfaceHeader()
1061 for (const auto& method : interface.GetMethods()) { in BuildInterfaceHeader()
1092 ClassName(interface, ClassNames::DEFAULT_IMPL), in BuildInterfaceHeader()
1102 NestInNamespaces(std::move(decls), interface.GetSplitPackage())}}; in BuildInterfaceHeader()
1399 const AidlInterface& interface, const IoDelegate& io_delegate, in WriteHeader() argument
1404 header = BuildInterfaceHeader(typenames, interface, options); in WriteHeader()
1408 header = BuildClientHeader(typenames, interface, options); in WriteHeader()
1411 header = BuildServerHeader(typenames, interface, options); in WriteHeader()
1414 AIDL_FATAL(interface) << "aidl internal error"; in WriteHeader()
1417 AIDL_ERROR(interface) << "aidl internal error: Failed to generate header."; in WriteHeader()
1421 const string header_path = options.OutputHeaderDir() + HeaderFile(interface, header_type); in WriteHeader()
1438 const AidlTypenames& typenames, const AidlInterface& interface, in GenerateCppInterface() argument
1440 auto interface_src = BuildInterfaceSource(typenames, interface, options); in GenerateCppInterface()
1441 auto client_src = BuildClientSource(typenames, interface, options); in GenerateCppInterface()
1442 auto server_src = BuildServerSource(typenames, interface, options); in GenerateCppInterface()
1448 if (!WriteHeader(options, typenames, interface, io_delegate, ClassNames::INTERFACE) || in GenerateCppInterface()
1449 !WriteHeader(options, typenames, interface, io_delegate, ClassNames::CLIENT) || in GenerateCppInterface()
1450 !WriteHeader(options, typenames, interface, io_delegate, ClassNames::SERVER)) { in GenerateCppInterface()
1616 const AidlInterface* interface = defined_type.AsInterface(); in GenerateCpp() local
1617 if (interface != nullptr) { in GenerateCpp()
1618 return GenerateCppInterface(output_file, options, typenames, *interface, io_delegate); in GenerateCpp()