/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 46 HapResource::ValueUnderQualifierDir::ValueUnderQualifierDir(const std::shared_ptr<ResKey> resKey, in ValueUnderQualifierDir() 60 HapResource::ValueUnderQualifierDir::~ValueUnderQualifierDir() in ~ValueUnderQualifierDir() 64 HapResource::IdValues::~IdValues() in ~IdValues() 67 // HapResource 68 HapResource::HapResource(const std::string path, time_t lastModTime, std::shared_ptr<ResDesc> resDes, in HapResource() function in OHOS::Global::Resource::HapResource 73 HapResource::~HapResource() in ~HapResource() 78 const std::shared_ptr<HapResource> HapResource [all...] |
H A D | hap_resource_manager.cpp | 36 std::shared_ptr<HapResource> HapResourceManager::PutAndGetResource(const std::string &path, in PutAndGetResource() 37 std::shared_ptr<HapResource> pResource) in PutAndGetResource() 55 std::shared_ptr<HapResource> hapResource = hapResourceMap_[path].lock(); in PutPatchResource() 65 std::shared_ptr<HapResource> HapResourceManager::GetHapResource(const std::string &path) in GetHapResource()
|
H A D | hap_manager.cpp | 183 const std::shared_ptr<HapResource::ValueUnderQualifierDir> HapManager::FindQualifierValueByName( in FindQualifierValueByName() 187 std::vector<std::shared_ptr<HapResource::IdValues>> candidates = this->GetResourceListByName(name, resType); in FindQualifierValueByName() 194 const std::shared_ptr<HapResource::ValueUnderQualifierDir> HapManager::FindQualifierValueById(uint32_t id, in FindQualifierValueById() 198 std::vector<std::shared_ptr<HapResource::IdValues>> candidates = this->GetResourceList(id); in FindQualifierValueById() 252 std::shared_ptr<HapResource::ValueUnderQualifierDir> &result, in MatchBestResource() 253 const std::vector<std::shared_ptr<HapResource::ValueUnderQualifierDir>> &paths, in MatchBestResource() 259 std::shared_ptr<HapResource::ValueUnderQualifierDir> path = paths[i]; in MatchBestResource() 276 const std::shared_ptr<HapResource::ValueUnderQualifierDir> HapManager::GetBestMatchResource( in GetBestMatchResource() 277 std::vector<std::shared_ptr<HapResource::IdValues>> candidates, uint32_t density, bool isGetOverrideResource) in GetBestMatchResource() 281 std::shared_ptr<HapResource in GetBestMatchResource() [all...] |
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_manager.h | 145 const std::shared_ptr<HapResource::ValueUnderQualifierDir> FindQualifierValueById(uint32_t id, 155 const std::shared_ptr<HapResource::ValueUnderQualifierDir> FindQualifierValueByName(const char *name, 185 RState GetMediaData(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, size_t& len, 194 RState GetMediaBase64Data(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, std::string &outValue); 203 RState GetProfileData(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, size_t &len, 260 RState GetFilePath(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, const ResType resType, 270 RState GetMediaDataFromHap(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, size_t &len, 280 RState GetMediaDataFromIndex(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, size_t &len, 289 RState GetMediaBase64DataFromHap(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, 298 RState GetMediaBase64DataFromIndex(const std::shared_ptr<HapResource [all...] |
H A D | hap_resource_manager.h | 45 std::shared_ptr<HapResource> PutAndGetResource(const std::string &path, std::shared_ptr<HapResource> hapResource); 61 std::shared_ptr<HapResource> GetHapResource(const std::string &path); 67 std::unordered_map<std::string, std::weak_ptr<HapResource>> hapResourceMap_;
|
H A D | hap_resource.h | 30 * HapResource describe a resource of hap zip file. 33 class HapResource { class 36 * Creates an HapResource. 47 static const std::shared_ptr<HapResource> LoadFromIndex( 52 * Creates an HapResource. 63 static const std::shared_ptr<HapResource> LoadFromHap( 68 * Creates an HapResource. 79 static const std::shared_ptr<HapResource> Load( 91 static const std::unordered_map<std::string, std::shared_ptr<HapResource>> LoadOverlays( 96 * The destructor of HapResource [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | hap_resource.cpp | 34 HapResource::ValueUnderQualifierDir::ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem, in ValueUnderQualifierDir() 35 HapResource *hapResource) : hapResource_(hapResource) in ValueUnderQualifierDir() 43 HapResource::ValueUnderQualifierDir::~ValueUnderQualifierDir() in ~ValueUnderQualifierDir() 49 void HapResource::ValueUnderQualifierDir::InitResConfig() in InitResConfig() 55 HapResource::IdValues::~IdValues() in ~IdValues() 63 // HapResource 64 HapResource::HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig, ResDesc *resDes) in HapResource() function in OHOS::Global::Resource::HapResource 69 HapResource::~HapResource() in ~HapResource() [all...] |
H A D | hap_manager.cpp | 119 const HapResource::ValueUnderQualifierDir *HapManager::FindQualifierValueByName( in FindQualifierValueByName() 122 const HapResource::IdValues *idValues = this->GetResourceListByName(name, resType); in FindQualifierValueByName() 126 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueByName() 134 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueByName() 152 const HapResource::ValueUnderQualifierDir *HapManager::FindQualifierValueById(uint32_t id) in FindQualifierValueById() 154 const HapResource::IdValues *idValues = this->GetResourceList(id); in FindQualifierValueById() 158 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueById() 166 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueById() 224 const HapResource::IdValues *HapManager::GetResourceList(uint32_t ident) const in GetResourceList() 228 HapResource *pResourc in GetResourceList() [all...] |
H A D | resource_manager_impl.cpp | 181 const HapResource::ValueUnderQualifierDir *vuqd = hapManager_->FindQualifierValueById(id); in GetPluralStringById() 187 const HapResource::ValueUnderQualifierDir *vuqd = in GetPluralStringByName() 194 const HapResource::ValueUnderQualifierDir *vuqd = hapManager_->FindQualifierValueById(id); in GetPluralStringByIdFormat() 211 const HapResource::ValueUnderQualifierDir *vuqd = in GetPluralStringByNameFormat() 227 RState ResourceManagerImpl::GetPluralString(const HapResource::ValueUnderQualifierDir *vuqd, in GetPluralString() 574 RState ResourceManagerImpl::GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, in GetRawFile()
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_common.h | 119 void TestGetProfileById(HapResource *tmp); 121 void TestGetProfileByName(HapResource *tmp); 123 void TestGetMediaWithDensityById(HapResource *tmp); 125 void TestGetMediaById(HapResource *tmp); 127 void TestGetMediaWithDensityByName(HapResource *tmp); 129 void TestGetMediaByName(HapResource *tmp); 131 void TestGetDrawableInfoWithDensityById(HapResource *tmp); 133 void TestGetDrawableInfoById(HapResource *tmp); 135 void TestGetDrawableInfoWithDensityByName(HapResource *tmp); 137 void TestGetDrawableInfoByName(HapResource *tm [all...] |
H A D | resource_manager_test_media.cpp | 75 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); in HWTEST_F() 104 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); in HWTEST_F() 118 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); in HWTEST_F() 154 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); in HWTEST_F() 190 HapResource *tmp = new HapResource(FormatFullPat in HWTEST_F() [all...] |
H A D | resource_manager_test_hap.cpp | 471 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); in HWTEST_F() 486 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); in HWTEST_F() 501 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); in HWTEST_F() 516 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); in HWTEST_F() 531 HapResource *tmp = new HapResource(FormatFullPat in HWTEST_F() [all...] |
H A D | hap_resource_test.cpp | 65 //void TestGetIdValuesByName(const HapResource *pResource) 66 void TestGetIdValuesByName(const std::shared_ptr<HapResource> pResource) in TestGetIdValuesByName() 106 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc); in HWTEST_F() 143 //void GetIdValuesByNameFuncTest002(const HapResource *pResource, int id) 144 void GetIdValuesByNameFuncTest002(const std::shared_ptr<HapResource> pResource, int id) in GetIdValuesByNameFuncTest002() 182 auto pResource = HapResource::LoadFromIndex(path, rc); in HWTEST_F() 225 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc); in HWTEST_F()
|
H A D | test_common.h | 42 void PrintIdValues(const std::shared_ptr<HapResource::IdValues> &idValues);
|
H A D | resource_manager_test_common.cpp | 197 void ResourceManagerTestCommon::TestGetProfileById(HapResource *tmp) in TestGetProfileById() 212 void ResourceManagerTestCommon::TestGetProfileByName(HapResource *tmp) in TestGetProfileByName() 224 void ResourceManagerTestCommon::TestGetMediaById(HapResource *tmp) in TestGetMediaById() 238 void ResourceManagerTestCommon::TestGetMediaWithDensityById(HapResource *tmp) in TestGetMediaWithDensityById() 264 void ResourceManagerTestCommon::TestGetMediaByName(HapResource *tmp) in TestGetMediaByName() 276 void ResourceManagerTestCommon::TestGetMediaWithDensityByName(HapResource *tmp) in TestGetMediaWithDensityByName() 300 void ResourceManagerTestCommon::TestGetDrawableInfoById(HapResource *tmp) in TestGetDrawableInfoById() 313 void ResourceManagerTestCommon::TestGetDrawableInfoWithDensityById(HapResource *tmp) in TestGetDrawableInfoWithDensityById() 343 void ResourceManagerTestCommon::TestGetDrawableInfoByName(HapResource *tmp) in TestGetDrawableInfoByName() 354 void ResourceManagerTestCommon::TestGetDrawableInfoWithDensityByName(HapResource *tm [all...] |
H A D | test_common.cpp | 42 void PrintIdValues(const std::shared_ptr<HapResource::IdValues> &idValues) in PrintIdValues()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | hap_resource.h | 29 * HapResource describe a resource of hap zip file. 32 class HapResource { class 35 * Creates an HapResource. 44 static const HapResource *LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig, bool system = false); 47 * The destructor of HapResource 49 ~HapResource(); 92 inline const HapResource *GetHapResource() const in GetHapResource() 98 HapResource *hapResource); 120 const HapResource *hapResource_; 174 HapResource(cons [all...] |
H A D | hap_manager.h | 82 const HapResource::ValueUnderQualifierDir *FindQualifierValueById(uint32_t id); 90 const HapResource::ValueUnderQualifierDir *FindQualifierValueByName(const char *name, const ResType resType); 104 const HapResource::IdValues *GetResourceList(uint32_t ident) const; 106 const HapResource::IdValues *GetResourceListByName(const char *name, const ResType resType) const; 117 std::vector<HapResource *> hapResources_;
|
H A D | resource_manager_impl.h | 292 RState GetPluralString(const HapResource::ValueUnderQualifierDir *vuqd, int quantity, std::string &outValue); 306 RState GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, std::string &outValue);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | hap_resource_test.cpp | 74 const HapResource *pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), nullptr); in HWTEST_F() 153 const HapResource *pResource = HapResource::LoadFromIndex(path, rc); in HWTEST_F() 221 const HapResource *pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), nullptr); in HWTEST_F()
|
H A D | hap_manager_test.cpp | 78 const HapResource::IdValues *idValues = hapManager->GetResourceList(id); in HWTEST_F() 117 const HapResource::IdValues *idValues = hapManager->GetResourceList(id); in HWTEST_F()
|
H A D | test_common.h | 34 void PrintIdValues(const HapResource::IdValues *idValues);
|
H A D | global_test.cpp | 70 const HapResource *pResource = HapResource::LoadFromIndex(path, rc); in GetResId()
|
H A D | test_common.cpp | 42 void PrintIdValues(const HapResource::IdValues *idValues) in PrintIdValues()
|
H A D | resource_manager_test.cpp | 318 HapResource *hapResource = new HapResource("/data/test/non_exist", 0, nullptr, nullptr); in HWTEST_F() 1396 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); in HWTEST_F() 1435 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); in HWTEST_F() 1472 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); in HWTEST_F() 1511 HapResource *tmp = new HapResource(FormatFullPat in HWTEST_F() [all...] |