Home
last modified time | relevance | path

Searched refs:top (Results 1 - 25 of 1028) sorted by relevance

12345678910>>...42

/foundation/arkui/ace_engine/frameworks/core/common/
H A Dfocus_animation_manager.cpp30 auto focusAnimation = useRoot_ ? rootFocusAnimationStack_.top().Upgrade() : focusAnimationStack_.top().Upgrade(); in SetFocusAnimationProperties()
33 auto renderFocusAnimation = focusAnimationStack_.top().Upgrade(); in SetFocusAnimationProperties()
51 auto focusAnimation = useRoot_ ? rootFocusAnimationStack_.top().Upgrade() : focusAnimationStack_.top().Upgrade(); in CancelFocusAnimation()
65 auto focusAnimation = rootFocusAnimationStack_.top().Upgrade(); in PushFocusAnimationElement()
73 auto focusAnimation = focusAnimationStack_.top().Upgrade(); in PushFocusAnimationElement()
89 auto focusAnimation = focusAnimationStack_.top().Upgrade(); in PopFocusAnimationElement()
109 auto focusAnimation = focusAnimationStack_.top().Upgrade(); in StartFocusAnimation()
119 auto focusAnimation = focusAnimationStack_.top() in StopFocusAnimation()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dedge.h30 // Types of padding and margin. Contains four directions: left, top, right and bottom.
38 Edge(double left, double top, double right, double bottom, DimensionUnit unit = DimensionUnit::PX) in Edge() argument
39 : left_(Dimension(left, unit)), top_(Dimension(top, unit)), right_(Dimension(right, unit)), in Edge()
41 Edge(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom, in Edge() argument
42 DimensionUnit unit = DimensionUnit::CALC) : left_(CalcDimension(left, unit)), top_(CalcDimension(top, unit)), in Edge()
44 Edge(const CalcDimension& left, const CalcDimension& top, const CalcDimension& right, const CalcDimension& bottom) in Edge() argument
45 : left_(left), top_(top), right_(right), bottom_(bottom) {} in Edge()
46 Edge(const Dimension& left, const Dimension& top, const Dimension& right, const Dimension& bottom, in Edge() argument
48 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge()
50 Edge(const CalcDimension& left, const CalcDimension& top, cons in Edge() argument
99 SetTop(const AnimatableDimension& top) SetTop() argument
104 SetTop(const CalcDimension& top) SetTop() argument
110 SetTop(const Dimension& top) SetTop() argument
203 EdgePx(double left, double top, double right, double bottom) EdgePx() argument
204 EdgePx(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom) EdgePx() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/transaction/
H A Drs_transaction_proxy.cpp197 implicitCommonTransactionDataStack_.top()->MarkNeedSync(); in Begin()
198 implicitRemoteTransactionDataStack_.top()->MarkNeedSync(); in Begin()
210 if (renderServiceClient_ != nullptr && !implicitRemoteTransactionDataStack_.top()->IsEmpty()) { in Commit()
211 implicitRemoteTransactionDataStack_.top()->timestamp_ = timestamp; in Commit()
212 renderServiceClient_->CommitTransaction(implicitRemoteTransactionDataStack_.top()); in Commit()
223 if (renderThreadClient_ != nullptr && (!implicitCommonTransactionDataStack_.top()->IsEmpty() || in CommitSyncTransaction()
224 implicitCommonTransactionDataStack_.top()->IsNeedSync())) { in CommitSyncTransaction()
225 implicitCommonTransactionDataStack_.top()->timestamp_ = timestamp; in CommitSyncTransaction()
226 implicitCommonTransactionDataStack_.top()->abilityName_ = abilityName; in CommitSyncTransaction()
227 implicitCommonTransactionDataStack_.top() in CommitSyncTransaction()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_implicit_animator.cpp79 [[maybe_unused]] const auto& [protocol, curve, unused, unused_repeatCallback] = globalImplicitParams_.top(); in OpenImplicitAnimation()
92 [[maybe_unused]] const auto& [protocol, curve, callback, unused_repeatCallback] = globalImplicitParams_.top(); in OpenImplicitAnimation()
115 auto protocol = std::get<RSAnimationTimingProtocol>(globalImplicitParams_.top()); in ProcessEmptyAnimations()
140 if (implicitAnimationParams_.top()->GetType() == ImplicitAnimationParamType::CANCEL) { in CloseImplicitAnimation()
141 std::static_pointer_cast<RSImplicitCancelAnimationParam>(implicitAnimationParams_.top())->SyncProperties(); in CloseImplicitAnimation()
144 const auto& finishCallback = std::get<const std::shared_ptr<AnimationFinishCallback>>(globalImplicitParams_.top()); in CloseImplicitAnimation()
145 auto& currentAnimations = implicitAnimations_.top(); in CloseImplicitAnimation()
146 auto& currentKeyframeAnimations = keyframeAnimations_.top(); in CloseImplicitAnimation()
154 [[maybe_unused]] auto& [isDurationKeyframe, totalDuration, currentDuration] = durationKeyframeParams_.top(); in CloseImplicitAnimation()
168 interactiveImplicitAnimations_.top() in CloseImplicitAnimation()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmeasure_property.h373 std::optional<T> top; member
382 top = padding; in SetEdges()
390 top = topValue; in SetEdges()
396 return (left == value.left) && (right == value.right) && (top == value.top) && (bottom == value.bottom); in operator ==()
414 top = value.top; in UpdateWithCheck()
432 if (value.top.has_value() && top != value.top) { in UpdateLocalizedPadding()
500 std::optional<float> top; global() member
[all...]
H A Dmeasure_utils.cpp113 auto top = ConvertToPx(padding.top, scaleProperty, percentReference); in ConvertToPaddingPropertyF() local
124 if (top.has_value()) { in ConvertToPaddingPropertyF()
125 top = floor(top.value()); in ConvertToPaddingPropertyF()
138 if (top.has_value()) { in ConvertToPaddingPropertyF()
139 top = std::max(top.value(), 0.0f); in ConvertToPaddingPropertyF()
145 return PaddingPropertyF { left, right, top, bottom }; in ConvertToPaddingPropertyF()
174 auto top in ConvertToBorderWidthPropertyF() local
199 auto top = ConvertToPx(padding.top, scaleProperty, selfSize.Height()); UpdatePaddingPropertyF() local
502 ConvertToCalcPaddingProperty(const std::optional<CalcDimension>& top, const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, const std::optional<CalcDimension>& right) ConvertToCalcPaddingProperty() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dgesture_processor.h65 auto gesture = gestureStack_.top(); in PopGesture()
68 auto gestureGroup = AceType::DynamicCast<GestureGroup>(gestureStack_.top()); in PopGesture()
73 auto container = AceType::DynamicCast<SingleChildGesture>(gestureStack_.top()); in PopGesture()
84 return gestureStack_.top(); in TopGesture()
93 auto gesture = gestureStack_.top(); in FinishGesture()
110 auto gesture = gestureStackNG_.top(); in PopGestureNG()
113 auto gestureGroup = AceType::DynamicCast<NG::GestureGroup>(gestureStackNG_.top()); in PopGestureNG()
124 return gestureStackNG_.top(); in TopGestureNG()
133 auto gesture = gestureStackNG_.top(); in FinishGestureNG()
/foundation/systemabilitymgr/samgr_lite/samgr/source/
H A Dcommon.c36 vector->top = 0; in VECTOR_Clear()
47 if (vector->top >= vector->max) { in VECTOR_Add()
50 for (i = vector->top - (int16)1; i >= 0; --i) { in VECTOR_Add()
78 vector->data[vector->top] = element; in VECTOR_Add()
79 return vector->top++; in VECTOR_Add()
84 if (vector == NULL || vector->top <= index || index < 0) { in VECTOR_At()
93 if (vector == NULL || vector->top <= index || index < 0) { in VECTOR_Swap()
119 for (i = 0; i < vector->top; ++i) { in VECTOR_FindByKey()
145 return vector->top; in VECTOR_Size()
153 return vector->top in VECTOR_Num()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/
H A Drect_fuzzer.cpp40 float top = GetObject<float>(); in RectFuzzTest000() local
43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000()
45 OH_Drawing_RectSetTop(nullptr, top); in RectFuzzTest000()
46 OH_Drawing_RectSetTop(rect, top); in RectFuzzTest000()
81 float top = GetObject<float>(); in RectFuzzTest001() local
84 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001()
85 OH_Drawing_Rect *rect1 = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_range_adapter.h67 int32_t base, int32_t limit, int32_t* top, int32_t* stack) in CompareLessThreshold()
82 if (top > stack) { in CompareLessThreshold()
83 top -= TWO_STEP; in CompareLessThreshold()
84 base = top[0]; in CompareLessThreshold()
85 limit = top[1]; in CompareLessThreshold()
147 int32_t* top = stack; in QuickSort() local
177 top[0] = baseLimit; in QuickSort()
178 top[1] = jIndex; in QuickSort()
181 top[0] = iIndex; in QuickSort()
182 top[ in QuickSort()
66 CompareLessThreshold(Array& arr, Less less, int32_t iIndex, int32_t jIndex, int32_t base, int32_t limit, int32_t* top, int32_t* stack) CompareLessThreshold() argument
[all...]
/foundation/arkui/ui_lite/frameworks/layout/
H A Dgrid_layout.cpp54 int16_t top; in LayoutHorizontal() local
69 top = child->GetStyle(STYLE_MARGIN_TOP); in LayoutHorizontal()
74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutHorizontal()
88 int16_t top; in LayoutVertical() local
103 top = child->GetStyle(STYLE_MARGIN_TOP); in LayoutVertical()
108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutVertical()
H A Dflex_layout.cpp103 int16_t top; in CalValidLength() local
115 top = child->GetStyle(STYLE_MARGIN_TOP); in CalValidLength()
117 totalValidLength += (child->GetRelativeRect().GetHeight() + top + bottom); in CalValidLength()
155 int16_t top; in GetRowMaxHeight() local
168 top = child->GetStyle(STYLE_MARGIN_TOP); in GetRowMaxHeight()
177 height = MATH_MAX(height, child->GetRelativeRect().GetHeight() + top + bottom); in GetRowMaxHeight()
230 int16_t top = child->GetStyle(STYLE_MARGIN_TOP); in GetCrossAxisPosY() local
237 posY = top + offset; in GetCrossAxisPosY()
251 posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top in GetCrossAxisPosY()
319 int16_t top; CalColumnCount() local
377 int16_t top; GetColumnsHeight() local
475 int16_t top = child->GetStyle(STYLE_MARGIN_TOP); LayoutVertical() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/
H A Dtest_common.h61 float top; member
64 bool Contains(float x, float y) const { return x >= left && x < right && y >= top && y < bottom; } in Contains()
66 float Height(){ return (bottom - top); } in Height()
68 float CenterY(){ return (bottom - top) / 2; } // 2 for mid in CenterY()
72 float t = top + dy; in Inset()
79 top = t; in Inset()
87 top += dy; in Offset()
94 top = y; in SetXYWH()
/foundation/ability/ability_runtime/test/unittest/ability_extension_module_loader_test/
H A Dability_extension_module_loader_test.cpp118 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local
119 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F()
133 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local
134 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F()
135 EXPECT_EQ(requestInfo->CreateJsWindowRect(nullptr, left, top, width, height), nullptr); in HWTEST_F()
148 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local
149 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F()
163 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local
164 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dposition_param.h37 std::pair<AnimatableDimension, bool> top = { AnimatableDimension(0.0, DimensionUnit::PX), false }; member
44 std::optional<Dimension> top; member
52 void SetTop(const CalcDimension& top) in SetTop()
54 this->top = top; in SetTop()
74 return ((this->top == rhs.top) && (this->left == rhs.left) && (this->bottom == rhs.bottom) && in operator ==()
81 str.append("top: [").append(top.has_value() ? top in ToString()
[all...]
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Drender_component.h114 virtual void SetTop(const Dimension& top) in SetTop() argument
116 positionParam_.top.first = AnimatableDimension(top); in SetTop()
117 positionParam_.top.second = true; in SetTop()
120 virtual void SetTop(const AnimatableDimension& top) in SetTop() argument
122 positionParam_.top.first = top; in SetTop()
123 positionParam_.top.second = true; in SetTop()
150 positionParam_.top.second = hasTop; in SetHasTop()
170 return positionParam_.top in GetTop()
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/
H A Dsnapshot.h67 Rect(int32_t left, int32_t top, int32_t right, int32_t bottom) in Rect()
70 this->top = top; in Rect()
77 if (!parcel.WriteInt32(left) || !parcel.WriteInt32(top) ||
87 int32_t top = parcel.ReadInt32(); in Unmarshalling() local
90 auto rectPtr = new Rect(left, top, right, bottom); in Unmarshalling()
95 int32_t top = 0; member
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
H A Dview_stack_processor.cpp66 auto& wrappingComponentsMap = componentsStack_.top(); in GetRootComponent()
79 auto& wrappingComponentsMap = componentsStack_.top(); in GetCoverageComponent()
93 auto& wrappingComponentsMap = componentsStack_.top(); in GetPopupComponent()
111 auto& wrappingComponentsMap = componentsStack_.top(); in GetMenuComponent()
128 auto& wrappingComponentsMap = componentsStack_.top(); in GetPositionedComponent()
140 auto& wrappingComponentsMap = componentsStack_.top(); in GetFlexItemComponent()
152 auto& wrappingComponentsMap = componentsStack_.top(); in GetStepperItemComponent()
164 auto& wrappingComponentsMap = componentsStack_.top(); in GetStepperDisplayComponent()
176 auto& wrappingComponentsMap = componentsStack_.top(); in GetStepperScrollComponent()
197 auto& wrappingComponentsMap = componentsStack_.top(); in GetBoxComponent()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow_sections.cpp26 std::optional<CalcDimension> top; in SetMarginProperty() local
28 JSViewAbstract::ParseMarginOrPaddingCorner(paddingObj, top, bottom, left, right); in SetMarginProperty()
30 if (top.has_value()) { in SetMarginProperty()
31 if (top.value().Unit() == DimensionUnit::CALC) { in SetMarginProperty()
32 margin.top = NG::CalcLength(top.value().CalcValue()); in SetMarginProperty()
34 margin.top = NG::CalcLength(top.value()); in SetMarginProperty()
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp31 parcel.WriteInt32(waterfallDisplayAreaRects_.top.posX_) && in Marshalling()
32 parcel.WriteInt32(waterfallDisplayAreaRects_.top.posY_) && in Marshalling()
33 parcel.WriteUint32(waterfallDisplayAreaRects_.top.width_) && in Marshalling()
34 parcel.WriteUint32(waterfallDisplayAreaRects_.top.height_) && in Marshalling()
104 parcel.ReadInt32(waterfallDisplayAreaRects.top.posX_) && in ReadWaterfallDisplayAreaRects()
105 parcel.ReadInt32(waterfallDisplayAreaRects.top.posY_) && in ReadWaterfallDisplayAreaRects()
106 parcel.ReadUint32(waterfallDisplayAreaRects.top.width_) && in ReadWaterfallDisplayAreaRects()
107 parcel.ReadUint32(waterfallDisplayAreaRects.top.height_) && in ReadWaterfallDisplayAreaRects()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/
H A Drsgpuoverdrawcanvaslistener_fuzzer.cpp96 float top = GetData<float>(); in DoRect() local
98 Drawing::Rect rect(left, right, top, bottom); in DoRect()
111 float top = GetData<float>(); in DoDrawRoundRect() local
113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect()
131 float top = GetData<float>(); in DoDrawNestedRoundRect() local
133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect()
141 top = GetData<float>(); in DoDrawNestedRoundRect()
143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect()
161 float top = GetData<float>(); in DoDrawArc() local
163 Drawing::Rect rect(left, right, top, botto in DoDrawArc()
180 float top = GetData<float>(); DoDrawPie() local
199 float top = GetData<float>(); DoDrawOval() local
333 float top = GetData<float>(); DoDrawImageRect() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscpuoverdrawcanvaslistener_fuzzer/
H A Drscpuoverdrawcanvaslistener_fuzzer.cpp96 float top = GetData<float>(); in DoRect() local
98 Drawing::Rect rect(left, right, top, bottom); in DoRect()
111 float top = GetData<float>(); in DoDrawRoundRect() local
113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect()
131 float top = GetData<float>(); in DoDrawNestedRoundRect() local
133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect()
141 top = GetData<float>(); in DoDrawNestedRoundRect()
143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect()
161 float top = GetData<float>(); in DoDrawArc() local
163 Drawing::Rect rect(left, right, top, botto in DoDrawArc()
180 float top = GetData<float>(); DoDrawPie() local
199 float top = GetData<float>(); DoDrawOval() local
346 float top = GetData<float>(); DoDrawImageRect() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dgeometry_node.h77 offset -= OffsetF(margin_->left.value_or(0), margin_->top.value_or(0)); in GetMarginFrameOffset()
91 offset -= OffsetF(margin_->left.value_or(0), margin_->top.value_or(0)); in GetMarginFrameRect()
101 offset += OffsetF(margin_->left.value_or(0), margin_->top.value_or(0)); in SetMarginFrameOffset()
166 offset += margin_->top.value_or(0); in SetMarginFrameOffsetY()
190 offset += OffsetF(padding_->left.value_or(0), padding_->top.value_or(0)); in GetPaddingOffset()
206 offset += OffsetF(padding_->left.value_or(0), padding_->top.value_or(0)); in GetPaddingRect()
282 if (margin.top) { in UpdateMargin()
283 margin_->top = margin.top; in UpdateMargin()
303 if (padding.top) { in UpdatePaddingWithBorder()
[all...]
H A Dview_stack_processor.cpp52 return elementsStack_.top(); in GetMainElementNode()
69 // for custom node and atomic node, just pop top node when next node is coming. in ShouldPopImmediately()
121 auto top = GetMainElementNode(); in PopContainer() local
123 if (top && !top->IsAtomicNode()) { in PopContainer()
128 while (top && (top->IsAtomicNode())) { in PopContainer()
133 top = GetMainElementNode(); in PopContainer()
143 auto element = elementsStack_.top(); in Finish()
212 size_t length = keyStack_.top(); in PopKey()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drender_surface_impl.cpp115 bool RenderSurfaceImpl::SetExtSurfaceBoundsSync(int32_t left, int32_t top, int32_t width, int32_t height) in SetExtSurfaceBoundsSync() argument
121 double y = (height - lastRect_.Height()) / 2 + top; in SetExtSurfaceBoundsSync()
128 rect.SetTop(top); in SetExtSurfaceBoundsSync()
139 void RenderSurfaceImpl::SetExtSurfaceBounds(int32_t left, int32_t top, int32_t width, int32_t height) in SetExtSurfaceBounds() argument
141 LOGI("RenderSurfaceImpl::SetExtSurfaceBounds (%{public}d, %{public}d) - (%{public}d x %{public}d)", left, top, in SetExtSurfaceBounds()
146 [surface = extSurface_, id = surfaceId_, left, top, width, height]() { in SetExtSurfaceBounds()
148 surface->SetBounds(id, left, top, width, height); in SetExtSurfaceBounds()

Completed in 13 milliseconds

12345678910>>...42