Home
last modified time | relevance | path

Searched refs:resourceMgr (Results 1 - 10 of 10) sorted by relevance

/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.h97 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr) in LayeredDrawableDescriptor()
100 InitialResource(resourceMgr); in LayeredDrawableDescriptor()
104 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, std::string path, uint32_t iconType, in LayeredDrawableDescriptor()
108 InitialResource(resourceMgr); in LayeredDrawableDescriptor()
112 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, std::string path, uint32_t iconType, in LayeredDrawableDescriptor()
118 InitialResource(resourceMgr); in LayeredDrawableDescriptor()
154 void InitialMask(const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr);
164 void InitialResource(const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr);
166 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, bool isBackground);
168 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, cons
96 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr) LayeredDrawableDescriptor() argument
103 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, std::string path, uint32_t iconType, uint32_t density) LayeredDrawableDescriptor() argument
111 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, std::string path, uint32_t iconType, std::pair<std::unique_ptr<uint8_t[]>, size_t>& foregroundInfo, std::pair<std::unique_ptr<uint8_t[]>, size_t>& backgroundInfo) LayeredDrawableDescriptor() argument
233 Create(int32_t id, const std::shared_ptr<ResourceManager>& resourceMgr, RState& state, DrawableType& drawableType, uint32_t density) Create() argument
263 Create(const char* name, const std::shared_ptr<ResourceManager>& resourceMgr, RState& state, DrawableType& drawableType, uint32_t density) Create() argument
294 Create(std::tuple<int32_t, uint32_t, uint32_t>& drawableInfo, const std::shared_ptr<ResourceManager>& resourceMgr, RState& state, DrawableType& drawableType) Create() argument
330 Create(std::tuple<const char*, uint32_t, uint32_t>& drawableInfo, const std::shared_ptr<ResourceManager>& resourceMgr, RState& state, DrawableType& drawableType) Create() argument
365 Create(std::pair<std::unique_ptr<uint8_t[]>, size_t> &foregroundInfo, std::pair<std::unique_ptr<uint8_t[]>, size_t> &backgroundInfo, std::string &path, DrawableType& drawableType, const std::shared_ptr<ResourceManager>& resourceMgr) Create() argument
[all...]
H A Ddrawable_descriptor.cpp110 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, const char* item) in PreGetDrawableItem()
122 resItem.state_ = resourceMgr->GetDrawableInfoById(resourceId, info, resItem.data_, iconType_, density_); in PreGetDrawableItem()
129 const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, bool isBackground) in PreGetPixelMapFromJsonBuf()
151 drawableiItem = PreGetDrawableItem(resourceMgr, item->valuestring); in PreGetPixelMapFromJsonBuf()
163 void LayeredDrawableDescriptor::InitialResource(const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr) in InitialResource() argument
165 if (!resourceMgr) { in InitialResource()
169 InitialMask(resourceMgr); in InitialResource()
171 if (!PreGetPixelMapFromJsonBuf(resourceMgr, true)) { in InitialResource()
174 if (!PreGetPixelMapFromJsonBuf(resourceMgr, false)) { in InitialResource()
179 void LayeredDrawableDescriptor::InitialMask(const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr) in InitialMask() argument
109 PreGetDrawableItem( const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, const char* item) PreGetDrawableItem() argument
128 PreGetPixelMapFromJsonBuf( const std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, bool isBackground) PreGetPixelMapFromJsonBuf() argument
348 GetMaskByName( std::shared_ptr<Global::Resource::ResourceManager>& resourceMgr, const std::string& name) GetMaskByName() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/interfaces/
H A Ddrawable_descriptor_test.cpp72 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
73 auto layeredDrawableDescriptor = Napi::LayeredDrawableDescriptor(std::move(jsonBuf), len, std::move(resourceMgr)); in HWTEST_F()
140 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
141 ASSERT_NE(resourceMgr, nullptr); in HWTEST_F()
142 auto layeredDrawableDescriptor = Napi::LayeredDrawableDescriptor(std::move(jsonBuf), len, std::move(resourceMgr)); in HWTEST_F()
165 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
166 ASSERT_NE(resourceMgr, nullptr); in HWTEST_F()
170 auto res = drawableDescriptorFactory.Create(ID, resourceMgr, state, drawableType, DENSITY); in HWTEST_F()
173 auto res2 = drawableDescriptorFactory.Create(nullptr, resourceMgr, state, drawableType, DENSITY); in HWTEST_F()
176 auto res3 = drawableDescriptorFactory.Create(drawableInfo, resourceMgr, stat in HWTEST_F()
203 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr; HWTEST_F() local
231 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr; HWTEST_F() local
281 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dability_record.cpp557 auto resourceMgr = CreateResourceManager(); in GetLabel() local
558 if (!resourceMgr) { in GetLabel()
562 auto result = resourceMgr->GetStringById(abilityInfo_.applicationInfo.labelId, strLabel); in GetLabel()
567 InitColdStartingWindowResource(resourceMgr); in GetLabel()
1018 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in CreateResourceManager()
1019 resourceMgr->UpdateResConfig(*resConfig); in CreateResourceManager()
1033 if (!resourceMgr->AddResource(loadPath.c_str())) { in CreateResourceManager()
1037 return resourceMgr; in CreateResourceManager()
1041 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr) const in GetPixelMap()
1044 if (resourceMgr in GetPixelMap()
1154 auto resourceMgr = CreateResourceManager(); GetColdStartingWindowResource() local
1172 InitColdStartingWindowResource( const std::shared_ptr<Global::Resource::ResourceManager> &resourceMgr) InitColdStartingWindowResource() argument
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dability_record.h1209 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr) const;
1230 void InitColdStartingWindowResource(const std::shared_ptr<Global::Resource::ResourceManager> &resourceMgr);
/foundation/multimedia/media_library/frameworks/js/src/
H A Dphotoaccesshelperinf.js154 const resourceMgr = gContext.resourceManager;
155 appName = await resourceMgr.getStringValue(labelId);
/foundation/ability/ability_runtime/test/unittest/ability_record_test/
H A Dability_record_test.cpp1371 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
1372 EXPECT_EQ(abilityRecord_->GetPixelMap(1, resourceMgr), nullptr); in HWTEST_F()
1386 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
1389 auto res = abilityRecord->GetPixelMap(1, resourceMgr); in HWTEST_F()
1443 std::shared_ptr<Global::Resource::ResourceManager> resourceMgr(Global::Resource::CreateResourceManager()); in HWTEST_F()
1445 abilityRecord->InitColdStartingWindowResource(resourceMgr); in HWTEST_F()
/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscene_session_manager.cpp3348 auto resourceMgr = context->GetResourceManager(); in GetResourceManager() local
3349 if (!resourceMgr) { in GetResourceManager()
3350 WLOGFE("resourceMgr is nullptr."); in GetResourceManager()
3358 resourceMgr->GetResConfig(*resConfig); in GetResourceManager()
3359 resourceMgr = Global::Resource::CreateResourceManager( in GetResourceManager()
3361 if (!resourceMgr) { in GetResourceManager()
3362 WLOGFE("resourceMgr is nullptr."); in GetResourceManager()
3365 resourceMgr->UpdateResConfig(*resConfig); in GetResourceManager()
3374 if (!resourceMgr->AddResource(loadPath.c_str(), Global::Resource::SELECT_COLOR | Global::Resource::SELECT_MEDIA)) { in GetResourceManager()
3377 return resourceMgr; in GetResourceManager()
3383 auto resourceMgr = GetResourceManager(abilityInfo); GetStartupPageFromResource() local
[all...]
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dui_ability_test.cpp1248 auto resourceMgr = ability->GetResourceManager(); in HWTEST_F() local
1249 EXPECT_EQ(resourceMgr, nullptr); in HWTEST_F()
H A Dability_test.cpp2716 auto resourceMgr = ability->GetResourceManager(); in HWTEST_F() local
2717 EXPECT_EQ(resourceMgr, nullptr); in HWTEST_F()

Completed in 32 milliseconds