Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 102) sorted by relevance

12345

/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dutils.cpp279 uint32_t color = 0; in ConvertColorToUInt32() local
284 color |= 0xFF000000; in ConvertColorToUInt32()
285 color |= ParseHex(s[1], parseState) << 20; in ConvertColorToUInt32()
286 color |= ParseHex(s[1], parseState) << 16; in ConvertColorToUInt32()
287 color |= ParseHex(s[2], parseState) << 12; in ConvertColorToUInt32()
288 color |= ParseHex(s[2], parseState) << 8; in ConvertColorToUInt32()
291 color |= ParseHex(s[3], parseState) << 4; in ConvertColorToUInt32()
292 color |= ParseHex(s[3], parseState); in ConvertColorToUInt32()
294 color |= ParseHex(s[1], parseState) << 28; in ConvertColorToUInt32()
295 color |= ParseHex(s[1], parseState) << 24; in ConvertColorToUInt32()
[all …]
/base/sensors/miscdevice/interfaces/native/light/test/unittest/
Dlight_agent_test.cpp79 bool GetLightColor(LightColor &color, int32_t lightType) in GetLightColor() argument
83 color.singleColor = 0Xff; in GetLightColor()
87 color.rgbColor = { in GetLightColor()
95 color.wrgbColor = { in GetLightColor()
121 LightColor color; variable
122 bool flag = GetLightColor(color, g_lightType);
130 int32_t ret = TurnOn(g_lightId, color, animation);
145 LightColor color; variable
146 bool flag = GetLightColor(color, g_lightType);
154 int32_t ret = TurnOn(g_lightId, color, animation);
[all …]
/base/global/resource_management/frameworks/resmgr/src/utils/
Dutils.cpp395 uint32_t color = 0; in ConvertColorToUInt32() local
400 color |= 0xFF000000; in ConvertColorToUInt32()
401 color |= ParseHex(s[1], parseState) << 20; in ConvertColorToUInt32()
402 color |= ParseHex(s[1], parseState) << 16; in ConvertColorToUInt32()
403 color |= ParseHex(s[2], parseState) << 12; in ConvertColorToUInt32()
404 color |= ParseHex(s[2], parseState) << 8; in ConvertColorToUInt32()
405 color |= ParseHex(s[3], parseState) << 4; in ConvertColorToUInt32()
406 color |= ParseHex(s[3], parseState); in ConvertColorToUInt32()
408 color |= ParseHex(s[1], parseState) << 28; in ConvertColorToUInt32()
409 color |= ParseHex(s[1], parseState) << 24; in ConvertColorToUInt32()
[all …]
/base/update/updater/services/ui/view/
Dview_api.cpp50 bool CheckColor(const std::string &color) in CheckColor() argument
54 if (color.empty() || color[0] != colorBegin || color.size() != len) { in CheckColor()
55 LOG(ERROR) << "color format error: " << color; in CheckColor()
58 …if (std::find_if_not(std::next(begin(color)), end(color), [](unsigned char c) { return isxdigit(c)… in CheckColor()
59 end(color)) { in CheckColor()
60 LOG(ERROR) << "color format error: " << color; in CheckColor()
Dview_api.h32 bool CheckColor(const std::string &color);
33 OHOS::ColorType StrToColor(const std::string &color);
/base/powermgr/battery_manager/charger/src/
Dbattery_led.cpp61 void BatteryLed::TurnOn(uint32_t color) in TurnOn() argument
67 effect.lightColor.colorValue.rgbColor.r = static_cast<uint8_t>((color >> MOVE_RIGHT_16) & 0xFF); in TurnOn()
68 effect.lightColor.colorValue.rgbColor.g = static_cast<uint8_t>((color >> MOVE_RIGHT_8) & 0xFF); in TurnOn()
69 effect.lightColor.colorValue.rgbColor.b = static_cast<uint8_t>(color & 0xFF); in TurnOn()
71 BATTERY_HILOGD(FEATURE_CHARGING, "battery light color is %{public}d", color); in TurnOn()
76 lightColor_ = (ret < HDF_SUCCESS) ? lightColor_ : color; in TurnOn()
/base/powermgr/battery_manager/services/native/src/
Dbattery_light.cpp70 void BatteryLight::TurnOn(uint32_t color) in TurnOn() argument
74 lightColor.rgbColor.r = (color >> MOVE_RIGHT_16) & 0xFF; in TurnOn()
75 lightColor.rgbColor.g = (color >> MOVE_RIGHT_8) & 0xFF; in TurnOn()
76 lightColor.rgbColor.b = color & 0xFF; in TurnOn()
80 BATTERY_HILOGD(FEATURE_BATT_LIGHT, "battery light color is %{public}u", color); in TurnOn()
85 lightColor_ = (ret < ERR_OK) ? lightColor_ : color; in TurnOn()
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_event_listener_stub.cpp35 std::vector<uint64_t> color; in OnRemoteRequest() local
36 if (!data.ReadUInt64Vector(&color)) { in OnRemoteRequest()
41 OnColorsChange(color, wallpaperType); in OnRemoteRequest()
Dwallpaper_event_listener_client.cpp36 void WallpaperEventListenerClient::OnColorsChange(const std::vector<uint64_t> &color, int32_t wallp… in OnColorsChange() argument
40 wallpaperEventListener_->OnColorsChange(color, wallpaperType); in OnColorsChange()
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
Dreadfromparcel_fuzzer.cpp54 int32_t color = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
55 notification.SetLedLightColor(color); in DoSomethingInterestingWithMyAPI()
69 notification.GenerateNotificationKey(stringData, color, color, stringData, color); in DoSomethingInterestingWithMyAPI()
/base/sensors/miscdevice/interfaces/native/light/test/fuzztest/startlight_fuzzer/
Dstartlight_fuzzer.cpp41 LightColor color; in StartLightFuzzTest() local
42 startPos += GetObject<LightColor>(color, data + startPos, size - startPos); in StartLightFuzzTest()
45 OHOS::Sensors::TurnOn(lightId, color, animation); in StartLightFuzzTest()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_light_test.cpp66 uint32_t color = 0U; variable
67 g_light.TurnOn(color);
68 EXPECT_TRUE(g_light.GetLightColor() == color);
95 uint32_t color = 0x7fffffff; variable
96 g_light.TurnOn(color);
97 EXPECT_TRUE(g_light.GetLightColor() == color);
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
Dwallpaper_manager_fuzzer.cpp70 void OnColorsChange(const std::vector<uint64_t> &color, int wallpaperType);
76 void WallpaperEventListenerFuzzTestImpl::OnColorsChange(const std::vector<uint64_t> &color, int wal… in OnColorsChange() argument
79 std::copy(color.begin(), color.end(), std::back_inserter(color_)); in OnColorsChange()
148 uint32_t color[100] = { 3, 7, 9, 9, 7, 6 }; in SetWallpaperByMapFuzzTest() local
150 …std::unique_ptr<PixelMap> uniquePixelMap = PixelMap::Create(color, sizeof(color) / sizeof(color[0]… in SetWallpaperByMapFuzzTest()
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_permission_test.cpp97 uint32_t color[100] = { 3, 7, 9, 9, 7, 6 }; in CreateTempPixelMap() local
99 …std::unique_ptr<PixelMap> uniquePixelMap = PixelMap::Create(color, sizeof(color) / sizeof(color[0]… in CreateTempPixelMap()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_pixel_map.cpp143 bool PixelMap::GetARGB32Color(int32_t x, int32_t y, uint32_t &color) in GetARGB32Color() argument
231 uint8_t PixelMap::GetARGB32ColorA(uint32_t color) in GetARGB32ColorA() argument
236 uint8_t PixelMap::GetARGB32ColorR(uint32_t color) in GetARGB32ColorR() argument
241 uint8_t PixelMap::GetARGB32ColorG(uint32_t color) in GetARGB32ColorG() argument
246 uint8_t PixelMap::GetARGB32ColorB(uint32_t color) in GetARGB32ColorB() argument
288 uint32_t PixelMap::WritePixel(const Position &pos, const uint32_t &color) in WritePixel() argument
304 bool PixelMap::WritePixels(const uint32_t &color) in WritePixels() argument
/base/theme/wallpaper_mgr/frameworks/js/napi/
Dwallpaper_js_util.cpp50 napi_value WallpaperJSUtil::Convert2JSRgbaArray(napi_env env, const std::vector<uint64_t> &color) in Convert2JSRgbaArray() argument
54 napi_status status = napi_create_array_with_length(env, color.size(), &result); in Convert2JSRgbaArray()
60 for (const auto it : color) { in Convert2JSRgbaArray()
/base/useriam/fingerprint_auth/services_ex/src/
Dsensor_illumination_task.cpp83 SkColor ConvertToSkColor(uint32_t color) in ConvertToSkColor() argument
85 uint8_t *colorBytes = static_cast<uint8_t *>(static_cast<void *>(&color)); in ConvertToSkColor()
93 Drawing::ColorQuad ConvertToDrawingColor(uint32_t color) in ConvertToDrawingColor() argument
95 uint8_t *colorBytes = static_cast<uint8_t *>(static_cast<void *>(&color)); in ConvertToDrawingColor()
115 paint.setColor(ConvertToSkColor(param.color)); in DrawCanvas()
123 brush.SetColor(ConvertToDrawingColor(param.color)); in DrawCanvas()
161 uint32_t color) in EnableSensorIllumination() argument
198 .color = color, in EnableSensorIllumination()
/base/sensors/miscdevice/interfaces/native/light/src/
Dlight_agent.cpp41 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
48 int32_t ret = client.TurnOn(lightId, color, animation); in TurnOn()
/base/msdp/device_status/rust/subsystem/input/binding/src/
Dinput_binding.cpp178 cPointerStyle->color.r = pointerStyle.color.r; in CGetPointerStyle()
179 cPointerStyle->color.g = pointerStyle.color.g; in CGetPointerStyle()
180 cPointerStyle->color.b = pointerStyle.color.b; in CGetPointerStyle()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_event_listener_proxy.cpp27 void WallpaperEventListenerProxy::OnColorsChange(const std::vector<uint64_t> &color, int32_t wallpa… in OnColorsChange() argument
38 if (!data.WriteUInt64Vector(color)) { in OnColorsChange()
/base/web/webview/test/fuzztest/putbackgroundcolor_fuzzer/
Dputbackgroundcolor_fuzzer.cpp111 int color; in DoSomethingInterestingWithMyAPI() local
112 if (memcpy_s(&color, sizeof(int), data, sizeof(int)) != 0) { in DoSomethingInterestingWithMyAPI()
115 g_nweb->PutBackgroundColor(color); in DoSomethingInterestingWithMyAPI()
/base/security/security_component_manager/frameworks/common/src/
Dsec_comp_tool.cpp135 bool IsColorTransparent(const SecCompColor& color) in IsColorTransparent() argument
137 SC_LOG_DEBUG(LABEL, "Color %{public}x alpha %{public}x", color.value, color.argb.alpha); in IsColorTransparent()
138 return color.argb.alpha < MAX_TRANSPARENT; in IsColorTransparent()
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/pages/
DpowerDialog.ets22 .fontColor($r('app.color.button_text_color'))
42 .fontColor($r('app.color.title_color'))
61 .fontColor($r('app.color.split_color'))
70 .fontColor($r('app.color.split_color'))
79 .backgroundColor($r('app.color.default_background_color'))
DbatteryDialog.ets20 .fontColor($r('app.color.button_text_color'))
38 .fontColor($r('app.color.title_color'))
55 .backgroundColor($r('app.color.default_background_color'))
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/src/
Dlight_hdi_connection.cpp65 int32_t LightHdiConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &… in TurnOn() argument
68 int32_t ret = iLightHdiConnection_->TurnOn(lightId, color, animation); in TurnOn()

12345