/foundation/resourceschedule/ffrt/src/dfx/trace_record/ |
H A D | ffrt_trace_record.cpp | 136 unsigned int totalCount = 0; in GetSubmitCount() local 138 totalCount += g_recordTaskCounter_[ffrt_normal_task][i].submitCounter; in GetSubmitCount() 139 totalCount += g_recordTaskCounter_[ffrt_uv_task][i].submitCounter; in GetSubmitCount() 140 totalCount += g_recordTaskCounter_[ffrt_queue_task][i].submitCounter; in GetSubmitCount() 142 return totalCount; in GetSubmitCount() 148 unsigned int totalCount = 0; in GetEnqueueCount() local 150 totalCount += g_recordTaskCounter_[ffrt_normal_task][i].enqueueCounter; in GetEnqueueCount() 151 totalCount += g_recordTaskCounter_[ffrt_uv_task][i].enqueueCounter; in GetEnqueueCount() 152 totalCount += g_recordTaskCounter_[ffrt_queue_task][i].enqueueCounter; in GetEnqueueCount() 154 return totalCount; in GetEnqueueCount() 160 unsigned int totalCount = 0; GetRunCount() local 172 unsigned int totalCount = 0; GetDoneCount() local 184 unsigned int totalCount = 0; GetCoSwitchCount() local 195 unsigned int totalCount = 0; GetFinishCount() local [all...] |
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/ |
H A D | injector_utils.cpp | 41 int32_t startPoint, int32_t targetPoint, int32_t currentIndex, int32_t totalCount) in CalculateNextPosValueWithLinear() 43 if (totalCount < 1) { in CalculateNextPosValueWithLinear() 56 float absStep = static_cast<float>(std::abs(distance)) / totalCount; in CalculateNextPosValueWithLinear() 130 std::vector<Point>& controlPoints, int32_t currentIndex, int32_t totalCount, CoordinateCurve curve) in CalculateNextPosValueWithBezier() 133 if (currentIndex < 0 || currentIndex > totalCount || totalCount < 1) { in CalculateNextPosValueWithBezier() 134 std::cout << "wrong count given: currentIndex " << currentIndex << ", totalCount " << totalCount << std::endl; in CalculateNextPosValueWithBezier() 143 double t = static_cast<double>(currentIndex) / totalCount; in CalculateNextPosValueWithBezier() 40 CalculateNextPosValueWithLinear( int32_t startPoint, int32_t targetPoint, int32_t currentIndex, int32_t totalCount) CalculateNextPosValueWithLinear() argument 129 CalculateNextPosValueWithBezier( std::vector<Point>& controlPoints, int32_t currentIndex, int32_t totalCount, CoordinateCurve curve) CalculateNextPosValueWithBezier() argument
|
H A D | injector_utils.h | 52 int32_t startPoint, int32_t targetPoint, int32_t currentIndex, int32_t totalCount); 54 std::vector<Point>& controlPoints, int32_t currentIndex, int32_t totalCount, CoordinateCurve curve);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_layout_wrapper_builder.cpp | 44 auto totalCount = GetTotalCount(); in OnGetOrCreateWrapperByIndex() local 45 if ((index < 0) || (index >= totalCount)) { in OnGetOrCreateWrapperByIndex() 53 index -= totalCount; in OnGetOrCreateWrapperByIndex() 55 index += totalCount; in OnGetOrCreateWrapperByIndex() 61 std::pair<RefPtr<UINode>, std::string> LazyLayoutWrapperBuilder::GetOrCreateFrameNode(int32_t index, int32_t totalCount) in GetOrCreateFrameNode() argument 78 if (index >= totalCount) { in GetOrCreateFrameNode() 79 realIndex -= totalCount; in GetOrCreateFrameNode() 81 realIndex += totalCount; in GetOrCreateFrameNode() 94 int32_t totalCount = GetTotalCount(); in OnGetOrCreateWrapperByIndexLegacy() local 113 const std::pair<RefPtr<UINode>, std::string>& pair = GetOrCreateFrameNode(index, totalCount); in OnGetOrCreateWrapperByIndexLegacy() [all...] |
H A D | repeat_virtual_scroll_model_ng.cpp | 24 uint32_t totalCount, in Create() 37 totalCount, in Create() 48 void RepeatVirtualScrollModelNG::UpdateRenderState(uint32_t totalCount, bool visibleItemsChanged) in UpdateRenderState() argument 54 repeatNode->UpdateTotalCount(totalCount); in UpdateRenderState() 23 Create( uint32_t totalCount, const std::map<std::string, std::pair<bool, uint32_t>>& templateCachedCountMap, const std::function<void(uint32_t forIndex)>& onCreateNode, const std::function<void(const std::string& fromKey, uint32_t forIndex)>& onUpdateNode, const std::function<std::list<std::string>(uint32_t from, uint32_t to)>& onGetKeys4Range, const std::function<std::list<std::string>(uint32_t from, uint32_t to)>& onGetTypes4Range, const std::function<void(int32_t from, int32_t to)>& onSetActiveRange) Create() argument
|
H A D | repeat_virtual_scroll_node.cpp | 23 RefPtr<RepeatVirtualScrollNode> RepeatVirtualScrollNode::GetOrCreateRepeatNode(int32_t nodeId, uint32_t totalCount, in GetOrCreateRepeatNode() argument 34 node->UpdateTotalCount(totalCount); in GetOrCreateRepeatNode() 38 nodeId, totalCount, templateCachedCountMap, onCreateNode, onUpdateNode, onGetKeys4Range, onGetTypes4Range, in GetOrCreateRepeatNode() 45 RepeatVirtualScrollNode::RepeatVirtualScrollNode(int32_t nodeId, int32_t totalCount, in RepeatVirtualScrollNode() argument 52 : ForEachBaseNode(V2::JS_REPEAT_ETS_TAG, nodeId), totalCount_(totalCount), in RepeatVirtualScrollNode() 59 void RepeatVirtualScrollNode::UpdateTotalCount(uint32_t totalCount) in UpdateTotalCount() argument 61 TAG_LOGD(AceLogTag::ACE_REPEAT, "UpdateTotalCount: %{public}d", totalCount); in UpdateTotalCount() 62 totalCount_ = totalCount; in UpdateTotalCount() 142 auto totalCount = static_cast<int32_t>(totalCount_); in CheckNode4IndexInL1() local 148 ((start - cacheStart < 0) && (index >= start - cacheStart + totalCount)) || in CheckNode4IndexInL1() [all...] |
H A D | repeat_virtual_scroll_model_ng.h | 33 uint32_t totalCount, 41 void UpdateRenderState(uint32_t totalCount, bool visibleItemsChanged) override;
|
H A D | repeat_virtual_scroll_model.h | 37 uint32_t totalCount, 44 virtual void UpdateRenderState(uint32_t totalCount, bool visibleItemsChanged) = 0;
|
H A D | repeat_virtual_scroll_node.h | 40 static RefPtr<RepeatVirtualScrollNode> GetOrCreateRepeatNode(int32_t nodeId, uint32_t totalCount, 48 RepeatVirtualScrollNode(int32_t nodeId, int32_t totalCount, 58 void UpdateTotalCount(uint32_t totalCount);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_resultset_performance.cpp | 145 int totalCount = readResultSet->GetCount(); in HWTEST_F() local 146 EXPECT_EQ(totalCount, 50); // limit 50 in HWTEST_F() 147 LOGI("######## After get count:%d", totalCount); in HWTEST_F() 159 totalCount = readResultSet->GetCount(); in HWTEST_F() 160 EXPECT_EQ(totalCount, INSERT_NUMBER); in HWTEST_F() 161 LOGI("######## After get count:%d", totalCount); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/tabs/ |
H A D | tab_content_proxy_element.cpp | 83 auto totalCount = static_cast<int32_t>(TotalCount()); in PerformBuild() local 86 auto maxIndex = totalCount - 1; in PerformBuild() 87 if (controller_->GetIndex() >= totalCount) { in PerformBuild() 90 if (controller_->GetInitialIndex() >= totalCount) { in PerformBuild() 93 if (controller_->GetPendingIndex() >= totalCount) { in PerformBuild() 96 controller_->SetTotalCount(totalCount < 1 ? 0 : totalCount); in PerformBuild()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributed_test_sysinfo.cpp | 182 const std::string &filePath, int totalCount, uint64_t microSeconds) in GetSysMeanCurrentVal() 185 if (totalCount <= 0 || microSeconds <= 0) { in GetSysMeanCurrentVal() 189 for (int cnt = 0; cnt < totalCount; cnt++) { in GetSysMeanCurrentVal() 197 return meanVal / totalCount; in GetSysMeanCurrentVal() 200 void DistributedTestSysInfo::GetSysCurrentPower(SeqNo seqNo, int totalCount, uint64_t microSeconds) in GetSysCurrentPower() argument 209 *powerCons = GetSysMeanCurrentVal(POWER_FOLLOW_FILE, totalCount, microSeconds) \ in GetSysCurrentPower() 210 * GetSysMeanCurrentVal(VOLTAGE_FILE, totalCount, microSeconds); in GetSysCurrentPower() 243 const std::string &filePath, int totalCount, uint64_t microSeconds) in GetSysMeanCurrentVal() 246 (void)totalCount; in GetSysMeanCurrentVal() 250 void DistributedTestSysInfo::GetSysCurrentPower(SeqNo seqNo, int totalCount, uint64_ in GetSysMeanCurrentVal() argument 181 GetSysMeanCurrentVal( const std::string &filePath, int totalCount, uint64_t microSeconds) GetSysMeanCurrentVal() argument 242 GetSysMeanCurrentVal( const std::string &filePath, int totalCount, uint64_t microSeconds) GetSysMeanCurrentVal() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_unmarshal_thread.cpp | 218 size_t totalCount = 0; in ReportTransactionDataStatistics() local 240 totalCount = preCount + opCount; in ReportTransactionDataStatistics() 241 transactionDataStatistics_[pid] = totalCount; in ReportTransactionDataStatistics() 243 if (totalCount < TRANSACTION_DATA_ALARM_COUNT) { in ReportTransactionDataStatistics() 254 "BUNDLE_NAME", bundleName, "TRANSACTION_DATA_SIZE", totalCount); in ReportTransactionDataStatistics() 257 pid, uid, bundleName.c_str(), totalCount, totalCount > TRANSACTION_DATA_KILL_COUNT); in ReportTransactionDataStatistics() 263 if (totalCount > TRANSACTION_DATA_KILL_COUNT && preCount <= TRANSACTION_DATA_KILL_COUNT) { in ReportTransactionDataStatistics()
|
/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | grid_component.cpp | 71 void GridComponent::SetTotalCount(int32_t totalCount) in SetTotalCount() argument 73 if (totalCount < 0) { in SetTotalCount() 74 LOGW("Invalid TotalCount %{public}d", totalCount); in SetTotalCount() 77 itemCount_ = totalCount; in SetTotalCount()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 117 static int32_t GetLoopIndex(int32_t index, int32_t totalCount) in GetLoopIndex() argument 119 if (totalCount <= 0) { in GetLoopIndex() 125 loopIndex = loopIndex + totalCount; in GetLoopIndex() 127 loopIndex %= totalCount; in GetLoopIndex() 131 static int32_t CalcLoopCount(int32_t index, int32_t totalCount) in CalcLoopCount() argument 133 if (totalCount <= 0) { in CalcLoopCount() 141 return std::abs(index / totalCount); in CalcLoopCount()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/foreach/ |
H A D | lazy_foreach_component.cpp | 51 size_t totalCount = OnGetTotalCount(); in ExpandChildren() local 52 for (size_t idx = 0; idx < totalCount; ++idx) { in ExpandChildren()
|
/foundation/communication/netstack/utils/common_utils/src/ |
H A D | netstack_hisysevent.cpp | 85 eventInfo.totalCount += 1; in ProcessHttpPerfHiSysevent() 111 eventInfo.totalCount = 0; in ResetCounters() 144 SUCCESS_COUNT_EPARA, eventInfo.successCount, TOTAL_COUNT_EPARA, eventInfo.totalCount, VERSION_EPARA, in SendHttpPerfEvent()
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | tab_controller.h | 40 void SetTotalCount(int32_t totalCount) in SetTotalCount() argument 42 totalCount_ = totalCount; in SetTotalCount()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributed_test_sysinfo.h | 89 // read value from specific file and take the average within totalCount 90 float GetSysMeanCurrentVal(const std::string &filePath, int totalCount, uint64_t microSeconds); 92 void GetSysCurrentPower(SeqNo seqNo, int totalCount, uint64_t microSeconds);
|
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_payload_statistics_impl_unittest.cpp | 120 uint64_t totalCount = DEFAULT_COUNT + DEFAULT_COUNT + DEFAULT_COUNT; in HWTEST_F() local 121 EXPECT_EQ(instance.GetTotalCount(), totalCount); in HWTEST_F() 421 uint64_t totalCount = currentCount + DEFAULT_COUNT + DEFAULT_COUNT + DEFAULT_COUNT; in HWTEST_F() local 424 EXPECT_EQ(instance.GetTotalCount(), totalCount); in HWTEST_F() 471 uint64_t totalCount = currentCount + DEFAULT_COUNT + DEFAULT_COUNT + DEFAULT_COUNT; in HWTEST_F() local 474 EXPECT_EQ(instance.GetTotalCount(), totalCount); in HWTEST_F() 520 uint64_t totalCount = currentCount + DEFAULT_COUNT + DEFAULT_COUNT + DEFAULT_COUNT; in HWTEST_F() local 523 EXPECT_EQ(instance.GetTotalCount(), totalCount); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_indicator_modifier_test_ng.cpp | 1084 auto totalCount = pattern_->TotalCount(); in HWTEST_F() local 1085 EXPECT_EQ(totalCount, 4); in HWTEST_F() 1090 for (int32_t i = 0; i < totalCount; ++i) { in HWTEST_F() 1095 int32_t endCurrentIndex = totalCount - 1; in HWTEST_F() 1421 auto totalCount = pattern_->TotalCount(); in HWTEST_F() local 1422 EXPECT_EQ(totalCount, 4); in HWTEST_F() 1451 auto totalCount = pattern_->TotalCount(); in HWTEST_F() local 1452 EXPECT_EQ(totalCount, 4); in HWTEST_F() 1492 auto totalCount = pattern_->TotalCount(); in HWTEST_F() local 1493 EXPECT_EQ(totalCount, in HWTEST_F() 1522 auto totalCount = pattern_->TotalCount(); HWTEST_F() local 1561 auto totalCount = pattern_->TotalCount(); HWTEST_F() local 1584 auto totalCount = pattern_->TotalCount(); HWTEST_F() local 1608 auto totalCount = pattern_->TotalCount(); HWTEST_F() local 1658 auto totalCount = pattern_->TotalCount(); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_position_map.h | 353 void UpdateGroupPosMap(int32_t totalCount, int32_t lanes, float space, in UpdateGroupPosMap() argument 358 if (totalCount != totalItemCount_) { in UpdateGroupPosMap() 360 totalItemCount_ = totalCount; in UpdateGroupPosMap() 394 void UpdateTotalCount(int32_t totalCount) in UpdateTotalCount() argument 396 totalItemCount_ = totalCount; in UpdateTotalCount() 397 auto iter = posMap_.lower_bound(totalCount); in UpdateTotalCount()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_utils.h | 146 RefPtr<SwiperLayoutProperty>& swiperLayoutProperty, float contentWidth, int32_t totalCount) in CheckAutoFillDisplayCount() 161 displayCount = displayCount > totalCount ? totalCount : displayCount; in CheckAutoFillDisplayCount() 145 CheckAutoFillDisplayCount( RefPtr<SwiperLayoutProperty>& swiperLayoutProperty, float contentWidth, int32_t totalCount) CheckAutoFillDisplayCount() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | list_component.h | 117 void SetTotalCount(int32_t totalCount) in SetTotalCount() argument 119 if (totalCount < 0) { in SetTotalCount() 120 LOGE("Invalid TotalCount %{public}d", totalCount); in SetTotalCount() 123 totalCount_ = totalCount; in SetTotalCount()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_repeat_virtual_scroll.cpp | 101 auto totalCount = info[PARAM_TOTAL_COUNT]->ToNumber<uint32_t>(); in Create() local 178 totalCount, templateCachedCountMap, onCreateNode, onUpdateNode, onGetKeys4Range, onGetTypes4Range, in Create() 189 auto totalCount = info[0]->ToNumber<uint32_t>(); in UpdateRenderState() local 191 RepeatVirtualScrollModel::GetInstance()->UpdateRenderState(totalCount, visibleItemsChanged); in UpdateRenderState()
|