/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_callback.cpp | 89 const int32_t themeId, const uint32_t type) in OnApplicationThemeChanged() 91 APP_LOGI("start, theme:%{public}s, themeId:%{public}d", theme.c_str(), themeId); in OnApplicationThemeChanged() 112 if (!SetThemeIdForThemeChanged(themeId)) { in OnApplicationThemeChanged() 113 APP_LOGE("set theme id failed, themeId %{public}d", themeId); in OnApplicationThemeChanged() 169 bool BundleResourceCallback::SetThemeIdForThemeChanged(const int32_t themeId) in SetThemeIdForThemeChanged() argument 171 if (themeId <= 0) { in SetThemeIdForThemeChanged() 177 APP_LOGE("resource is nullptr, themeId %{public}d", themeId); in SetThemeIdForThemeChanged() 88 OnApplicationThemeChanged(const std::string &theme, const int32_t themeId, const uint32_t type) OnApplicationThemeChanged() argument [all...] |
H A D | bundle_resource_observer.cpp | 55 std::string themeId = configuration.GetItem(AAFwk::GlobalConfigurationKey::THEME_ID); in OnConfigurationUpdated() local 56 APP_LOGI("theme change %{public}s, themeId %{public}s", theme.c_str(), themeId.c_str()); in OnConfigurationUpdated() 57 if (!OHOS::StrToInt(themeId, id)) { in OnConfigurationUpdated() 101 const int32_t themeId, const uint32_t type) in OnApplicationThemeChanged() 104 callback.OnApplicationThemeChanged(theme, themeId, type); in OnApplicationThemeChanged() 100 OnApplicationThemeChanged(const std::string &theme, const int32_t themeId, const uint32_t type) OnApplicationThemeChanged() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_theme_utils.h | 68 auto themeId = GetWithThemeId(); in GetTheme() local 69 auto it = JSThemeScope::jsThemes.find(themeId); in GetTheme() 75 auto themeId = GetWithThemeId(); in GetThemeColors() local 76 auto it = JSThemeScope::jsThemes.find(themeId); in GetThemeColors()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | resource_config_helper.cpp | 66 void ResourceConfigHelper::SetThemeId(std::string themeId) in SetThemeId() argument 68 themeId_ = themeId; in SetThemeId() 144 uint32_t themeId = 0; in UpdateResConfig() local 145 if (ConvertStringToUint32(themeId_, themeId)) { in UpdateResConfig() 146 resConfig->SetThemeId(themeId); in UpdateResConfig() 147 TAG_LOGD(AAFwkTag::ABILITY, "set themeId: %{public}u", resConfig->GetThemeId()); in UpdateResConfig()
|
/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | theme_manager_impl.h | 41 void LoadSystemTheme(int32_t themeId) override 43 currentThemeId_ = themeId; 44 themeConstants_->LoadTheme(themeId);
|
H A D | theme_manager.h | 36 virtual void LoadSystemTheme(int32_t themeId) {} in LoadSystemTheme() argument
|
H A D | theme_constants.cpp | 453 void ThemeConstants::LoadTheme(int32_t themeId) in LoadTheme() argument 458 currentThemeStyle_ = resAdapter_->GetTheme(themeId); in LoadTheme() 460 currentThemeStyle_->SetName(std::to_string(themeId)); in LoadTheme()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bundle_resource/ |
H A D | bundle_resource_callback.h | 44 bool OnApplicationThemeChanged(const std::string &theme, const int32_t themeId = 0, 51 bool SetThemeIdForThemeChanged(const int32_t themeId);
|
H A D | bundle_resource_observer.h | 41 static void OnApplicationThemeChanged(const std::string &theme, const int32_t themeId, const uint32_t type);
|
/foundation/arkui/ace_engine/adapter/preview/osal/ |
H A D | resource_adapter_impl.cpp | 42 void CheckThemeId(int32_t& themeId) in CheckThemeId() argument 44 if (themeId >= 0) { in CheckThemeId() 48 themeId = (deviceType == DeviceType::PHONE || deviceType == DeviceType::UNKNOWN || deviceType == DeviceType::CAR) in CheckThemeId() 310 RefPtr<ThemeStyle> ResourceAdapterImpl::GetTheme(int32_t themeId) in GetTheme() argument 312 CheckThemeId(themeId); in GetTheme() 315 auto ret = resourceManger_.GetTheme(themeId, attrMap); in GetTheme() 316 LOGI("GetTheme themeId=%{public}d, ret=%{public}d, attr size=%{public}zu", themeId, ret, attrMap.size()); in GetTheme()
|
H A D | resource_adapter_impl_standard.cpp | 36 void CheckThemeId(int32_t& themeId) in CheckThemeId() argument 38 if (themeId >= 0) { in CheckThemeId() 41 themeId = OHOS_THEME_ID; in CheckThemeId() 183 RefPtr<ThemeStyle> ResourceAdapterImpl::GetTheme(int32_t themeId) in GetTheme() argument 185 CheckThemeId(themeId); in GetTheme() 189 auto ret = resourceManager_->GetThemeById(themeId, theme->rawAttrs_); in GetTheme() 200 LOGI("themeId=%{public}d, ret=%{public}d, attr size=%{public}zu, pattern size=%{public}zu", themeId, ret, in GetTheme()
|
H A D | resource_adapter_impl.h | 37 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
|
/foundation/ability/ability_runtime/frameworks/simulator/common/include/ |
H A D | options.h | 64 int32_t themeId { -1 }; 84 uint32_t themeId; member
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | resource_configuration.h | 232 void SetThemeId(uint32_t themeId) in SetThemeId() argument 234 themeId_ = static_cast<int32_t>(themeId); in SetThemeId()
|
H A D | device_config.h | 50 int32_t themeId { -1 };
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | resource_config_helper.h | 43 void SetThemeId(std::string themeId);
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_adapter_impl.cpp | 30 void CheckThemeId(int32_t& themeId) in CheckThemeId() argument 32 if (themeId >= 0) { in CheckThemeId() 35 themeId = OHOS_THEME_ID; in CheckThemeId() 177 RefPtr<ThemeStyle> ResourceAdapterImpl::GetTheme(int32_t themeId) in GetTheme() argument 179 CheckThemeId(themeId); in GetTheme() 185 auto ret = manager->GetThemeById(themeId, theme->rawAttrs_); in GetTheme() 196 LOGI("themeId=%{public}d, ret=%{public}d, attr size=%{public}zu, pattern size=%{public}zu", themeId, ret, in GetTheme()
|
H A D | resource_adapter_impl_v2.h | 42 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override; 106 void PreloadTheme(int32_t themeId, RefPtr<ResourceThemeStyle> theme);
|
H A D | resource_adapter_impl_v2.cpp | 33 void CheckThemeId(int32_t& themeId) in CheckThemeId() argument 35 if (themeId >= 0) { in CheckThemeId() 38 themeId = OHOS_THEME_ID; in CheckThemeId() 203 RefPtr<ThemeStyle> ResourceAdapterImplV2::GetTheme(int32_t themeId) in GetTheme() argument 205 CheckThemeId(themeId); in GetTheme() 212 auto ret = manager->GetThemeById(themeId, theme->rawAttrs_); in GetTheme() 233 PreloadTheme(themeId, theme); in GetTheme() 237 void ResourceAdapterImplV2::PreloadTheme(int32_t themeId, RefPtr<ResourceThemeStyle> theme) in PreloadTheme() argument 247 auto task = [themeId, manager, resourceThemeStyle = WeakPtr<ResourceThemeStyle>(theme), in PreloadTheme()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitycontext_fuzzer/ |
H A D | abilitycontext_fuzzer.cpp | 118 int themeId = static_cast<int>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 119 abilityContext.SetTheme(themeId); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/ |
H A D | ability_context.cpp | 70 TAG_LOGD(AAFwkTag::ABILITY_SIM, "themeId:%{public}d", options.themeId); in SetOptions() 73 TAG_LOGD(AAFwkTag::ABILITY_SIM, "isRound:%{public}d", options.themeId); in SetOptions()
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/theme/ |
H A D | theme_mock.h | 32 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
|
/foundation/arkui/ace_engine/adapter/preview/entrance/ |
H A D | ace_run_args.h | 59 uint32_t themeId = THEME_ID_LIGHT; member
|
/foundation/arkui/ace_engine/test/mock/core/common/ |
H A D | theme_mock.h | 32 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | context_deal.cpp | 347 void ContextDeal::SetTheme(int themeId) in SetTheme() argument 363 OHOS::Global::Resource::RState errval = resourceManager_->GetThemeById(themeId, theme_); in SetTheme() 365 TAG_LOGE(AAFwkTag::APPKIT, "SetTheme GetThemeById(themeId:%d) retval is %u", themeId, errval); in SetTheme()
|