Home
last modified time | relevance | path

Searched refs:nodeAPI (Results 1 – 25 of 564) sorted by relevance

12345678910>>...23

/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/checkbox/
Dcheckbox_enabled_test.cpp21 static auto createChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI, int enabled, const char *id) in createChildNode() argument
23 auto nodeHandle = nodeAPI->createNode(ARKUI_NODE_CHECKBOX); in createChildNode()
28 nodeAPI->setAttribute(nodeHandle, NODE_ENABLED, &enabled_item); in createChildNode()
34 nodeAPI->setAttribute(nodeHandle, NODE_ID, &id_item); in createChildNode()
40 nodeAPI->setAttribute(nodeHandle, NODE_BACKGROUND_COLOR, &background_color_item); in createChildNode()
45 nodeAPI->setAttribute(nodeHandle, NODE_WIDTH, &width_item); in createChildNode()
50 nodeAPI->setAttribute(nodeHandle, NODE_HEIGHT, &height_item); in createChildNode()
55 nodeAPI->setAttribute(nodeHandle, NODE_FOCUSABLE, &focusable_item); in createChildNode()
57 nodeAPI->registerNodeEvent(nodeHandle, NODE_ON_CLICK, ON_CLICK_EVENT_ID, nullptr); in createChildNode()
58 nodeAPI->registerNodeEvent(nodeHandle, NODE_ON_FOCUS, ON_FOCUS_EVENT_ID, nullptr); in createChildNode()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/system/
Dsystem_ColorFontChange_test.cpp23 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in testRegisterSystemColorModeChangeEvent_001() local
24 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in testRegisterSystemColorModeChangeEvent_001()
26 ArkUI_NodeHandle column = nodeAPI -> createNode(ARKUI_NODE_COLUMN); in testRegisterSystemColorModeChangeEvent_001()
29 nodeAPI->setAttribute(column, NODE_WIDTH, &item); in testRegisterSystemColorModeChangeEvent_001()
33 nodeAPI -> setAttribute(column, NODE_HEIGHT, &item2); in testRegisterSystemColorModeChangeEvent_001()
35 ArkUI_NodeHandle image = nodeAPI -> createNode(ARKUI_NODE_IMAGE); in testRegisterSystemColorModeChangeEvent_001()
39 nodeAPI -> setAttribute(image, NODE_WIDTH, &item1); in testRegisterSystemColorModeChangeEvent_001()
41 nodeAPI->setAttribute(image, NODE_HEIGHT, &item1); in testRegisterSystemColorModeChangeEvent_001()
43 nodeAPI->setAttribute(image, NODE_IMAGE_SRC, &itemSrc); in testRegisterSystemColorModeChangeEvent_001()
45 nodeAPI->addChild(column, image); in testRegisterSystemColorModeChangeEvent_001()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/calendarpicker/
Dcalendarpicker_enabled_test.cpp22 static auto createChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI, int enabled) in createChildNode() argument
24 auto nodeHandle = nodeAPI->createNode(ARKUI_NODE_CALENDAR_PICKER); in createChildNode()
29 nodeAPI->setAttribute(nodeHandle, NODE_ENABLED, &enabled_item); in createChildNode()
36 nodeAPI->setAttribute(nodeHandle, NODE_BACKGROUND_COLOR, &background_color_item); in createChildNode()
42nodeAPI->setAttribute(nodeHandle, NODE_CALENDAR_PICKER_SELECTED_DATE, &calendar_picker_value_item); in createChildNode()
47 nodeAPI->setAttribute(nodeHandle, NODE_FOCUSABLE, &focusable_item); in createChildNode()
61 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
62 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
86 nodeAPI->setAttribute(nodeHandler, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive()
108 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in CreateNativeNode() local
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/datepicker/
Ddatepicker_enabled_test.cpp22 static auto createChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI, int enabled) in createChildNode() argument
24 auto nodeHandle = nodeAPI->createNode(ARKUI_NODE_DATE_PICKER); in createChildNode()
29 nodeAPI->setAttribute(nodeHandle, NODE_ENABLED, &enabled_item); in createChildNode()
36 nodeAPI->setAttribute(nodeHandle, NODE_BACKGROUND_COLOR, &background_color_item); in createChildNode()
41 nodeAPI->setAttribute(nodeHandle, NODE_WIDTH, &width_item); in createChildNode()
46 auto ret = nodeAPI->setAttribute(nodeHandle, NODE_MARGIN, &margin_item); in createChildNode()
52 nodeAPI->setAttribute(nodeHandle, NODE_DATE_PICKER_SELECTED, &date_picker_value_item); in createChildNode()
57 nodeAPI->setAttribute(nodeHandle, NODE_FOCUSABLE, &focusable_item); in createChildNode()
70 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
71 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/scroll/
Dscroll_scrollto_test.cpp33 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
34 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
40 if (nodeAPI->getAttribute(nodeHandler, NODE_SCROLL_OFFSET)->value[PARAM_0].f32 == PARAM_0 && in OnEventReceive()
41nodeAPI->getAttribute(nodeHandler, NODE_SCROLL_OFFSET)->value[PARAM_1].f32 == PARAM_10) { in OnEventReceive()
45 nodeAPI->setAttribute(nodeHandler, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive()
67 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in CreateNativeNode() local
68 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in CreateNativeNode()
69 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateNativeNode()
70 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateNativeNode()
71 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateNativeNode()
[all …]
Dscroll_currentoffset_test.cpp33 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
34 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
40 if (nodeAPI->getAttribute(nodeHandler, NODE_SCROLL_OFFSET)->value[PARAM_0].f32 == PARAM_0 && in OnEventReceive()
41nodeAPI->getAttribute(nodeHandler, NODE_SCROLL_OFFSET)->value[PARAM_1].f32 == PARAM_10) { in OnEventReceive()
45 nodeAPI->setAttribute(nodeHandler, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive()
67 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in CreateNativeNode() local
68 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in CreateNativeNode()
69 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateNativeNode()
70 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateNativeNode()
71 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateNativeNode()
[all …]
Dscroll_nestedscroll_test.cpp39 static void SetAttributes(ArkUI_NativeNodeAPI_1 *nodeAPI, ArkUI_NodeHandle nodeHandle, float width,… in SetAttributes() argument
46 nodeAPI->setAttribute(nodeHandle, NODE_WIDTH, &width_item); in SetAttributes()
47 nodeAPI->setAttribute(nodeHandle, NODE_HEIGHT, &height_item); in SetAttributes()
52 nodeAPI->setAttribute(nodeHandle, NODE_BACKGROUND_COLOR, &background_color_item); in SetAttributes()
75 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
76 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
104 nodeAPI->setAttribute(parentScroll, NODE_SCROLL_EDGE, &edge_item); in OnEventReceive()
107 nodeAPI->setAttribute(childScroll, NODE_SCROLL_EDGE, &edge_item); in OnEventReceive()
116 nodeAPI->setAttribute(compareButton, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive()
166 nodeAPI->setAttribute(compareButton, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive()
[all …]
Dscroll_onscrollframebegin_test.cpp25 static ArkUI_NodeHandle CreateChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in CreateChildNode() argument
27 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateChildNode()
28 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateChildNode()
29 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateChildNode()
33 nodeAPI->setAttribute(scroll, NODE_WIDTH, &width_item); in CreateChildNode()
34 nodeAPI->setAttribute(scroll, NODE_HEIGHT, &width_item); in CreateChildNode()
39 nodeAPI->setAttribute(button, NODE_WIDTH, &button_length_item); in CreateChildNode()
40 nodeAPI->setAttribute(button, NODE_HEIGHT, &button_length_item); in CreateChildNode()
44 nodeAPI->setAttribute(scroll, NODE_MARGIN, &margin_item); in CreateChildNode()
49 nodeAPI->setAttribute(scroll, NODE_BACKGROUND_COLOR, &background_color_item); in CreateChildNode()
[all …]
Dscroll_onscrolledge_test.cpp25 static ArkUI_NodeHandle CreateChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in CreateChildNode() argument
27 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateChildNode()
28 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateChildNode()
29 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateChildNode()
33 nodeAPI->setAttribute(scroll, NODE_WIDTH, &width_item); in CreateChildNode()
34 nodeAPI->setAttribute(scroll, NODE_HEIGHT, &width_item); in CreateChildNode()
39 nodeAPI->setAttribute(button, NODE_WIDTH, &button_length_item); in CreateChildNode()
40 nodeAPI->setAttribute(button, NODE_HEIGHT, &button_length_item); in CreateChildNode()
44 nodeAPI->setAttribute(scroll, NODE_MARGIN, &margin_item); in CreateChildNode()
49 nodeAPI->setAttribute(scroll, NODE_BACKGROUND_COLOR, &background_color_item); in CreateChildNode()
[all …]
Dscroll_onscrollstop_test.cpp25 static ArkUI_NodeHandle CreateChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in CreateChildNode() argument
27 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateChildNode()
28 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateChildNode()
29 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateChildNode()
33 nodeAPI->setAttribute(scroll, NODE_WIDTH, &width_item); in CreateChildNode()
34 nodeAPI->setAttribute(scroll, NODE_HEIGHT, &width_item); in CreateChildNode()
39 nodeAPI->setAttribute(button, NODE_WIDTH, &button_length_item); in CreateChildNode()
40 nodeAPI->setAttribute(button, NODE_HEIGHT, &button_length_item); in CreateChildNode()
44 nodeAPI->setAttribute(scroll, NODE_MARGIN, &margin_item); in CreateChildNode()
49 nodeAPI->setAttribute(scroll, NODE_BACKGROUND_COLOR, &background_color_item); in CreateChildNode()
[all …]
Dscroll_onscrollstart_test.cpp25 static ArkUI_NodeHandle CreateChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in CreateChildNode() argument
27 auto scroll = nodeAPI->createNode(ARKUI_NODE_SCROLL); in CreateChildNode()
28 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in CreateChildNode()
29 auto button = nodeAPI->createNode(ARKUI_NODE_BUTTON); in CreateChildNode()
33 nodeAPI->setAttribute(scroll, NODE_WIDTH, &width_item); in CreateChildNode()
34 nodeAPI->setAttribute(scroll, NODE_HEIGHT, &width_item); in CreateChildNode()
39 nodeAPI->setAttribute(button, NODE_WIDTH, &button_length_item); in CreateChildNode()
40 nodeAPI->setAttribute(button, NODE_HEIGHT, &button_length_item); in CreateChildNode()
44 nodeAPI->setAttribute(scroll, NODE_MARGIN, &margin_item); in CreateChildNode()
49 nodeAPI->setAttribute(scroll, NODE_BACKGROUND_COLOR, &background_color_item); in CreateChildNode()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/stack/
Dstack_transition_test.cpp27 auto ret = nodeAPI->setAttribute(stack, NODE_MOVE_TRANSITION, &move_transition_item); in TestStackTransition001()
29 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_MOVE_TRANSITION)->value[PARAM_0].i32, ARKUI_TRANSITION… in TestStackTransition001()
40 auto ret = nodeAPI->setAttribute(stack, NODE_MOVE_TRANSITION, &move_transition_item); in TestStackTransition002()
42 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_MOVE_TRANSITION)->value[PARAM_0].i32, ARKUI_TRANSITION… in TestStackTransition002()
53 auto ret = nodeAPI->setAttribute(stack, NODE_MOVE_TRANSITION, &move_transition_item); in TestStackTransition003()
55 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_MOVE_TRANSITION)->value[PARAM_0].i32, ARKUI_TRANSITION… in TestStackTransition003()
66 auto ret = nodeAPI->setAttribute(stack, NODE_MOVE_TRANSITION, &move_transition_item); in TestStackTransition004()
68 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_MOVE_TRANSITION)->value[PARAM_0].i32, ARKUI_TRANSITION… in TestStackTransition004()
79 auto ret = nodeAPI->setAttribute(stack, NODE_MOVE_TRANSITION, &move_transition_item); in TestStackTransition005()
81 if (nodeAPI->getAttribute(stack, NODE_MOVE_TRANSITION) != nullptr) { in TestStackTransition005()
[all …]
Dstack_backgroundblurstyle_test.cpp33 auto ret = nodeAPI->setAttribute(stack, NODE_BACKGROUND_BLUR_STYLE, &blur_style_item); in TestStackBackgroundBlurStyle001()
35 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_0].i32, ARKUI_BLUR… in TestStackBackgroundBlurStyle001()
36 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_1].i32, ARKUI_COLO… in TestStackBackgroundBlurStyle001()
37 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_2].i32, in TestStackBackgroundBlurStyle001()
39 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_3].f32, scale); in TestStackBackgroundBlurStyle001()
40 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_4].f32, grayScaleS… in TestStackBackgroundBlurStyle001()
41 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_5].f32, grayScaleE… in TestStackBackgroundBlurStyle001()
59 auto ret = nodeAPI->setAttribute(stack, NODE_BACKGROUND_BLUR_STYLE, &blur_style_item); in TestStackBackgroundBlurStyle002()
61 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_0].i32, ARKUI_BLUR… in TestStackBackgroundBlurStyle002()
62 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_BACKGROUND_BLUR_STYLE)->value[PARAM_1].i32, ARKUI_COLO… in TestStackBackgroundBlurStyle002()
[all …]
Dstack_lineargradient_test.cpp40 auto ret = nodeAPI->setAttribute(stack, NODE_LINEAR_GRADIENT, &linearGradient_item); in TestStackLinearGradient001()
42 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->value[PARAM_0].f32, expectAngle); in TestStackLinearGradient001()
43 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->value[PARAM_1].i32, in TestStackLinearGradient001()
45 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->value[PARAM_2].i32, repeating); in TestStackLinearGradient001()
46 …ASSERT_EQ(((ArkUI_ColorStop *)(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->object))->color… in TestStackLinearGradient001()
47 …ASSERT_EQ(((ArkUI_ColorStop *)(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->object))->color… in TestStackLinearGradient001()
48 …ASSERT_EQ(((ArkUI_ColorStop *)(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->object))->stops… in TestStackLinearGradient001()
49 …ASSERT_EQ(((ArkUI_ColorStop *)(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->object))->stops… in TestStackLinearGradient001()
50 …ASSERT_EQ(((ArkUI_ColorStop *)(nodeAPI->getAttribute(stack, NODE_LINEAR_GRADIENT)->object))->size,… in TestStackLinearGradient001()
74 auto ret = nodeAPI->setAttribute(stack, NODE_LINEAR_GRADIENT, &linearGradient_item); in TestStackLinearGradient002()
[all …]
Dstack_clip_test.cpp33 auto ret = nodeAPI->setAttribute(stack, NODE_CLIP_SHAPE, &clip_item); in TestStackClip001()
35 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECTA… in TestStackClip001()
36 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestStackClip001()
37 ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_2].f32, clipRectHeight); in TestStackClip001()
38 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_3].f32, clipRectRoundedWidth); in TestStackClip001()
39 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_4].f32, clipRectRoundedHeight… in TestStackClip001()
56 auto ret = nodeAPI->setAttribute(stack, NODE_CLIP_SHAPE, &clip_item); in TestStackClip002()
58 if (nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE) != nullptr) { in TestStackClip002()
59 …ASSERT_EQ(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECTA… in TestStackClip002()
60 ASSERT_NE(nodeAPI->getAttribute(stack, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestStackClip002()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/animation/
Danimator_event_test.cpp31 static ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; variable
61 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive1() local
62 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive1()
71 nodeAPI->setAttribute(nodeHandler, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive1()
90 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive2() local
91 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive2()
100 nodeAPI->setAttribute(nodeHandler, NODE_BACKGROUND_COLOR, &background_color_item); in OnEventReceive2()
174 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in testKeyframeRegisterOnFinish_001()
180 auto column = nodeAPI->createNode(ARKUI_NODE_COLUMN); in testKeyframeRegisterOnFinish_001()
181 nodeAPI->setAttribute(column, NODE_WIDTH, &withItem); in testKeyframeRegisterOnFinish_001()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customcomponent/
Dcustomcomponent_onareachange_test.cpp26 static auto createChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI, uint32_t initialColor, int32_t clickEve… in createChildNode() argument
28 auto nodeHandle = nodeAPI->createNode(ARKUI_NODE_CUSTOM); in createChildNode()
32 nodeAPI->setAttribute(nodeHandle, NODE_WIDTH, &width_item); in createChildNode()
33 nodeAPI->setAttribute(nodeHandle, NODE_HEIGHT, &width_item); in createChildNode()
37 nodeAPI->setAttribute(nodeHandle, NODE_MARGIN, &margin_item); in createChildNode()
42 nodeAPI->setAttribute(nodeHandle, NODE_BACKGROUND_COLOR, &background_color_item); in createChildNode()
44 nodeAPI->registerNodeEvent(nodeHandle, NODE_ON_CLICK, clickEventID, nullptr); in createChildNode()
62 ArkUI_NativeNodeAPI_1 *nodeAPI = nullptr; in OnEventReceive() local
63 OH_ArkUI_GetModuleInterface(ARKUI_NATIVE_NODE, ArkUI_NativeNodeAPI_1, nodeAPI); in OnEventReceive()
70 nodeAPI->setAttribute(nodeHandler, NODE_WIDTH, &width_item); in OnEventReceive()
[all …]
Dcustomcomponent_transform_test.cpp51 auto ret = nodeAPI->setAttribute(custom, NODE_TRANSFORM, &value_item); in TestCustomComponentTransform001()
53 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_0].f32, matrix400); in TestCustomComponentTransform001()
54 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_1].f32, matrix401); in TestCustomComponentTransform001()
55 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_2].f32, matrix402); in TestCustomComponentTransform001()
56 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_3].f32, matrix403); in TestCustomComponentTransform001()
57 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_4].f32, matrix410); in TestCustomComponentTransform001()
58 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_5].f32, matrix411); in TestCustomComponentTransform001()
59 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_6].f32, matrix412); in TestCustomComponentTransform001()
60 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_7].f32, matrix413); in TestCustomComponentTransform001()
61 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_TRANSFORM)->value[PARAM_8].f32, matrix420); in TestCustomComponentTransform001()
[all …]
Dcustomcomponent_mask_test.cpp42 auto ret = nodeAPI->setAttribute(custom, NODE_MASK, &value_item); in TestCustomComponentMask001()
44 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_0].u32, maskFillColor); in TestCustomComponentMask001()
45 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_1].u32, maskStrokeColor); in TestCustomComponentMask001()
46 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_2].f32, maskStrokeWidth); in TestCustomComponentMask001()
47 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_3].i32, maskType); in TestCustomComponentMask001()
48 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_4].f32, maskRectangularWidth); in TestCustomComponentMask001()
49 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_5].f32, maskRectangularHeight); in TestCustomComponentMask001()
50 …ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_6].f32, maskRectangleRoundedWidth); in TestCustomComponentMask001()
51 …ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_MASK)->value[PARAM_7].f32, maskRectangleRoundedHeight… in TestCustomComponentMask001()
77 auto ret = nodeAPI->setAttribute(custom, NODE_MASK, &value_item); in TestCustomComponentMask002()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/commonattrs/
Dcommonattrs_transform_test.cpp51 auto ret = nodeAPI->setAttribute(transform, NODE_TRANSFORM, &value_item); in TestCommonAttrsTransform001()
53 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_0].f32, matrix400); in TestCommonAttrsTransform001()
54 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_1].f32, matrix401); in TestCommonAttrsTransform001()
55 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_2].f32, matrix402); in TestCommonAttrsTransform001()
56 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_3].f32, matrix403); in TestCommonAttrsTransform001()
57 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_4].f32, matrix410); in TestCommonAttrsTransform001()
58 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_5].f32, matrix411); in TestCommonAttrsTransform001()
59 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_6].f32, matrix412); in TestCommonAttrsTransform001()
60 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_7].f32, matrix413); in TestCommonAttrsTransform001()
61 ASSERT_EQ(nodeAPI->getAttribute(transform, NODE_TRANSFORM)->value[PARAM_8].f32, matrix420); in TestCommonAttrsTransform001()
[all …]
Dcommonattrs_mask_test.cpp42 auto ret = nodeAPI->setAttribute(mask, NODE_MASK, &value_item); in TestCommonAttrsMask001()
44 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_0].u32, maskFillColor); in TestCommonAttrsMask001()
45 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_1].u32, maskStrokeColor); in TestCommonAttrsMask001()
46 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_2].f32, maskStrokeWidth); in TestCommonAttrsMask001()
47 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_3].i32, maskType); in TestCommonAttrsMask001()
48 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_4].f32, maskRectangularWidth); in TestCommonAttrsMask001()
49 ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_5].f32, maskRectangularHeight); in TestCommonAttrsMask001()
50 … ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_6].f32, maskRectangleRoundedWidth); in TestCommonAttrsMask001()
51 … ASSERT_EQ(nodeAPI->getAttribute(mask, NODE_MASK)->value[PARAM_7].f32, maskRectangleRoundedHeight); in TestCommonAttrsMask001()
77 auto ret = nodeAPI->setAttribute(mask, NODE_MASK, &value_item); in TestCommonAttrsMask002()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/drag/
Ddrag_getDataTypesCount.cpp22 static auto createTextChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in createTextChildNode() argument
24 auto text = nodeAPI->createNode(ARKUI_NODE_TEXT); in createTextChildNode()
30 nodeAPI->setAttribute(text, NODE_TEXT_CONTENT, &LABEL_Item); in createTextChildNode()
31 nodeAPI->setAttribute(text, NODE_TEXT_FONT, &Font_Item); in createTextChildNode()
32 nodeAPI->setAttribute(text, NODE_MARGIN, &marginItem); in createTextChildNode()
33 nodeAPI->registerNodeEvent(text, NODE_ON_DRAG_START, 1, nullptr); in createTextChildNode()
34 nodeAPI->registerNodeEvent(text, NODE_ON_PRE_DRAG, 1, nullptr); in createTextChildNode()
40 static auto createDragAreaChildNode(ArkUI_NativeNodeAPI_1 *nodeAPI) in createDragAreaChildNode() argument
42 auto dragArea = nodeAPI->createNode(ARKUI_NODE_COLUMN); in createDragAreaChildNode()
49 nodeAPI->setAttribute(dragArea, NODE_WIDTH, &widthItem); in createDragAreaChildNode()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/swiper/
Dswiper_clip_test.cpp33 auto ret = nodeAPI->setAttribute(swiper, NODE_CLIP_SHAPE, &clip_item); in TestSwiperClip001()
35 …ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECT… in TestSwiperClip001()
36 ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestSwiperClip001()
37 ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_2].f32, clipRectHeight); in TestSwiperClip001()
38 …ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_3].f32, clipRectRoundedWidth… in TestSwiperClip001()
39 …ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_4].f32, clipRectRoundedHeigh… in TestSwiperClip001()
56 auto ret = nodeAPI->setAttribute(swiper, NODE_CLIP_SHAPE, &clip_item); in TestSwiperClip002()
58 if (nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE) != nullptr) { in TestSwiperClip002()
59 …ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECT… in TestSwiperClip002()
60 … ASSERT_NE(nodeAPI->getAttribute(swiper, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestSwiperClip002()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/toggle/
Dtoggle_clip_test.cpp33 auto ret = nodeAPI->setAttribute(toggle, NODE_CLIP_SHAPE, &clip_item); in TestToggleClip001()
35 …ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECT… in TestToggleClip001()
36 ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestToggleClip001()
37 ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_2].f32, clipRectHeight); in TestToggleClip001()
38 …ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_3].f32, clipRectRoundedWidth… in TestToggleClip001()
39 …ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_4].f32, clipRectRoundedHeigh… in TestToggleClip001()
56 auto ret = nodeAPI->setAttribute(toggle, NODE_CLIP_SHAPE, &clip_item); in TestToggleClip002()
58 if (nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE) != nullptr) { in TestToggleClip002()
59 …ASSERT_EQ(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_0].i32, ARKUI_CLIP_TYPE_RECT… in TestToggleClip002()
60 … ASSERT_NE(nodeAPI->getAttribute(toggle, NODE_CLIP_SHAPE)->value[PARAM_1].f32, clipRectWidth); in TestToggleClip002()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/
Dtext_mask_test.cpp31 auto ret = nodeAPI->setAttribute(text, NODE_MASK, &valueItem); in TestTextMask001()
33 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_0].u32, color); in TestTextMask001()
34 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_1].u32, color); in TestTextMask001()
35 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_2].f32, widthValue); in TestTextMask001()
36 … ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_3].i32, ARKUI_MASK_TYPE_RECTANGLE); in TestTextMask001()
37 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_4].f32, sizeValue); in TestTextMask001()
38 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_5].f32, sizeValue); in TestTextMask001()
39 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_6].f32, filletSizeValue); in TestTextMask001()
40 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_7].f32, filletSizeValue); in TestTextMask001()
54 auto ret = nodeAPI->setAttribute(text, NODE_MASK, &valueItem); in TestTextMask002()
[all …]

12345678910>>...23