Home
last modified time | relevance | path

Searched refs:slot (Results 1 - 25 of 188) sorted by relevance

12345678

/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dnode_content.cpp22 auto slot = nodeSlot_.Upgrade(); in AttachToNode() local
23 if (slot && (slot != node)) { in AttachToNode()
38 auto slot = nodeSlot_.Upgrade(); in DetachFromNode() local
40 if (slot) { in DetachFromNode()
41 children_ = slot->GetChildren(); in DetachFromNode()
42 slot->Clean(); in DetachFromNode()
43 if (slot->IsOnMainTree()) { in DetachFromNode()
51 auto slot = nodeSlot_.Upgrade(); in AddNode() local
53 if (slot) { in AddNode()
70 auto slot = nodeSlot_.Upgrade(); RemoveNode() local
[all...]
H A Dcontent_slot_model_ng.cpp27 auto slot = ContentSlotNode::GetOrCreateContentSlot(nodeId); in Create() local
28 stack->Push(slot); in Create()
30 slot->AttachNodeContent(content); in Create()
32 slot->DetachNodeContent(); in Create()
/foundation/graphic/graphic_surface/surface/src/
H A Dproducer_surface_delegator.cpp26 GSError ProducerSurfaceDelegator::DequeueBuffer(int32_t slot, sptr<SurfaceBuffer> buffer) in DequeueBuffer() argument
31 GSError ProducerSurfaceDelegator::QueueBuffer(int32_t slot, int32_t acquireFence) in QueueBuffer() argument
41 GSError ProducerSurfaceDelegator::ClearBufferSlot(int32_t slot) in ClearBufferSlot() argument
43 (void)slot; in ClearBufferSlot()
52 void ProducerSurfaceDelegator::AddBufferLocked(const sptr<SurfaceBuffer>& buffer, int32_t slot) in AddBufferLocked() argument
55 (void)slot; in AddBufferLocked()
58 sptr<SurfaceBuffer> ProducerSurfaceDelegator::GetBufferLocked(int32_t slot) in GetBufferLocked() argument
60 (void)slot; in GetBufferLocked()
70 GSError ProducerSurfaceDelegator::CancelBuffer(int32_t slot, int32_t fenceFd) in CancelBuffer() argument
75 GSError ProducerSurfaceDelegator::DetachBuffer(int32_t slot) in DetachBuffer() argument
108 HasSlotInSet(int32_t slot) HasSlotInSet() argument
114 InsertSlotIntoSet(int32_t slot) InsertSlotIntoSet() argument
120 EraseSlotFromSet(int32_t slot) EraseSlotFromSet() argument
[all...]
/foundation/graphic/graphic_surface/surface/include/
H A Dproducer_surface_delegator.h33 GSError DequeueBuffer(int32_t slot, sptr<SurfaceBuffer> buffer);
34 GSError QueueBuffer(int32_t slot, int32_t acquireFence);
36 GSError ClearBufferSlot(int32_t slot);
38 GSError CancelBuffer(int32_t slot, int32_t fenceFd);
39 GSError DetachBuffer(int32_t slot);
54 void AddBufferLocked(const sptr<SurfaceBuffer>& buffer, int32_t slot);
55 sptr<SurfaceBuffer> GetBufferLocked(int32_t slot);
58 bool HasSlotInSet(int32_t slot);
59 void InsertSlotIntoSet(int32_t slot);
60 void EraseSlotFromSet(int32_t slot);
[all...]
/foundation/communication/wifi/wifi/base/cRPC/src/
H A Dhash_table.c92 int slot = (p->slots << 1); /* double size */ in RebuildHashTable() local
93 slot = CalcNextPrime(slot); in RebuildHashTable()
94 if (slot <= 0) { in RebuildHashTable()
97 ListNode **new_list = (ListNode **)calloc(slot, sizeof(ListNode *)); in RebuildHashTable()
103 p->slots = (uint32_t)slot; in RebuildHashTable()
125 int slot = CalcHash(p, fd); in FindContext() local
126 ListNode *t = p->list[slot]; in FindContext()
143 int slot = CalcHash(p, context->fd); in InsertHashTable() local
144 ListNode *t = p->list[slot]; in InsertHashTable()
180 int slot = CalcHash(p, context->fd); DeleteHashTable() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dflex_composed_element.cpp120 void FlexComposedElement::AddChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in AddChildWithSlot() argument
128 flexElement->UpdateChildWithSlot(nullptr, newFlexItemComponent, slot, slot); in AddChildWithSlot()
132 void FlexComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in UpdateChildWithSlot() argument
139 auto child = flexElement->GetChildBySlot(slot); in UpdateChildWithSlot()
141 flexElement->UpdateChildWithSlot(child, newFlexItemComponent, slot, slot); in UpdateChildWithSlot()
145 void FlexComposedElement::DeleteChildWithSlot(int32_t slot) in DeleteChildWithSlot() argument
152 auto child = flexElement->GetChildBySlot(slot); in DeleteChildWithSlot()
153 flexElement->UpdateChildWithSlot(child, nullptr, slot, slo in DeleteChildWithSlot()
[all...]
H A Dwater_flow_composed_element.cpp149 void WaterFlowComposedElement::AddChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in AddChildWithSlot() argument
156 waterFlow->UpdateChildWithSlot(nullptr, newComponent, slot, slot); in AddChildWithSlot()
160 void WaterFlowComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in UpdateChildWithSlot() argument
167 auto child = waterFlow->GetChildBySlot(slot); in UpdateChildWithSlot()
172 waterFlow->UpdateChildWithSlot(child, newComponent, slot, slot); in UpdateChildWithSlot()
176 void WaterFlowComposedElement::DeleteChildWithSlot(int32_t slot) in DeleteChildWithSlot() argument
183 auto child = waterFlow->GetChildBySlot(slot); in DeleteChildWithSlot()
188 waterFlow->UpdateChildWithSlot(child, nullptr, slot, slo in DeleteChildWithSlot()
[all...]
H A Dswiper_composed_element.cpp299 void SwiperComposedElement::AddChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in AddChildWithSlot() argument
306 swiperElement->UpdateChildWithSlot(nullptr, newComponent, slot, slot); in AddChildWithSlot()
310 void SwiperComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in UpdateChildWithSlot() argument
317 auto composedElement = swiperElement->GetChildBySlot(slot); in UpdateChildWithSlot()
322 auto child = GetElementChildBySlot(displayElement, slot); in UpdateChildWithSlot()
326 displayElement->UpdateChildWithSlot(child, newComponent, slot, slot); in UpdateChildWithSlot()
330 void SwiperComposedElement::DeleteChildWithSlot(int32_t slot) in DeleteChildWithSlot() argument
337 auto composedElement = swiperElement->GetChildBySlot(slot); in DeleteChildWithSlot()
[all...]
H A Dflex_composed_element.h47 void AddChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) override;
48 void UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) override;
49 void DeleteChildWithSlot(int32_t slot) override;
H A Dwater_flow_composed_element.h50 void AddChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) override;
51 void UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) override;
52 void DeleteChildWithSlot(int32_t slot) override;
H A Dnavigation_menus_composed_element.cpp26 void NavigationMenusComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in UpdateChildWithSlot() argument
29 auto child = GetElementChildBySlot(element, slot); in UpdateChildWithSlot()
H A Dnavigation_title_composed_element.cpp26 void NavigationTitleComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent) in UpdateChildWithSlot() argument
29 auto child = GetElementChildBySlot(element, slot); in UpdateChildWithSlot()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dgroup_node.h30 virtual void AddChildToGroup(const RefPtr<UINode>& children, int32_t slot = DEFAULT_NODE_SLOT) {}; in AddChildToGroup()
31 virtual void DeleteChildFromGroup(int32_t slot = DEFAULT_NODE_SLOT) {}; in DeleteChildFromGroup()
33 void FastPreviewUpdateChild(int32_t slot, const RefPtr<UINode>& newChild) override
35 DeleteChildFromGroup(slot); variable
36 AddChildToGroup(newChild, slot);
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Dmulti_composed_element.cpp45 int32_t slot = 0; in UpdateChildren() local
51 nullptr, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT); in UpdateChildren()
67 *(itChild++), component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT); in UpdateChildren()
78 int32_t slot = 0;
91 child, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT);
126 nullptr, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT);
133 nullptr, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT);
141 child, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT);
145 nullptr, component, slot++, useSlot ? countRenderNode_ + GetRenderSlot() : DEFAULT_RENDER_SLOT);
161 auto newChild = UpdateChildWithSlot(child, *(itComponentEnd++), slot
[all...]
H A Delement.cpp32 void Element::AddChild(const RefPtr<Element>& child, int32_t slot) in AddChild() argument
45 std::advance(it, slot); in AddChild()
48 child->SetSlot(slot); in AddChild()
60 RefPtr<Element> Element::GetChildBySlot(int32_t slot) in GetChildBySlot() argument
63 if (slot == (*iter)->GetSlot()) { in GetChildBySlot()
70 void Element::ChangeChildSlot(const RefPtr<Element>& child, int32_t slot) in ChangeChildSlot() argument
72 child->SetSlot(slot); in ChangeChildSlot()
74 if (slot < 0) { in ChangeChildSlot()
79 if (static_cast<size_t>(slot) < children_.size()) { in ChangeChildSlot()
81 std::advance(it, slot); in ChangeChildSlot()
188 DoUpdateChildWithNewComponent( const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot) DoUpdateChildWithNewComponent() argument
199 UpdateChildWithSlot( const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot) UpdateChildWithSlot() argument
266 Mount(const RefPtr<Element>& parent, int32_t slot, int32_t renderSlot) Mount() argument
276 parent->AddChild(AceType::Claim(this), slot); Mount() local
377 InflateComponent(const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot) InflateComponent() argument
383 retakeElement->Mount(AceType::Claim(this), slot, renderSlot); InflateComponent() local
393 newChild->Mount(AceType::Claim(this), slot, renderSlot); InflateComponent() local
[all...]
H A Delement.h47 void AddChild(const RefPtr<Element>& child, int32_t slot = DEFAULT_ELEMENT_SLOT);
49 RefPtr<Element> GetChildBySlot(int32_t slot);
54 RefPtr<Element> InflateComponent(const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot);
56 const RefPtr<Element>& parent, int32_t slot = DEFAULT_ELEMENT_SLOT, int32_t renderSlot = DEFAULT_RENDER_SLOT);
60 const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot);
165 void SetSlot(int32_t slot) in SetSlot() argument
167 slot_ = slot; in SetSlot()
175 void SetRenderSlot(int32_t slot) in SetRenderSlot() argument
177 renderSlot_ = slot; in SetRenderSlot()
286 const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_
[all...]
/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dproducer_surface_delegator_test.cpp121 int32_t slot = 1; in HWTEST_F() local
125 GSError ret = qwe->QueueBuffer(slot, acquireFence); in HWTEST_F()
139 int32_t slot = 1; in HWTEST_F() local
141 GSError ret = qwe->DequeueBuffer(slot, pBuffer); in HWTEST_F()
155 int32_t slot = 1; in HWTEST_F() local
158 GSError ret = qwe->QueueBuffer(slot, acquireFence); in HWTEST_F()
187 int32_t slot = -1; in HWTEST_F() local
188 GSError ret = qwe->DetachBuffer(slot); in HWTEST_F()
202 int32_t slot = -1; in HWTEST_F() local
204 GSError ret = qwe->CancelBuffer(slot, fenceF in HWTEST_F()
218 int32_t slot = -1; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_node.h36 void AddChild(const RefPtr<UINode>& child, int32_t slot = DEFAULT_NODE_SLOT, bool silently = false,
39 if (slot == DEFAULT_NODE_SLOT) {
40 UINode::AddChild(child, slot - specialItemCount_, silently, addDefaultTransition, addModalUiextension);
42 UINode::AddChild(child, slot, silently, addDefaultTransition, addModalUiextension);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_node.cpp42 void StepperNode::AddChildToGroup(const RefPtr<UINode>& child, int32_t slot) in AddChildToGroup() argument
47 child->MountToParent(swiperNode, slot); in AddChildToGroup()
51 void StepperNode::DeleteChildFromGroup(int32_t slot) in DeleteChildFromGroup() argument
56 swiper->RemoveChildAtIndex(slot); in DeleteChildFromGroup()
/foundation/arkui/ace_engine/frameworks/core/components_part_upd/foreach/
H A Dforeach_element.cpp29 // sort lift of child Elements by their slot in CompareSlots()
41 // 1. step map Elements by their slot, because elmts is not sorted by slot in MakeElementByIdMap()
49 // 2. map elmts by their id. Note ids list is in slot order in MakeElementByIdMap()
51 int slot = 0; in MakeElementByIdMap() local
53 auto elmtIter = elmtsBySlotMap.find(slot); in MakeElementByIdMap()
57 slot++; in MakeElementByIdMap()
78 oldChildElements.sort(CompareSlots); // needs sorting by their slot to match the order of oldIds array in RemoveUnusedChildElementsFromRegistery()
145 int32_t slot = ((*firstChildElement) != nullptr) ? (*firstChildElement)->GetSlot() : 0; in LocalizedUpdate() local
150 // insert component into 'slot' in LocalizedUpdate()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_content.cpp34 void RSRenderContent::DrawPropertyDrawable(RSPropertyDrawableSlot slot, RSPaintFilterCanvas& canvas) const in DrawPropertyDrawable() argument
36 auto& drawablePtr = propertyDrawablesVec_[static_cast<size_t>(slot)]; in DrawPropertyDrawable()
49 auto drawFunc = [sharedPtr = shared_from_this(), slot](Drawing::Canvas* canvas, const Drawing::Rect* rect) -> void { in DrawPropertyDrawable()
51 sharedPtr->DrawPropertyDrawable(slot, *canvasPtr); in DrawPropertyDrawable()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/
H A Dentity_manager.cpp124 auto& slot = entities_[id]; in Create() local
125 // if the slot isn't free report a dead entity in Create()
126 if (slot.state != EntityState::State::FREE) { in Create()
127 const auto deadEntity = MakeEntityId(slot.generation, id); in Create()
131 slot.counter = nullptr; // NOTE: could push to a pool and recycle used often in Create()
132 ++slot.generation; in Create()
134 slot.state = EntityState::State::ALIVE; in Create()
135 result = MakeEntityId(slot.generation, id); in Create()
154 auto& slot = entities_[id]; in CreateReferenceCounted() local
156 // if the slot is in CreateReferenceCounted()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_tool_bar.cpp35 void DOMToolBar::OnChildNodeAdded(const RefPtr<DOMNode>& child, int32_t slot) in OnChildNodeAdded() argument
37 AddChildNode(child, slot, false); in OnChildNodeAdded()
59 void DOMToolBar::AddChildNode(const RefPtr<DOMNode>& child, int32_t slot, bool isRebuild) in AddChildNode() argument
99 if (slot == TOOL_BAR_INVALID_INDEX) { in AddChildNode()
102 toolBarChild_->InsertChild(slot, child->GetRootComponent()); in AddChildNode()
H A Ddom_svg.cpp38 void DOMSvg::OnChildNodeAdded(const RefPtr<DOMNode>& child, int32_t slot) in OnChildNodeAdded() argument
44 svgComponent_->InsertChild(slot, child->GetSpecializedComponent()); in OnChildNodeAdded()
46 svgComponent_->InsertChild(slot, child->GetRootComponent()); in OnChildNodeAdded()
H A Ddom_svg_g.cpp38 void DOMSvgG::OnChildNodeAdded(const RefPtr<DOMNode>& child, int32_t slot) in OnChildNodeAdded() argument
44 gComponent_->InsertChild(slot, child->GetSpecializedComponent()); in OnChildNodeAdded()
46 gComponent_->InsertChild(slot, child->GetRootComponent()); in OnChildNodeAdded()

Completed in 9 milliseconds

12345678