Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 45) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/test/fuzztest/devicekvstore_fuzzer/
Ddevicekvstore_fuzzer.cpp135 size_t sum = 10; in GetEntriesFuzz1() local
137 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz1()
141 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz1()
153 size_t sum = 10; in GetEntriesFuzz2() local
154 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz2()
158 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz2()
172 size_t sum = 10; in SyncCallbackFuzz() local
173 for (size_t i = 0; i < sum; i++) { in SyncCallbackFuzz()
180 for (size_t i = 0; i < sum; i++) { in SyncCallbackFuzz()
192 size_t sum = 10; in GetResultSetFuzz1() local
[all …]
/foundation/distributeddatamgr/kv_store/test/fuzztest/singlekvstore_fuzzer/
Dsinglekvstore_fuzzer.cpp135 size_t sum = 10; in GetEntriesFuzz1() local
137 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz1()
141 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz1()
153 size_t sum = 10; in GetEntriesFuzz2() local
154 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz2()
158 for (size_t i = 0; i < sum; i++) { in GetEntriesFuzz2()
169 size_t sum = 10; in SubscribeKvStoreFuzz() local
170 for (size_t i = 0; i < sum; i++) { in SubscribeKvStoreFuzz()
176 for (size_t i = 0; i < sum; i++) { in SubscribeKvStoreFuzz()
190 size_t sum = 10; in SyncCallbackFuzz() local
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
Dgrid_scroll_with_options_layout_algorithm.cpp126 …const std::map<int32_t, int32_t>& irregularItemsPosition, int32_t& sum, int32_t& lastIndex, int32_… in JumpToLastIrregularItem() argument
139 sum = iter->second - 1; in JumpToLastIrregularItem()
143 sum = lastIter->second - 1; in JumpToLastIrregularItem()
151 auto sum = firstIrregularIndex; in GetCrossStartAndSpanWithUserFunction() local
153 JumpToLastIrregularItem(gridLayoutInfo_.irregularItemsPosition_, sum, lastIndex, itemIndex); in GetCrossStartAndSpanWithUserFunction()
173 auto irregularStart = (sum + index - lastIndex) % crossCount_; in GetCrossStartAndSpanWithUserFunction()
176 sum += (crossCount_ - irregularStart); in GetCrossStartAndSpanWithUserFunction()
178 sum += (index - lastIndex - 1); in GetCrossStartAndSpanWithUserFunction()
179 sum += crossSpan; in GetCrossStartAndSpanWithUserFunction()
182 sum += (itemIndex - lastIndex); in GetCrossStartAndSpanWithUserFunction()
[all …]
/foundation/distributedhardware/distributed_audio/common/src/
Ddaudio_latency_test.cpp105 int32_t sum = 0; in ComputeLatency() local
109 sum += captureBeepTime_[i] - playBeepTime_[i]; in ComputeLatency()
111 DHLOGI("Audio latency in average is: %d us.", sum / playSize); in ComputeLatency()
114 return sum / playSize; in ComputeLatency()
/foundation/bundlemanager/bundle_framework/test/sceneProject/unittest/bundle_share_library/libA_v10002/entry/src/main/cpp/
Dhello.cpp37 napi_value sum; in Add() local
38 napi_create_double(env, value0 + value1, &sum); in Add()
40 return sum; in Add()
/foundation/bundlemanager/bundle_framework/test/sceneProject/unittest/bundle_share_library/libA_v10001/entry/src/main/cpp/
Dhello.cpp37 napi_value sum; in Add() local
38 napi_create_double(env, value0 + value1, &sum); in Add()
40 return sum; in Add()
/foundation/resourceschedule/ffrt/src/sched/
Dload_predictor.h61 uint64_t sum = load; in UpdateLoadImpl() local
66 sum += *begin; in UpdateLoadImpl()
70 maxLoad = std::max({ sum / HIST_SIZE, loadHist[0], loadHist[1] }); in UpdateLoadImpl()
/foundation/distributeddatamgr/kv_store/test/fuzztest/distributedkvdatamanager_fuzzer/
Ddistributedkvdatamanager_fuzzer.cpp98 int sum = 10; in GetAllKvStoreFuzz() local
99 for (int i = 0; i < sum; i++) { in GetAllKvStoreFuzz()
143 int sum = 10; in DeleteAllKvStoreFuzz1() local
144 for (int i = 0; i < sum; i++) { in DeleteAllKvStoreFuzz1()
163 int sum = 10; in DeleteAllKvStoreFuzz2() local
164 for (int i = 0; i < sum; i++) { in DeleteAllKvStoreFuzz2()
179 int sum = 10; in DeleteAllKvStoreFuzz3() local
180 for (int i = 0; i < sum; i++) { in DeleteAllKvStoreFuzz3()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/common/
Djs_api_perf.cpp54 int64_t sum = 0; in PrintToLogs() local
58 sum += value; in PrintToLogs()
63 result.append(std::to_string(static_cast<uint64_t>(sum) / item.second.size())); in PrintToLogs()
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
Dability_transaction_callback_info_test.cpp91 int32_t sum = 0; in HWTEST_F() local
95 sum += i; in HWTEST_F()
100 EXPECT_EQ(g_count, sum); in HWTEST_F()
/foundation/arkui/napi/sample/native_module_calc/
Dnapi_calc.cpp50 napi_value sum; in Add() local
51 NAPI_CALL(env, napi_create_double(env, value0 + value1, &sum)); in Add()
53 return sum; in Add()
/foundation/resourceschedule/ffrt/benchmarks/serial_sched_time/
Dplot.py31 avg = sum(current['sched_time']) / len(current['sched_time'])
50 base_avg = sum(base['sched_time']) / len(base['sched_time'])
55 current_avg = sum(current['sched_time']) / len(current['sched_time'])
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
Dchar_groups.cpp53 size_t sum = 0; in GetNumberOfGlyph() local
55 sum += pcgs_->at(i).glyphs.size(); in GetNumberOfGlyph()
57 return sum; in GetNumberOfGlyph()
196 size_t sum = 0; in GetSubFromU16RangeAll() local
200 if (static_cast<int>(sum) <= u16start) { in GetSubFromU16RangeAll()
205 sum += pcgs_->at(i).chars.size(); in GetSubFromU16RangeAll()
208 if (static_cast<int>(sum) >= u16end) { in GetSubFromU16RangeAll()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/
Ddevice_kvstore_test.cpp221 size_t sum = 10; variable
224 for (size_t i = 0; i < sum; i++) {
232 EXPECT_EQ(sumGet, sum) << "count is not equal 10.";
236 EXPECT_EQ(results.size(), sum) << "entries size is not equal 10.";
255 for (size_t i = 0; i < sum; i++) {
278 size_t sum = 10; variable
280 for (size_t i = 0; i < sum; i++) {
288 EXPECT_EQ(sumGet, sum) << "count is not equal 10.";
292 EXPECT_EQ(results.size(), sum) << "entries size is not equal 10.";
311 for (size_t i = 0; i < sum; i++) {
[all …]
Dsingle_kvstore_client_test.cpp205 size_t sum = 10; variable
208 for (size_t i = 0; i < sum; i++) {
214 EXPECT_EQ(results.size(), sum) << "entries size is not equal 10.";
233 for (size_t i = 0; i < sum; i++) {
253 size_t sum = 10; variable
256 for (size_t i = 0; i < sum; i++) {
262 EXPECT_EQ(results.size(), sum) << "entries size is not equal 10.";
283 for (size_t i = 0; i < sum; i++) {
764 size_t sum = 0; variable
765 EXPECT_EQ(results.size(), sum) << "entries size is not equal 0.";
[all …]
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/
Dvsync_sampler.cpp146 int64_t sum = 0; in UpdateModeLocked() local
155 sum += diff; in UpdateModeLocked()
157 sum -= min; in UpdateModeLocked()
158 sum -= max; in UpdateModeLocked()
160 period_ = sum / (int64_t)(numSamples_ - MINES_SAMPLE_NUMS); in UpdateModeLocked()
/foundation/communication/ipc/ipc/test/rpc/client/
Drpc_client.c70 int32_t sum; in RpcClientTestOne() local
71 ReadInt32(&reply2, &sum); in RpcClientTestOne()
72 RPC_LOG_INFO("%d + %d = %d", NUMBER_A, NUMBER_B, sum); in RpcClientTestOne()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
Drs_vector2.h102 T sum = data_[0] * oData[0]; in Dot() local
103 sum += data_[1] * oData[1]; in Dot()
104 return sum; in Dot()
240 T sum = data_[0] * data_[0]; in GetSqrLength() local
241 sum += data_[1] * data_[1]; in GetSqrLength()
242 return sum; in GetSqrLength()
Drs_vector4.h189 T sum = data_[0] * oData[0]; in Dot() local
190 sum += data_[1] * oData[1]; in Dot()
191 sum += data_[2] * oData[2]; in Dot()
192 sum += data_[3] * oData[3]; in Dot()
193 return sum; in Dot()
199 T sum = data_[0] * data_[0]; in GetSqrLength() local
200 sum += data_[1] * data_[1]; in GetSqrLength()
201 sum += data_[2] * data_[2]; in GetSqrLength()
202 sum += data_[3] * data_[3]; in GetSqrLength()
203 return sum; in GetSqrLength()
Drs_vector3.h110 T sum = data_[0] * oData[0]; in Dot() local
111 sum += data_[1] * oData[1]; in Dot()
112 sum += data_[2] * oData[2]; in Dot()
113 return sum; in Dot()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/dfx/assist2/
Dindex.js24 var sum = num + 1; variable
/foundation/communication/bluetooth_service/services/bluetooth/service/src/map_mce/
Dmap_mce_instance_client.cpp478 int sum = 0; in ClientCountSendingRequest() local
482 return sum; in ClientCountSendingRequest()
487 sum = 1 + masRequestQue_.size(); in ClientCountSendingRequest()
488 return sum; in ClientCountSendingRequest()
492 sum++; in ClientCountSendingRequest()
498 sum++; in ClientCountSendingRequest()
503 return sum; in ClientCountSendingRequest()
/foundation/arkui/napi/sample/native_module_demo/
Dnative_module_demo.cpp47 napi_value sum; in Add() local
48 NAPI_CALL(env, napi_create_double(env, value0 + value1, &sum)); in Add()
50 return sum; in Add()
/foundation/communication/ipc/ipc/test/unittest/rpc/client/
DRpcClientTest.cpp176 int32_t sum; variable
177 ReadInt32(&reply2, &sum);
178 RPC_LOG_INFO("%d + %d = %d", NUMBER_A, NUMBER_B, sum);
179 EXPECT_EQ(sum, NUMBER_A + NUMBER_B);
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
Dkv_store.c172 int sum = 0; in GetCurrentItem() local
185 sum++; in GetCurrentItem()
190 return sum; in GetCurrentItem()

12