Home
last modified time | relevance | path

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

12

/aosp12/system/tools/hidl/
H A DEnumType.cpp31 EnumType::EnumType(const std::string& localName, const FQName& fullName, const Location& location, in EnumType() function in android::EnumType
53 size_t EnumType::numValueNames() const { in numValueNames()
66 status_t EnumType::resolveInheritance() { in resolveInheritance()
67 const EnumType* prevType = nullptr; in resolveInheritance()
99 status_t EnumType::validate() const { in validate()
163 bool EnumType::isElidableType() const { in isElidableType()
175 bool EnumType::isEnum() const { in isEnum()
239 void EnumType::emitReaderWriter( in emitReaderWriter()
628 void EnumType::emitJavaDump( in emitJavaDump()
636 std::vector<const EnumType*> EnumType::typeChain() const { in typeChain()
[all …]
H A 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;
H A 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);
H A DAndroid.bp88 "EnumType.cpp",
H A DConstantExpression.cpp382 EnumType* enumType = static_cast<EnumType*>(mReference.get()); in evaluate()
/aosp12/frameworks/native/libs/binder/include/binder/
H A DEnums.h31 template <typename EnumType, typename = std::enable_if_t<std::is_enum<EnumType>::value>>
32 constexpr invalid_type<EnumType> enum_values;
36 template <typename EnumType, typename = std::enable_if_t<std::is_enum<EnumType>::value>>
38 constexpr auto begin() const { return std::begin(internal::enum_values<EnumType>); } in begin()
39 constexpr auto end() const { return std::end(internal::enum_values<EnumType>); } in end()
/aosp12/frameworks/native/libs/binder/ndk/include_cpp/android/
H A Dbinder_enums.h44 template <typename EnumType, typename = std::enable_if_t<std::is_enum<EnumType>::value>>
45 constexpr invalid_type<EnumType> enum_values;
51 template <typename EnumType, typename = std::enable_if_t<std::is_enum<EnumType>::value>>
56 constexpr auto begin() const { return std::begin(internal::enum_values<EnumType>); } in begin()
60 constexpr auto end() const { return std::end(internal::enum_values<EnumType>); } in end()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
H A DDumpHelpers.h45 template <typename EnumType>
46 void dumpVal(std::string& out, const char* name, const char* valueName, EnumType value) { in dumpVal()
47 dumpVal(out, name, valueName, static_cast<std::underlying_type_t<EnumType>>(value)); in dumpVal()
50 template <typename EnumType>
51 void dumpVal(std::string& out, const char* name, const std::string& valueName, EnumType value) { in dumpVal()
52 dumpVal(out, name, valueName, static_cast<std::underlying_type_t<EnumType>>(value)); in dumpVal()
/aosp12/system/tools/xsdc/tests/
H A Dsimple_type.cpp29 for (const auto v : android::xsdc_enum_range<EnumType>()) { in TEST_F()
30 EXPECT_NE(v, EnumType::UNKNOWN); in TEST_F()
41 EXPECT_EQ(simple.getYesOrNo()[0], EnumType::YES); in TEST_F()
42 EXPECT_EQ(simple.getYesOrNo()[1], EnumType::EMPTY); in TEST_F()
H A 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()
/aosp12/hardware/interfaces/neuralnetworks/1.1/vts/functional/
H A DTestAssertions.cpp25 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
26 static_assert(static_cast<EnumType>(Test##EnumType::enumValue) == EnumType::enumValue)
/aosp12/hardware/interfaces/neuralnetworks/1.0/vts/functional/
H A DTestAssertions.cpp25 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
26 static_assert(static_cast<EnumType>(Test##EnumType::enumValue) == EnumType::enumValue)
/aosp12/system/tools/hidl/hidl2aidl/
H A 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()
119 const EnumType& enumType = static_cast<const EnumType&>(namedType); in emitAidl()
H A DAidlTranslate.cpp77 const auto& enumType = static_cast<const EnumType&>(namedType); in emitEnumStaticAssert()
80 for (const EnumType* type : enumType.typeChain()) { in emitEnumStaticAssert()
/aosp12/hardware/interfaces/contexthub/common/vts/
H A DVtsHalContexthubUtils.h42 template <typename EnumType>
43 inline constexpr typename std::underlying_type<EnumType>::type asBaseType(EnumType value) { in asBaseType()
44 return static_cast<typename std::underlying_type<EnumType>::type>(value); in asBaseType()
/aosp12/hardware/interfaces/sensors/common/vts/2_X/
H A DSensorsHidlEnvironmentV2_X.cpp40 template <typename EnumType>
41 constexpr typename std::underlying_type<EnumType>::type asBaseType(EnumType value) { in asBaseType()
42 return static_cast<typename std::underlying_type<EnumType>::type>(value); in asBaseType()
/aosp12/system/tools/xsdc/tests/resources/simple_type/api/
H A 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;
22 method public java.util.List<simple.type.EnumType> getYesOrNo();
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DTestAssertions.cpp25 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
26 static_assert(static_cast<EnumType>(Test##EnumType::enumValue) == EnumType::enumValue)
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DTestAssertions.cpp31 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
32 static_assert(static_cast<EnumType>(Test##EnumType::enumValue) == EnumType::enumValue)
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DTestAssertions.cpp36 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
37 static_assert(static_cast<EnumType>(Test##EnumType::enumValue) == EnumType::enumValue)
/aosp12/system/tools/hidl/lint/lints/
H A DenumMaxAndAll.cpp40 const EnumType* enumType = static_cast<const EnumType*>(t); in enumValueNames()
H A DnamingConventions.cpp77 const EnumType* enumType = static_cast<const EnumType*>(namedType); in namingConventions()
/aosp12/frameworks/native/libs/vr/libvrflinger/
H A Dhwc_types.h100 template <typename EnumType>
104 using Base = Wrapper<EnumType>;
107 using BaseType = EnumType;
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestAssertions.cpp24 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
25 static_assert(static_cast<int32_t>(EnumType::enumValue) == ANEURALNETWORKS_##enumValue)
/aosp12/frameworks/native/services/sensorservice/
H A DSensorDevice.cpp76 template<typename EnumType>
77 constexpr typename std::underlying_type<EnumType>::type asBaseType(EnumType value) { in asBaseType()
78 return static_cast<typename std::underlying_type<EnumType>::type>(value); in asBaseType()

12