Home
last modified time | relevance | path

Searched refs:expression (Results 1 – 25 of 31) sorted by relevance

12

/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppSimpleType.java58 StringBuilder expression = new StringBuilder(); in getParsingExpression() local
60 expression.append( in getParsingExpression()
62 expression.append("for (auto& token : android::base::Split(raw, \" \")) {\n"); in getParsingExpression()
63 expression.append(String.format("value.push_back(std::move(%s));\n", in getParsingExpression()
65 expression.append("}\n"); in getParsingExpression()
67 expression.append( in getParsingExpression()
72 return expression.toString(); in getParsingExpression()
77 StringBuilder expression = new StringBuilder(); in getWritingExpression() local
79 expression.append("{\nint count = 0;\n"); in getWritingExpression()
80 expression.append(String.format("for (const auto& v : %s) {\n", getValue)); in getWritingExpression()
[all …]
/system/tools/xsdc/src/com/android/xsdc/java/
DJavaSimpleType.java66 StringBuilder expression = new StringBuilder(); in getParsingExpression() local
68 expression.append( in getParsingExpression()
70 expression.append("for (String token : raw.split(\"\\\\s+\")) {\n"); in getParsingExpression()
71 expression.append(String.format("value.add(%s);\n", in getParsingExpression()
73 expression.append("}\n"); in getParsingExpression()
75 expression.append( in getParsingExpression()
79 return expression.toString(); in getParsingExpression()
84 StringBuilder expression = new StringBuilder(); in getWritingExpression() local
86 expression.append("{\nint count = 0;\n"); in getWritingExpression()
87 expression.append(String.format("for (%s v : %s) {\n", this.name, getValue)); in getWritingExpression()
[all …]
/system/tools/aidl/
Dast_cpp.cpp38 LiteralDecl::LiteralDecl(const std::string& expression) : expression_(expression) {} in LiteralDecl() argument
313 SwitchStatement::SwitchStatement(const std::string& expression) in SwitchStatement() argument
314 : switch_expression_(expression) {} in SwitchStatement()
372 IfStatement::IfStatement(AstNode* expression, bool invert_expression) in IfStatement() argument
373 : expression_(expression), in IfStatement()
388 Statement::Statement(unique_ptr<AstNode> expression) in Statement() argument
389 : expression_(std::move(expression)) {} in Statement()
391 Statement::Statement(AstNode* expression) : expression_(expression) {} in Statement() argument
393 Statement::Statement(const string& expression) in Statement() argument
394 : expression_(new LiteralExpression(expression)) {} in Statement()
[all …]
Dast_java.h148 void Add(std::shared_ptr<Expression> expression);
152 std::shared_ptr<Expression> expression; member
154 explicit ExpressionStatement(std::shared_ptr<Expression> expression);
221 std::shared_ptr<Expression> expression = nullptr; member
224 Cast(const std::string& type, std::shared_ptr<Expression> expression);
240 std::shared_ptr<Expression> expression = nullptr; member
250 std::shared_ptr<Expression> expression; member
252 explicit ReturnStatement(std::shared_ptr<Expression> expression);
284 std::shared_ptr<Expression> expression; member
287 explicit SwitchStatement(std::shared_ptr<Expression> expression);
Dast_java.cpp153 void StatementBlock::Add(std::shared_ptr<Expression> expression) { in Add() argument
154 this->statements.push_back(std::make_shared<ExpressionStatement>(expression)); in Add()
157 ExpressionStatement::ExpressionStatement(std::shared_ptr<Expression> e) : expression(e) {} in ExpressionStatement()
160 this->expression->Write(to); in Write()
242 Cast::Cast(const std::string& t, std::shared_ptr<Expression> e) : type(t), expression(e) {} in Cast()
246 expression->Write(to); in Write()
265 if (this->expression != nullptr) { in Write()
267 this->expression->Write(to); in Write()
277 ReturnStatement::ReturnStatement(std::shared_ptr<Expression> e) : expression(e) {} in ReturnStatement()
281 this->expression->Write(to); in Write()
[all …]
Dast_cpp.h56 explicit LiteralDecl(const std::string& expression);
201 void AddLiteral(const std::string& expression, bool add_semicolon = true);
255 explicit SwitchStatement(const std::string& expression);
299 explicit IfStatement(AstNode* expression,
315 explicit Statement(std::unique_ptr<AstNode> expression);
316 explicit Statement(AstNode* expression); // Takes possession.
317 explicit Statement(const std::string& expression);
339 explicit LiteralExpression(const std::string& expression);
Dgenerate_java_binder.cpp266 ifstatement->expression = std::make_shared<Comparison>(obj, "==", NULL_VALUE); in make_as_interface()
288 instOfStatement->expression = std::make_shared<Comparison>(iinNotNull, "&&", instOfCheck); in make_as_interface()
360 lencheck->expression = in generate_new_array()
640 checklen->expression = std::make_shared<Comparison>(v, "==", NULL_VALUE); in generate_proxy_method()
/system/tools/hidl/c2hal/
DEnumVarDeclaration.cpp24 EnumVarDeclaration::EnumVarDeclaration(const std::string &name, Expression *expression) in EnumVarDeclaration() argument
25 : Declaration(""), mExpression(expression) in EnumVarDeclaration()
DDefine.cpp39 void Define::setExpression(Expression* expression) { in setExpression() argument
40 mExpression = expression; in setExpression()
DEnumVarDeclaration.h31 EnumVarDeclaration(const std::string &name, Expression *expression);
DDefine.h41 void setExpression(Expression* expression);
DAST.h55 void setExpression(Expression *expression);
DAST.cpp106 void AST::setExpression(Expression *expression) { in setExpression() argument
107 mExpression = expression; in setExpression()
Dc2hal_y.yy128 %type<expression> array
130 %type<expression> expr
166 android::Expression *expression;
/system/tools/hidl/test/java_test/
DAndroid.bp21 "android.hardware.tests.expression@1.0",
46 "android.hardware.tests.expression-V1.0-java",
/system/tools/mkbootimg/
Dpylintrc83 # Python expression which should return a note less than 10 (10 is the highest
163 # Regular expression matching correct function names
169 # Regular expression matching correct variable names
175 # Regular expression matching correct constant names
181 # Regular expression matching correct attribute names
187 # Regular expression matching correct argument names
193 # Regular expression matching correct class attribute names
199 # Regular expression matching correct inline iteration names
205 # Regular expression matching correct class names
211 # Regular expression matching correct module names
[all …]
/system/update_engine/
Dpylintrc115 # Python expression which should return a note less than 10 (10 is the highest
198 # A regular expression matching names used for dummy variables (i.e. not used).
278 # Regular expression which should only match correct function names.
286 # Regular expression which should only match correct variable names
292 # Regular expression which should only match correct module level names
298 # Regular expression which should only match correct instance attribute names
304 # Regular expression which should only match correct argument names
310 # Regular expression which should only match correct class attribute
316 # Regular expression which should only match correct list comprehension /
317 # generator expression variable names
[all …]
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp48 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() argument
53 std::string s(expression + match.rm_so, len); in match_to_uint32()
/system/tools/hidl/test/hidl_test/
DAndroid.bp25 "android.hardware.tests.expression@1.0",
Dstatic_test.cpp10 using ::android::hardware::tests::expression::V1_0::IExpression;
/system/tools/hidl/
DArrayType.cpp36 mDefinedName = mDefinedName + "[" + size->expression() + "]"; in appendDimension()
142 base += "/* " + mSizes[i]->expression() + " */"; in getJavaType()
DConstantExpression.h119 const std::string& expression() const;
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp62 out << " = " << value->constExpr()->expression(); in emitEnumAidlDefinition()
/system/sepolicy/tools/sepolicy-analyze/
DREADME12 (i.e. default boolean values yield a true conditional expression).
/system/apex/apexd/
DAndroid.bp10 "bugprone-sizeof-expression",

12