Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 82) sorted by relevance

1234

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dresource_manager_performance_test.cpp115 long long total = 0; in ParseIndexCost() local
147 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); in ParseIndexCost()
150 double average = total / 1000.0; in ParseIndexCost()
160 long long total = 0; in TestLoadFromIndex() local
196 average = total / 1000.0; in TestLoadFromIndex()
221 long long total = 0; variable
240 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
244 average = total / 1000.0;
261 unsigned long long total = 0; variable
275 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dresource_manager_performance_test.cpp116 unsigned long long total = 0; in TestLoadFromIndex() local
180 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); in TestLoadFromIndex()
184 average = total / 1000.0; in TestLoadFromIndex()
209 unsigned long long total = 0; variable
228 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
232 average = total / 1000.0;
249 unsigned long long total = 0; variable
263 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
266 average = total / 1000.0;
283 unsigned long long total = 0; variable
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/
Dhc_file_posix.c130 int total = 0; in HcFileRead() local
132 while (total < dstSize) { in HcFileRead()
133 int readCount = read(fp, dstBuffer + total, dstSize - total); in HcFileRead()
134 if (readCount < 0 || readCount > (dstSize - total)) { in HcFileRead()
140 return total; in HcFileRead()
142 total += readCount; in HcFileRead()
144 LOGI("[OS]: file read quit. [ReadSize]: %d", total); in HcFileRead()
145 return total; in HcFileRead()
156 int total = 0; in HcFileWrite() local
158 while (total < srcSize) { in HcFileWrite()
[all …]
/base/global/i18n/frameworks/zone/test/unittest/
Dzone_util_performance_test.cpp57 uint64_t total = 0; variable
68 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
71 average = total / (1000.0 * 2);
82 uint64_t total = 0; variable
94 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
97 average = total / (1000.0 * 2);
108 uint64_t total = 0; variable
118 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
120 average = total / 1000.0;
131 uint64_t total = 0; variable
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_file.c120 int total = 0; in HcFileRead() local
122 while (total < dstSize) { in HcFileRead()
123 int readCount = fread(dstBuffer + total, 1, dstSize - total, fp); in HcFileRead()
128 return total; in HcFileRead()
130 total += readCount; in HcFileRead()
132 LOGI("[OS]: file read quit. [ReadSize]: %d", total); in HcFileRead()
133 return total; in HcFileRead()
148 int total = 0; in HcFileWrite() local
150 while (total < srcSize) { in HcFileWrite()
151 int writeCount = fwrite(srcBuffer + total, 1, srcSize - total, fp); in HcFileWrite()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_base_query_callback.h46 virtual void OnComplete(int32_t reason, int32_t total) in OnComplete() argument
49 callback->OnComplete(reason, total); in OnComplete()
53 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
55 OnComplete(reason, total); in OnComplete()
Dhisysevent_query_callback_c.h23 using OnCompleteFunc = void (*)(int32_t errCode, int32_t total);
37 void OnComplete(int32_t reason, int32_t total) override;
Dhisysevent_query_callback.h33 virtual void OnComplete(int32_t reason, int32_t total) = 0;
/base/hiviewdfx/hisysevent/test/unittest/common/napi/
Dnapi_hisysevent.test.js250 onComplete: function(reason, total) { argument
300 onComplete: function(reason, total) { argument
349 onComplete: function(reason, total) { argument
613 onComplete: function(reason, total, seq) { argument
642 onComplete: function(reason, total, seq) { argument
723 onComplete: function(reason, total, seq) { argument
724 expect(total >= 1).assertTrue()
774 onComplete: function(reason, total, seq) { argument
775 expect(total >= 2).assertTrue()
825 onComplete: function(reason, total, seq) { argument
[all …]
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dquery_sys_event_callback_stub.cpp65 int32_t total = 0; in OnRemoteRequest() local
66 ret = data.ReadInt32(total); in OnRemoteRequest()
77 OnComplete(reason, total, seq); in OnRemoteRequest()
Dhisysevent_query_proxy.cpp34 void HiSysEventQueryProxy::OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
37 queryCallback->OnComplete(reason, total, seq); in OnComplete()
Dquery_sys_event_callback_proxy.cpp58 void QuerySysEventCallbackProxy::OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
70 bool ret = data.WriteInt32(reason) && data.WriteInt32(total); in OnComplete()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dquery_sys_event_callback_stub.cpp59 int32_t total = 0; in OnRemoteRequest() local
60 ret = data.ReadInt32(total); in OnRemoteRequest()
71 OnComplete(reason, total, seq); in OnRemoteRequest()
Dquery_sys_event_callback_proxy.cpp57 void QuerySysEventCallbackProxy::OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
69 bool ret = data.WriteInt32(reason) && data.WriteInt32(total); in OnComplete()
/base/msdp/device_status/tools/vdev/src/
Dvirtual_mouse.cpp169 double total = std::min(delta, MAXIMUM_STEP_LENGTH); in Move() local
171 int32_t count = static_cast<int32_t>(ceil(total / FAST_STEP)); in Move()
173 if (total < TWICE_FAST_STEP) { in Move()
174 if (total > FAST_STEP) { in Move()
175 step = total / HALF_VALUE; in Move()
177 step = total; in Move()
195 total -= step; in Move()
Dvirtual_touchscreen.cpp166 double total = ::hypot(tcoord.x - slots_[slot].coord.x, tcoord.y - slots_[slot].coord.y); in Move() local
167 if (total <= STEP_LENGTH) { in Move()
172 if (total < TWICE_STEP_LENGTH) { in Move()
173 step = total / HALF_VALUE; in Move()
175 …ts_[slot].coord.x += static_cast<int32_t>(round(step * (tcoord.x - slots_[slot].coord.x) / total)); in Move()
176 …ts_[slot].coord.y += static_cast<int32_t>(round(step * (tcoord.y - slots_[slot].coord.y) / total)); in Move()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_query_callback_c.cpp52 void HiSysEventQueryCallbackC::OnComplete(int32_t reason, int32_t total) in OnComplete() argument
58 onComplete_(reason, total); in OnComplete()
/base/hiviewdfx/hidumper/services/native/src/
Draw_param.cpp165 void RawParam::UpdateProgress(uint32_t total, uint32_t current) in UpdateProgress() argument
167 if ((!progressEnabled_) || (outfd_ < 0) || (total < 1) || (total < current)) { in UpdateProgress()
170 UpdateProgress((uint64_t(FINISH) * current) / total); in UpdateProgress()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_querier.cpp73 void NapiHiSysEventQuerier::OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
76 [this, reason, total, seq] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnComplete()
83 NapiHiSysEventUtil::CreateInt32Value(env, total, totalJsParam); in OnComplete()
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
Dhisysevent_rust_querier.cpp62 void HiSysEventRustQuerier::OnComplete(int32_t reason, int32_t total) in OnComplete() argument
68 querier_->onCompleteWrapperCb(querier_->onCompleteRustCb, reason, total); in OnComplete()
/base/hiviewdfx/hichecker/test/unittest/common/native/
Dhichecker_native_test.cpp116 int64_t total = 0; variable
121 total += duration;
123 int64_t duration = (total / LOOP_COUNT);
182 int64_t total = 0; variable
187 total += duration;
189 int64_t duration = (total / LOOP_COUNT);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Diquery_base_callback.h30 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) = 0;
/base/hiviewdfx/hisysevent/adapter/native/idl/include/
Diquery_sys_event_callback.h28 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) = 0;
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/include/
Dhisysevent_rust_querier.h32 virtual void OnComplete(int32_t reason, int32_t total) override;
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_tool_query.cpp45 void HiSysEventToolQuery::OnComplete(int32_t reason, int32_t total) in OnComplete() argument

1234