/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_test_ng.cpp | 295 float targetPos = 0.0f; in ScrollToIndex() local 298 iter->second.endPos, align, targetPos)) { in ScrollToIndex() 302 … pattern_->GetListItemAnimatePos(iter->second.startPos, iter->second.endPos, align, targetPos); in ScrollToIndex() 305 targetPos += extraOffset.value(); in ScrollToIndex() 307 if (!NearZero(targetPos)) { in ScrollToIndex() 427 float targetPos = 0.0f; in ScrollToIndex() local 430 iter->second.endPos, align, targetPos); in ScrollToIndex() 434 if (!NearZero(targetPos)) { in ScrollToIndex() 459 float targetPos = 0.0f; in JumpToItemInGroup() local 462 iter->second.startPos, align, targetPos); in JumpToItemInGroup() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/ |
H A D | cache_manager_tdd_test.cpp | 56 const uintptr_t targetPos = startAddr + MAGIC_NUMBER_LENGTH; variable 60 EXPECT_EQ(localizationPos, targetPos); 100 uintptr_t targetPos = variable 103 EXPECT_EQ(bufferPos, targetPos);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_pattern.cpp | 1410 targetPos = startPos; in GetListItemAnimatePos() 1421 targetPos += contentEndOffset_; in GetListItemAnimatePos() 1452 targetPos = startPos; in GetListItemGroupAnimatePosWithoutIndexInGroup() 1469 targetPos += contentEndOffset_; in GetListItemGroupAnimatePosWithoutIndexInGroup() 1547 float targetPos = 0.0f; in AnimateToTarget() local 1551 align, targetPos)) { in AnimateToTarget() 1556 align, targetPos)) { in AnimateToTarget() 1569 targetPos += extraOffset; in AnimateToTarget() 1572 if (!NearZero(targetPos)) { in AnimateToTarget() 1857 float targetPos = 0.0f; in UpdateTotalOffset() local [all …]
|
H A D | list_pattern.h | 389 bool GetListItemAnimatePos(float startPos, float endPos, ScrollAlign align, float& targetPos); 391 ScrollAlign align, float& targetPos); 393 ScrollAlign align, float& targetPos);
|
H A D | list_item_group_pattern.cpp | 196 …stItemGroupPattern::GetEstimateOffset(float height, const std::pair<float, float>& targetPos) const in GetEstimateOffset() 202 return height + estimateHeight - targetPos.second; in GetEstimateOffset() 204 …return height - targetPos.first + layoutedItemInfo_.value().startIndex * averageHeight - spaceWidt… in GetEstimateOffset() 207 return height - targetPos.first; in GetEstimateOffset()
|
H A D | list_item_group_pattern.h | 264 float GetEstimateOffset(float height, const std::pair<float, float>& targetPos) const;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_layout_info.cpp | 522 auto targetPos = 0.f; in GetTotalHeightFromZeroIndex() local 525 targetPos += lineHeight + mainGap; in GetTotalHeightFromZeroIndex() 530 return targetPos; in GetTotalHeightFromZeroIndex() 590 ScrollAlign align, float mainGap, float& targetPos) in GetGridItemAnimatePos() argument 601 targetPos = GetTotalHeightFromZeroIndex(targetLineIndex, mainGap); in GetGridItemAnimatePos() 616 targetPos -= ((lastMainSize - targetLineHeight) * HALF); in GetGridItemAnimatePos() 620 targetPos -= (lastMainSize - targetLineHeight); in GetGridItemAnimatePos() 630 …auto height2Top = targetPos - targetPosBeforeStartIndex - std::abs(currentGridLayoutInfo.currentOf… in GetGridItemAnimatePos() 632 … auto height2Bottom = std::abs(currentGridLayoutInfo.currentOffset_) + lastMainSize - targetPos + in GetGridItemAnimatePos() 647 targetPos -= (lastMainSize - targetLineHeight); in GetGridItemAnimatePos()
|
H A D | grid_pattern.cpp | 1982 float targetPos = 0.0f; in AnimateToTargetImpl() local 1991 … targetPos = gridLayoutInfo_.GetAnimatePosIrregular(*targetIndex_, size.rows, align, mainGap); in AnimateToTargetImpl() 1992 if (Negative(targetPos)) { in AnimateToTargetImpl() 2000 gridLayoutInfo_, *targetIndex_, align, mainGap, targetPos); in AnimateToTargetImpl() 2006 targetPos = GetTotalOffset(); in AnimateToTargetImpl() 2012 …"AnimateToTargetImpl, success:%u, targetPos:%f, extraOffset:%f", success, targetPos, *extraOffset); in AnimateToTargetImpl() 2013 targetPos += *extraOffset; in AnimateToTargetImpl() 2016 ACE_SCOPED_TRACE("AnimateToTargetImpl, targetPos:%f", targetPos); in AnimateToTargetImpl() 2018 AnimateTo(targetPos, -1, nullptr, true); in AnimateToTargetImpl()
|
H A D | grid_layout_info.h | 345 float mainGap, float& targetPos);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | render_water_flow.h | 189 void SupplyItems(size_t startIndex, double targetPos); 217 void SetTargetPos(double targetPos);
|
H A D | render_water_flow.cpp | 90 double targetPos = GetTargetPos(); in PerformLayout() local 91 SupplyItems(itemIndex, targetPos); in PerformLayout() 445 void RenderWaterFlow::SupplyItems(size_t startIndex, double targetPos) in SupplyItems() argument 449 while (LessNotEqual(GetLastMainBlankPos().GetY(), targetPos)) { in SupplyItems() 480 targetPos = itemFlowStyle.mainPos + mainSize_; in SupplyItems()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/animation/ |
H A D | geometry_transition.cpp | 316 auto targetPos = targetRect.GetOffset(); in SyncGeometry() local 319 auto activeFrameRect = isNodeIn ? RectF(targetPos - parentPos, inNodeActiveFrameSize_) : in SyncGeometry() 320 RectF(targetPos - parentPos, geometryNode->GetFrameSize()); in SyncGeometry() 377 …self->GetId(), parentPos.ToString().c_str(), targetPos.ToString().c_str(), activeFrameRect.ToStrin… in SyncGeometry()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/ |
H A D | drag_animation_helper.cpp | 79 OffsetF DragAnimationHelper::CalcOffsetToTarget(OffsetF curPos, OffsetF targetPos, CalcResult& calc… in CalcOffsetToTarget() argument 85 float xDis = targetPos.GetX() - curPos.GetX(); in CalcOffsetToTarget() 86 float yDis = targetPos.GetY() - curPos.GetY(); in CalcOffsetToTarget()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/ |
H A D | minimp4_demuxer_plugin.cpp | 396 …uint64_t targetPos = (Plugin::HstTime2Ms(seekTime) * static_cast<int64_t>(miniMP4_.track->avg_bitr… in SeekTo() local 398 if (targetPos >= offsetEnd) { in SeekTo() 406 if (tempPos < targetPos) { in SeekTo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | render_grid.cpp | 641 int32_t targetPos = gridPos - columnCount_ + i; in BuildPositionRelations() local 643 auto iter = gridPositions_.find(targetPos); in BuildPositionRelations() 654 --targetPos; in BuildPositionRelations() 655 } while (targetPos >= 0 && (targetPos + 1) % columnCount_ > 0); in BuildPositionRelations()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | utils.h | 610 inline int32_t ParseUtf8TextSubstrStartPos(std::string& text, int32_t targetPos) in ParseUtf8TextSubstrStartPos() argument 614 while ((stringPos < static_cast<int32_t>(text.length())) && (truePos < targetPos)) { in ParseUtf8TextSubstrStartPos() 623 inline int32_t ParseUtf8TextSubstrEndPos(std::string& text, int32_t targetPos) in ParseUtf8TextSubstrEndPos() argument 625 auto stringPos = ParseUtf8TextSubstrStartPos(text, targetPos); in ParseUtf8TextSubstrEndPos()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/ |
H A D | minimp3_demuxer_plugin.cpp | 538 uint32_t targetPos = targetTimeMs * mp3DemuxerAttr_.bitRate / 8 + mp3DemuxerAttr_.id3v2Size; in AudioDemuxerMp3GetSeekPosition() local 539 if (targetPos > mp3DemuxerAttr_.fileSize) { in AudioDemuxerMp3GetSeekPosition() 543 *pos = static_cast<uint64_t>(targetPos); in AudioDemuxerMp3GetSeekPosition()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | render_list.cpp | 291 void RenderList::CalculateItemPosition(double targetPos) in CalculateItemPosition() argument 293 layoutManager_->LayoutToPosition(targetPos); in CalculateItemPosition()
|
H A D | render_list.h | 292 void CalculateItemPosition(double targetPos);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.cpp | 288 const Math::Vec3 targetPos = CORE3D_NS::ScreenToWorld( in RayFromCamera() local 290 const Math::Vec3 direction = Math::Normalize(targetPos - rayOrigin); in RayFromCamera()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.cpp | 1063 float targetPos = iter->second.startPos; in OnDirtyLayoutWrapperSwap() local 1080 … isNeedBackwardTranslate || AutoLinearAnimationNeedReset(targetPos); in OnDirtyLayoutWrapperSwap() 1089 targetPos -= offset; in OnDirtyLayoutWrapperSwap() 1091 …context->AddAfterLayoutTask([weak = WeakClaim(this), targetPos, velocity = velocity_.value_or(0.0f… in OnDirtyLayoutWrapperSwap() 1095 swiper->PlayPropertyTranslateAnimation(-targetPos, nextIndex, velocity, false); in OnDirtyLayoutWrapperSwap() 1096 swiper->PlayIndicatorTranslateAnimation(-targetPos, nextIndex); in OnDirtyLayoutWrapperSwap() 1100 … currentOffset_, currentOffset_ - targetPos, iter->first, false, velocity_.value_or(0.0f)); in OnDirtyLayoutWrapperSwap() 1104 auto targetPos = firstItem.second.startPos + in OnDirtyLayoutWrapperSwap() local 1107 … currentOffset_, currentOffset_ - targetPos, targetIndexValue, false, velocity_.value_or(0.0f)); in OnDirtyLayoutWrapperSwap()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | scene_holder.cpp | 3125 const auto targetPos = picking_->ScreenToWorld( in RayFromCamera() local 3127 const auto direction = BASE_NS::Math::Normalize(targetPos - rayOrigin); in RayFromCamera()
|