/system/tools/hidl/c2hal/ |
D | Expression.cpp | 32 Expression::Type Expression::integralType(const std::string& integer) { in integralType() 54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes() 82 struct ParenthesizedExpression : Expression { 83 ParenthesizedExpression(Expression* inner) in ParenthesizedExpression() 97 Expression* mInner; 102 struct AtomExpression : Expression { 133 struct UnaryExpression : Expression { 134 UnaryExpression(std::string op, Expression* rhs) in UnaryExpression() 150 Expression* mRhs; 155 struct BinaryExpression : Expression { [all …]
|
D | Expression.h | 30 struct Expression { struct 31 Expression() {} in Expression() argument 32 virtual ~Expression() {} in ~Expression() argument 69 static Expression *parenthesize(Expression *inner); argument 70 static Expression *atom(Type type, const std::string &value, bool isId = false); 71 static Expression *unary(std::string op, Expression *rhs); 72 static Expression *binary(Expression *lhs, std::string op, Expression *rhs); 73 static Expression *ternary(Expression *lhs, Expression *mhs, Expression *rhs); 74 static Expression *arraySubscript(std::string id, Expression *subscript); 75 static Expression *functionCall(std::string id, std::vector<Expression *> *args); [all …]
|
D | c2hal_y.yy | 30 #include "Expression.h" 166 android::Expression *expression; 167 std::vector<android::Expression *> *expressions; 470 $$ = Expression::atom(Expression::Type::UNKNOWN, $1, true /* isId*/ ); 472 | VALUE { $$ = Expression::atom(Expression::Type::UNKNOWN, $1); } 473 | INTEGRAL_VALUE { $$ = Expression::atom(Expression::integralType($1), $1); } 474 | '(' expr ')' { $$ = Expression::parenthesize($2); } 476 $$ = Expression::arraySubscript($1, $3); 479 $$ = Expression::functionCall($1, $3); 481 | expr '?' expr ':' expr { $$ = Expression::ternary($1, $3, $5); } [all …]
|
D | Define.h | 39 Expression::Type getExpressionType() const; 40 Expression *getExpression() const; 41 void setExpression(Expression* expression); 46 Expression::Type mExpressionType; 47 Expression* mExpression = nullptr;
|
D | EnumVarDeclaration.h | 28 struct Expression; 31 EnumVarDeclaration(const std::string &name, Expression *expression); 38 Expression *getExpression() const; 44 Expression *mExpression = nullptr;
|
D | Define.cpp | 33 Expression::Type Define::getExpressionType() const { in getExpressionType() 36 Expression *Define::getExpression() const { in getExpression() 39 void Define::setExpression(Expression* expression) { in setExpression() 51 mExpressionType = Expression::Type::UNKNOWN; in processContents()
|
D | AST.h | 54 Expression *getExpression() const; 55 void setExpression(Expression *expression); 72 Expression* mExpression = nullptr; 91 void isolateConstants(Expression::Type ofType);
|
D | AST.cpp | 103 Expression *AST::getExpression() const { in getExpression() 106 void AST::setExpression(Expression *expression) { in setExpression() 131 isolateConstants(Expression::Type::U64); in processContents() 132 isolateConstants(Expression::Type::S64); in processContents() 133 isolateConstants(Expression::Type::U32); in processContents() 134 isolateConstants(Expression::Type::S32); in processContents() 199 void AST::isolateConstants(Expression::Type ofType) { in isolateConstants() 226 "Const" + Expression::getTypeDescription(ofType), in isolateConstants() 229 constEnum->setEnumTypeName(Expression::getTypeName(ofType)); in isolateConstants()
|
D | EnumVarDeclaration.cpp | 24 EnumVarDeclaration::EnumVarDeclaration(const std::string &name, Expression *expression) in EnumVarDeclaration() 39 Expression *EnumVarDeclaration::getExpression() const { in getExpression()
|
D | Type.h | 86 void setArrays(std::vector<Expression *> *arrays); 110 std::vector<Expression*> *mArrays = nullptr;
|
D | Android.bp | 33 "Expression.cpp",
|
D | Type.cpp | 43 void Type::setArrays(std::vector<Expression*> *arrays) { in setArrays()
|
D | c2hal_l.ll | 42 #include "Expression.h"
|
/system/tools/aidl/ |
D | ast_java.h | 68 struct Expression : public AstNode { struct 69 virtual ~Expression() = default; 72 struct LiteralExpression : public Expression { 80 struct StringLiteralExpression : public Expression { 88 struct Variable : public Expression { 101 struct FieldVariable : public Expression { 102 std::variant<std::shared_ptr<Expression>, std::string> receiver; 105 FieldVariable(std::shared_ptr<Expression> object, const std::string& name); 148 void Add(std::shared_ptr<Expression> expression); 152 std::shared_ptr<Expression> expression; [all …]
|
D | ast_java.cpp | 73 void WriteArgumentList(CodeWriter* to, const vector<std::shared_ptr<Expression>>& arguments) { in WriteArgumentList() 122 FieldVariable::FieldVariable(std::shared_ptr<Expression> o, const string& n) in FieldVariable() 129 overloaded{[&](std::shared_ptr<Expression> e) { e->Write(to); }, in Write() 156 void StatementBlock::Add(std::shared_ptr<Expression> expression) { in Add() 160 ExpressionStatement::ExpressionStatement(std::shared_ptr<Expression> e) : expression(e) {} in ExpressionStatement() 167 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in Assignment() 170 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r, string c) in Assignment() 184 MethodCall::MethodCall(const string& n, const std::vector<std::shared_ptr<Expression>>& args) in MethodCall() 187 MethodCall::MethodCall(std::shared_ptr<Expression> o, const string& n) : receiver(o), name(n) {} in MethodCall() 191 MethodCall::MethodCall(std::shared_ptr<Expression> o, const string& n, in MethodCall() [all …]
|
D | permission.h | 33 typedef std::variant<std::string, AnyOf, AllOf> Expression; typedef 34 std::string AsJavaAnnotation(const Expression& expr);
|
D | permission.cpp | 29 std::string AsJavaAnnotation(const Expression& expr) { in AsJavaAnnotation()
|
D | generate_java_binder.cpp | 104 std::shared_ptr<Expression> GetTransactDescriptor(const AidlMethod* method); 164 std::vector<std::shared_ptr<Expression>>{code2}))); in StubClass() 193 std::vector<std::shared_ptr<Expression>>{this->transact_code, this->transact_data, in Finish() 209 std::vector<std::shared_ptr<Expression>>{this->GetTransactDescriptor(nullptr)})); in Finish() 251 std::shared_ptr<Expression> StubClass::GetTransactDescriptor(const AidlMethod* method) { in GetTransactDescriptor() 717 std::vector<std::shared_ptr<Expression>>{ in GenerateStubCaseOutline() 1069 std::vector<std::shared_ptr<Expression>>{stub->GetTransactDescriptor(nullptr)})); in GenerateInterfaceDescriptors()
|
D | aidl_language.cpp | 336 Result<unique_ptr<android::aidl::perm::Expression>> AidlAnnotation::EnforceExpression() const { in EnforceExpression() 341 return std::make_unique<android::aidl::perm::Expression>(single.value()); in EnforceExpression() 344 return std::make_unique<android::aidl::perm::Expression>(v); in EnforceExpression() 347 return std::make_unique<android::aidl::perm::Expression>(v); in EnforceExpression() 506 std::unique_ptr<android::aidl::perm::Expression> AidlAnnotatable::EnforceExpression() const { in EnforceExpression()
|
D | aidl_language.h | 298 Result<unique_ptr<android::aidl::perm::Expression>> EnforceExpression() const; 376 std::unique_ptr<android::aidl::perm::Expression> EnforceExpression() const;
|
/system/tools/hidl/test/hidl_test/ |
D | static_test.cpp | 259 struct Expression : public IExpression { struct
|
/system/extras/simpleperf/testdata/ |
D | perf_display_bitmaps.RenderThread.perf-script | 2093 …7531ab5590 SkSL::GLSLCodeGenerator::writeExpression(SkSL::Expression const&, SkSL::GLSLCodeGenerat… 4122 …erator::convertSwizzle(std::__1::unique_ptr<SkSL::Expression, std::__1::default_delete<SkSL::Expre…
|
D | perf_display_bitmaps.perf-script | 2093 …7531ab5590 SkSL::GLSLCodeGenerator::writeExpression(SkSL::Expression const&, SkSL::GLSLCodeGenerat… 4122 …erator::convertSwizzle(std::__1::unique_ptr<SkSL::Expression, std::__1::default_delete<SkSL::Expre…
|
D | perf_display_bitmaps.header.perf-script | 2108 …7531ab5590 SkSL::GLSLCodeGenerator::writeExpression(SkSL::Expression const&, SkSL::GLSLCodeGenerat… 4137 …erator::convertSwizzle(std::__1::unique_ptr<SkSL::Expression, std::__1::default_delete<SkSL::Expre…
|