Lines Matching refs:clazz

331                                         const std::string& clazz,  in GenerateConstantDefinitions()  argument
340 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
370 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientMethodDefinition() local
372 out << NdkMethodDecl(types, method, clazz) << " {\n"; in GenerateClientMethodDefinition()
575 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateClassSource() local
625 out << "static AIBinder_Class* " << kClazz << " = ::ndk::ICInterface::defineClass(" << clazz in GenerateClassSource()
634 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientSource() local
636 out << clazz << "::" << clazz << "(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {}\n"; in GenerateClientSource()
637 out << clazz << "::~" << clazz << "() {}\n"; in GenerateClientSource()
639 out << "std::function<void(const " + clazz + "::TransactionLog&)> " << clazz << "::logFunc;\n"; in GenerateClientSource()
648 const std::string clazz = ClassName(defined_type, ClassNames::SERVER); in GenerateServerSource() local
651 out << "// Source for " << clazz << "\n"; in GenerateServerSource()
652 out << clazz << "::" << clazz << "() {}\n"; in GenerateServerSource()
653 out << clazz << "::~" << clazz << "() {}\n"; in GenerateServerSource()
655 out << "std::function<void(const " + clazz + "::TransactionLog&)> " << clazz << "::logFunc;\n"; in GenerateServerSource()
657 out << "::ndk::SpAIBinder " << clazz << "::createBinder() {\n"; in GenerateServerSource()
679 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
687 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
698 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateInterfaceSource() local
701 out << "// Source for " << clazz << "\n"; in GenerateInterfaceSource()
702 out << "const char* " << clazz << "::" << kDescriptor << " = \"" << defined_type.GetDescriptor() in GenerateInterfaceSource()
704 out << clazz << "::" << clazz << "() {}\n"; in GenerateInterfaceSource()
705 out << clazz << "::~" << clazz << "() {}\n"; in GenerateInterfaceSource()
707 GenerateConstantDefinitions(out, defined_type, clazz); in GenerateInterfaceSource()
710 out << "std::shared_ptr<" << clazz << "> " << clazz in GenerateInterfaceSource()
718 out << "return std::static_pointer_cast<" << clazz << ">(interface);\n"; in GenerateInterfaceSource()
725 out << "binder_status_t " << clazz << "::writeToParcel(AParcel* parcel, const std::shared_ptr<" in GenerateInterfaceSource()
726 << clazz << ">& instance) {\n"; in GenerateInterfaceSource()
733 out << "binder_status_t " << clazz << "::readFromParcel(const AParcel* parcel, std::shared_ptr<" in GenerateInterfaceSource()
734 << clazz << ">* instance) {\n"; in GenerateInterfaceSource()
739 out << "*instance = " << clazz << "::fromBinder(binder);\n"; in GenerateInterfaceSource()
745 out << "bool " << clazz << "::setDefaultImpl(const std::shared_ptr<" << clazz << ">& impl) {\n"; in GenerateInterfaceSource()
750 out << "assert(!" << clazz << "::default_impl);\n"; in GenerateInterfaceSource()
753 out << clazz << "::default_impl = impl;\n"; in GenerateInterfaceSource()
762 out << "const std::shared_ptr<" << clazz << ">& " << clazz << "::getDefaultImpl() {\n"; in GenerateInterfaceSource()
764 out << "return " << clazz << "::default_impl;\n"; in GenerateInterfaceSource()
769 out << "std::shared_ptr<" << clazz << "> " << clazz << "::default_impl = nullptr;\n"; in GenerateInterfaceSource()
772 const std::string defaultClazz = clazz + "Default"; in GenerateInterfaceSource()
820 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientHeader() local
839 out << " " << clazz << " : public ::ndk::BpCInterface<" in GenerateClientHeader()
843 out << "explicit " << clazz << "(const ::ndk::SpAIBinder& binder);\n"; in GenerateClientHeader()
844 out << "virtual ~" << clazz << "();\n"; in GenerateClientHeader()
870 const std::string clazz = ClassName(defined_type, ClassNames::SERVER); in GenerateServerHeader() local
882 out << " " << clazz << " : public ::ndk::BnCInterface<" << iface << "> {\n"; in GenerateServerHeader()
885 out << clazz << "();\n"; in GenerateServerHeader()
886 out << "virtual ~" << clazz << "();\n"; in GenerateServerHeader()
918 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateInterfaceHeader() local
935 out << " " << clazz << " : public ::ndk::ICInterface {\n"; in GenerateInterfaceHeader()
939 out << clazz << "();\n"; in GenerateInterfaceHeader()
940 out << "virtual ~" << clazz << "();\n"; in GenerateInterfaceHeader()
958 out << "static std::shared_ptr<" << clazz << "> fromBinder(const ::ndk::SpAIBinder& binder);\n"; in GenerateInterfaceHeader()
959 out << "static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<" << clazz in GenerateInterfaceHeader()
962 out << "static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<" << clazz in GenerateInterfaceHeader()
965 out << "static bool setDefaultImpl(const std::shared_ptr<" << clazz << ">& impl);"; in GenerateInterfaceHeader()
967 out << "static const std::shared_ptr<" << clazz << ">& getDefaultImpl();"; in GenerateInterfaceHeader()
977 out << "static std::shared_ptr<" << clazz << "> default_impl;\n"; in GenerateInterfaceHeader()
981 const std::string defaultClazz = clazz + "Default"; in GenerateInterfaceHeader()
984 out << " " << defaultClazz << " : public " << clazz << " {\n"; in GenerateInterfaceHeader()
1008 const std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelHeader() local
1023 out << " " << clazz << " {\n"; in GenerateParcelHeader()
1072 std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelSource() local
1078 clazz += base::StringPrintf("<%s>", base::Join(template_params, ", ").c_str()); in GenerateParcelSource()
1088 out << "const char* " << clazz << "::" << kDescriptor << " = \"" in GenerateParcelSource()
1092 GenerateConstantDefinitions(out, defined_type, clazz, cpp::TemplateDecl(defined_type)); in GenerateParcelSource()
1095 out << "binder_status_t " << clazz << "::readFromParcel(const AParcel* parcel) {\n"; in GenerateParcelSource()
1120 out << "binder_status_t " << clazz << "::writeToParcel(AParcel* parcel) const {\n"; in GenerateParcelSource()
1148 const std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelHeader() local
1180 out << " " << clazz << " {\n"; in GenerateParcelHeader()
1212 std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelSource() local
1218 clazz += base::StringPrintf("<%s>", base::Join(template_params, ", ").c_str()); in GenerateParcelSource()
1247 out << "const char* " << clazz << "::" << kDescriptor << " = \"" in GenerateParcelSource()
1251 GenerateConstantDefinitions(out, defined_type, clazz, cpp::TemplateDecl(defined_type)); in GenerateParcelSource()
1254 out << "binder_status_t " << clazz << "::readFromParcel(const AParcel* _parcel) {\n"; in GenerateParcelSource()
1261 out << "binder_status_t " << clazz << "::writeToParcel(AParcel* _parcel) const {\n"; in GenerateParcelSource()