Home
last modified time | relevance | path

Searched refs:themeId (Results 1 - 25 of 46) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_callback.cpp89 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 Dbundle_resource_observer.cpp55 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 Djs_theme_utils.h68 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 Dresource_config_helper.cpp66 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 Dtheme_manager_impl.h41 void LoadSystemTheme(int32_t themeId) override
43 currentThemeId_ = themeId;
44 themeConstants_->LoadTheme(themeId);
H A Dtheme_manager.h36 virtual void LoadSystemTheme(int32_t themeId) {} in LoadSystemTheme() argument
H A Dtheme_constants.cpp453 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 Dbundle_resource_callback.h44 bool OnApplicationThemeChanged(const std::string &theme, const int32_t themeId = 0,
51 bool SetThemeIdForThemeChanged(const int32_t themeId);
H A Dbundle_resource_observer.h41 static void OnApplicationThemeChanged(const std::string &theme, const int32_t themeId, const uint32_t type);
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresource_adapter_impl.cpp42 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 Dresource_adapter_impl_standard.cpp36 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 Dresource_adapter_impl.h37 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
/foundation/ability/ability_runtime/frameworks/simulator/common/include/
H A Doptions.h64 int32_t themeId { -1 };
84 uint32_t themeId; member
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dresource_configuration.h232 void SetThemeId(uint32_t themeId) in SetThemeId() argument
234 themeId_ = static_cast<int32_t>(themeId); in SetThemeId()
H A Ddevice_config.h50 int32_t themeId { -1 };
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
H A Dresource_config_helper.h43 void SetThemeId(std::string themeId);
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_adapter_impl.cpp30 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 Dresource_adapter_impl_v2.h42 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
106 void PreloadTheme(int32_t themeId, RefPtr<ResourceThemeStyle> theme);
H A Dresource_adapter_impl_v2.cpp33 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 Dabilitycontext_fuzzer.cpp118 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 Dability_context.cpp70 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 Dtheme_mock.h32 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Dace_run_args.h59 uint32_t themeId = THEME_ID_LIGHT; member
/foundation/arkui/ace_engine/test/mock/core/common/
H A Dtheme_mock.h32 RefPtr<ThemeStyle> GetTheme(int32_t themeId) override;
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dcontext_deal.cpp347 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()

Completed in 15 milliseconds

12