Home
last modified time | relevance | path

Searched refs:ResourceManagerImpl (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_resource_manager.cpp23 ResourceManagerImpl *impl = new (std::nothrow) ResourceManagerImpl; in CreateResourceManager()
29 ResourceManagerImpl::ResourceManagerImpl() {} in ResourceManagerImpl() function in OHOS::Global::Resource::ResourceManagerImpl
31 ResourceManagerImpl::~ResourceManagerImpl() {} in ~ResourceManagerImpl()
33 bool ResourceManagerImpl::AddResource(const char *path) in AddResource()
53 void ResourceManagerImpl::GetResConfig(ResConfig &resConfig) {} in GetResConfig()
127 RState ResourceManagerImpl::GetBooleanById(uint32_t id, bool &outValue) in GetBooleanById()
147 RState ResourceManagerImpl::GetFloatById(uint32_t id, float &outValue) in GetFloatById()
275 RState ResourceManagerImpl::IsLoadHap(std::string &hapPath) in IsLoadHap()
303 uint32_t ResourceManagerImpl::GetResourceLimitKeys() in GetResourceLimitKeys()
330 RState ResourceManagerImpl::GetDrawableInfoById(uint32_t id, in GetDrawableInfoById()
[all …]
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dresource_manager_impl.cpp36 ResourceManagerImpl *impl = new (std::nothrow) ResourceManagerImpl; in CreateResourceManager()
52 ResourceManagerImpl::ResourceManagerImpl() : hapManager_(nullptr) in ResourceManagerImpl() function in OHOS::Global::Resource::ResourceManagerImpl
55 bool ResourceManagerImpl::Init() in Init()
71 RState ResourceManagerImpl::GetStringById(uint32_t id, std::string &outValue) in GetStringById()
375 RState ResourceManagerImpl::GetBooleanById(uint32_t id, bool &outValue) in GetBooleanById()
408 RState ResourceManagerImpl::GetFloatById(uint32_t id, float &outValue) in GetFloatById()
434 RState ResourceManagerImpl::GetIntegerById(uint32_t id, int &outValue) in GetIntegerById()
590 ResourceManagerImpl::~ResourceManagerImpl() in ~ResourceManagerImpl()
597 bool ResourceManagerImpl::AddResource(const char *path) in AddResource()
602 RState ResourceManagerImpl::UpdateResConfig(ResConfig &resConfig) in UpdateResConfig()
[all …]
/ohos5.0/base/global/resource_management/interfaces/cj/src/
H A Dresource_manager_impl.cpp32 ResourceManagerImpl::ResourceManagerImpl(OHOS::AbilityRuntime::Context* context) in ResourceManagerImpl() function in OHOS::Resource::ResourceManagerImpl
46 int32_t ResourceManagerImpl::CloseRawFd(const std::string &name) in CloseRawFd()
57 int32_t ResourceManagerImpl::GetRawFd(const std::string &rawFileName, in GetRawFd()
104 int32_t ResourceManagerImpl::GetColorById(uint32_t id, uint32_t &outValue) in GetColorById()
148 int32_t ResourceManagerImpl::GetString(uint32_t resId, std::string &outValue) in GetString()
181 int32_t ResourceManagerImpl::AddResource(const char *path) in AddResource()
190 int32_t ResourceManagerImpl::RemoveResource(const char *path) in RemoveResource()
199 int32_t ResourceManagerImpl::GetBooleanById(uint32_t id, bool &outValue) in GetBooleanById()
221 int32_t ResourceManagerImpl::GetIntegerById(uint32_t id, int &outValue) in GetIntegerById()
243 int32_t ResourceManagerImpl::GetFloatById(uint32_t id, float &outValue) in GetFloatById()
[all …]
H A Dresource_manager_ffi.cpp72 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_CloseRawFd()
81 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetRawFd()
110 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetRawFileContent()
128 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetRawFileList()
143 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_AddResource()
152 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_RemoveResource()
163 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetPluralStringValue()
179 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetPluralStringValueByResource()
208 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetPluralStringByName()
225 auto instance = FFIData::GetData<ResourceManagerImpl>(id); in CJ_GetStringArrayValue()
[all …]
H A Dresource_manager_impl.h30 class ResourceManagerImpl : public virtual IResourceManager, public OHOS::FFI::FFIData {
36 explicit ResourceManagerImpl(OHOS::AbilityRuntime::Context* context);
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dresource_manager_impl.cpp54 void ResourceManagerImpl::AddSystemResource(ResourceManagerImpl *systemResourceManager) in AddSystemResource()
61 ResourceManagerImpl::ResourceManagerImpl(bool isOverrideResMgr) : hapManager_(nullptr), in ResourceManagerImpl() function in OHOS::Global::Resource::ResourceManagerImpl
67 bool ResourceManagerImpl::Init(bool isSystem) in Init()
1095 ResourceManagerImpl::~ResourceManagerImpl() in ~ResourceManagerImpl()
1192 void ResourceManagerImpl::GetResConfig(ResConfig &resConfig) in GetResConfig()
1207 bool ResourceManagerImpl::IsDensityValid(uint32_t density) in IsDensityValid()
1373 RState ResourceManagerImpl::IsLoadHap(std::string &hapPath) in IsLoadHap()
1479 RState ResourceManagerImpl::GetDrawableInfoById(uint32_t id, in GetDrawableInfoById()
1627 uint32_t ResourceManagerImpl::GetResourceLimitKeys() in GetResourceLimitKeys()
1686 std::string ResourceManagerImpl::GetThemeMask() in GetThemeMask()
[all …]
H A Dsystem_resource_manager.cpp42 ResourceManagerImpl *SystemResourceManager::resourceManager_ = nullptr;
52 ResourceManagerImpl *SystemResourceManager::GetSystemResourceManager() in GetSystemResourceManager()
62 ResourceManagerImpl *SystemResourceManager::GetSystemResourceManagerNoSandBox() in GetSystemResourceManagerNoSandBox()
82 ResourceManagerImpl *impl = new (std::nothrow) ResourceManagerImpl; in CreateSystemResourceManager()
102 bool SystemResourceManager::LoadSystemResource(ResourceManagerImpl *impl, bool isSandbox) in LoadSystemResource()
H A Dresource_manager.cpp36 ResourceManagerImpl *impl = new (std::nothrow) ResourceManagerImpl; in CreateResourceManager()
45 ResourceManagerImpl *systemResourceManager = SystemResourceManager::GetSystemResourceManager(); in CreateResourceManager()
H A Draw_file_manager.cpp150 ResourceManagerImpl* impl = static_cast<ResourceManagerImpl *>(mgr->resManager.get()); in OH_ResourceManager_OpenRawDir()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dsystem_resource_manager.h35 static ResourceManagerImpl *GetSystemResourceManager();
43 static ResourceManagerImpl *GetSystemResourceManagerNoSandBox();
48 static ResourceManagerImpl *resourceManager_;
64 static bool LoadSystemResource(ResourceManagerImpl *impl, bool isSandbox = true);
H A Dresource_manager_impl.h29 class ResourceManagerImpl : public ResourceManager {
31 ResourceManagerImpl(bool isOverrideResMgr = false);
33 ~ResourceManagerImpl();
56 void AddSystemResource(ResourceManagerImpl *systemResourceManager);
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_hap.cpp922 …ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths);
929 …ret = ((ResourceManagerImpl*)rm)->RemoveResource(FormatFullPath(g_resFilePath).c_str(), removePath…
933 …ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths);
957 …ret = ((ResourceManagerImpl*)rm)->RemoveResource(FormatFullPath(g_resFilePath).c_str(), removePath…
980 …ret = ((ResourceManagerImpl*)rm)->RemoveResource(FormatFullPath(g_resFilePath).c_str(), removePath…
984 …ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths);
1059 bool ret = ((ResourceManagerImpl*)rm)->AddAppOverlay("noexist.hap");
1062 ret = ((ResourceManagerImpl*)rm)->AddAppOverlay(FormatFullPath(g_overlayResFilePath).c_str());
1076 bool ret = ((ResourceManagerImpl*)rm)->RemoveAppOverlay("noexist.hap");
1079 ret = ((ResourceManagerImpl*)rm)->AddAppOverlay(FormatFullPath(g_overlayResFilePath).c_str());
[all …]
H A Dresource_manager_test.cpp1717 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1723 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1729 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1735 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1741 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1747 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1780 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1787 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1792 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1818 idItem = ((ResourceManagerImpl *)rm)->hapManager_->FindResourceById(id);
[all …]
H A Dresource_manager_test_string.cpp127 …bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayP…
143 …bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayP…
216 …bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlay…
219 ((ResourceManagerImpl *)rm)->GetStringByName("ohos_desc_camera", outValue);
233 …bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlay…
236 ((ResourceManagerImpl *)rm)->GetStringByName("hello", outValue);
1254 … bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_overlayResFilePath).c_str());
H A Dresource_manager_test_common.cpp55 … auto idv = ((ResourceManagerImpl *)rm)->hapManager_->GetResourceListByName(name.c_str(), resType); in GetResId()
H A Dresource_manager_performance_test.cpp63 … auto idv = ((ResourceManagerImpl *)rm)->hapManager_->GetResourceListByName(name.c_str(), resType); in GetResId()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dresource_manager_test.cpp1566 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1572 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1578 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1584 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1590 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1596 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1606 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1612 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1619 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
1624 ret = ((ResourceManagerImpl *)rm)->ResolveReference(value, outValue);
[all …]
H A Dresource_manager_performance_test.cpp63 … auto idv = ((ResourceManagerImpl *)rm)->hapManager_->GetResourceListByName(name.c_str(), resType); in GetResId()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dresource_manager_impl.h27 class ResourceManagerImpl : public ResourceManager {
29 ResourceManagerImpl();
31 ~ResourceManagerImpl();
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/include/
H A Dmock_resource_manager_impl.h27 class ResourceManagerImpl : public ResourceManager {
29 ResourceManagerImpl();
31 ~ResourceManagerImpl();