/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | resource_manager_performance_test.cpp | 115 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/ |
D | resource_manager_performance_test.cpp | 116 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/ |
D | hc_file_posix.c | 130 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/ |
D | zone_util_performance_test.cpp | 57 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/ |
D | hc_file.c | 120 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/ |
D | hisysevent_base_query_callback.h | 46 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()
|
D | hisysevent_query_callback_c.h | 23 using OnCompleteFunc = void (*)(int32_t errCode, int32_t total); 37 void OnComplete(int32_t reason, int32_t total) override;
|
D | hisysevent_query_callback.h | 33 virtual void OnComplete(int32_t reason, int32_t total) = 0;
|
/base/hiviewdfx/hisysevent/test/unittest/common/napi/ |
D | napi_hisysevent.test.js | 250 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/ |
D | query_sys_event_callback_stub.cpp | 65 int32_t total = 0; in OnRemoteRequest() local 66 ret = data.ReadInt32(total); in OnRemoteRequest() 77 OnComplete(reason, total, seq); in OnRemoteRequest()
|
D | hisysevent_query_proxy.cpp | 34 void HiSysEventQueryProxy::OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument 37 queryCallback->OnComplete(reason, total, seq); in OnComplete()
|
D | query_sys_event_callback_proxy.cpp | 58 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/ |
D | query_sys_event_callback_stub.cpp | 59 int32_t total = 0; in OnRemoteRequest() local 60 ret = data.ReadInt32(total); in OnRemoteRequest() 71 OnComplete(reason, total, seq); in OnRemoteRequest()
|
D | query_sys_event_callback_proxy.cpp | 57 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/ |
D | virtual_mouse.cpp | 169 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()
|
D | virtual_touchscreen.cpp | 166 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/ |
D | hisysevent_query_callback_c.cpp | 52 void HiSysEventQueryCallbackC::OnComplete(int32_t reason, int32_t total) in OnComplete() argument 58 onComplete_(reason, total); in OnComplete()
|
/base/hiviewdfx/hidumper/services/native/src/ |
D | raw_param.cpp | 165 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/ |
D | napi_hisysevent_querier.cpp | 73 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/ |
D | hisysevent_rust_querier.cpp | 62 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/ |
D | hichecker_native_test.cpp | 116 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/ |
D | iquery_base_callback.h | 30 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) = 0;
|
/base/hiviewdfx/hisysevent/adapter/native/idl/include/ |
D | iquery_sys_event_callback.h | 28 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) = 0;
|
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/include/ |
D | hisysevent_rust_querier.h | 32 virtual void OnComplete(int32_t reason, int32_t total) override;
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
D | hisysevent_tool_query.cpp | 45 void HiSysEventToolQuery::OnComplete(int32_t reason, int32_t total) in OnComplete() argument
|