Home
last modified time | relevance | path

Searched refs:NamedType (Results 1 – 24 of 24) sorted by relevance

/aosp12/system/tools/hidl/
H A DNamedType.cpp23 NamedType::NamedType(const std::string& localName, const FQName& fullName, const Location& loc, in NamedType() function in android::NamedType
27 bool NamedType::isNamedType() const { in isNamedType()
31 const FQName &NamedType::fqName() const { in fqName()
35 std::string NamedType::fullName() const { in fullName()
39 std::string NamedType::fullJavaName() const { in fullJavaName()
43 const Location &NamedType::location() const { in location()
47 void NamedType::emitDump( in emitDump()
H A DScope.cpp35 : NamedType(localName, fullName, location, parent) {} in Scope()
38 void Scope::addType(NamedType* type) { in addType()
48 return NamedType::validate(); in validate()
71 NamedType *Scope::lookupType(const FQName &fqName) const { in lookupType()
85 NamedType *outerType = mTypes[it->second]; in lookupType()
118 for (const NamedType *type : mTypes) { in definesInterfaces()
143 std::vector<const NamedType*> Scope::getSortedDefinedTypes() const { in getSortedDefinedTypes()
144 std::vector<const NamedType*> ret; in getSortedDefinedTypes()
147 std::sort(ret.begin(), ret.end(), [](const NamedType* lhs, const NamedType* rhs) -> bool { in getSortedDefinedTypes()
169 const std::vector<const NamedType*>& definedTypes = getSortedDefinedTypes(); in emitHidlDefinition()
[all …]
H A DScope.h36 struct Scope : public NamedType {
41 void addType(NamedType* type);
50 NamedType *lookupType(const FQName &fqName) const;
66 std::vector<const NamedType*> getSortedDefinedTypes() const;
82 const std::vector<NamedType *> &getSubTypes() const;
92 std::vector<NamedType *> mTypes;
H A DNamedType.h30 struct NamedType : public Type { struct
31 NamedType(const std::string& localName, const FQName& fullName, const Location& loc,
54 DISALLOW_COPY_AND_ASSIGN(NamedType); argument
H A DgenerateDependencies.cpp35 out << static_cast<const NamedType*>(type)->fqName().string() << "\n"; in generateDependencies()
H A DTypeDef.h27 struct TypeDef : public NamedType {
H A DTypeDef.cpp27 : NamedType(localName, fullName, location, parent), mReferencedType(type) {} in TypeDef()
H A DAST.h43 struct NamedType;
68 void addScopedType(NamedType* type, Scope* scope);
H A DAndroid.bp96 "NamedType.cpp",
H A DType.cpp243 std::cerr << " at " << static_cast<const NamedType*>(nextType)->location(); in topologicalOrder()
302 const Location& typeLoc = static_cast<const NamedType*>(refType)->location(); in checkForwardReferenceRestrictions()
H A Dmain.cpp166 std::vector<NamedType*> rootTypes = typesAST->getRootScope().getSubTypes(); in appendPerTypeTargets()
167 for (const NamedType* rootType : rootTypes) { in appendPerTypeTargets()
447 std::vector<NamedType*> subTypes = typesAST->getRootScope().getSubTypes(); in packageNeedsJavaCode()
H A DAST.cpp238 static_cast<const NamedType *>(targetType)->fqName()); in gatherReferencedTypes()
518 void AST::addScopedType(NamedType* type, Scope* scope) { in addScopedType()
H A DCompoundType.cpp650 std::vector<const NamedType*> preDeclaredTypes; in emitInlineHidlDefinition()
651 for (const NamedType* namedType : getSortedDefinedTypes()) { in emitInlineHidlDefinition()
H A Dhidl-gen_y.yy572 !isValidInterfaceField(static_cast<NamedType*>($2)->definedName().c_str(),
989 !isValidCompoundTypeField(style, static_cast<NamedType*>(
H A DInterface.cpp825 const std::vector<const NamedType*>& definedTypes = getSortedDefinedTypes(); in emitHidlDefinition()
H A DEnumType.cpp908 out << "predefined_type: \"" << static_cast<const NamedType*>(mElementType.get())->fullName() in emitVtsAttributeType()
/aosp12/system/tools/hidl/hidl2aidl/
H A DAidlHelper.h33 struct NamedType;
47 std::set<const NamedType*> subTypes;
84 Formatter& out, const NamedType& type,
85 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes);
88 const NamedType& namedType, const Coordinator& coordinator,
89 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes);
96 const NamedType& namedType, const Coordinator& coordinator,
97 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes);
101 const std::map<const NamedType*, const ProcessedCompoundType>&);
119 const std::set<const NamedType*>& namedTypesInPackage,
[all …]
H A DAidlTranslate.cpp67 static const std::string aidlTypePackage(const NamedType& type, AidlBackend backend) { in aidlTypePackage()
109 const NamedType* type = static_cast<const NamedType*>(field.field->get()); in namedTypeTranslation()
367 static const std::string getHidlPackagePath(const NamedType* type) { in getHidlPackagePath()
371 static std::optional<const Interface*> getParentInterface(const NamedType* type) { in getParentInterface()
382 static const std::string hidlIncludeFile(const NamedType* type) { in hidlIncludeFile()
393 static const std::string aidlIncludeFile(const NamedType* type, AidlBackend backend) { in aidlIncludeFile()
401 const std::set<const NamedType*>& namedTypes, in emitCppTranslateHeader()
402 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes, in emitCppTranslateHeader() argument
437 const std::set<const NamedType*>& namedTypes, in emitTranslateSource()
438 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes, in emitTranslateSource() argument
[all …]
H A DAidlHelper.cpp94 const NamedType& namedType = *static_cast<const NamedType*>(&type); in importLocallyReferencedType()
107 Formatter& out, const NamedType& type, in emitFileHeader()
108 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes) { in emitFileHeader() argument
117 for (const NamedType* namedType : scope.getSubTypes()) { in emitFileHeader()
166 const NamedType& namedType, const Coordinator& coordinator, in getFileWithHeader()
167 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes) { in getFileWithHeader() argument
180 for (const NamedType* subType : compoundType.getSubTypes()) { in processCompoundType()
H A Dmain.cpp89 const std::set<const NamedType*>& list) { in getLatestMinorVersionNamedTypeFromList()
92 for (const NamedType* currentNamedType : list) { in getLatestMinorVersionNamedTypeFromList()
162 static void getSubTypes(const NamedType& namedType, std::set<const NamedType*>* types) { in getSubTypes()
165 for (const NamedType* subType : compoundType.getSubTypes()) { in getSubTypes()
403 std::set<const NamedType*> namedTypesInPackage; in main()
439 std::map<const NamedType*, const ProcessedCompoundType> processedTypesInPackage; in main()
446 std::pair<const NamedType*, const ProcessedCompoundType>(namedType, processed)); in main()
H A DAidlNamedType.cpp27 static void emitConversionNotes(Formatter& out, const NamedType& namedType) { in emitConversionNotes()
77 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes) { in emitCompoundTypeAidlDefinition() argument
109 const NamedType& namedType, const Coordinator& coordinator, in emitAidl()
110 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes) { in emitAidl() argument
H A DAidlInterface.cpp175 const std::map<const NamedType*, const ProcessedCompoundType>& processedTypes) { in emitAidl() argument
187 std::map<std::string, NodeWithVersion<NamedType>> latestTypeForBaseName; in emitAidl()
188 std::vector<const NodeWithVersion<NamedType>> supersededNamedTypes; in emitAidl()
207 for (const NamedType* type : iface->getSubTypes()) { in emitAidl()
221 [&](const NodeWithVersion<NamedType>& versionedType) { in emitAidl()
H A DAidlType.cpp57 const NamedType& namedType = static_cast<const NamedType&>(type); in getAidlType()
/aosp12/system/tools/hidl/lint/lints/
H A DnamingConventions.cpp42 const NamedType* namedType = static_cast<const NamedType*>(type); in namingConventions()