Home
last modified time | relevance | path

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

/system/tools/hidl/
DScalarType.cpp23 ScalarType::ScalarType(Kind kind) in ScalarType() function in android::ScalarType
27 const ScalarType *ScalarType::resolveToScalarType() const { in resolveToScalarType()
31 bool ScalarType::isValidEnumStorageType() const { in isValidEnumStorageType()
36 void ScalarType::addNamedTypesToSet(std::set<const FQName> &) const { in addNamedTypesToSet()
40 bool ScalarType::isScalar() const { in isScalar()
44 bool ScalarType::isElidableType() const { in isElidableType()
48 bool ScalarType::canCheckEquality() const { in canCheckEquality()
52 std::string ScalarType::typeName() const { in typeName()
56 std::string ScalarType::getCppType(StorageMode, bool) const { in getCppType()
74 std::string ScalarType::getJavaType(bool /* forInitializer */) const { in getJavaType()
[all …]
DConstantExpression.h57 static ConstantExpression Zero(ScalarType::Kind kind);
58 static ConstantExpression One(ScalarType::Kind kind);
59 static ConstantExpression ValueOf(ScalarType::Kind kind, uint64_t value);
68 std::string value(ScalarType::Kind castKind) const;
70 std::string cppValue(ScalarType::Kind castKind) const;
72 std::string javaValue(ScalarType::Kind castKind) const;
90 ScalarType::Kind mValueKind;
101 std::string rawValue(ScalarType::Kind castKind) const;
DConstantExpression.cpp39 #define SK(__x__) ScalarType::Kind::KIND_##__x__
58 static inline bool isSupported(ScalarType::Kind kind) { in isSupported()
59 return SK(BOOL) == kind || ScalarType(kind).isValidEnumStorageType(); in isSupported()
63 ScalarType::Kind integralPromotion(ScalarType::Kind in) { in integralPromotion()
68 ScalarType::Kind usualArithmeticConversion(ScalarType::Kind lft, in usualArithmeticConversion()
69 ScalarType::Kind rgt) { in usualArithmeticConversion()
80 ScalarType::Kind unsignedRank = isLftSigned ? rgt : lft; in usualArithmeticConversion()
81 ScalarType::Kind signedRank = isLftSigned ? lft : rgt; in usualArithmeticConversion()
156 ConstantExpression ConstantExpression::Zero(ScalarType::Kind kind) { in Zero()
163 ConstantExpression ConstantExpression::One(ScalarType::Kind kind) { in One()
[all …]
DScalarType.h25 struct ScalarType : public Type { struct
40 ScalarType(Kind kind); argument
45 const ScalarType *resolveToScalarType() const override;
110 DISALLOW_COPY_AND_ASSIGN(ScalarType);
DEnumType.h43 const ScalarType *resolveToScalarType() const override;
127 std::string value(ScalarType::Kind castKind) const;
128 std::string cppValue(ScalarType::Kind castKind) const;
129 std::string javaValue(ScalarType::Kind castKind) const;
131 void autofill(const EnumValue *prev, const ScalarType *type);
159 const ScalarType *resolveToScalarType() const override;
DEnumType.cpp69 const ScalarType *EnumType::resolveToScalarType() const { in resolveToScalarType()
131 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitReaderWriter()
157 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitTypeDeclarations()
205 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitEnumBitwiseOperator()
249 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitBitFieldBitwiseAssignmentOperator()
296 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitTypeDefinitions()
353 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitJavaTypeDeclarations()
439 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitVtsTypeDeclarations()
555 const ScalarType *scalarType = mStorageType->resolveToScalarType(); in emitExportedHeader()
669 std::string EnumValue::value(ScalarType::Kind castKind) const { in value()
[all …]
DTypeDef.h28 const ScalarType *resolveToScalarType() const override;
DTypeDef.cpp29 const ScalarType *TypeDef::resolveToScalarType() const { in resolveToScalarType()
Dhidl-gen_l.ll43 #include "ScalarType.h"
60 yylval->type = new ScalarType(ScalarType::kind); \
DType.h31 struct ScalarType;
55 virtual const ScalarType *resolveToScalarType() const;
DMethod.h33 struct ScalarType;
DType.cpp109 const ScalarType *Type::resolveToScalarType() const { in resolveToScalarType()
114 const ScalarType *scalarType = resolveToScalarType(); in isValidEnumStorageType()
DAndroid.bp80 "ScalarType.cpp",
DInterface.cpp302 out << byteToString(ConstantExpression::ValueOf(ScalarType::Kind::KIND_UINT8, e)); in emitDigestChain()
Dhidl-gen_y.yy731 $$ = new ConstantExpression(ConstantExpression::Zero(ScalarType::KIND_INT32));