Lines Matching refs:clazz
294 const std::string clazz = ClassName(interface, ClassNames::INTERFACE); in GenerateConstantDefinitions() local
301 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
328 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientMethodDefinition() local
330 out << NdkMethodDecl(types, method, clazz) << " {\n"; in GenerateClientMethodDefinition()
523 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateClassSource() local
566 out << "static AIBinder_Class* " << kClazz << " = ::ndk::ICInterface::defineClass(" << clazz in GenerateClassSource()
571 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientSource() local
573 out << clazz << "::" << clazz << "(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {}\n"; in GenerateClientSource()
574 out << clazz << "::~" << clazz << "() {}\n"; in GenerateClientSource()
576 out << "std::function<void(const Json::Value&)> " << clazz << "::logFunc;\n"; in GenerateClientSource()
585 const std::string clazz = ClassName(defined_type, ClassNames::SERVER); in GenerateServerSource() local
588 out << "// Source for " << clazz << "\n"; in GenerateServerSource()
589 out << clazz << "::" << clazz << "() {}\n"; in GenerateServerSource()
590 out << clazz << "::~" << clazz << "() {}\n"; in GenerateServerSource()
592 out << "std::function<void(const Json::Value&)> " << clazz << "::logFunc;\n"; in GenerateServerSource()
594 out << "::ndk::SpAIBinder " << clazz << "::createBinder() {\n"; in GenerateServerSource()
616 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
624 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
635 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateInterfaceSource() local
638 out << "// Source for " << clazz << "\n"; in GenerateInterfaceSource()
639 out << "const char* " << clazz << "::" << kDescriptor << " = \"" in GenerateInterfaceSource()
641 out << clazz << "::" << clazz << "() {}\n"; in GenerateInterfaceSource()
642 out << clazz << "::~" << clazz << "() {}\n"; in GenerateInterfaceSource()
647 out << "std::shared_ptr<" << clazz << "> " << clazz in GenerateInterfaceSource()
655 out << "return std::static_pointer_cast<" << clazz << ">(interface);\n"; in GenerateInterfaceSource()
662 out << "binder_status_t " << clazz << "::writeToParcel(AParcel* parcel, const std::shared_ptr<" in GenerateInterfaceSource()
663 << clazz << ">& instance) {\n"; in GenerateInterfaceSource()
670 out << "binder_status_t " << clazz << "::readFromParcel(const AParcel* parcel, std::shared_ptr<" in GenerateInterfaceSource()
671 << clazz << ">* instance) {\n"; in GenerateInterfaceSource()
676 out << "*instance = " << clazz << "::fromBinder(binder);\n"; in GenerateInterfaceSource()
682 out << "bool " << clazz << "::setDefaultImpl(std::shared_ptr<" << clazz << "> impl) {\n"; in GenerateInterfaceSource()
687 out << "assert(!" << clazz << "::default_impl);\n"; in GenerateInterfaceSource()
690 out << clazz << "::default_impl = impl;\n"; in GenerateInterfaceSource()
699 out << "const std::shared_ptr<" << clazz << ">& " << clazz << "::getDefaultImpl() {\n"; in GenerateInterfaceSource()
701 out << "return " << clazz << "::default_impl;\n"; in GenerateInterfaceSource()
706 out << "std::shared_ptr<" << clazz << "> " << clazz << "::default_impl = nullptr;\n"; in GenerateInterfaceSource()
709 const std::string defaultClazz = clazz + "Default"; in GenerateInterfaceSource()
757 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientHeader() local
775 out << "class " << clazz << " : public ::ndk::BpCInterface<" in GenerateClientHeader()
779 out << clazz << "(const ::ndk::SpAIBinder& binder);\n"; in GenerateClientHeader()
780 out << "virtual ~" << clazz << "();\n"; in GenerateClientHeader()
803 const std::string clazz = ClassName(defined_type, ClassNames::SERVER); in GenerateServerHeader() local
813 out << "class " << clazz << " : public ::ndk::BnCInterface<" << iface << "> {\n"; in GenerateServerHeader()
816 out << clazz << "();\n"; in GenerateServerHeader()
817 out << "virtual ~" << clazz << "();\n"; in GenerateServerHeader()
848 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateInterfaceHeader() local
864 out << "class " << clazz << " : public ::ndk::ICInterface {\n"; in GenerateInterfaceHeader()
868 out << clazz << "();\n"; in GenerateInterfaceHeader()
869 out << "virtual ~" << clazz << "();\n"; in GenerateInterfaceHeader()
880 out << "static std::shared_ptr<" << clazz << "> fromBinder(const ::ndk::SpAIBinder& binder);\n"; in GenerateInterfaceHeader()
881 out << "static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<" << clazz in GenerateInterfaceHeader()
884 out << "static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<" << clazz in GenerateInterfaceHeader()
887 out << "static bool setDefaultImpl(std::shared_ptr<" << clazz << "> impl);"; in GenerateInterfaceHeader()
889 out << "static const std::shared_ptr<" << clazz << ">& getDefaultImpl();"; in GenerateInterfaceHeader()
897 out << "static std::shared_ptr<" << clazz << "> default_impl;\n"; in GenerateInterfaceHeader()
901 const std::string defaultClazz = clazz + "Default"; in GenerateInterfaceHeader()
903 out << "class " << defaultClazz << " : public " << clazz << " {\n"; in GenerateInterfaceHeader()
925 const std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelHeader() local
934 out << "class " << clazz << " {\n"; in GenerateParcelHeader()
959 const std::string clazz = ClassName(defined_type, ClassNames::RAW); in GenerateParcelSource() local
967 out << "const char* " << clazz << "::" << kDescriptor << " = \"" in GenerateParcelSource()
971 out << "binder_status_t " << clazz << "::readFromParcel(const AParcel* parcel) {\n"; in GenerateParcelSource()
994 out << "binder_status_t " << clazz << "::writeToParcel(AParcel* parcel) const {\n"; in GenerateParcelSource()