/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | hap_resource.cpp | 35 HapResource *hapResource) : hapResource_(hapResource) in ValueUnderQualifierDir() 49 void HapResource::ValueUnderQualifierDir::InitResConfig() in InitResConfig() 55 HapResource::IdValues::~IdValues() in ~IdValues() 64 HapResource::HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig… in HapResource() function in OHOS::Global::Resource::HapResource 69 HapResource::~HapResource() in ~HapResource() 86 const HapResource *HapResource::LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig,… in LoadFromIndex() 128 …HapResource *pResource = new (std::nothrow) HapResource(std::string(path), 0, defaultConfig, resDe… in LoadFromIndex() 141 bool HapResource::Init() in Init() 165 bool HapResource::InitIdList() in InitIdList() 210 const HapResource::IdValues *HapResource::GetIdValues(const uint32_t id) const in GetIdValues() [all …]
|
H A D | hap_manager.cpp | 134 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueByName() 154 const HapResource::IdValues *idValues = this->GetResourceList(id); in FindQualifierValueById() 166 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueById() 228 HapResource *pResource = hapResources_[i]; in GetResourceList() 229 const HapResource::IdValues *out = pResource->GetIdValues(ident); in GetResourceList() 241 HapResource *pResource = hapResources_[i]; in GetResourceListByName() 259 const HapResource *pResource = HapResource::LoadFromIndex(path, resConfig_); in AddResourcePath() 263 this->hapResources_.push_back(const_cast<HapResource *>(pResource)); in AddResourcePath() 273 std::vector<HapResource *> newResources; in ReloadAll() 275 …const HapResource *pResource = HapResource::LoadFromIndex(hapResources_[i]->GetIndexPath().c_str()… in ReloadAll() [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 ResTy… in GetRawFile()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 63 HapResource::IdValues::~IdValues() in ~IdValues() 67 HapResource::HapResource(const std::string path, time_t lastModTime, std::shared_ptr<ResDesc> resDe… in HapResource() function in OHOS::Global::Resource::HapResource 72 HapResource::~HapResource() in ~HapResource() 77 const std::shared_ptr<HapResource> HapResource::Load(const char *path, in Load() 87 const std::shared_ptr<HapResource> HapResource::LoadFromIndex(const char *path, in LoadFromIndex() 129 std::shared_ptr<HapResource> pResource = std::make_shared<HapResource>(std::string(path), in LoadFromIndex() 176 const std::shared_ptr<HapResource> HapResource::LoadFromHap(const char *path, in LoadFromHap() 209 const std::unordered_map<std::string, std::shared_ptr<HapResource>> HapResource::LoadOverlays(const… in LoadOverlays() 383 const std::shared_ptr<HapResource::IdValues> HapResource::GetIdValues(const uint32_t id) const in GetIdValues() 398 const std::shared_ptr<HapResource::IdValues> HapResource::GetIdValuesByName( in GetIdValuesByName() [all …]
|
H A D | hap_manager.cpp | 251 std::shared_ptr<HapResource::ValueUnderQualifierDir> &result, in MatchBestResource() 389 …std::unordered_map<std::string, std::shared_ptr<HapResource>> result = HapResource::LoadOverlays(p… in AddResource() 464 std::vector<std::shared_ptr<HapResource::IdValues>> result; in GetResourceList() 467 std::shared_ptr<HapResource> pResource = hapResources_[i]; in GetResourceList() 479 std::vector<std::shared_ptr<HapResource::IdValues>> result; in GetResourceListByName() 482 std::shared_ptr<HapResource> pResource = hapResources_[i]; in GetResourceListByName() 498 …const std::shared_ptr<HapResource> pResource = HapResource::Load(path, resConfig_, isSystem_, fals… in AddResourcePath() 513 std::vector<std::shared_ptr<HapResource>> newResources; in ReloadAll() 525 … std::unordered_map<std::string, std::shared_ptr<HapResource>> result = HapResource::LoadOverlays( in ReloadAll() 597 const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd) in GetAbilityExtractor() [all …]
|
H A D | resource_manager_impl.cpp | 308 …const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = hapManager_->FindQualifierValueB… in GetPluralStringById() 315 const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = in GetPluralStringByName() 322 …const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = hapManager_->FindQualifierValueB… in GetPluralStringByIdFormat() 347 const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = in GetPluralStringByNameFormat() 370 RState ResourceManagerImpl::GetPluralString(const std::shared_ptr<HapResource::ValueUnderQualifierD… in GetPluralString() 1396 std::string GetSuffix(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd) in GetSuffix() 1576 …const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = hapManager_->FindQualifierValueB… in GetFormatPluralStringById() 1603 const std::shared_ptr<HapResource::ValueUnderQualifierDir> vuqd = in GetFormatPluralStringByName()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_manager.h | 142 const std::shared_ptr<HapResource::ValueUnderQualifierDir> FindQualifierValueById(uint32_t id, 182 RState GetMediaData(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, size_t& len, 286 RState GetMediaBase64DataFromHap(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, 318 std::vector<std::shared_ptr<HapResource>> GetHapResource(); 383 std::vector<std::shared_ptr<HapResource::IdValues>> GetResourceList(uint32_t ident) const; 385 std::vector<std::shared_ptr<HapResource::IdValues>> GetResourceListByName(const char *name, 389 std::shared_ptr<HapResource::ValueUnderQualifierDir> &result, 390 const std::vector<std::shared_ptr<HapResource::ValueUnderQualifierDir>> &paths, 393 const std::shared_ptr<HapResource::ValueUnderQualifierDir> GetBestMatchResource( 394 const std::vector<std::shared_ptr<HapResource::IdValues>> &candidates, [all …]
|
H A D | hap_resource.h | 33 class HapResource { 47 static const std::shared_ptr<HapResource> LoadFromIndex( 63 static const std::shared_ptr<HapResource> LoadFromHap( 79 static const std::shared_ptr<HapResource> Load( 91 static const std::unordered_map<std::string, std::shared_ptr<HapResource>> LoadOverlays( 98 ~HapResource(); 214 friend class HapResource; variable 294 HapResource(const std::string path, time_t lastModTime, std::shared_ptr<ResDesc> resDes, 316 void IsAppDarkRes(const std::shared_ptr<HapResource::ValueUnderQualifierDir> &limitPath,
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_media.cpp | 75 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 104 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 118 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 154 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 190 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 226 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 262 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 346 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 382 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 418 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); [all …]
|
H A D | resource_manager_test_common.h | 115 void TestGetProfileById(HapResource *tmp); 117 void TestGetProfileByName(HapResource *tmp); 119 void TestGetMediaWithDensityById(HapResource *tmp); 121 void TestGetMediaById(HapResource *tmp); 123 void TestGetMediaWithDensityByName(HapResource *tmp); 125 void TestGetMediaByName(HapResource *tmp); 127 void TestGetDrawableInfoWithDensityById(HapResource *tmp); 129 void TestGetDrawableInfoById(HapResource *tmp); 131 void TestGetDrawableInfoWithDensityByName(HapResource *tmp); 133 void TestGetDrawableInfoByName(HapResource *tmp);
|
H A D | resource_manager_test_hap.cpp | 471 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 486 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 501 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 516 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 531 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 546 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 1234 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 1249 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 1264 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr); 1279 HapResource *tmp = new HapResource(FormatFullPath(g_hapPath).c_str(), 0, nullptr);
|
H A D | hap_resource_test.cpp | 66 void TestGetIdValuesByName(const std::shared_ptr<HapResource> pResource) in TestGetIdValuesByName() 106 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc); 144 void GetIdValuesByNameFuncTest002(const std::shared_ptr<HapResource> pResource, int id) in GetIdValuesByNameFuncTest002() 182 auto pResource = HapResource::LoadFromIndex(path, rc); 225 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc);
|
H A D | resource_manager_test_common.cpp | 175 void ResourceManagerTestCommon::TestGetProfileById(HapResource *tmp) in TestGetProfileById() 190 void ResourceManagerTestCommon::TestGetProfileByName(HapResource *tmp) in TestGetProfileByName() 202 void ResourceManagerTestCommon::TestGetMediaById(HapResource *tmp) in TestGetMediaById() 216 void ResourceManagerTestCommon::TestGetMediaWithDensityById(HapResource *tmp) in TestGetMediaWithDensityById() 242 void ResourceManagerTestCommon::TestGetMediaByName(HapResource *tmp) in TestGetMediaByName() 254 void ResourceManagerTestCommon::TestGetMediaWithDensityByName(HapResource *tmp) in TestGetMediaWithDensityByName() 278 void ResourceManagerTestCommon::TestGetDrawableInfoById(HapResource *tmp) in TestGetDrawableInfoById() 291 void ResourceManagerTestCommon::TestGetDrawableInfoWithDensityById(HapResource *tmp) in TestGetDrawableInfoWithDensityById() 321 void ResourceManagerTestCommon::TestGetDrawableInfoByName(HapResource *tmp) in TestGetDrawableInfoByName() 332 void ResourceManagerTestCommon::TestGetDrawableInfoWithDensityByName(HapResource *tmp) in TestGetDrawableInfoWithDensityByName()
|
H A D | test_common.h | 41 void PrintIdValues(const std::shared_ptr<HapResource::IdValues> &idValues);
|
H A D | test_common.cpp | 42 void PrintIdValues(const std::shared_ptr<HapResource::IdValues> &idValues) in PrintIdValues()
|
H A D | resource_manager_test.cpp | 275 auto hapResource = std::make_shared<HapResource>("/data/test/non_exist", 0, nullptr); 1022 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); 1051 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | hap_resource.h | 32 class HapResource { 44 …static const HapResource *LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig, bool… 49 ~HapResource(); 92 inline const HapResource *GetHapResource() const in GetHapResource() 98 HapResource *hapResource); 120 const HapResource *hapResource_; 174 …HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig, ResDesc *r…
|
H A D | hap_manager.h | 82 const HapResource::ValueUnderQualifierDir *FindQualifierValueById(uint32_t id); 90 …const HapResource::ValueUnderQualifierDir *FindQualifierValueByName(const char *name, const ResTyp… 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 … 306 …RState GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, std::str…
|
/ohos5.0/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(), n… 153 const HapResource *pResource = HapResource::LoadFromIndex(path, rc); 221 …const HapResource *pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), n…
|
H A D | hap_manager_test.cpp | 78 const HapResource::IdValues *idValues = hapManager->GetResourceList(id); 117 const HapResource::IdValues *idValues = hapManager->GetResourceList(id);
|
H A D | global_test.cpp | 70 const HapResource *pResource = HapResource::LoadFromIndex(path, rc); in GetResId()
|
H A D | resource_manager_test.cpp | 318 HapResource *hapResource = new HapResource("/data/test/non_exist", 0, nullptr, nullptr); 1396 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); 1435 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); 1472 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr); 1511 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr);
|
H A D | test_common.h | 34 void PrintIdValues(const HapResource::IdValues *idValues);
|
H A D | test_common.cpp | 42 void PrintIdValues(const HapResource::IdValues *idValues) in PrintIdValues()
|