Home
last modified time | relevance | path

Searched refs:EnumType (Results 1 – 15 of 15) sorted by relevance

/system/tools/hidl/
DEnumType.cpp31 EnumType::EnumType(const std::string& localName, const FQName& fullName, const Location& location, in EnumType() function in android::EnumType
35 const Type *EnumType::storageType() const { in storageType()
39 const std::vector<EnumValue *> &EnumType::values() const { in values()
43 void EnumType::forEachValueFromRoot(const std::function<void(const EnumValue*)> f) const { in forEachValueFromRoot()
44 std::vector<const EnumType*> chain = typeChain(); in forEachValueFromRoot()
53 size_t EnumType::numValueNames() const { in numValueNames()
61 void EnumType::addValue(EnumValue* value) { in addValue()
66 status_t EnumType::resolveInheritance() { in resolveInheritance()
67 const EnumType* prevType = nullptr; in resolveInheritance()
87 std::vector<const Reference<Type>*> EnumType::getReferences() const { in getReferences()
[all …]
DEnumType.h33 struct EnumType : public Scope { struct
34 EnumType(const std::string& localName, const FQName& fullName, const Location& location,
125 std::vector<const EnumType*> typeChain() const;
128 std::vector<const EnumType*> superTypeChain() const;
148 DISALLOW_COPY_AND_ASSIGN(EnumType); argument
158 void autofill(const EnumType* prevType, EnumValue* prevValue, const ScalarType* type);
180 const EnumType* getElementEnumType() const;
202 const EnumType* getEnumType() const;
Dhidl-gen_y.yy26 #include "EnumType.h"
1032 EnumType* enumType = new EnumType(
1039 EnumType* enumType = static_cast<EnumType*>(*scope);
1078 static_cast<EnumType *>(*scope)->addValue($1);
1083 static_cast<EnumType *>(*scope)->addValue($3);
1090 static_cast<EnumType *>(*scope)->addValue($3);
1097 static_cast<EnumType *>(*scope)->addValue($5);
DAndroid.bp82 "EnumType.cpp",
DAST.cpp563 EnumType *enumType = static_cast<EnumType *>(type); in lookupEnumValue()
DConstantExpression.cpp388 EnumType* enumType = static_cast<EnumType*>(mReference.get()); in evaluate()
Dhidl-gen_l.ll39 #include "EnumType.h"
/system/chre/util/include/chre/util/
Denum.h23 template <typename EnumType>
24 inline constexpr typename std::underlying_type<EnumType>::type asBaseType( in asBaseType()
25 EnumType value) { in asBaseType()
26 return static_cast<typename std::underlying_type<EnumType>::type>(value); in asBaseType()
/system/tools/xsdc/tests/
Dsimple_type.cpp30 for (const auto v : android::xsdc_enum_range<EnumType>()) { in TEST_F()
31 EXPECT_NE(v, EnumType::UNKNOWN); in TEST_F()
42 EXPECT_EQ(simple.getYesOrNo()[0], EnumType::YES); in TEST_F()
43 EXPECT_EQ(simple.getYesOrNo()[1], EnumType::EMPTY); in TEST_F()
Dsimple_type_enumsonly.cpp24 for (const auto v : android::xsdc_enum_range<EnumType>()) { in TEST_F()
25 EXPECT_NE(v, EnumType::UNKNOWN); in TEST_F()
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp41 static void emitEnumAidlDefinition(Formatter& out, const EnumType& enumType) { in emitEnumAidlDefinition()
51 const EnumType* skippedType = nullptr; in emitEnumAidlDefinition()
52 for (const EnumType* type : enumType.typeChain()) { in emitEnumAidlDefinition()
122 const EnumType& enumType = static_cast<const EnumType&>(namedType); in emitAidl()
DAidlTranslate.cpp77 const auto& enumType = static_cast<const EnumType&>(namedType); in emitEnumStaticAssert()
80 for (const EnumType* type : enumType.typeChain()) { in emitEnumStaticAssert()
/system/tools/xsdc/tests/resources/simple_type/api/
Dcurrent.txt4 public enum EnumType {
6 enum_constant public static final simple.type.EnumType EMPTY;
7 enum_constant public static final simple.type.EnumType NO;
8 enum_constant @Deprecated public static final simple.type.EnumType YES;
23 method public java.util.List<simple.type.EnumType> getYesOrNo();
/system/tools/hidl/lint/lints/
DenumMaxAndAll.cpp40 const EnumType* enumType = static_cast<const EnumType*>(t); in enumValueNames()
DnamingConventions.cpp77 const EnumType* enumType = static_cast<const EnumType*>(namedType); in namingConventions()