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);
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;
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 …]
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.bp96 "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()
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*>(
DInterface.cpp825 const std::vector<const NamedType*>& definedTypes = getSortedDefinedTypes(); in emitHidlDefinition()
DEnumType.cpp908 out << "predefined_type: \"" << static_cast<const NamedType*>(mElementType.get())->fullName() in emitVtsAttributeType()
/system/tools/hidl/hidl2aidl/
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 …]
DAidlTranslate.cpp67 static const std::string aidlTypePackage(const NamedType& type, AidlBackend backend) { in aidlTypePackage()
75 static void emitEnumStaticAssert(Formatter& out, const NamedType& namedType, AidlBackend backend) { in emitEnumStaticAssert()
96 static void emitStaticAsserts(Formatter& out, const std::set<const NamedType*>& namedTypes, in emitStaticAsserts()
106 static void namedTypeTranslation(Formatter& out, const std::set<const NamedType*>& namedTypes, in namedTypeTranslation()
109 const NamedType* type = static_cast<const NamedType*>(field.field->get()); in namedTypeTranslation()
216 aidlTypePackage(static_cast<const android::NamedType&>(type), backend) + ">(" + in wrapStaticCast()
340 static void h2aFieldTranslation(Formatter& out, const std::set<const NamedType*>& namedTypes, in h2aFieldTranslation()
357 static const std::string declareAidlFunctionSignature(const NamedType* type, AidlBackend backend) { in declareAidlFunctionSignature()
367 static const std::string getHidlPackagePath(const NamedType* type) { in getHidlPackagePath()
371 static std::optional<const Interface*> getParentInterface(const NamedType* type) { in getParentInterface()
[all …]
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()
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
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()
DAidlType.cpp57 const NamedType& namedType = static_cast<const NamedType&>(type); in getAidlType()
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()
/system/tools/hidl/lint/lints/
DnamingConventions.cpp42 const NamedType* namedType = static_cast<const NamedType*>(type); in namingConventions()