Home
last modified time | relevance | path

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

12

/system/tools/hidl/c2hal/
Dc2hal_y.yy130 %type<expression> expr
178 : expr
256 | type ID '=' expr ';'
387 | ID '=' expr
467 expr
474 | '(' expr ')' { $$ = Expression::parenthesize($2); }
475 | ID '[' expr ']' %prec ARRAY_SUBSCRIPT {
481 | expr '?' expr ':' expr { $$ = Expression::ternary($1, $3, $5); }
482 | expr '+' expr { $$ = Expression::binary($1, "+", $3); }
483 | expr '-' expr { $$ = Expression::binary($1, "-", $3); }
[all …]
/system/extras/ioblame/
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`
136 echo "Total (ALL) Read IOs $block_device = "`expr $AFTER_RD_IOS - $BEFORE_RD_IOS`
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`
148 echo "Total (ALL) Write IOs $block_device = "`expr $AFTER_WR_IOS - $BEFORE_WR_IOS`
151 F2FS_GC_SEGMENTS_DELTA=`expr $F2FS_GC_SEGMENTS_AFTER - $F2FS_GC_SEGMENTS_BEFORE`
152 F2FS_GC_KB_DELTA=`expr $F2FS_GC_SEGMENTS_DELTA \\* 2048`
[all …]
/system/bt/gd/rust/common/src/
Dasserts.rs4 ($thing:expr, $expected:expr, $error:expr) => {
Dready.rs4 ($e:expr $(,)?) => {
/system/sepolicy/tests/
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",
/system/core/healthd/
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
/system/media/audio_utils/tests/
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()); \
/system/sepolicy/tools/
Dbuild_policies.sh57 parallel_jobs=$(expr $cores / 4)
59 export mmma_jobs=$(expr $cores / $num_targets \* 2)
/system/bt/service/ipc/binder/
Dbluetooth_a2dp_source_binder_server.cc49 #define TRY_RET(expr, msg) \ argument
51 if (!(expr)) { \
58 #define TRY_RET_FUNC(expr) TRY_RET(expr, __func__ << " failed") argument
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp51 #define EXPECT_RESULT(expr, result_matcher) \ argument
52 EXPECT_THAT(expr, AllOf(Property(&decltype(expr)::ok, Eq(true)), \
53 Property(&decltype(expr)::value, result_matcher)))
56 #define EXPECT_ERROR(expr, error_matcher) \ argument
59 expr, \
60 AllOf(Property(&decltype(expr)::ok, Eq(false)), \
61 Property(&decltype(expr)::error, \
62 Property(&decltype(expr)::error_type::message, error_matcher)))); \
/system/bt/service/
Da2dp_source.cc33 #define TRY_RET(expr, err_msg) \ argument
35 if (!(expr)) { \
42 #define TRY_RET_FUNC(expr) TRY_RET(expr, __func__ << " failed") argument
/system/tools/hidl/
DConstantExpression.cpp173 ConstantExpression::ConstantExpression(const std::string& expr) : mExpr(expr) {} in ConstantExpression() argument
180 const std::string& expr) in LiteralConstantExpression() argument
181 : ConstantExpression(expr) { in LiteralConstantExpression()
182 CHECK(!expr.empty()); in LiteralConstantExpression()
185 mTrivialDescription = std::to_string(value) == expr; in LiteralConstantExpression()
353 ConstantExpression* expr = mReference->constExpr(); in evaluate() local
354 CHECK(expr->isEvaluated()); in evaluate()
356 mValueKind = expr->mValueKind; in evaluate()
357 mValue = expr->mValue; in evaluate()
722 const std::string& expr) in ReferenceConstantExpression() argument
[all …]
DConstantExpression.h49 ConstantExpression(const std::string& expr);
175 LiteralConstantExpression(ScalarType::Kind kind, uint64_t value, const std::string& expr);
217 ReferenceConstantExpression(const Reference<LocalIdentifier>& value, const std::string& expr);
/system/extras/tests/workloads/
Ddefs.sh165 startS=$(expr 0 + $1)
166 endS=$(expr 0 + $3)
171 startNs=$(expr 0 + $2)
172 endNs=$(expr 0 + $4)
188 msecfield=$(expr 0 + $2)
/system/core/fs_mgr/tests/
Dadb-remount-test.sh244 duration=`expr ${duration%m} \* 60`
246 duration=`expr ${duration%h} \* 3600`
248 duration=`expr ${duration%d} \* 86400`
250 local seconds=`expr ${duration} % 60`
251 local minutes=`expr \( ${duration} / 60 \) % 60`
252 local hours=`expr ${duration} / 3600`
268 echo ${minutes}:`expr ${seconds} / 10``expr ${seconds} % 10`
271 …echo ${hours}:`expr ${minutes} / 10``expr ${minutes} % 10`:`expr ${seconds} / 10``expr ${seconds} …
285 USB_DEVICE=dev`expr ${USB_DEVICE#dev} + 1`
317 local diff_time=`expr ${end} - ${start}`
[all …]
/system/extras/power_profile/camera_flashlight/
Dgradlew56 link=`expr "$ls" : '.*-> \(.*\)$'`
57 if expr "$link" : '/.*' > /dev/null; then
/system/extras/power_profile/gps_on/
Dgradlew56 link=`expr "$ls" : '.*-> \(.*\)$'`
57 if expr "$link" : '/.*' > /dev/null; then
/system/extras/power_profile/camera_avg/
Dgradlew56 link=`expr "$ls" : '.*-> \(.*\)$'`
57 if expr "$link" : '/.*' > /dev/null; then
/system/core/bootstat/
Dboot_reason_test.sh187 seconds=`expr ${1} % 60`
188 minutes=`expr ${1} / 60`
203 echo ${minutes}:`expr ${seconds} / 10``expr ${seconds} % 10`
246 counter=`expr ${counter} + 1`
438 duration_new_estimate=`expr ${duration_new_estimate} + \
459 duration=`expr ${END} - ${START} 2>/dev/null`
466 duration_sum_diff=`expr ${duration_sum_diff} + \
468 duration_num=`expr ${duration_num} + 1`
1096 duration_test `expr ${DURATION_DEFAULT} + ${DURATION_DEFAULT}`
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/
Dgradlew51 link=`expr "$ls" : '.*-> \(.*\)$'`
52 if expr "$link" : '/.*' > /dev/null; then
/system/extras/simpleperf/demo/JavaApi/
Dgradlew15 link=`expr "$ls" : '.*-> \(.*\)$'`
16 if expr "$link" : '/.*' > /dev/null; then
/system/extras/simpleperf/demo/CppApi/
Dgradlew15 link=`expr "$ls" : '.*-> \(.*\)$'`
16 if expr "$link" : '/.*' > /dev/null; then
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/
Dgradlew51 link=`expr "$ls" : '.*-> \(.*\)$'`
52 if expr "$link" : '/.*' > /dev/null; then
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/
Dgradlew51 link=`expr "$ls" : '.*-> \(.*\)$'`
52 if expr "$link" : '/.*' > /dev/null; then
/system/security/keystore2/selinux/src/
Dlib.rs390 (use, $privileged:expr) => {
393 ($perm:ident, $privileged:expr) => {
396 ($perm:ident, $privileged:expr, $p_str:expr) => {

12