Home
last modified time | relevance | path

Searched refs:targetPos (Results 1 - 21 of 21) sorted by relevance

/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/
H A Dcache_manager_tdd_test.cpp56 const uintptr_t targetPos = startAddr + MAGIC_NUMBER_LENGTH; in HWTEST_F() local
60 EXPECT_EQ(localizationPos, targetPos); in HWTEST_F()
100 uintptr_t targetPos = in HWTEST_F() local
103 EXPECT_EQ(bufferPos, targetPos); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_pattern.cpp1394 bool ListPattern::GetListItemAnimatePos(float startPos, float endPos, ScrollAlign align, float& targetPos)
1399 targetPos = startPos;
1401 targetPos -= contentStartOffset_;
1405 targetPos = (endPos + startPos) / 2.0f - contentMainSize_ / 2.0f;
1408 targetPos = endPos - contentMainSize_;
1410 targetPos += contentEndOffset_;
1414 targetPos = CalculateTargetPos(startPos, endPos);
1421 int32_t index, float startPos, float endPos, ScrollAlign align, float& targetPos)
1441 targetPos = startPos;
1443 targetPos
[all...]
H A Dlist_pattern.h391 bool GetListItemAnimatePos(float startPos, float endPos, ScrollAlign align, float& targetPos);
393 ScrollAlign align, float& targetPos);
395 ScrollAlign align, float& targetPos);
H A Dlist_item_group_pattern.cpp197 float ListItemGroupPattern::GetEstimateOffset(float height, const std::pair<float, float>& targetPos, in GetEstimateOffset() argument
204 return height + estimateHeight - targetPos.second; in GetEstimateOffset()
206 return height - targetPos.first + layoutedItemInfo_.value().startIndex * averageHeight - spaceWidth_; in GetEstimateOffset()
209 return height - targetPos.first; in GetEstimateOffset()
H A Dlist_item_group_pattern.h263 float GetEstimateOffset(float height, const std::pair<float, float>& targetPos,
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.cpp519 auto targetPos = 0.f; in GetTotalHeightFromZeroIndex() local
522 targetPos += lineHeight + mainGap; in GetTotalHeightFromZeroIndex()
527 return targetPos; in GetTotalHeightFromZeroIndex()
587 ScrollAlign align, float mainGap, float& targetPos) in GetGridItemAnimatePos()
597 // Get the total height of the targetPos from row 0 to targetLineIndex-1. in GetGridItemAnimatePos()
598 targetPos = GetTotalHeightFromZeroIndex(targetLineIndex, mainGap); in GetGridItemAnimatePos()
613 targetPos -= ((lastMainSize - targetLineHeight) * HALF); in GetGridItemAnimatePos()
617 targetPos -= (lastMainSize - targetLineHeight); in GetGridItemAnimatePos()
624 // targetPos - targetPosBeforeStartIndex:The distance between the top of the startLine row and the top of in GetGridItemAnimatePos()
627 auto height2Top = targetPos in GetGridItemAnimatePos()
586 GetGridItemAnimatePos(const GridLayoutInfo& currentGridLayoutInfo, int32_t targetIndex, ScrollAlign align, float mainGap, float& targetPos) GetGridItemAnimatePos() argument
[all...]
H A Dgrid_pattern.cpp1962 float targetPos = 0.0f;
1971 targetPos = gridLayoutInfo_.GetAnimatePosIrregular(*targetIndex_, size.rows, align, mainGap);
1972 if (Negative(targetPos)) {
1980 gridLayoutInfo_, *targetIndex_, align, mainGap, targetPos);
1986 targetPos = GetTotalOffset();
1992 "AnimateToTargetImpl, success:%u, targetPos:%f, extraOffset:%f", success, targetPos, *extraOffset);
1993 targetPos += *extraOffset;
1996 ACE_SCOPED_TRACE("AnimateToTargetImpl, targetPos:%f", targetPos);
[all...]
H A Dgrid_layout_info.h359 float mainGap, float& targetPos);
/foundation/arkui/ace_engine/frameworks/core/components_ng/animation/
H A Dgeometry_transition.cpp316 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.ToString().c_str(), in SyncGeometry()
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/
H A Dminimp4_demuxer_plugin.cpp394 uint64_t targetPos = (Plugin::HstTime2Ms(seekTime) * static_cast<int64_t>(miniMP4_.track->avg_bitrate_bps)) / 8 + in SeekTo() local
396 if (targetPos >= offsetEnd) { in SeekTo()
404 if (tempPos < targetPos) { in SeekTo()
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/
H A Drender_water_flow.h189 void SupplyItems(size_t startIndex, double targetPos);
217 void SetTargetPos(double targetPos);
H A Drender_water_flow.cpp82 double targetPos = GetTargetPos(); in PerformLayout() local
83 SupplyItems(itemIndex, targetPos); in PerformLayout()
437 void RenderWaterFlow::SupplyItems(size_t startIndex, double targetPos) in SupplyItems() argument
441 while (LessNotEqual(GetLastMainBlankPos().GetY(), targetPos)) { in SupplyItems()
472 targetPos = itemFlowStyle.mainPos + mainSize_; in SupplyItems()
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dutils.h621 inline int32_t ParseUtf8TextSubstrStartPos(std::string& text, int32_t targetPos) in ParseUtf8TextSubstrStartPos() argument
625 while ((stringPos < static_cast<int32_t>(text.length())) && (truePos < targetPos)) { in ParseUtf8TextSubstrStartPos()
634 inline int32_t ParseUtf8TextSubstrEndPos(std::string& text, int32_t targetPos) in ParseUtf8TextSubstrEndPos() argument
636 auto stringPos = ParseUtf8TextSubstrStartPos(text, targetPos); in ParseUtf8TextSubstrEndPos()
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/
H A Ddrag_animation_helper.cpp70 OffsetF DragAnimationHelper::CalcOffsetToTarget(OffsetF curPos, OffsetF targetPos, CalcResult& calcResult)
76 float xDis = targetPos.GetX() - curPos.GetX();
77 float yDis = targetPos.GetY() - curPos.GetY();
/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Drender_grid.cpp641 int32_t targetPos = gridPos - columnCount_ + i; in BuildPositionRelations()
643 auto iter = gridPositions_.find(targetPos); in BuildPositionRelations()
654 --targetPos; in BuildPositionRelations()
655 } while (targetPos >= 0 && (targetPos + 1) % columnCount_ > 0); in BuildPositionRelations()
/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/
H A Dminimp3_demuxer_plugin.cpp541 uint32_t targetPos = targetTimeMs * mp3DemuxerAttr_.bitRate / 8 + mp3DemuxerAttr_.id3v2Size; in AudioDemuxerMp3GetSeekPosition() local
542 if (targetPos > mp3DemuxerAttr_.fileSize) { in AudioDemuxerMp3GetSeekPosition()
546 *pos = static_cast<uint64_t>(targetPos); in AudioDemuxerMp3GetSeekPosition()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drender_list.cpp291 void RenderList::CalculateItemPosition(double targetPos) in CalculateItemPosition() argument
293 layoutManager_->LayoutToPosition(targetPos); in CalculateItemPosition()
H A Drender_list.h292 void CalculateItemPosition(double targetPos);
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dpicking.cpp288 const Math::Vec3 targetPos = CORE3D_NS::ScreenToWorld( in RayFromCamera() local
290 const Math::Vec3 direction = Math::Normalize(targetPos - rayOrigin); in RayFromCamera()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp1074 float targetPos = iter->second.startPos; in OnDirtyLayoutWrapperSwap() local
1090 isNeedBackwardTranslate || AutoLinearAnimationNeedReset(targetPos); in OnDirtyLayoutWrapperSwap()
1100 targetPos -= offset; in OnDirtyLayoutWrapperSwap()
1102 context->AddAfterLayoutTask([weak = WeakClaim(this), targetPos, velocity = velocity_.value_or(0.0f), in OnDirtyLayoutWrapperSwap()
1106 swiper->PlayPropertyTranslateAnimation(-targetPos, nextIndex, velocity, false); in OnDirtyLayoutWrapperSwap()
1107 swiper->PlayIndicatorTranslateAnimation(-targetPos, nextIndex); in OnDirtyLayoutWrapperSwap()
1111 currentOffset_, currentOffset_ - targetPos, iter->first, false, velocity_.value_or(0.0f)); in OnDirtyLayoutWrapperSwap()
1115 auto targetPos = firstItem.second.startPos + in OnDirtyLayoutWrapperSwap() local
1118 currentOffset_, currentOffset_ - targetPos, targetIndexValue, false, velocity_.value_or(0.0f)); in OnDirtyLayoutWrapperSwap()
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dscene_holder.cpp3125 const auto targetPos = picking_->ScreenToWorld( in RayFromCamera() local
3127 const auto direction = BASE_NS::Math::Normalize(targetPos - rayOrigin); in RayFromCamera()

Completed in 46 milliseconds