Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 141) sorted by relevance

123456

/aosp12/bootable/recovery/edify/
H A Dparser.yy28 #include "edify/expr.h"
61 Expr* expr;
67 %type <expr> expr
91 expr: STRING {
96 | expr ';' expr { $$ = Build(SequenceFn, @$, 2, $1, $3); }
98 | expr '+' expr { $$ = Build(ConcatFn, @$, 2, $1, $3); }
99 | expr EQ expr { $$ = Build(EqualityFn, @$, 2, $1, $3); }
104 | IF expr THEN expr ENDIF { $$ = Build(IfElseFn, @$, 2, $2, $4); }
105 | IF expr THEN expr ELSE expr ENDIF { $$ = Build(IfElseFn, @$, 3, $2, $4, $6); }
121 | expr {
[all …]
/aosp12/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
H A DProtoLogCallProcessor.kt20 import com.github.javaparser.ast.expr.Expression
21 import com.github.javaparser.ast.expr.FieldAccessExpr
22 import com.github.javaparser.ast.expr.MethodCallExpr
23 import com.github.javaparser.ast.expr.NameExpr
39 expr: Expression,
44 val context = ParsingContext(fileName, expr)
45 return when (expr) {
47 expr.nameAsString in staticImports -> expr.nameAsString
53 expr.scope.toString() == protoLogGroupClassName
55 expr.scope.toString() == protoLogGroupSimpleClassName -> expr.nameAsString
[all …]
H A DCodeUtils.kt21 import com.github.javaparser.ast.expr.BinaryExpr
22 import com.github.javaparser.ast.expr.Expression
23 import com.github.javaparser.ast.expr.StringLiteralExpr
66 fun concatMultilineString(expr: Expression, context: ParsingContext): String {
67 return when (expr) {
68 is StringLiteralExpr -> expr.asString()
70 expr.operator == BinaryExpr.Operator.PLUS ->
71 concatMultilineString(expr.left, context) +
72 concatMultilineString(expr.right, context)
75 "or concatenation of string literals, got: $expr", context)
[all …]
H A DSourceTransformer.kt24 import com.github.javaparser.ast.expr.BooleanLiteralExpr
25 import com.github.javaparser.ast.expr.CastExpr
26 import com.github.javaparser.ast.expr.Expression
27 import com.github.javaparser.ast.expr.FieldAccessExpr
29 import com.github.javaparser.ast.expr.MethodCallExpr
30 import com.github.javaparser.ast.expr.NameExpr
31 import com.github.javaparser.ast.expr.NullLiteralExpr
32 import com.github.javaparser.ast.expr.SimpleName
33 import com.github.javaparser.ast.expr.TypeExpr
202 LogDataType.STRING -> { expr ->
[all …]
/aosp12/system/tools/hidl/c2hal/
H A Dc2hal_y.yy130 %type<expression> expr
178 : expr
387 | ID '=' expr
467 expr
481 | expr '?' expr ':' expr { $$ = Expression::ternary($1, $3, $5); }
482 | expr '+' expr { $$ = Expression::binary($1, "+", $3); }
483 | expr '-' expr { $$ = Expression::binary($1, "-", $3); }
484 | expr '/' expr { $$ = Expression::binary($1, "/", $3); }
485 | expr '*' expr { $$ = Expression::binary($1, "*", $3); }
502 | expr
[all …]
/aosp12/frameworks/native/cmds/installd/tests/
H A Dbinder_test_utils.h23 #define ASSERT_BINDER_SUCCESS(expr) \ argument
25 binder::Status expect_status = (expr); \
29 #define ASSERT_BINDER_FAIL(expr) \ argument
31 binder::Status expect_status = (expr); \
35 #define EXPECT_BINDER_SUCCESS(expr) \ argument
37 binder::Status expect_status = (expr); \
41 #define EXPECT_BINDER_FAIL(expr) \ argument
43 binder::Status expect_status = (expr); \
/aosp12/frameworks/compile/mclinker/lib/Script/
H A DRpnExpr.cpp81 RpnExpr* expr = RpnExpr::create(); in buildHelperExpr() local
82 expr->push_back(SectDescOperand::create(*pIter)); in buildHelperExpr()
83 expr->push_back(&Operator::create<Operator::ADDR>()); in buildHelperExpr()
84 expr->push_back(SectDescOperand::create(*pIter)); in buildHelperExpr()
85 expr->push_back(&Operator::create<Operator::SIZEOF>()); in buildHelperExpr()
86 expr->push_back(&Operator::create<Operator::ADD>()); in buildHelperExpr()
87 return expr; in buildHelperExpr()
92 RpnExpr* expr = RpnExpr::create(); in buildHelperExpr() local
93 expr->push_back(FragOperand::create(pFrag)); in buildHelperExpr()
94 return expr; in buildHelperExpr()
/aosp12/system/extras/ioblame/
H A Dioblame.sh131 READ_KB=`expr $AFTER_RD_SECTORS - $BEFORE_RD_SECTORS`
132 READ_KB=`expr $READ_KB / 2`
134 BLOCK_MINUS_FILE=`expr $READ_KB - $file_data_KB`
144 WRITE_KB=`expr $AFTER_WR_SECTORS - $BEFORE_WR_SECTORS`
145 WRITE_KB=`expr $WRITE_KB / 2`
146 BLOCK_MINUS_FILE=`expr $WRITE_KB - $file_data_KB`
349 pid_KB=`expr $pid_KB / 1024`
351 total_file_KB=`expr $total_file_KB + $pid_KB`
376 total_file_KB=`expr $total_file_KB / 1024`
413 file_KB=`expr $file_KB / 1024`
[all …]
/aosp12/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
H A DAssertOk.h38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { in assertIsOk() argument
40 << "Expected: " << expr << "\n to be an OK Return but it is not: " << ret.description(); in assertIsOk()
45 inline ::testing::AssertionResult continueIfIsOk(const char* expr, const Return<T>& ret, in continueIfIsOk() argument
47 auto isOkStatus = assertIsOk(expr, ret); in continueIfIsOk()
91 inline ::testing::AssertionResult assertOk(const char* expr, const Return<void>& ret) { in assertOk() argument
92 return assertIsOk(expr, ret); in assertOk()
96 inline ::testing::AssertionResult assertOk(const char* expr, Result result) { in assertOk() argument
98 << "Expected success: " << expr << "\nActual: " << ::testing::PrintToString(result); in assertOk()
102 inline ::testing::AssertionResult assertOk(const char* expr, const Return<Result>& ret) { in assertOk() argument
103 return continueIfIsOk(expr, ret, [&] { return assertOk(expr, Result{ret}); }); in assertOk()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/include/
H A DShimUtils.h32 #define SLW2SAS_RETURN_IF_ERROR(expr) \ argument
34 const Result nnReturnIfErrorErrorCode = static_cast<Result>(expr); \
42 #define SLW2SAS_RETURN_AND_CALLBACK_IF_ERROR(expr, callback) \ argument
44 const Result nnReturnIfErrorErrorCode = static_cast<Result>(expr); \
53 #define SLW2SAS_OK_RETURN_AND_ERROR_CALLBACK_IF_ERROR(expr, callback) \ argument
55 const Result nnReturnIfErrorErrorCode = static_cast<Result>(expr); \
/aosp12/build/soong/scripts/
H A Dtransitive-deps.sh211 flag=$(expr "${1}" : '^-*\(.*\)$')
230 sep=$(expr "${flag}" : '^sep=\(.*\)$');;
249 nofollow=$(expr "${flag}" : '^nofollow=\(.*\)$');;
251 nofollow="${nofollow}|"$(expr "${flag}" : '^nofollow=\(.*\)$');;
257 container_types="${container_types}|"$(expr "${flag}" : '^container=\(.*\)$');;
263 projects_out=$(expr "${flag}" : '^.*=\(.*\)$');;
269 directories_out=$(expr "${flag}" : '^.*=\(.*\)$');;
275 targets_out=$(expr "${flag}" : '^.*=\(.*\)$');;
281 notices_out=$(expr "${flag}" : '^.*=\(.*\)$');;
377 depth=$(expr ${depth} + 1)
H A Djar-wrapper.sh23 fullprog=`expr "${fullprog}" : ".* -> \(.*\)$"`
24 if expr "x${fullprog}" : 'x/' >/dev/null; then
52 while expr "x$1" : 'x-J' >/dev/null; do
53 opt=`expr "$1" : '-J-\{0,1\}\(.*\)'`
/aosp12/frameworks/rs/tests/lldb/tests/harness/
H A DRS_funs.py1391 expr = 'expr {0}('.format(name)
1396 expr += ', '
1397 expr += _build_arg(tok)
1400 expr += ')'
1401 return ret, expr
/aosp12/art/compiler/debug/
H A Delf_debug_loc_writer.h202 dwarf::Expression expr(&expr_buffer); in WriteDebugLocEntry()
211 expr.WriteOpFbreg(value - method_info->frame_size_in_bytes); in WriteDebugLocEntry()
217 expr.WriteOpReg(GetDwarfCoreReg(isa, value).num()); in WriteDebugLocEntry()
227 expr.WriteOpReg(Reg::ArmDp(value / 2).num()); in WriteDebugLocEntry()
230 expr.WriteOpReg(GetDwarfFpReg(isa, value).num()); in WriteDebugLocEntry()
236 expr.WriteOpConsts(value); in WriteDebugLocEntry()
237 expr.WriteOpStackValue(); in WriteDebugLocEntry()
253 expr.WriteOpPiece(4); in WriteDebugLocEntry()
257 if (expr.size() > 0) { in WriteDebugLocEntry()
266 debug_loc.PushUint16(expr.size()); in WriteDebugLocEntry()
[all …]
/aosp12/build/make/tools/apicheck/etc/
H A Dapicheck26 newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
27 if expr "x${newProg}" : 'x/' >/dev/null; then
42 while expr "x$1" : 'x-J' >/dev/null; do
43 opt=`expr "x$1" : 'x-J\(.*\)'`
/aosp12/build/make/tools/releasetools/
H A Dcheck_partition_sizes.py45 def __init__(self, desc, expr, value=None): argument
49 self.expr = str(expr)
51 self.value = int(expr) if value is None else value
54 format_args = (self.desc, other.desc, self.expr, self.value,
55 other.expr, other.value)
67 format_args = (self.desc, other.desc, self.expr, self.value,
68 other.expr, other.value)
81 format_args = (self.desc, other.desc, self.expr, self.value,
82 other.expr, other.value)
/aosp12/system/sepolicy/tests/
H A Dsearchpolicy.py15 expr = parser.add_argument_group("Expressions") variable
16 expr.add_argument("-s", "--source",
18 expr.add_argument("-t", "--target",
20 expr.add_argument("-c", "--class", dest="tclass",
22 expr.add_argument("-p", "--perms", metavar="PERMS",
/aosp12/frameworks/native/libs/binder/rust/src/
H A Dbinder.rs429 ($constructor:expr) => {
640 $interface:path[$descriptor:expr] {
655 $interface:path[$descriptor:expr] {
658 stability: $stability:expr,
671 $interface:path[$descriptor:expr] {
690 $interface:path[$descriptor:expr] {
695 stability: $stability:expr,
712 $interface:path[$descriptor:expr] {
713 @doc[$native_doc:expr]
716 @doc[$proxy_doc:expr]
[all …]
/aosp12/system/bt/gd/rust/common/src/
H A Dasserts.rs4 ($thing:expr, $expected:expr, $error:expr) => {
/aosp12/bionic/tests/
H A Dclang_fortify_tests.cpp114 #define DIE_WITH(expr, cond, regex) EXPECT_EXIT(ExitAfter([&] { (expr); }), cond, regex) argument
119 #define EXPECT_NO_DEATH(expr) DIE_WITH(expr, testing::ExitedWithCode(0), "") argument
120 #define EXPECT_FORTIFY_DEATH(expr) DIE_WITH(expr, testing::KilledBySignal(SIGABRT), "FORTIFY") argument
132 #define EXPECT_NO_DEATH(expr) expr argument
133 #define EXPECT_FORTIFY_DEATH(expr) expr argument
/aosp12/bootable/recovery/tests/unit/
H A Dedify_test.cpp153 std::unique_ptr<Expr> expr; in TEST_F() local
155 EXPECT_EQ(1, ParseString(script1, &expr, &error_count)); in TEST_F()
160 EXPECT_EQ(1, ParseString(script2, &expr, &error_count)); in TEST_F()
165 EXPECT_EQ(1, ParseString(script3, &expr, &error_count)); in TEST_F()
/aosp12/art/compiler/debug/dwarf/
H A Ddwarf_test.cc70 uint8_t expr[] = { /*nop*/ 0x96 }; in TEST_F() local
71 opcodes.DefCFAExpression(expr, arraysize(expr)); in TEST_F()
89 opcodes.Expression(reg, expr, arraysize(expr)); in TEST_F()
91 opcodes.ValExpression(reg, expr, arraysize(expr)); in TEST_F()
/aosp12/system/media/audio_utils/tests/
H A Dvariadic_tests.cpp30 #define PRINT_AND_EXPECT_EQ(expected, expr) { \ argument
31 auto value = (expr); \
32 printf("(%s): %s\n", #expr, std::to_string(value).c_str()); \
37 #define PRINT_AND_EXPECT_NEAR(expected, expr) { \ argument
39 auto value = (expr); \
40 printf("(%s): %s\n", #expr, std::to_string(value).c_str()); \
/aosp12/system/core/healthd/
H A Dhealthd_mode_charger_test.cpp47 ChildAssertHelper(bool res, const char* expr, const char* file, int line) : res_(res) { in ChildAssertHelper() argument
48 (*this) << file << ":" << line << ": `" << expr << "` evaluates to false\n"; in ChildAssertHelper()
59 #define CHILD_ASSERT_TRUE(expr) ChildAssertHelper(expr, #expr, __FILE__, __LINE__) argument
/aosp12/hardware/google/gchips/gralloc3/
H A Dgralloc.version.mk22 PLATFORM_SDK_GREATER_THAN_24 := $(shell expr $(PLATFORM_SDK_VERSION) \> 24)
50 ifeq ($(shell expr $(PLATFORM_SDK_VERSION) \> 27), 1)
60 else ifeq ($(shell expr $(PLATFORM_SDK_VERSION) \> 25), 1)

123456