Home
last modified time | relevance | path

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

12

/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppSimpleType.java62 StringBuilder expression = new StringBuilder(); in getParsingExpression() local
64 expression.append( in getParsingExpression()
66 expression.append(String.format("{\nint base = 0;\n" in getParsingExpression()
75 expression.append("}\n"); in getParsingExpression()
77 expression.append( in getParsingExpression()
82 return expression.toString(); in getParsingExpression()
87 StringBuilder expression = new StringBuilder(); in getWritingExpression() local
89 expression.append("{\nint count = 0;\n"); in getWritingExpression()
90 expression.append(String.format("for (const auto& v : %s) {\n", getValue)); in getWritingExpression()
101 expression.append("if (count != 0) {\n" in getWritingExpression()
[all …]
/system/tools/xsdc/src/com/android/xsdc/java/
DJavaSimpleType.java74 StringBuilder expression = new StringBuilder(); in getParsingExpression() local
76 expression.append( in getParsingExpression()
78 expression.append("for (String token : raw.split(\"\\\\s+\")) {\n"); in getParsingExpression()
79 expression.append(String.format("value.add(%s);\n", in getParsingExpression()
81 expression.append("}\n"); in getParsingExpression()
83 expression.append( in getParsingExpression()
87 return expression.toString(); in getParsingExpression()
92 StringBuilder expression = new StringBuilder(); in getWritingExpression() local
94 expression.append("{\nint count = 0;\n"); in getWritingExpression()
95 expression.append(String.format("for (%s v : %s) {\n", this.name, getValue)); in getWritingExpression()
[all …]
/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/aidl/
Dast_cpp.cpp40 LiteralDecl::LiteralDecl(const std::string& expression) : expression_(expression) {} in LiteralDecl() argument
336 SwitchStatement::SwitchStatement(const std::string& expression) in SwitchStatement() argument
337 : switch_expression_(expression) {} in SwitchStatement()
395 IfStatement::IfStatement(AstNode* expression, bool invert_expression) in IfStatement() argument
396 : expression_(expression), in IfStatement()
411 Statement::Statement(unique_ptr<AstNode> expression) in Statement() argument
412 : expression_(std::move(expression)) {} in Statement()
414 Statement::Statement(AstNode* expression) : expression_(expression) {} in Statement() argument
416 Statement::Statement(const string& expression) in Statement() argument
417 : 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.cpp156 void StatementBlock::Add(std::shared_ptr<Expression> expression) { in Add() argument
157 this->statements.push_back(std::make_shared<ExpressionStatement>(expression)); in Add()
160 ExpressionStatement::ExpressionStatement(std::shared_ptr<Expression> e) : expression(e) {} in ExpressionStatement()
163 this->expression->Write(to); in Write()
245 Cast::Cast(const std::string& t, std::shared_ptr<Expression> e) : type(t), expression(e) {} in Cast()
249 expression->Write(to); in Write()
268 if (this->expression != nullptr) { in Write()
270 this->expression->Write(to); in Write()
280 ReturnStatement::ReturnStatement(std::shared_ptr<Expression> e) : expression(e) {} in ReturnStatement()
284 this->expression->Write(to); in Write()
[all …]
Dast_cpp.h56 explicit LiteralDecl(const std::string& expression);
206 void AddLiteral(const std::string& expression, bool add_semicolon = true);
259 explicit SwitchStatement(const std::string& expression);
303 explicit IfStatement(AstNode* expression,
319 explicit Statement(std::unique_ptr<AstNode> expression);
320 explicit Statement(AstNode* expression); // Takes possession.
321 explicit Statement(const std::string& expression);
343 explicit LiteralExpression(const std::string& expression);
Dgenerate_java_binder.cpp271 ifstatement->expression = std::make_shared<Comparison>(obj, "==", NULL_VALUE); in make_as_interface()
293 instOfStatement->expression = std::make_shared<Comparison>(iinNotNull, "&&", instOfCheck); in make_as_interface()
365 lencheck->expression = in generate_new_array()
648 checklen->expression = std::make_shared<Comparison>(v, "==", NULL_VALUE); in generate_proxy_method()
688 checkDefaultImpl->expression = std::make_shared<LiteralExpression>("getDefaultImpl() != null"); in generate_proxy_method()
708 checkTransactionError->expression = std::make_shared<LiteralExpression>("!_status"); in generate_proxy_method()
/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/tools/hidl/test/java_test/
DAndroid.bp51 "android.hardware.tests.expression@1.0",
89 "android.hardware.tests.expression-V1.0-java",
/system/apex/
Dpylintrc173 # Python expression which should return a note less than 10 (10 is the highest
204 # Regular expression matching correct function names
207 # Regular expression matching correct variable names
210 # Regular expression matching correct constant names
213 # Regular expression matching correct attribute names
216 # Regular expression matching correct argument names
219 # Regular expression matching correct class attribute names
222 # Regular expression matching correct inline iteration names
225 # Regular expression matching correct class names
228 # Regular expression matching correct module names
[all …]
/system/tools/mkbootimg/
Dpylintrc167 # Python expression which should return a note less than 10 (10 is the highest
198 # Regular expression matching correct function names
201 # Regular expression matching correct variable names
204 # Regular expression matching correct constant names
207 # Regular expression matching correct attribute names
210 # Regular expression matching correct argument names
213 # Regular expression matching correct class attribute names
216 # Regular expression matching correct inline iteration names
219 # Regular expression matching correct class names
222 # Regular expression matching correct module names
[all …]
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp50 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() argument
54 std::string s(expression + match.rm_so, len); in match_to_uint32()
/system/chre/test/common/
Drun_tests.cc63 LOGD(" Expected: %s", expectation.expression); in TestCaseExpect()
/system/tools/hidl/hidl2aidl/
DAidlNamedType.cpp68 out << " = " << (*it)->constExpr()->expression(); in emitEnumAidlDefinition()
/system/tools/hidl/test/hidl_test/
DAndroid.bp49 "android.hardware.tests.expression@1.0",
/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/sepolicy/tools/sepolicy-analyze/
DREADME12 (i.e. default boolean values yield a true conditional expression).

12