/ohos5.0/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | flex_layout.cpp | 107 while (child != nullptr) { in CalValidLength() 121 child = child->GetNextSibling(); in CalValidLength() 145 child = child->GetNextSibling(); in CalRowCount() 181 child = child->GetNextSibling(); in GetRowMaxHeight() 218 child = child->GetNextSibling(); in GetRowsWidth() 305 child = child->GetNextSibling(); in LayoutHorizontal() 335 child = child->GetNextSibling(); in CalColumnCount() 369 child = child->GetNextSibling(); in GetColumnMaxWidth() 406 child = child->GetNextSibling(); in GetColumnsHeight() 485 child->SetPosition(posX - child->GetStyle(STYLE_MARGIN_LEFT), in LayoutVertical() [all …]
|
H A D | grid_layout.cpp | 24 UIView* child = childrenHead_; in LayoutChildren() local 30 while (child != nullptr) { in LayoutChildren() 32 child = child->GetNextSibling(); in LayoutChildren() 51 UIView* child = childrenHead_; in LayoutHorizontal() local 62 if (child == nullptr) { in LayoutHorizontal() 66 child->ReMeasure(); in LayoutHorizontal() 78 child = child->GetNextSibling(); in LayoutHorizontal() 85 UIView* child = childrenHead_; in LayoutVertical() local 96 if (child == nullptr) { in LayoutVertical() 100 child->ReMeasure(); in LayoutVertical() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | ui_node.cpp | 129 CHECK_NULL_VOID(child); in AddChild() 151 CHECK_NULL_VOID(child); in AddChildAfter() 157 (*it)->GetId(), child->GetTag().c_str(), child->GetId()); in AddChildAfter() 180 (*it)->GetId(), child->GetTag().c_str(), child->GetId()); in AddChildBefore() 350 if (!child) { in UpdateConfigurationUpdate() 431 if ((child->GetDepth() > 0 && child->GetDepth() < INT32_MAX) || child == current) { in DetectLoop() 697 if (child) { in UpdateChildrenFreezeState() 1175 if (child && !child->RenderCustomChild(deadline)) { in RenderCustomChild() 1317 if (!child) { in SetChildrenInDestroying() 1330 [child](const auto& tup) { return std::get<0>(tup) == child; }); in AddDisappearingChild() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | component_group.h | 66 child->SetParent(nullptr); in ClearChildren() 73 if (!child) { in InsertChild() 85 if (!child) { in AppendChild() 89 children_.emplace_back(child); in AppendChild() 90 OnChildAppended(child); in AppendChild() 95 if (!child) { in AppendChildDirectly() 99 children_.emplace_back(child); in AppendChildDirectly() 104 if (!child) { in RemoveChildDirectly() 108 child->SetParent(nullptr); in RemoveChildDirectly() 119 if (child) { in RemoveChildByComposedId() [all …]
|
H A D | element.cpp | 34 if (!child) { in AddChild() 48 child->SetSlot(slot); in AddChild() 49 Apply(child); in AddChild() 54 if (child) { in RemoveChild() 123 if (child && !child->parent_.Invalid()) { in DeactivateChild() 127 context->AddDeactivateElement(child->GetRetakeId(), child); in DeactivateChild() 145 child->Detached(); in DetachChild() 195 child->Rebuild(); in DoUpdateChildWithNewComponent() 196 return child; in DoUpdateChildWithNewComponent() 209 if (!child) { in UpdateChildWithSlot() [all …]
|
H A D | flutter_render_context.cpp | 53 if (!ShouldPaint(child)) { in PaintChild() 66 child->ClearAccessibilityRect(); in PaintChild() 71 if (child->GetRenderLayer()) { in PaintChild() 75 if (child->NeedRender()) { in PaintChild() 84 context.Repaint(child); in PaintChild() 87 child->NotifyPaintFinish(); in PaintChild() 100 SetOffSet(child, layer, pos, name); in PaintChild() 111 if (!child || !layer) { in SetOffSet() 120 auto parent = child->GetParent(); in SetOffSet() 182 if (!ShouldPaint(child)) { in IsIntersectWith() [all …]
|
H A D | rosen_render_context.cpp | 66 if (!ShouldPaint(child)) { in PaintChild() 78 child->ClearAccessibilityRect(); in PaintChild() 83 auto childRSNode = child->GetRSNode(); in PaintChild() 88 if (child->NeedRender()) { in PaintChild() 96 context.Repaint(child); in PaintChild() 99 child->NotifyPaintFinish(); in PaintChild() 177 if (!ShouldPaint(child)) { in IsIntersectWith() 184 child->ClearAccessibilityRect(); in IsIntersectWith() 273 for (auto& child : childNodes_) { in UpdateChildren() local 280 for (auto& child : childNodes_) { in UpdateChildren() local [all …]
|
H A D | single_child.h | 29 explicit SingleChild(const RefPtr<Component>& child) : child_(child) {} in SingleChild() argument 37 void SetChild(const RefPtr<Component>& child) in SetChild() argument 39 SetChildDirectly(child); in SetChild() 40 if (child) { in SetChild() 41 OnChildAdded(child); in SetChild() 45 void SetChildDirectly(const RefPtr<Component>& child) in SetChildDirectly() argument 52 child_ = child; in SetChildDirectly() 55 if (child) { in SetChildDirectly() 57 child->SetParent(WeakClaim(parent)); in SetChildDirectly() 61 virtual void OnChildAdded(const RefPtr<Component>& child) {} in OnChildAdded() argument
|
H A D | sole_child_component.h | 30 explicit SoleChildComponent(const RefPtr<Component>& child) : SingleChild(child) {} in SoleChildComponent() argument 41 auto child = GetChild(); in SetUpdateType() local 42 if (child) { in SetUpdateType() 43 child->SetUpdateType(updateType); in SetUpdateType() 50 auto child = GetChild(); in SetDisabledStatus() local 51 if (child) { in SetDisabledStatus() 52 child->SetDisabledStatus(disabledStatus); in SetDisabledStatus() 59 auto child = GetChild(); in SetTextDirection() local 60 if (child) { in SetTextDirection() 61 child->SetTextDirection(direction); in SetTextDirection()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | process.rs | 70 assert!(child.id().is_some()); in sdv_process_spawn_test() 75 assert!(child.id().is_none()); in sdv_process_spawn_test() 93 let mut child = Command::new("rev") in sdv_process_child_stdio_test() localVariable 184 let child = command.spawn(); in sdv_process_drop_test() localVariable 185 assert!(child.is_ok()); in sdv_process_drop_test() 186 drop(child.unwrap()); in sdv_process_drop_test() 190 let child = command.spawn(); in sdv_process_drop_test() localVariable 191 assert!(child.is_ok()); in sdv_process_drop_test() 192 drop(child.unwrap()); in sdv_process_drop_test() 221 drop(child); in sdv_process_stdio_test() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | flex_layout_algorithm.cpp | 156 if (child && child->GetGeometryNode() && child->GetGeometryNode()->GetMargin()) { in GetMainAxisMargin() 270 child && child->GetHostNode() && child->GetHostNode()->GetLayoutProperty() && in TravelChildrenFlexProps() 349 if (child.layoutWrapper && child.layoutWrapper->GetHostNode() && in MeasureAndCleanMagicNodes() 517 if (child.layoutWrapper && child.layoutWrapper->GetHostNode() && in MeasureAndCleanMagicNodes() 707 auto child = *iter; in SecondaryMeasureByProperty() local 724 auto child = *iter; in SecondaryMeasureByProperty() local 778 if (!child) { in CheckBlankAndKeepMin() 1046 if (!child->IsOutOfLayout() && child->IsActive()) { in Layout() 1047 child->Layout(); in Layout() 1091 if (child->IsOutOfLayout() || !child->IsActive()) { in PlaceChildren() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ui_session/ |
H A D | ui_session_json_util.cpp | 50 cJSON* child = cJSON_CreateString(value); in Put() local 51 if (child == nullptr) { in Put() 54 cJSON_AddItemToObject(object_, key, child); in Put() 94 if (child == nullptr) { in Put() 108 if (child == nullptr) { in Put() 126 cJSON* child = cJSON_CreateNumber(value); in Put() local 127 if (child == nullptr) { in Put() 140 cJSON* child = cJSON_CreateBool(value); in Put() local 141 if (child == nullptr) { in Put() 155 if (child == nullptr) { in Replace() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/ |
H A D | child.rs | 47 child: StdChild, in new() 80 ChildState::Pending(child) => Some(child.id()), in id() 173 let res = child.kill(); in start_kill() 223 ChildState::Pending(child) => { in wait() 224 let res = child.await; in wait() 253 ChildState::Pending(child) => { in try_wait() 254 let res = child.try_wait(); in try_wait() 317 let _ = child.kill(); in drop() 458 assert!(!child.kill_on_drop); in ut_process_child_new_test() 516 drop(child); in ut_process_stdio_test() [all …]
|
H A D | command.rs | 334 let stdin = child in spawn() 340 let stdout = child in spawn() 346 let stderr = child in spawn() 382 let child = self.spawn(); in output() localVariable 409 let child = self.spawn(); in status() localVariable 412 let mut child = child?; in status() localVariable 418 child.wait().await in status() 732 assert!(child.is_ok()); in ut_process_drop_test() 733 drop(child.unwrap()); in ut_process_drop_test() 738 assert!(child.is_ok()); in ut_process_drop_test() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stack/ |
H A D | stack_element.cpp | 82 [child](const ToastInfo& toast) { return toast.child == child; })) { in HasOverlayChild() 156 auto child = children_.end(); in PopInstant() local 157 if (child != children_.begin()) { in PopInstant() 158 child--; in PopInstant() 236 for (auto child = (++children_.rbegin()); child != children_.rend(); ++child) { in PerformPushChild() local 348 if (child && child->GetId() == id) { in PerformPopPopup() 370 child->ApplyOptions(); in PerformPopPopup() 418 auto child = children_.end(); in PerformDirectPop() local 420 child--; in PerformDirectPop() 422 …toastStack_.begin(), toastStack_.end(), [child](const ToastInfo& toast) { return toast.child == *c… in PerformDirectPop() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | form_utils_impl.cpp | 46 auto child = params->GetChild(); in RouterEvent() local 47 while (child->IsValid()) { in RouterEvent() 48 auto key = child->GetKey(); in RouterEvent() 49 if (child->IsNull()) { in RouterEvent() 51 } else if (child->IsString()) { in RouterEvent() 58 child = child->GetNext(); in RouterEvent() 126 auto child = params->GetChild(); in BackgroundEvent() local 127 while (child->IsValid()) { in BackgroundEvent() 128 auto key = child->GetKey(); in BackgroundEvent() 129 if (child->IsNull()) { in BackgroundEvent() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/ |
H A D | linear_layout_utils.cpp | 103 offset = parent - child; in CalculateCrossOffset() 106 offset = (parent - child) / 2; in CalculateCrossOffset() 153 for (auto& child : linearMeasureProperty.relativeNodes) { in Measure() local 154 child->Measure(childConstraint); in Measure() 178 child->Measure(childConstraint); in Measure() 225 for (const auto& child : children) { in Layout() local 242 for (const auto& child : children) { in Layout() local 264 for (const auto& child : children) { in LayoutCondition() local 293 for (const auto& child : children) { in LayoutCondition() local 314 for (const auto& child : children) { in LayoutCondition() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | recognizer_group.cpp | 33 for (const auto& child : recognizers_) { in OnBeginGestureReferee() local 34 if (child) { in OnBeginGestureReferee() 44 for (const auto& child : recognizers_) { in CreateGestureFromRecognizer() local 45 if (!child) { in CreateGestureFromRecognizer() 58 for (const auto& child : recognizers_) { in OnFinishGestureReferee() local 59 if (child) { in OnFinishGestureReferee() 73 for (const auto& child : recognizers) { in AddChildren() local 74 if (child && !Existed(child) && child->SetGestureGroup(AceType::WeakClaim(this))) { in AddChildren() 172 if (child) { in OnResetStatus() 240 if (child) { in CleanRecognizerState() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll_bar/ |
H A D | render_scroll_bar.cpp | 103 auto child = GetChildren().front(); in HandleDragStart() local 104 if (!child) { in HandleDragStart() 114 if (!child) { in HandleDragUpdate() 123 child->SetPosition(Offset(positionX, child->GetPosition().GetY())); in HandleDragUpdate() 134 child->SetPosition(Offset(child->GetPosition().GetX(), positionY)); in HandleDragUpdate() 174 auto child = GetLastChild(); in InitChildPosition() local 175 if (!child) { in InitChildPosition() 268 childRect_ = Rect(child->GetPosition(), child->GetLayoutSize()); in PerformLayout() 275 auto child = GetLastChild(); in OnPaintFinish() local 276 if (child) { in OnPaintFinish() [all …]
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | flex-development-performance-boost.md | 4 …child elements are automatically laid out to create a flexible layout. By default, the child eleme… 7 …child elements expand or shrink as required in a second layout to fit in the container. This can h… 23 - If the total main axis size of the child elements is greater than the main axis size of the conta… 29 The child elements in the flex container have **displayPriority** set, but not **layoutWeight**. 32 …child elements are laid out by group in descending order of the **displayPriority** values, with t… 38 - If the total main axis size of the child elements is less than the main axis size of the containe… 44 Some child elements in the flex container have **layoutWeight** set. 46 …child elements whose **displayPriority** values are the same and whose **layoutWeight** attribute … 49 The remaining space in the container is filled by the child elements whose **layoutWeight** attribu… 52 - All the child elements are laid out only once in this process, and second layout is not triggered. [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | inspector_composed_element.h | 44 while (child) { in GetInspectorElement() 49 if (AceType::TypeId(child) == typeId) { in GetInspectorElement() 53 child = child->GetChildren().empty() ? nullptr : child->GetChildren().front(); in GetInspectorElement() 68 while (child) { 73 if (AceType::TypeId(child) == typeId) { 76 child = child->GetChildren().empty() ? nullptr : child->GetChildren().front(); 85 while (child) { in GetContentRender() 89 child = child->GetChildren().empty() ? nullptr : child->GetChildren().front(); in GetContentRender() 97 while (child) { in GetInspectorComposedElement() 100 return child; in GetInspectorComposedElement() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/command/ |
H A D | rs_base_node_command.cpp | 45 if (node && child) { in AddChild() 46 node->AddChild(child, index); in AddChild() 47 } else if (child == nullptr) { in AddChild() 57 if (node && child) { in MoveChild() 58 node->MoveChild(child, index); in MoveChild() 67 if (node && child) { in RemoveChild() 68 node->RemoveChild(child); in RemoveChild() 76 auto child = nodeMap.GetRenderNode(childId); in AddCrossParentChild() local 77 if (node && child) { in AddCrossParentChild() 78 node->AddCrossParentChild(child, index); in AddCrossParentChild() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-app-ability-childProcessManager.md | 23 Enumerates the child process start modes. 29 …| 0 | The child process is forked from the application process. Binder IPC cannot be called in … 36 Creates a child process and invokes the entrypoint method of the child process. This API uses a pro… 38 …child process is created. However, this does not mean that the child process is started. It is sta… 105 Creates a child process and invokes the entrypoint method of the child process. This API uses an as… 107 …child process is created. However, this does not mean that the child process is started. It is sta… 170 Creates a child process and invokes the entrypoint method of the child process. This API uses a pro… 172 …child process does not inherit the resources of the parent process. A PID is returned once the chi… 206 Sample code for the child process: 266 …child process does not inherit the resources of the main process. A PID is returned once the child… [all …]
|
H A D | c-apis-ability-childprocess.md | 6 …s to manage child processes. You can call the APIs to create a native child process and establish … 61 Defines a callback function for notifying the child process startup result. 90 Defines a struct for the file descriptor of a child process. 133 Defines a struct for the arguments used for starting a child process. 155 Defines a struct for the child process options. 176 Enumerates the error codes used by the native child process module. 186 … | A new child process cannot be created during the startup of another native child proce… 203 Enumerates the isolation modes of a child process. 245 8. The child process exits after the NativeChildProcess_MainProc() function is returned. 275 …child process, loads the specified dynamic library file, and calls the entry function. Arguments c… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/custom/ |
H A D | custom_node_layout_algorithm.cpp | 38 RefPtr<UINode> child; in Measure() local 48 child = renderFunction_(); in Measure() 52 CHECK_NULL_VOID(child); in Measure() 54 for (const auto& child : frameNode->GetChildren()) { in Measure() local 55 if (!child) { in Measure() 59 buildItem_ = child; in Measure() 61 child->MountToParent(host); in Measure() 82 for (auto&& child : children) { in Measure() 83 child->Measure(layoutConstraint); in Measure() 84 auto size = child->GetGeometryNode()->GetFrameSize(); in Measure() [all …]
|