Home
last modified time | relevance | path

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

/system/tools/hidl/
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()
DScope.h36 struct Scope : public NamedType {
41 void addType(NamedType* type);
47 NamedType *lookupType(const FQName &fqName) const;
63 std::vector<const NamedType*> getSortedDefinedTypes() const;
79 const std::vector<NamedType *> &getSubTypes() const;
89 std::vector<NamedType *> mTypes;
DScope.cpp35 : NamedType(localName, fullName, location, parent) {} in Scope()
38 void Scope::addType(NamedType* type) { in addType()
55 NamedType *Scope::lookupType(const FQName &fqName) const { in lookupType()
69 NamedType *outerType = mTypes[it->second]; in lookupType()
102 for (const NamedType *type : mTypes) { in definesInterfaces()
127 std::vector<const NamedType*> Scope::getSortedDefinedTypes() const { in getSortedDefinedTypes()
128 std::vector<const NamedType*> ret; in getSortedDefinedTypes()
131 std::sort(ret.begin(), ret.end(), [](const NamedType* lhs, const NamedType* rhs) -> bool { in getSortedDefinedTypes()
153 const std::vector<const NamedType*>& definedTypes = getSortedDefinedTypes(); in emitHidlDefinition()
218 const std::vector<NamedType *> &Scope::getSubTypes() const { in getSubTypes()
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
DgenerateDependencies.cpp35 out << static_cast<const NamedType*>(type)->fqName().string() << "\n"; in generateDependencies()
DTypeDef.h27 struct TypeDef : public NamedType {
DTypeDef.cpp27 : NamedType(localName, fullName, location, parent), mReferencedType(type) {} in TypeDef()
DAST.h43 struct NamedType;
68 void addScopedType(NamedType* type, Scope* scope);
DAndroid.bp79 "NamedType.cpp",
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()
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()
DAST.cpp238 static_cast<const NamedType *>(targetType)->fqName()); in gatherReferencedTypes()
518 void AST::addScopedType(NamedType* type, Scope* scope) { in addScopedType()
DInterface.cpp800 const std::vector<const NamedType*>& definedTypes = getSortedDefinedTypes(); in emitHidlDefinition()
DCompoundType.cpp650 std::vector<const NamedType*> preDeclaredTypes; in emitInlineHidlDefinition()
651 for (const NamedType* namedType : getSortedDefinedTypes()) { in emitInlineHidlDefinition()
Dhidl-gen_y.yy572 !isValidInterfaceField(static_cast<NamedType*>($2)->definedName().c_str(),
989 !isValidCompoundTypeField(style, static_cast<NamedType*>(
DEnumType.cpp892 out << "predefined_type: \"" << static_cast<const NamedType*>(mElementType.get())->fullName() in emitVtsAttributeType()
/system/tools/hidl/hidl2aidl/
DAidlHelper.h30 struct NamedType;
48 static void emitFileHeader(Formatter& out, const NamedType& type);
50 static Formatter getFileWithHeader(const NamedType& namedType, const Coordinator& coordinator);
56 static void emitAidl(const NamedType& namedType, const Coordinator& coordinator);
DAidlHelper.cpp81 const NamedType& namedType = *static_cast<const NamedType*>(&type); in importLocallyReferencedType()
91 void AidlHelper::emitFileHeader(Formatter& out, const NamedType& type) { in emitFileHeader()
100 for (const NamedType* namedType : scope.getSubTypes()) { in emitFileHeader()
135 Formatter AidlHelper::getFileWithHeader(const NamedType& namedType, in getFileWithHeader()
DAidlNamedType.cpp33 std::set<const NamedType*> subTypes;
36 static void emitConversionNotes(Formatter& out, const NamedType& namedType) { in emitConversionNotes()
71 for (const NamedType* subType : compoundType.getSubTypes()) { in processCompoundType()
124 for (const NamedType* namedType : processedType.subTypes) { in emitCompoundTypeAidlDefinition()
132 const std::vector<NamedType*>& latestSubTypes = compoundType.getSubTypes(); in emitCompoundTypeAidlDefinition()
139 for (const NamedType* subType : processedType.subTypes) { in emitCompoundTypeAidlDefinition()
173 void AidlHelper::emitAidl(const NamedType& namedType, const Coordinator& coordinator) { in emitAidl()
DAidlType.cpp40 const NamedType& namedType = static_cast<const NamedType&>(type); in getAidlType()
Dmain.cpp84 const std::vector<const NamedType*>& list) { in getLatestMinorVersionNamedTypeFromList()
87 for (const NamedType* currentNamedType : list) { in getLatestMinorVersionNamedTypeFromList()
248 std::vector<const NamedType*> namedTypesInPackage; in main()
256 std::vector<const NamedType*> types = ast->getRootScope().getSortedDefinedTypes(); in main()
262 [&](const NamedType* namedType) -> bool { in main()
268 for (const NamedType* namedType : namedTypesInPackage) { in main()
DAidlScope.cpp25 for (const NamedType* type : scope.getSubTypes()) { in emitAidl()
DAidlInterface.cpp156 std::map<std::string, NodeWithVersion<NamedType>> latestTypeForBaseName; in emitAidl()
157 std::vector<const NodeWithVersion<NamedType>> supersededNamedTypes; in emitAidl()
173 for (const NamedType* type : (*iface)->getSubTypes()) { in emitAidl()
187 [&](const NodeWithVersion<NamedType>& versionedType) { in emitAidl()
/system/tools/hidl/lint/lints/
DnamingConventions.cpp42 const NamedType* namedType = static_cast<const NamedType*>(type); in namingConventions()