Home
last modified time | relevance | path

Searched refs:definedName (Results 1 – 23 of 23) sorted by relevance

/system/tools/hidl/lint/lints/
DnamingConventions.cpp47 std::string definedName = namedType->definedName(); in namingConventions() local
49 if (namedType->isInterface()) definedName = definedName.substr(1); in namingConventions()
51 std::string desiredName = StringHelper::ToPascalCase(definedName); in namingConventions()
53 if (desiredName != definedName) { in namingConventions()
57 << "type \"" << namedType->definedName() in namingConventions()
70 << compoundType->definedName() in namingConventions()
82 << enumType->definedName() << "\" should be named \"" in namingConventions()
/system/tools/hidl/
DgenerateCppImpl.cpp90 generateCppPackageInclude(out, mPackage, iface->definedName()); in generateCppImplHeader()
109 << "::" << iface->definedName() << " {\n"; in generateCppImplHeader()
128 << "// extern \"C\" " << iface->definedName() << "* "; in generateCppImplHeader()
129 generateFetchSymbol(out, iface->definedName()); in generateCppImplHeader()
155 out << iface->definedName() << "* "; in generateCppImplSource()
156 generateFetchSymbol(out, iface->definedName()); in generateCppImplSource()
DTypeDef.cpp51 return "typedef " + definedName(); in typeName()
77 out << "typedef " << mReferencedType->getCppStackType() << " " << definedName() << ";\n\n"; in emitTypeDeclarations()
81 out << "typedef " << mReferencedType.localName() << " " << definedName() << ";\n"; in emitHidlDefinition()
DCompoundType.cpp115 << "safe_union " << definedName() << ". Consider renaming or " in emitInvalidSubTypeNamesError()
124 if (subType->definedName() == "getDiscriminator") { in validateSubTypeNames()
125 emitInvalidSubTypeNamesError(subType->definedName(), subType->location()); in validateSubTypeNames()
152 return "struct " + definedName(); in typeName()
155 return "union " + definedName(); in typeName()
158 return "safe_union " + definedName(); in typeName()
495 out << "struct " << definedName() << " final {\n"; in emitSafeUnionTypeDeclarations()
525 out << definedName() << "();\n" // Constructor in emitSafeUnionTypeDeclarations()
526 << "~" << definedName() << "();\n" // Destructor in emitSafeUnionTypeDeclarations()
527 << definedName() << "(" << definedName() << "&&);\n" // Move constructor in emitSafeUnionTypeDeclarations()
[all …]
DgenerateCpp.cpp220 std::string ifaceName = iface ? iface->definedName() : "types"; in generateInterfaceHeader()
361 declareServiceManagerInteractions(out, iface->definedName()); in generateInterfaceHeader()
401 generateCppPackageInclude(out, mPackage, iface ? iface->definedName() : "types"); in generateHwBinderHeader()
628 out << "typedef " << mRootScope.getInterface()->definedName() << " Pure;\n\n"; in generateTemplatizationLink()
664 out << "explicit " << klassName << "(const ::android::sp<" << iface->definedName() in generateStubHeader()
667 out << "explicit " << klassName << "(const ::android::sp<" << iface->definedName() in generateStubHeader()
691 out << "::android::sp<" << iface->definedName() << "> getImpl() { return _hidl_mImpl; }\n"; in generateStubHeader()
742 out << "::android::sp<" << iface->definedName() << "> _hidl_mImpl;\n"; in generateStubHeader()
773 << iface->definedName() << ">, public ::android::hardware::details::HidlInstrumentor {\n"; in generateProxyHeader()
873 generateTypeSource(out, iface ? iface->definedName() : ""); in generateCppSource()
[all …]
DgenerateJavaImpl.cpp34 out << "import " << mPackage.javaPackage() << "." << iface->definedName() << ";\n\n"; in generateJavaImpl()
36 out << "class " << baseName << " extends " << iface->definedName() << ".Stub" in generateJavaImpl()
DFmqType.cpp28 const std::string& definedName) in FmqType() argument
29 : TemplatedType(parent, definedName), mNamespace(nsp), mName(name) {} in FmqType()
DScope.cpp41 mTypeIndexByName[type->definedName()] = index; in addType()
53 if (mTypes[mTypeIndexByName.at(type->definedName())] != type) { in validateUniqueNames()
54 std::cerr << "ERROR: A type named '" << type->definedName() in validateUniqueNames()
164 mTypeIndexByName.at(mTypes[i]->definedName()) = i; in topologicalReorder()
DgenerateCppAdapter.cpp45 generateCppPackageInclude(out, mPackage, getInterface()->definedName()); in generateCppAdapterHeader()
88 generateCppPackageInclude(out, mPackage, getInterface()->definedName()); in generateCppAdapterSource()
DgenerateVts.cpp56 out << "component_name: \"" << (iface ? iface->definedName() : "types") << "\"\n\n"; in generateVts()
DType.h41 Type(Scope* parent, const std::string& definedName);
151 const std::string& definedName() const;
380 TemplatedType(Scope* parent, const std::string& definedName);
DFmqType.h29 const std::string& definedName);
DType.cpp32 Type::Type(Scope* parent, const std::string& definedName) in Type() argument
33 : mDefinedName(definedName), mParent(parent) {} in Type()
378 const std::string& Type::definedName() const { in definedName() function in android::Type
736 TemplatedType::TemplatedType(Scope* parent, const std::string& definedName) in TemplatedType() argument
737 : Type(parent, definedName) {} in TemplatedType()
DEnumType.cpp172 return "enum " + definedName(); in typeName()
206 return space + "hidl_bitfield<" + (specifyNamespaces ? fullName() : definedName()) + ">"; in getBitfieldCppType()
302 out << "enum class " << definedName() << " : " << storageType << " {\n"; in emitTypeDeclarations()
330 out << "enum class " << definedName() << " : " << storageType << ";\n"; in emitTypeForwardDeclaration()
516 out << "public " << (atTopLevel ? "" : "static ") << "final class " << definedName() << " {\n"; in emitJavaTypeDeclarations()
685 std::string name = definedName(); in emitExportedHeader()
728 out << "// Values declared in " << definedName() << " follow.\n"; in emitExportedHeader()
Dhidl-gen_y.yy514 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
572 !isValidInterfaceField(static_cast<NamedType*>($2)->definedName().c_str(),
990 $1)->definedName().c_str(), &errorMsg)) {
1029 … storageType = new Reference<Type>(scalar->definedName(), scalar, convertYYLoc(@2, ast));
1106 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1111 $1->setElementType(Reference<Type>($3->definedName(), $3, convertYYLoc(@3, ast)));
1112 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1132 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1145 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast), true);
DgenerateJava.cpp52 std::string typeName = type->definedName(); in generateJavaTypes()
143 const std::string ifaceName = iface->definedName(); in generateJava()
DInterface.cpp55 return "interface " + definedName(); in typeName()
737 if (StringHelper::EndsWith(definedName(), "Callback")) { in getVtsType()
863 Scope::emitTypeDefinitions(out, space + definedName()); in emitTypeDefinitions()
DCoordinator.cpp296 path.c_str(), (*ast)->getInterface()->definedName().c_str()); in parseOptional()
299 } else if ((*ast)->getInterface()->definedName() != fqName.name()) { in parseOptional()
DAST.cpp509 pathComponents.push_back(scope->definedName()); in makeFullName()
Dmain.cpp170 FQName rootTypeName(fqName.package(), fqName.version(), "types." + rootType->definedName()); in appendPerTypeTargets()
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp36 out << "// Cannot convert typedef " << typeDef.referencedType()->definedName() << " " in emitTypeDefAidlDefinition()
125 out << "// TODO: Fix this " << namedType.definedName() << "\n"; in emitAidl()
DAidlType.cpp86 return type.definedName(); in getAidlType()
DAidlHelper.cpp148 if (ref->get()->definedName() == type.fqName().name()) { in emitFileHeader()