Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 28) 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/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/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()); \
Dstatistics_tests.cpp111 #define PRINT_AND_EXPECT_EQ(expected, expr) { \ argument
112 auto value = (expr); \
113 printf("(%s): %s\n", #expr, std::to_string(value).c_str()); \
118 #define PRINT_AND_EXPECT_NEAR(expected, expr) { \ argument
120 auto value = (expr); \
121 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
Dbluetooth_avrcp_target_binder_server.cc51 #define TRY_RET(expr, msg) \ argument
53 if (!(expr)) { \
60 #define TRY_RET_FUNC(expr) TRY_RET(expr, __func__ << " failed") argument
/system/tools/hidl/
DConstantExpression.cpp167 ConstantExpression::ConstantExpression(const std::string& expr) : mExpr(expr) {} in ConstantExpression() argument
174 const std::string& expr) in LiteralConstantExpression() argument
175 : ConstantExpression(expr) { in LiteralConstantExpression()
176 CHECK(!expr.empty()); in LiteralConstantExpression()
179 mTrivialDescription = std::to_string(value) == expr; in LiteralConstantExpression()
347 ConstantExpression* expr = mReference->constExpr(); in evaluate() local
348 CHECK(expr->isEvaluated()); in evaluate()
350 mValueKind = expr->mValueKind; in evaluate()
351 mValue = expr->mValue; in evaluate()
716 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/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
Davrcp_target.cc41 #define TRY_RET(expr, err_msg) \ argument
43 if (!(expr)) { \
50 #define TRY_RET_FUNC(expr) TRY_RET(expr, __func__ << " failed") argument
/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.sh233 duration=`expr ${duration%m} \* 60`
235 duration=`expr ${duration%h} \* 3600`
237 duration=`expr ${duration%d} \* 86400`
239 local seconds=`expr ${duration} % 60`
240 local minutes=`expr \( ${duration} / 60 \) % 60`
241 local hours=`expr ${duration} / 3600`
257 echo ${minutes}:`expr ${seconds} / 10``expr ${seconds} % 10`
260 …echo ${hours}:`expr ${minutes} / 10``expr ${minutes} % 10`:`expr ${seconds} / 10``expr ${seconds} …
274 USB_DEVICE=dev`expr ${USB_DEVICE#dev} + 1`
306 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/camera_avg/
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/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/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/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/SimpleperfExamplePureJava/
Dgradlew51 link=`expr "$ls" : '.*-> \(.*\)$'`
52 if expr "$link" : '/.*' > /dev/null; then
/system/core/shell_and_utilities/
DREADME.md103 env expand expr fallocate false find free getenforce getprop groups
123 dos2unix du echo env expand expr fallocate false find flock free
145 dos2unix du echo env expand expr fallocate false file find flock free
171 dos2unix du echo env expand expr fallocate false file find flock fmt free
197 diff dirname dmesg dos2unix du echo egrep env expand expr fallocate
229 df diff dirname dmesg dos2unix du echo egrep env expand expr fallocate
/system/update_engine/
Ddynamic_partition_control_android.cc796 std::string expr; in UpdatePartitionMetadata() local
800 expr = "half of "; in UpdatePartitionMetadata()
804 << " (" << total_size << ") has exceeded " << expr in UpdatePartitionMetadata()

12