/system/tools/hidl/lint/lints/ |
D | namingConventions.cpp | 47 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/ |
D | generateCppImpl.cpp | 90 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()
|
D | TypeDef.cpp | 51 return "typedef " + definedName(); in typeName() 77 out << "typedef " << mReferencedType->getCppStackType() << " " << definedName() << ";\n\n"; in emitTypeDeclarations() 81 out << "typedef " << mReferencedType.localName() << " " << definedName() << ";\n"; in emitHidlDefinition()
|
D | CompoundType.cpp | 115 << "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 …]
|
D | generateCpp.cpp | 220 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 …]
|
D | generateJavaImpl.cpp | 34 out << "import " << mPackage.javaPackage() << "." << iface->definedName() << ";\n\n"; in generateJavaImpl() 36 out << "class " << baseName << " extends " << iface->definedName() << ".Stub" in generateJavaImpl()
|
D | FmqType.cpp | 28 const std::string& definedName) in FmqType() argument 29 : TemplatedType(parent, definedName), mNamespace(nsp), mName(name) {} in FmqType()
|
D | Scope.cpp | 41 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()
|
D | generateCppAdapter.cpp | 45 generateCppPackageInclude(out, mPackage, getInterface()->definedName()); in generateCppAdapterHeader() 88 generateCppPackageInclude(out, mPackage, getInterface()->definedName()); in generateCppAdapterSource()
|
D | generateVts.cpp | 56 out << "component_name: \"" << (iface ? iface->definedName() : "types") << "\"\n\n"; in generateVts()
|
D | Type.h | 41 Type(Scope* parent, const std::string& definedName); 151 const std::string& definedName() const; 380 TemplatedType(Scope* parent, const std::string& definedName);
|
D | FmqType.h | 29 const std::string& definedName);
|
D | Type.cpp | 32 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()
|
D | EnumType.cpp | 172 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()
|
D | hidl-gen_y.yy | 514 $$ = 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);
|
D | generateJava.cpp | 52 std::string typeName = type->definedName(); in generateJavaTypes() 143 const std::string ifaceName = iface->definedName(); in generateJava()
|
D | Interface.cpp | 55 return "interface " + definedName(); in typeName() 737 if (StringHelper::EndsWith(definedName(), "Callback")) { in getVtsType() 863 Scope::emitTypeDefinitions(out, space + definedName()); in emitTypeDefinitions()
|
D | Coordinator.cpp | 296 path.c_str(), (*ast)->getInterface()->definedName().c_str()); in parseOptional() 299 } else if ((*ast)->getInterface()->definedName() != fqName.name()) { in parseOptional()
|
D | AST.cpp | 509 pathComponents.push_back(scope->definedName()); in makeFullName()
|
D | main.cpp | 170 FQName rootTypeName(fqName.package(), fqName.version(), "types." + rootType->definedName()); in appendPerTypeTargets()
|
/system/tools/hidl/hidl2aidl/ |
D | AidlNamedType.cpp | 36 out << "// Cannot convert typedef " << typeDef.referencedType()->definedName() << " " in emitTypeDefAidlDefinition() 125 out << "// TODO: Fix this " << namedType.definedName() << "\n"; in emitAidl()
|
D | AidlType.cpp | 86 return type.definedName(); in getAidlType()
|
D | AidlHelper.cpp | 148 if (ref->get()->definedName() == type.fqName().name()) { in emitFileHeader()
|