Home
last modified time | relevance | path

Searched refs:colorMode (Results 1 - 25 of 192) sorted by relevance

12345678

/foundation/ability/form_fwk/services/src/
H A Dform_resource_observer.cpp40 std::string colorMode = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_COLORMODE); in OnConfigurationUpdated() local
41 if (!colorMode.empty() && colorMode != colorMode_) { in OnConfigurationUpdated()
42 HILOG_INFO("colorMode:%{public}s", colorMode.c_str()); in OnConfigurationUpdated()
44 colorMode_ = colorMode; in OnConfigurationUpdated()
/foundation/arkui/ace_engine/frameworks/core/common/resource/
H A Dresource_wrapper.cpp20 RefPtr<ThemeConstants>& themeConstants, RefPtr<ResourceAdapter>& resourceAdapter, ColorMode colorMode) in ResourceWrapper()
21 : themeConstants_(themeConstants), resourceAdapter_(resourceAdapter), localColorMode_(colorMode) in ResourceWrapper()
23 if (resourceAdapter && colorMode != ColorMode::COLOR_MODE_UNDEFINED) { in ResourceWrapper()
24 resourceAdapter->UpdateColorMode(colorMode); in ResourceWrapper()
19 ResourceWrapper( RefPtr<ThemeConstants>& themeConstants, RefPtr<ResourceAdapter>& resourceAdapter, ColorMode colorMode) ResourceWrapper() argument
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_observer.cpp40 std::string colorMode = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_COLORMODE); in OnConfigurationUpdated() local
41 if (!colorMode.empty() && (colorMode != BundleSystemState::GetInstance().GetSystemColorMode())) { in OnConfigurationUpdated()
42 APP_LOGI("OnSystemColorModeChanged colorMode:%{public}s", colorMode.c_str()); in OnConfigurationUpdated()
43 OnSystemColorModeChanged(colorMode, static_cast<uint32_t>(BundleResourceChangeType::SYSTEM_COLOR_MODE_CHANGE)); in OnConfigurationUpdated()
88 void BundleResourceObserver::OnSystemColorModeChanged(const std::string &colorMode, const uint32_t type) in OnSystemColorModeChanged() argument
91 callback.OnSystemColorModeChanged(colorMode, type); in OnSystemColorModeChanged()
H A Dbundle_resource_callback.cpp49 bool BundleResourceCallback::OnSystemColorModeChanged(const std::string &colorMode, const uint32_t type) in OnSystemColorModeChanged() argument
51 APP_LOGI("start, colorMode: %{public}s", colorMode.c_str()); in OnSystemColorModeChanged()
52 if (colorMode == BundleSystemState::GetInstance().GetSystemColorMode()) { in OnSystemColorModeChanged()
53 APP_LOGD("colorMode: %{public}s no change", colorMode.c_str()); in OnSystemColorModeChanged()
56 APP_LOGI("end, colorMode: %{public}s", colorMode.c_str()); in OnSystemColorModeChanged()
/foundation/arkui/ace_engine/frameworks/core/common/rosen/
H A Drosen_convert_helper.cpp21 ThemeColorMode colorMode = option.colorMode; in GetRosenBlurStyleValue() local
22 if (option.colorMode == ThemeColorMode::SYSTEM) { in GetRosenBlurStyleValue()
23 colorMode = SystemProperties::GetColorMode() == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in GetRosenBlurStyleValue()
44 auto iter = mp.find({ option.blurStyle, colorMode }); in GetRosenBlurStyleValue()
H A Drosen_convert_helper.h25 std::optional<BlurParameter> GetBlurParameter(BlurStyle style, ThemeColorMode colorMode);
/foundation/arkui/ui_lite/frameworks/imgdecode/
H A Dfile_img_decoder.h62 bool IsImgValidMode(uint8_t colorMode) in IsImgValidMode() argument
64 if ((colorMode == RGB565) || (colorMode == RGB888) || (colorMode == ARGB8888)) { in IsImgValidMode()
H A Dfile_img_decoder.cpp42 uint8_t colorMode = dsc.imgInfo.header.colorMode; in Open() local
43 if (IsImgValidMode(colorMode)) { in Open()
83 dsc.imgInfo.header.colorMode = UNKNOWN; in GetHeader()
92 if (IsImgValidMode(dsc.imgInfo.header.colorMode)) { in ReadLine()
148 uint8_t pxSizeInBit = DrawUtils::GetPxSizeByColorMode(dsc.imgInfo.header.colorMode); in ReadLineTrueColor()
/foundation/arkui/ace_engine/test/unittest/core/common/rosen/
H A Drosen_test.cpp170 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
179 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
188 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
197 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
206 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
215 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
224 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
242 blurStyleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
251 blurStyleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
260 blurStyleOption.colorMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dresource_configuration.cpp23 const std::string CONFIGURATION_COLOR_MODE = "colorMode";
48 ColorMode colorMode = ColorMode::LIGHT; in ParseJsonColorMode() local
50 colorMode = ColorMode::DARK; in ParseJsonColorMode()
52 if (colorMode != colorMode_) { in ParseJsonColorMode()
53 colorMode_ = colorMode; in ParseJsonColorMode()
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dshadow_theme.cpp38 Shadow ShadowTheme::GetShadow(ShadowStyle style, ColorMode colorMode) in GetShadow() argument
40 auto key = GetKeyOfShadowStyle(style, colorMode); in GetShadow()
49 auto shadow = ParseShadowParam(themeStyle_, style, shadowIter->second, colorMode == ColorMode::DARK); in GetShadow()
59 uint32_t ShadowTheme::GetKeyOfShadowStyle(ShadowStyle style, ColorMode colorMode) in GetKeyOfShadowStyle() argument
61 return (static_cast<uint32_t>(colorMode) << 8) + static_cast<uint32_t>(style); // can hold 2^8 shadowStyle enums in GetKeyOfShadowStyle()
H A Dblur_style_theme.cpp82 uint32_t BlurStyleTheme::GetKeyOfBlurStyle(BlurStyle style, ThemeColorMode colorMode) in GetKeyOfBlurStyle() argument
84 return (static_cast<uint32_t>(colorMode) << 8) + static_cast<uint32_t>(style); // can hold 2^8 blurStyle enums in GetKeyOfBlurStyle()
87 std::optional<BlurParameter> BlurStyleTheme::GetBlurParameter(BlurStyle style, ThemeColorMode colorMode) in GetBlurParameter() argument
89 auto key = GetKeyOfBlurStyle(style, colorMode); in GetBlurParameter()
98 auto blur = ParseBlurParam(themeStyle_, blurIter->second, colorMode == ThemeColorMode::DARK); in GetBlurParameter()
H A Dshadow_theme.h44 Shadow GetShadow(ShadowStyle style, ColorMode colorMode);
48 static uint32_t GetKeyOfShadowStyle(ShadowStyle style, ColorMode colorMode);
H A Dblur_style_theme.h40 std::optional<BlurParameter> GetBlurParameter(BlurStyle style, ThemeColorMode colorMode);
44 static uint32_t GetKeyOfBlurStyle(BlurStyle style, ThemeColorMode colorMode);
H A Dtheme_utils.cpp175 std::string colorMode; in ProcessImageSource() local
178 colorMode = "light"; in ProcessImageSource()
181 colorMode = "dark"; in ProcessImageSource()
184 colorMode = "undefined"; in ProcessImageSource()
187 std::string result = "resource://" + colorMode + "/" + std::to_string(resId) + imageSuffix; in ProcessImageSource()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_image.cpp30 uint8_t pxBitSize = DrawUtils::GetPxSizeByColorMode(img->header.colorMode); in DrawCommon()
32 static_cast<ColorMode>(img->header.colorMode)); in DrawCommon()
48 uint8_t pxBitSize = DrawUtils::GetPxSizeByColorMode(entry.GetImageInfo().header.colorMode); in DrawCommon()
51 static_cast<ColorMode>(entry.GetImageInfo().header.colorMode)); in DrawCommon()
79 static_cast<ColorMode>(entry.GetImageInfo().header.colorMode)); in DrawCommon()
/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/
H A Dmedia_queryer.h33 void SetColorMode(ColorMode colorMode) in SetColorMode() argument
35 colorMode_ = colorMode; in SetColorMode()
/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dace_res_config.h41 AceResConfig(int32_t mcc, int32_t mnc, DeviceOrientation orientation, ColorMode colorMode, DeviceType deviceType, in AceResConfig() argument
43 : mcc_(mcc), mnc_(mnc), orientation_(orientation), colorMode_(colorMode), deviceType_(deviceType), in AceResConfig()
48 LongScreenType screenLong, ScreenShape screenShape, DeviceOrientation orientation, ColorMode colorMode, in AceResConfig()
51 orientation_(orientation), colorMode_(colorMode), deviceType_(deviceType), resolution_(resolution) in AceResConfig()
47 AceResConfig(const std::string& language, const std::string& script, const std::string& region, LongScreenType screenLong, ScreenShape screenShape, DeviceOrientation orientation, ColorMode colorMode, DeviceType deviceType, ResolutionType resolution) AceResConfig() argument
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dshadow.cpp35 auto colorMode = SystemProperties::GetColorMode(); in CreateShadow() local
36 if (colorMode == ColorMode::DARK) { in CreateShadow()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/bundle_resource/
H A Dbundle_system_state.cpp24 const char* JSON_KEY_COLOR_MODE = "colorMode";
52 void BundleSystemState::SetSystemColorMode(const std::string &colorMode) in SetSystemColorMode() argument
55 colorMode_ = colorMode; in SetSystemColorMode()
/foundation/arkui/ui_lite/frameworks/common/
H A Dscreen.cpp52 info.header.colorMode = ARGB8888; in GetCurrentScreenBitmap()
53 info.dataSize = screenWidth * screenHeight * DrawUtils::GetByteSizeByColorMode(info.header.colorMode); in GetCurrentScreenBitmap()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_maskcolor_shader_filter.cpp22 RSMaskColorShaderFilter::RSMaskColorShaderFilter(int colorMode, RSColor maskColor) in RSMaskColorShaderFilter() argument
23 : colorMode_(colorMode), maskColor_(maskColor) in RSMaskColorShaderFilter()
/foundation/ability/ability_runtime/frameworks/js/napi/configuration_constant/
H A Dconfiguration_constant_module.cpp94 napi_value colorMode = InitColorModeObject(env); in ConfigurationConstantInit() local
95 NAPI_ASSERT(env, colorMode != nullptr, "failed to create color mode object"); in ConfigurationConstantInit()
107 DECLARE_NAPI_PROPERTY("ColorMode", colorMode), in ConfigurationConstantInit()
H A Dconfiguration_constant_napi_module.cpp94 napi_value colorMode = InitColorModeObject(env); in ConfigurationConstantInit() local
95 NAPI_ASSERT(env, colorMode != nullptr, "failed to create color mode object"); in ConfigurationConstantInit()
107 DECLARE_NAPI_PROPERTY("ColorMode", colorMode), in ConfigurationConstantInit()
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_utils_ffi.h26 int32_t colorMode; member

Completed in 7 milliseconds

12345678