/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_mask_test.cpp | 23 uint32_t color = 0xFF000000; in TestTextMask001() local 28 {.u32 = color}, {.u32 = color}, {.f32 = widthValue}, {.i32 = ARKUI_MASK_TYPE_RECTANGLE}, 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() 47 uint32_t color = 0xFF000000; in TestTextMask002() local 50 ArkUI_NumberValue value[] = {{.u32 = color}, {.u32 = color}, in TestTextMask002() 56 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_0].u32, color); in TestTextMask002() 57 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_MASK)->value[PARAM_1].u32, color); in TestTextMask002() 68 uint32_t color = 0xFF000000; TestTextMask003() local 89 uint32_t color = 0xFF000000; TestTextMask004() local 112 uint32_t color = 0xFF000000; TestTextMask005() local 131 uint32_t color = 0xFF000000; TestTextMask006() local 152 uint32_t color = 0xFF000000; TestTextMask007() local [all...] |
H A D | text_enabled_test.cpp | 31 // set background color in createChildNode() 71 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 75 color = COLOR_GREEN; in OnEventReceive() 78 color = COLOR_BLUE; in OnEventReceive() 81 color = COLOR_YELLOW; in OnEventReceive() 87 ArkUI_NumberValue background_color_value[] = {{.u32 = color}}; in OnEventReceive()
|
/test/xts/hats/hdf/display/composer/moduletest/ |
H A D | hdi_device_test.cpp | 43 .color = RED 49 .color = GREEN 55 .color = YELLOW 66 .color = RED 70 .color = GREEN 74 .color = YELLOW 85 .color = RED, 92 .color = GREEN, 99 .color = YELLOW, 110 .color 518 uint32_t color = splitColors[(i + startIndex) % 4]; TEST_P() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/checkbox/ |
H A D | checkbox_mark_test.cpp | 22 uint32_t color = COLOR_RED; in TestCheckboxMark001() local 25 ArkUI_NumberValue mark_value[] = {{.u32 = color}, {.f32 = size}, {.f32 = thickness}}; in TestCheckboxMark001() 29 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_MARK)->value[PARAM_0].u32, color); in TestCheckboxMark001() 45 uint32_t color = COLOR_RED; in TestCheckboxMark003() local 46 ArkUI_NumberValue mark_value[] = {{.u32 = color}}; in TestCheckboxMark003() 50 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_MARK)->value[PARAM_0].u32, color); in TestCheckboxMark003() 57 uint32_t color = COLOR_RED; in TestCheckboxMark004() local 59 ArkUI_NumberValue mark_value[] = {{.u32 = color}, {.f32 = size}}; in TestCheckboxMark004() 63 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_MARK)->value[PARAM_0].u32, color); in TestCheckboxMark004() 71 uint32_t color in TestCheckboxMark005() local 87 uint32_t color = COLOR_RED; TestCheckboxMark006() local [all...] |
/test/xts/hats/hdf/display/composer/common/ |
H A D | hdi_composition_check.cpp | 37 static void SimpleHandleAlpha(const LayerSettings& layers, uint32_t& color) in SimpleHandleAlpha() argument 45 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha() 48 color = color * (layers.alpha * INV); in SimpleHandleAlpha() 49 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha() 61 uint32_t color = 0; in GetCheckColors() local 69 color = layer.color; in GetCheckColors() [all...] |
H A D | display_test_utils.cpp | 82 static uint32_t ConverToRGBA(Composer::V1_0::PixelFormat fmt, uint32_t color) in ConverToRGBA() argument 86 return BGRAToRGBA(color); in ConverToRGBA() 88 return color; in ConverToRGBA() 92 return color; in ConverToRGBA() 128 uint32_t CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) in CheckPixel() argument 149 if (checkColor != color) { in CheckPixel() 169 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument 189 SetUint32(*pixel, color); in SetPixel() 192 void ClearColor(const BufferHandle &handle, uint32_t color) in ClearColor() argument 196 SetPixel(handle, x, y, color); in ClearColor() 201 ClearColorRect(const BufferHandle &handle, uint32_t color, const IRect &rect) ClearColorRect() argument [all...] |
H A D | hdi_test_render_utils.cpp | 30 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color) in SetPixel() argument 48 SetUint32(*pixel, color); in SetPixel() 51 void ClearColor(const BufferHandle& handle, uint32_t color) in ClearColor() argument 55 SetPixel(handle, x, y, color); in ClearColor()
|
H A D | display_test_utils.h | 60 uint32_t color; member 83 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color); 84 void ClearColor(const BufferHandle& handle, uint32_t color); 86 uint32_t CheckPixel(const BufferHandle& handle, int x, int y, uint32_t color);
|
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeBrushTest.cpp | 76 // 2. Set the color of brush 1 by calling OH_Drawing_BrushSetColor in HWTEST_F() 80 // 4. Get the color of brush object 2 by calling OH_Drawing_BrushGetColor in HWTEST_F() 81 uint32_t color = OH_Drawing_BrushGetColor(brush2); in HWTEST_F() local 82 EXPECT_EQ(color, 0x12345678); in HWTEST_F() 83 // 5. Modify the color of brush object 1 by calling OH_Drawing_BrushSetColor in HWTEST_F() 85 // 6. Get the color of brush object 2 again by calling OH_Drawing_BrushGetColor in HWTEST_F() 86 color = OH_Drawing_BrushGetColor(brush2); in HWTEST_F() 87 EXPECT_EQ(color, 0x12345678); in HWTEST_F() 126 // 4. Set the color of brush object 2 by calling OH_Drawing_BrushSetColor in HWTEST_F() 128 // 5. Get the color o in HWTEST_F() 129 uint32_t color = OH_Drawing_BrushGetColor(brush2); HWTEST_F() local 275 uint32_t color = OH_Drawing_BrushGetColor(brush); HWTEST_F() local 312 uint32_t color = OH_Drawing_BrushGetColor(brush); HWTEST_F() local 334 uint32_t color = OH_Drawing_BrushGetColor(brush); HWTEST_F() local 355 uint32_t color = OH_Drawing_BrushGetColor(brush); HWTEST_F() local 376 uint32_t color = OH_Drawing_BrushGetColor(brush); HWTEST_F() local 513 uint32_t color[] = {0xffff0000, 0xff00ff00}; HWTEST_F() local 539 uint32_t color[] = {0xffff0000, 0xff00ff00}; HWTEST_F() local [all...] |
H A D | DrawingNativePenTest.cpp | 64 // 2. Set color for pen 1 using OH_Drawing_PenSetColor in HWTEST_F() 68 // 4. Get color of pen 2 using OH_Drawing_PenGetColor in HWTEST_F() 69 uint32_t color = OH_Drawing_PenGetColor(pen2); in HWTEST_F() local 70 EXPECT_EQ(color, 0x00000000); in HWTEST_F() 71 // 5. Modify color of pen 1 using OH_Drawing_PenSetColor in HWTEST_F() 73 // 6. Get color of pen 2 using OH_Drawing_PenGetColor in HWTEST_F() 114 // 4. Set color for pen 2 using OH_Drawing_PenSetColor in HWTEST_F() 116 // 5. Get color of pen 2 using OH_Drawing_PenGetColor in HWTEST_F() 117 uint32_t color = OH_Drawing_PenGetColor(pen2); in HWTEST_F() local 118 EXPECT_EQ(color, in HWTEST_F() 244 uint32_t color = OH_Drawing_PenGetColor(pen); HWTEST_F() local 281 uint32_t color = OH_Drawing_PenGetColor(pen); HWTEST_F() local 320 uint32_t color = OH_Drawing_PenGetColor(pen); HWTEST_F() local 340 uint32_t color = OH_Drawing_PenGetColor(pen); HWTEST_F() local 964 uint32_t color[] = {0xffff0000, 0xff00ff00}; HWTEST_F() local 991 uint32_t color[] = {0xffff0000, 0xff00ff00}; HWTEST_F() local 1302 uint32_t color = OH_Drawing_PenGetColor(pen); HWTEST_F() local [all...] |
/test/xts/hats/hdf/display/composer/unittest/ |
H A D | hdi_composer_ut.cpp | 66 DISPLAY_TEST_LOGE("color 0x%x", setting.color); in CreateTestLayer() 85 ClearColor(*(handle->Get()), setting.color); in CreateTestLayer() 590 .color = RED in HWTEST_F() 604 settings[0].color = splitColors[i]; in HWTEST_F() 625 .color = RED in HWTEST_F() 629 .color = GREEN in HWTEST_F() 633 .color = YELLOW in HWTEST_F() 669 .color = GREEN in HWTEST_F() 700 .color in HWTEST_F() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/image/ |
H A D | image_backgroundcolor_test.cpp | 26 uint32_t color = FIRST_COLOR_VALUE; in TestImageBackgroundColor001() local 27 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestImageBackgroundColor001() 31 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_BACKGROUND_COLOR)->value[PARAM_0].u32, color); in TestImageBackgroundColor001() 38 uint32_t color = SECOND_COLOR_VALUE; in TestImageBackgroundColor002() local 39 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestImageBackgroundColor002() 43 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_BACKGROUND_COLOR)->value[PARAM_0].u32, color); in TestImageBackgroundColor002()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/textinput/ |
H A D | textinput_backgroundcolor_test.cpp | 26 uint32_t color = FIRST_COLOR_VALUE; in TestTextInputBackgroundColor001() local 27 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputBackgroundColor001() 31 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_BACKGROUND_COLOR)->value[PARAM_0].u32, color); in TestTextInputBackgroundColor001() 38 uint32_t color = SECOND_COLOR_VALUE; in TestTextInputBackgroundColor002() local 39 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputBackgroundColor002() 43 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_BACKGROUND_COLOR)->value[PARAM_0].u32, color); in TestTextInputBackgroundColor002()
|
H A D | textinput_fontcolor_test.cpp | 26 uint32_t color = FIRST_COLOR_VALUE; in TestTextInputFontColor001() local 27 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputFontColor001() 31 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_FONT_COLOR)->value[PARAM_0].u32, color); in TestTextInputFontColor001() 38 uint32_t color = SECOND_COLOR_VALUE; in TestTextInputFontColor002() local 39 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputFontColor002() 43 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_FONT_COLOR)->value[PARAM_0].u32, color); in TestTextInputFontColor002()
|
H A D | textinput_caretcolor_test.cpp | 26 uint32_t color = FIRST_COLOR_VALUE; in TestTextInputCaretColor001() local 27 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputCaretColor001() 31 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_TEXT_INPUT_CARET_COLOR)->value[PARAM_0].u32, color); in TestTextInputCaretColor001() 38 uint32_t color = SECOND_COLOR_VALUE; in TestTextInputCaretColor002() local 39 ArkUI_NumberValue value[] = {{.u32 = color}}; in TestTextInputCaretColor002() 43 ASSERT_EQ(nodeAPI->getAttribute(textInput, NODE_TEXT_INPUT_CARET_COLOR)->value[PARAM_0].u32, color); in TestTextInputCaretColor002()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/span/ |
H A D | span_decoration_test.cpp | 24 uint32_t color = 0x00000000; in TestSpanDecoration001() local 26 ArkUI_NumberValue decoration_value[] = {{.i32 = decorationType}, {.u32 = color}}; in TestSpanDecoration001() 31 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_1].u32, color); in TestSpanDecoration001() 39 uint32_t color = 0xFFFF0000; in TestSpanDecoration002() local 41 ArkUI_NumberValue decoration_value[] = {{.i32 = decorationType}, {.u32 = color}}; in TestSpanDecoration002() 46 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_1].u32, color); in TestSpanDecoration002() 54 uint32_t color = 0xFF000000; in TestSpanDecoration003() local 56 ArkUI_NumberValue decoration_value[] = {{.i32 = decorationType}, {.u32 = color}}; in TestSpanDecoration003() 61 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_1].u32, color); in TestSpanDecoration003() 69 uint32_t color in TestSpanDecoration004() local 84 uint32_t color = 0xFF000000; TestSpanDecoration005() local [all...] |
/test/xts/acts/validator_lite/acts_validator/entry/src/main/js/MainAbility/common/js/ |
H A D | event.js | 17 obj.color = 16766720; 20 obj.color = 32768; 31 obj.color = 16766720; 34 obj.color = 32768;
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/toggle/ |
H A D | toggle_enabled_test.cpp | 53 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 57 color = COLOR_GREEN; in OnEventReceive() 60 color = COLOR_BLUE; in OnEventReceive() 63 color = COLOR_YELLOW; in OnEventReceive() 69 ArkUI_NumberValue switch_point_color_value[] = {{.u32 = color}}; in OnEventReceive()
|
/test/xts/acts/arkui/ace_ets_xcomponent/entry/src/main/cpp/render/ |
H A D | egl_core.cpp | 124 GLfloat color[] = { in DrawTriangle() local 141 glVertexAttrib4fv(1, color); in DrawTriangle() 157 GLfloat color[] = { in ChangeShape() local 175 glVertexAttrib4fv(1, color); in ChangeShape() 189 GLfloat color[] = { in ChangeColor() local 207 glVertexAttrib4fv(1, color); in ChangeColor()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/Dialog/ |
H A D | arkoala_api.h | 272 ArkUI_Int32 color; member 301 ArkUI_Uint32 color; member 375 const ArkUI_Uint32* color; member 423 ArkUI_Uint32 color; member 438 ArkUI_Uint32 color; member 559 ArkUI_Uint32 color; member 587 ArkUI_Uint32 color; member 643 ArkUI_Uint32 color; member 1388 void (*setBackgroundColor)(ArkUINodeHandle node, ArkUI_Uint32 color); 1433 void (*setColorBlend)(ArkUINodeHandle node, ArkUI_Uint32 color); [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/commonattrs/ |
H A D | commonattrs_enabled_test.cpp | 62 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 65 color = COLOR_GREEN; in OnEventReceive() 68 color = COLOR_BLUE; in OnEventReceive() 71 color = COLOR_YELLOW; in OnEventReceive() 77 ArkUI_NumberValue background_color_value[] = {{.u32 = color}}; in OnEventReceive()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customcomponent/ |
H A D | customcomponent_enabled_test.cpp | 62 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 65 color = COLOR_GREEN; in OnEventReceive() 68 color = COLOR_BLUE; in OnEventReceive() 71 color = COLOR_YELLOW; in OnEventReceive() 77 ArkUI_NumberValue background_color_value[] = {{.u32 = color}}; in OnEventReceive()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/slider/ |
H A D | slider_enabled_test.cpp | 29 // set background color in createChildNode() 64 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 68 color = COLOR_GREEN; in OnEventReceive() 71 color = COLOR_BLUE; in OnEventReceive() 74 color = COLOR_YELLOW; in OnEventReceive() 80 ArkUI_NumberValue background_color_value[] = {{.u32 = color}}; in OnEventReceive()
|
/test/xts/hats/hdf/display/composer/benchmark/ |
H A D | display_benchmark_test.cpp | 88 DISPLAY_TEST_LOGE("color 0x%x", setting.color);
in CreateTestLayer() 107 ClearColor(*(handle->Get()), setting.color);
in CreateTestLayer() 815 .color = RED
in BENCHMARK_F() 819 .color = GREEN
in BENCHMARK_F() 823 .color = YELLOW
in BENCHMARK_F() 858 .color = GREEN
in BENCHMARK_F() 882 .color = GREEN
in BENCHMARK_F() 886 .color = RED
in BENCHMARK_F() 914 {.rectRatio = {0, 0, 1.0f, 1.0f}, .color in BENCHMARK_F() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/textarea/ |
H A D | textarea_enabled_test.cpp | 29 // set background color in createChildNode() 69 uint32_t color = COLOR_PURPLE; in OnEventReceive() local 73 color = COLOR_GREEN; in OnEventReceive() 76 color = COLOR_BLUE; in OnEventReceive() 79 color = COLOR_YELLOW; in OnEventReceive() 85 ArkUI_NumberValue background_color_value[] = {{.u32 = color}}; in OnEventReceive()
|