Home
last modified time | relevance | path

Searched refs:ScalarType (Results 1 – 18 of 18) sorted by relevance

/system/tools/hidl/
DScalarType.cpp27 ScalarType::ScalarType(Kind kind, Scope* parent) in ScalarType() function in android::ScalarType
30 const ScalarType *ScalarType::resolveToScalarType() const { in resolveToScalarType()
34 bool ScalarType::isValidEnumStorageType() const { in isValidEnumStorageType()
39 bool ScalarType::isScalar() const { in isScalar()
43 bool ScalarType::isElidableType() const { in isElidableType()
47 bool ScalarType::deepCanCheckEquality(std::unordered_set<const Type*>* /* visited */) const { in deepCanCheckEquality()
51 std::string ScalarType::typeName() const { in typeName()
55 std::string ScalarType::getCppType(StorageMode, bool) const { in getCppType()
73 std::string ScalarType::getJavaType(bool /* forInitializer */) const { in getJavaType()
91 std::string ScalarType::getJavaTypeClass() const { in getJavaTypeClass()
[all …]
DConstantExpression.h45 static std::unique_ptr<ConstantExpression> Zero(ScalarType::Kind kind);
46 static std::unique_ptr<ConstantExpression> One(ScalarType::Kind kind);
47 static std::unique_ptr<ConstantExpression> ValueOf(ScalarType::Kind kind, uint64_t value);
112 std::string value(ScalarType::Kind castKind) const;
114 std::string cppValue(ScalarType::Kind castKind) const;
116 std::string javaValue(ScalarType::Kind castKind) const;
122 std::unique_ptr<ConstantExpression> addOne(ScalarType::Kind baseKind);
136 std::string rawValue(ScalarType::Kind castKind) const;
144 ScalarType::Kind mValueKind;
174 LiteralConstantExpression(ScalarType::Kind kind, uint64_t value);
[all …]
DScalarType.h25 struct ScalarType : public Type { struct
40 ScalarType(Kind kind, Scope* parent); argument
45 const ScalarType *resolveToScalarType() const override;
112 DISALLOW_COPY_AND_ASSIGN(ScalarType);
DConstantExpression.cpp41 #define SK(__x__) ScalarType::Kind::KIND_##__x__
61 static inline bool isSupported(ScalarType::Kind kind) { in isSupported()
62 return SK(BOOL) == kind || ScalarType(kind, nullptr /* parent */).isValidEnumStorageType(); in isSupported()
66 ScalarType::Kind integralPromotion(ScalarType::Kind in) { in integralPromotion()
71 ScalarType::Kind usualArithmeticConversion(ScalarType::Kind lft, in usualArithmeticConversion()
72 ScalarType::Kind rgt) { in usualArithmeticConversion()
83 ScalarType::Kind unsignedRank = isLftSigned ? rgt : lft; in usualArithmeticConversion()
84 ScalarType::Kind signedRank = isLftSigned ? lft : rgt; in usualArithmeticConversion()
160 std::unique_ptr<ConstantExpression> ConstantExpression::Zero(ScalarType::Kind kind) { in Zero()
164 std::unique_ptr<ConstantExpression> ConstantExpression::One(ScalarType::Kind kind) { in One()
[all …]
DEnumType.h49 const ScalarType *resolveToScalarType() const override;
153 std::string rawValue(ScalarType::Kind castKind) const;
154 std::string cppValue(ScalarType::Kind castKind) const;
155 std::string javaValue(ScalarType::Kind castKind) const;
156 void autofill(const EnumType* prevType, EnumValue* prevValue, const ScalarType* type);
188 const ScalarType *resolveToScalarType() const override;
DEnumType.cpp151 const ScalarType *EnumType::resolveToScalarType() const { in resolveToScalarType()
230 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitReaderWriter()
281 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitTypeDeclarations()
311 const ScalarType* scalarType = mStorageType->resolveToScalarType(); in emitTypeForwardDeclaration()
348 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitEnumBitwiseOperator()
392 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitBitFieldBitwiseAssignmentOperator()
441 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitPackageTypeHeaderDefinitions()
497 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitJavaTypeDeclarations()
572 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitVtsTypeDeclarations()
694 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitExportedHeader()
[all …]
DTypeDef.h31 const ScalarType *resolveToScalarType() const override;
DTypeDef.cpp29 const ScalarType *TypeDef::resolveToScalarType() const { in resolveToScalarType()
Dhidl-gen_l.ll44 #include "ScalarType.h"
61 yylval->type = new ScalarType(ScalarType::kind, *scope); \
DMethod.h40 struct ScalarType;
DType.h37 struct ScalarType;
133 virtual const ScalarType *resolveToScalarType() const;
DCompoundType.cpp2054 std::unique_ptr<ScalarType> CompoundType::getUnionDiscriminatorType() const { in getUnionDiscriminatorType()
2055 static const std::vector<std::pair<int, ScalarType::Kind> > scalars { in getUnionDiscriminatorType()
2056 {8, ScalarType::Kind::KIND_UINT8}, in getUnionDiscriminatorType()
2057 {16, ScalarType::Kind::KIND_UINT16}, in getUnionDiscriminatorType()
2058 {32, ScalarType::Kind::KIND_UINT32}, in getUnionDiscriminatorType()
2062 auto kind = ScalarType::Kind::KIND_UINT64; in getUnionDiscriminatorType()
2070 return std::unique_ptr<ScalarType>(new ScalarType(kind, nullptr)); in getUnionDiscriminatorType()
DCompoundType.h166 std::unique_ptr<ScalarType> getUnionDiscriminatorType() const;
DAndroid.bp81 "ScalarType.cpp",
DType.cpp325 const ScalarType *Type::resolveToScalarType() const { in resolveToScalarType()
330 const ScalarType *scalarType = resolveToScalarType(); in isValidEnumStorageType()
DInterface.cpp44 …std::make_unique<LiteralConstantExpression>(ScalarType::KIND_UINT32, hardware::IBinder::FLAG_ONEWA…
277 out << byteToString(ConstantExpression::ValueOf(ScalarType::Kind::KIND_UINT8, e)); in emitDigestChain()
Dhidl-gen_y.yy811 $$ = ConstantExpression::Zero(ScalarType::KIND_INT32).release();
1028 ScalarType* scalar = new ScalarType(ScalarType::KIND_INT64, *scope);
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp51 const ScalarType* scalar = enumType.storageType()->resolveToScalarType(); in emitEnumAidlDefinition()