/aosp12/system/tools/hidl/ |
H A D | EnumType.cpp | 31 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 D | EnumType.h | 33 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 D | hidl-gen_y.yy | 26 #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 D | Android.bp | 88 "EnumType.cpp",
|
H A D | ConstantExpression.cpp | 382 EnumType* enumType = static_cast<EnumType*>(mReference.get()); in evaluate()
|
/aosp12/frameworks/native/libs/binder/include/binder/ |
H A D | Enums.h | 31 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 D | binder_enums.h | 44 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 D | DumpHelpers.h | 45 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 D | simple_type.cpp | 29 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 D | simple_type_enumsonly.cpp | 24 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 D | TestAssertions.cpp | 25 #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 D | TestAssertions.cpp | 25 #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 D | AidlNamedType.cpp | 41 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 D | AidlTranslate.cpp | 77 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 D | VtsHalContexthubUtils.h | 42 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 D | SensorsHidlEnvironmentV2_X.cpp | 40 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 D | current.txt | 4 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 D | TestAssertions.cpp | 25 #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 D | TestAssertions.cpp | 31 #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 D | TestAssertions.cpp | 36 #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 D | enumMaxAndAll.cpp | 40 const EnumType* enumType = static_cast<const EnumType*>(t); in enumValueNames()
|
H A D | namingConventions.cpp | 77 const EnumType* enumType = static_cast<const EnumType*>(namedType); in namingConventions()
|
/aosp12/frameworks/native/libs/vr/libvrflinger/ |
H A D | hwc_types.h | 100 template <typename EnumType> 104 using Base = Wrapper<EnumType>; 107 using BaseType = EnumType;
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/ |
H A D | TestAssertions.cpp | 24 #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 D | SensorDevice.cpp | 76 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()
|