/system/tools/hidl/ |
D | ConstantExpression.h | 44 struct ConstantExpression { struct 45 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); 49 virtual ~ConstantExpression() {} in ~ConstantExpression() argument 56 status_t recursivePass(const std::function<status_t(ConstantExpression*)>& func, 57 std::unordered_set<const ConstantExpression*>* visited, 59 status_t recursivePass(const std::function<status_t(const ConstantExpression*)>& func, 60 std::unordered_set<const ConstantExpression*>* visited, 70 std::vector<ConstantExpression*> getConstantExpressions(); [all …]
|
D | ConstantExpression.cpp | 154 std::unique_ptr<ConstantExpression> ConstantExpression::Zero(ScalarType::Kind kind) { in Zero() 158 std::unique_ptr<ConstantExpression> ConstantExpression::One(ScalarType::Kind kind) { in One() 162 std::unique_ptr<ConstantExpression> ConstantExpression::ValueOf(ScalarType::Kind kind, in ValueOf() 167 bool ConstantExpression::isEvaluated() const { in isEvaluated() 350 ConstantExpression* expr = mReference->constExpr(); in evaluate() 390 std::unique_ptr<ConstantExpression> ConstantExpression::addOne(ScalarType::Kind baseKind) { in addOne() 392 this, "+", ConstantExpression::One(baseKind).release()); in addOne() 396 std::string ConstantExpression::value() const { in value() 400 std::string ConstantExpression::value(ScalarType::Kind castKind) const { in value() 405 std::string ConstantExpression::cppValue() const { in cppValue() [all …]
|
D | Annotation.cpp | 33 std::vector<ConstantExpression*> AnnotationParam::getConstantExpressions() { in getConstantExpressions() 35 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions() 37 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions() 41 std::vector<const ConstantExpression*> AnnotationParam::getConstantExpressions() const { in getConstantExpressions() 84 const std::string& name, std::vector<ConstantExpression*>* values) in ConstantExpressionAnnotationParam() 100 std::vector<const ConstantExpression*> ConstantExpressionAnnotationParam::getConstantExpressions() in getConstantExpressions() 102 std::vector<const ConstantExpression*> ret; in getConstantExpressions() 128 std::vector<ConstantExpression*> Annotation::getConstantExpressions() { in getConstantExpressions() 130 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions() 132 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions() [all …]
|
D | Annotation.h | 46 std::vector<ConstantExpression*> getConstantExpressions(); 47 virtual std::vector<const ConstantExpression*> getConstantExpressions() const; 67 std::vector<ConstantExpression*>* values); 72 std::vector<const ConstantExpression*> getConstantExpressions() const override; 75 std::vector<ConstantExpression*>* const mValues; 87 std::vector<ConstantExpression*> getConstantExpressions(); 88 std::vector<const ConstantExpression*> getConstantExpressions() const;
|
D | ArrayType.h | 28 struct ConstantExpression; 31 ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent); 38 void appendDimension(ConstantExpression *size); 45 std::vector<const ConstantExpression*> getConstantExpressions() const override; 143 std::vector<ConstantExpression*> mSizes;
|
D | Scope.h | 30 struct ConstantExpression; 62 std::vector<const ConstantExpression*> getConstantExpressions() const override; 113 virtual ConstantExpression* constExpr() const;
|
D | Method.h | 38 struct ConstantExpression; 76 std::vector<ConstantExpression*> getConstantExpressions(); 77 std::vector<const ConstantExpression*> getConstantExpressions() const;
|
D | AST.cpp | 132 [](ConstantExpression* ce) { in postParse() 145 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies) { in constantExpressionRecursivePass() 147 std::unordered_set<const ConstantExpression*> visitedCE; in constantExpressionRecursivePass() 161 const std::function<status_t(const ConstantExpression*)>& func, in constantExpressionRecursivePass() 164 std::unordered_set<const ConstantExpression*> visitedCE; in constantExpressionRecursivePass() 235 std::unordered_set<const ConstantExpression*> visitedCE; in lookupConstantExpressions() 244 [&](ConstantExpression* ce) { in lookupConstantExpressions() 297 [](const ConstantExpression* ce) { return ce->validate(); }, in validateConstantExpressions() 303 [](ConstantExpression* ce) { in evaluateConstantExpressions() 335 std::unordered_set<const ConstantExpression*> visitedCE; in checkAcyclicConstantExpressions() [all …]
|
D | Method.cpp | 105 std::vector<ConstantExpression*> Method::getConstantExpressions() { in getConstantExpressions() 107 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions() 109 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions() 113 std::vector<const ConstantExpression*> Method::getConstantExpressions() const { in getConstantExpressions() 114 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
|
D | EnumType.h | 72 std::vector<const ConstantExpression*> getConstantExpressions() const override; 144 EnumValue(const char* name, ConstantExpression* value, const Location& location); 151 ConstantExpression* constExpr() const override; 160 ConstantExpression* mValue;
|
D | Interface.h | 35 const static std::unique_ptr<ConstantExpression> FLAG_ONE_WAY; 99 std::vector<const ConstantExpression*> getConstantExpressions() const override; 157 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const;
|
D | Scope.cpp | 125 std::vector<const ConstantExpression*> Scope::getConstantExpressions() const { in getConstantExpressions() 126 std::vector<const ConstantExpression*> ret; in getConstantExpressions() 268 ConstantExpression* LocalIdentifier::constExpr() const { in constExpr()
|
D | AST.h | 36 struct ConstantExpression; 86 const std::function<status_t(ConstantExpression*)>& func, bool processBeforeDependencies); 88 const std::function<status_t(const ConstantExpression*)>& func,
|
D | ArrayType.cpp | 27 ArrayType::ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent) in ArrayType() 32 void ArrayType::appendDimension(ConstantExpression *size) { in appendDimension() 64 std::vector<const ConstantExpression*> ArrayType::getConstantExpressions() const { in getConstantExpressions() 65 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
|
D | Type.h | 34 struct ConstantExpression; 73 std::vector<ConstantExpression*> getConstantExpressions(); 74 virtual std::vector<const ConstantExpression*> getConstantExpressions() const;
|
D | Interface.cpp | 71 const std::unique_ptr<ConstantExpression> Interface::FLAG_ONE_WAY = 296 std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const { in emitDigestChain() 305 out << byteToString(ConstantExpression::ValueOf(ScalarType::Kind::KIND_UINT8, e)); in emitDigestChain() 478 std::vector<const ConstantExpression*> Interface::getConstantExpressions() const { in getConstantExpressions() 479 std::vector<const ConstantExpression*> ret; in getConstantExpressions()
|
D | EnumType.cpp | 90 std::vector<const ConstantExpression*> EnumType::getConstantExpressions() const { in getConstantExpressions() 91 std::vector<const ConstantExpression*> ret; in getConstantExpressions() 739 EnumValue::EnumValue(const char* name, ConstantExpression* value, const Location& location) in EnumValue() 760 ConstantExpression *EnumValue::constExpr() const { in constExpr() 773 mValue = ConstantExpression::Zero(type->getKind()).release(); in autofill()
|
D | Type.cpp | 127 std::vector<ConstantExpression*> Type::getConstantExpressions() { in getConstantExpressions() 129 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions() 131 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions() 135 std::vector<const ConstantExpression*> Type::getConstantExpressions() const { in getConstantExpressions()
|
D | hidl-gen_y.yy | 23 #include "ConstantExpression.h" 323 android::ConstantExpression *constantExpression; 330 std::vector<android::ConstantExpression *> *constExprVec; 463 $$ = new std::vector<ConstantExpression *>; 472 $$ = new std::vector<ConstantExpression *>; 799 $$ = ConstantExpression::Zero(ScalarType::KIND_INT32).release();
|
D | Android.bp | 65 "ConstantExpression.cpp",
|
D | hidl-gen_l.ll | 36 #include "ConstantExpression.h"
|