/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | utils.cpp | 279 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/test/unittest/light/ |
D | light_agent_test.cpp | 138 bool GetLightColor(LightColor &color, int32_t lightType) in GetLightColor() argument 142 color.singleColor = 0Xff; in GetLightColor() 146 color.rgbColor = { in GetLightColor() 154 color.wrgbColor = { in GetLightColor() 180 LightColor color; variable 181 bool flag = GetLightColor(color, g_lightType); 189 int32_t ret = TurnOn(g_lightId, color, animation); 204 LightColor color; variable 205 bool flag = GetLightColor(color, g_lightType); 213 int32_t ret = TurnOn(g_lightId, color, animation); [all …]
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | utils.cpp | 394 uint32_t color = 0; in ConvertColorToUInt32() local 399 color |= 0xFF000000; in ConvertColorToUInt32() 400 color |= ParseHex(s[1], parseState) << 20; in ConvertColorToUInt32() 401 color |= ParseHex(s[1], parseState) << 16; in ConvertColorToUInt32() 402 color |= ParseHex(s[2], parseState) << 12; in ConvertColorToUInt32() 403 color |= ParseHex(s[2], parseState) << 8; in ConvertColorToUInt32() 404 color |= ParseHex(s[3], parseState) << 4; in ConvertColorToUInt32() 405 color |= ParseHex(s[3], parseState); in ConvertColorToUInt32() 407 color |= ParseHex(s[1], parseState) << 28; in ConvertColorToUInt32() 408 color |= ParseHex(s[1], parseState) << 24; in ConvertColorToUInt32() [all …]
|
/base/update/updater/services/ui/view/ |
D | view_api.cpp | 50 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()
|
D | view_api.h | 32 bool CheckColor(const std::string &color); 33 OHOS::ColorType StrToColor(const std::string &color);
|
/base/powermgr/battery_manager/charger/src/ |
D | battery_led.cpp | 61 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/ |
D | battery_light.cpp | 69 void BatteryLight::TurnOn(uint32_t color) in TurnOn() argument 73 lightColor.rgbColor.r = (color >> MOVE_RIGHT_16) & 0xFF; in TurnOn() 74 lightColor.rgbColor.g = (color >> MOVE_RIGHT_8) & 0xFF; in TurnOn() 75 lightColor.rgbColor.b = color & 0xFF; in TurnOn() 79 BATTERY_HILOGD(FEATURE_BATT_LIGHT, "battery light color is %{public}u", color); in TurnOn() 84 lightColor_ = (ret < ERR_OK) ? lightColor_ : color; in TurnOn()
|
/base/web/webview/test/fuzztest/putbackgroundcolor_fuzzer/ |
D | putbackgroundcolor_fuzzer.cpp | 34 int color; in PutBackgroundColorFuzzTest() local 35 if (memcpy_s(&color, sizeof(int), data, sizeof(int)) != 0) { in PutBackgroundColorFuzzTest() 38 g_nweb->PutBackgroundColor(color); in PutBackgroundColorFuzzTest()
|
/base/theme/wallpaper_mgr/frameworks/native/src/ |
D | wallpaper_event_listener_stub.cpp | 35 std::vector<uint64_t> color; in OnRemoteRequest() local 36 if (!data.ReadUInt64Vector(&color)) { in OnRemoteRequest() 41 OnColorsChange(color, wallpaperType); in OnRemoteRequest()
|
D | wallpaper_event_listener_client.cpp | 36 void WallpaperEventListenerClient::OnColorsChange(const std::vector<uint64_t> &color, int32_t wallp… in OnColorsChange() argument 40 wallpaperEventListener_->OnColorsChange(color, wallpaperType); in OnColorsChange()
|
/base/sensors/miscdevice/test/fuzztest/light/startlight_fuzzer/ |
D | startlight_fuzzer.cpp | 41 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/security/security_component_manager/frameworks/common/include/ |
D | sec_comp_tool.h | 24 bool IsColorTransparent(const SecCompColor& color); 25 bool IsColorFullTransparent(const SecCompColor& color);
|
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/component/ |
D | confirmDialog.ets | 33 .fontColor($r('sys.color.ohos_id_color_text_primary')) 43 .fontColor($r('sys.color.ohos_id_color_text_primary')) 67 .color($r('sys.color.ohos_id_color_list_separator')) 71 .fontColor($r('sys.color.ohos_id_color_warning')) 95 .backgroundColor($r('sys.color.ohos_id_color_dialog_bg'))
|
/base/security/security_component_manager/frameworks/common/src/ |
D | sec_comp_tool.cpp | 135 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() 141 bool IsColorFullTransparent(const SecCompColor& color) in IsColorFullTransparent() argument 143 return color.argb.alpha == 0; in IsColorFullTransparent()
|
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/ |
D | wallpaper_manager_fuzzer.cpp | 70 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/powermgr/battery_manager/test/unittest/src/ |
D | battery_light_test.cpp | 115 uint32_t color = 0U; variable 116 g_light.TurnOn(color); 117 EXPECT_TRUE(g_light.GetLightColor() == color); 144 uint32_t color = 0x7fffffff; variable 145 g_light.TurnOn(color); 146 EXPECT_TRUE(g_light.GetLightColor() == color);
|
/base/theme/wallpaper_mgr/test/unittest/ |
D | wallpaper_permission_test.cpp | 97 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/ |
D | mock_pixel_map.cpp | 143 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/useriam/fingerprint_auth/services_ex/src/ |
D | sensor_illumination_task.cpp | 83 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/theme/wallpaper_mgr/frameworks/js/napi/ |
D | wallpaper_js_util.cpp | 50 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/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/pages/ |
D | enrollIntro.ets | 23 .fontColor($r('sys.color.ohos_id_color_text_primary')) 29 .fontColor($r('sys.color.ohos_id_color_text_primary')) 35 .fontColor($r('sys.color.ohos_id_color_text_secondary')) 41 .fontColor($r('sys.color.ohos_id_color_text_hyperlink')) 110 .fontColor($r('sys.color.ohos_id_color_foreground_contrary')) 137 .backgroundColor($r('sys.color.ohos_id_color_sub_background'))
|
D | entryView.ets | 36 .fontColor($r('sys.color.ohos_id_color_text_primary')) 40 .fontColor($r('sys.color.ohos_id_color_text_primary')) 49 .fontColor($r('sys.color.ohos_id_color_foreground_contrary')) 60 .fontColor($r('sys.color.ohos_id_color_text_primary')) 67 .backgroundColor($r('sys.color.ohos_id_color_sub_background'))
|
/base/sensors/miscdevice/frameworks/native/light/ |
D | light_agent.cpp | 38 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument 45 int32_t ret = client.TurnOn(lightId, color, animation); in TurnOn()
|
/base/theme/wallpaper_mgr/services/src/ |
D | wallpaper_event_listener_proxy.cpp | 27 void WallpaperEventListenerProxy::OnColorsChange(const std::vector<uint64_t> &color, int32_t wallpa… in OnColorsChange() argument 38 if (!data.WriteUInt64Vector(color)) { in OnColorsChange()
|
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
D | publishnotification_fuzzer.cpp | 39 uint32_t color = GetU32Data(data); in DoSomethingInterestingWithMyAPI() local 40 request.SetColor(color); in DoSomethingInterestingWithMyAPI() 65 Notification::NotificationRequest::GroupAlertType(color); in DoSomethingInterestingWithMyAPI()
|