/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | resource_manager_test_media.cpp | 134 int density = 160; variable 139 state = rm->GetMediaById(id, outValue, density); 170 int density = 240; variable 175 state = rm->GetMediaById(id, outValue, density); 206 int density = 320; variable 211 state = rm->GetMediaById(id, outValue, density); 242 int density = 480; variable 247 state = rm->GetMediaById(id, outValue, density); 278 int density = 640; variable 283 state = rm->GetMediaById(id, outValue, density); [all …]
|
D | resource_manager_test_hap.cpp | 678 int density = 120; variable 684 state = rm->GetMediaDataById(id, len, outValue, density); 710 int density = 120; variable 714 state = rm->GetMediaDataByName("icon", len, outValue, density); 740 int density = 120; variable 745 state = rm->GetMediaBase64DataById(id, outValue, density); 770 int density = 120; variable 773 state = rm->GetMediaBase64DataByName("icon", outValue, density);
|
D | resource_manager_test_common.cpp | 233 int density = 120; in TestGetMediaWithDensityById() local 237 RState state = rm->GetMediaById(id, outValue, density); in TestGetMediaWithDensityById() 271 uint32_t density = 120; in TestGetMediaWithDensityByName() local 273 RState state = rm->GetMediaByName("icon", outValue, density); in TestGetMediaWithDensityByName()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_config_impl.h | 40 …bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request, uint32_t density = 0… 155 ScreenDensity ConvertDensity(float density); 160 bool IsMoreSpecificThan(const ResConfigImpl *other, uint32_t density = 0) const; 183 …MoreSuitable(ScreenDensity otherDensity, ScreenDensity requestDensity, uint32_t density = 0) const; 187 int IsDensityMoreSpecificThan(ScreenDensity otherDensity, uint32_t density = 0) const;
|
D | resource_manager_impl.h | 355 virtual RState GetMediaById(uint32_t id, std::string &outValue, uint32_t density = 0); 364 virtual RState GetMediaByName(const char *name, std::string &outValue, uint32_t density = 0); 412 uint32_t density = 0); 423 uint32_t density = 0); 432 virtual RState GetMediaBase64DataById(uint32_t id, std::string &outValue, uint32_t density = 0); 441 …ual RState GetMediaBase64DataByName(const char *name, std::string &outValue, uint32_t density = 0); 503 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 515 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 593 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0); 606 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0); [all …]
|
D | hap_manager.h | 127 …const HapResource::ValueUnderQualifierDir *FindQualifierValueById(uint32_t id, uint32_t density = … 137 uint32_t density = 0); 354 candidates, uint32_t density);
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | resource_manager.h | 127 virtual RState GetMediaById(uint32_t id, std::string &outValue, uint32_t density = 0) = 0; 129 … virtual RState GetMediaByName(const char *name, std::string &outValue, uint32_t density = 0) = 0; 138 uint32_t density = 0) = 0; 141 uint32_t density = 0) = 0; 143 …virtual RState GetMediaBase64DataById(uint32_t id, std::string &outValue, uint32_t density = 0) =… 145 …State GetMediaBase64DataByName(const char *name, std::string &outValue, uint32_t density = 0) = 0; 161 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0) = 0; 164 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0) = 0; 190 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0) = 0; 194 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0) = 0; [all …]
|
D | res_config.h | 72 virtual ScreenDensity ConvertDensity(float density) = 0;
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_config_impl.cpp | 178 ScreenDensity ResConfigImpl::ConvertDensity(float density) in ConvertDensity() argument 180 float deviceDpi = density * Utils::DPI_BASE; in ConvertDensity() 457 const ResConfigImpl *request, uint32_t density) const in IsMoreSuitable() 499 ret = IsDensityMoreSuitable(other->screenDensityDpi_, request->screenDensityDpi_, density); in IsMoreSuitable() 504 return this->IsMoreSpecificThan(other, density); in IsMoreSuitable() 550 uint32_t density) const in IsDensityMoreSuitable() 555 if (density == ScreenDensity::SCREEN_DENSITY_NOT_SET) { in IsDensityMoreSuitable() 570 thisDistance = static_cast<int>(this->screenDensityDpi_ - density); in IsDensityMoreSuitable() 571 otherDistance = static_cast<int>(otherDensity - density); in IsDensityMoreSuitable() 635 bool ResConfigImpl::IsMoreSpecificThan(const ResConfigImpl *other, uint32_t density) const in IsMoreSpecificThan() [all …]
|
D | resource_manager_impl.cpp | 592 float density = rc.GetScreenDensity(); in RecalculateFloat() local 593 if (density == SCREEN_DENSITY_NOT_SET) { in RecalculateFloat() 598 result = result * density; in RecalculateFloat() 600 float fontSizeDensity = density * ((fabs(fontRatio_) <= 1E-6) ? 1.0f : fontRatio_); in RecalculateFloat() 897 RState ResourceManagerImpl::GetMediaById(uint32_t id, std::string &outValue, uint32_t density) in GetMediaById() argument 899 if (!IsDensityValid(density)) { in GetMediaById() 903 auto qd = hapManager_->FindQualifierValueById(id, density); in GetMediaById() 912 …tate ResourceManagerImpl::GetMediaByName(const char *name, std::string &outValue, uint32_t density) in GetMediaByName() argument 914 if (!IsDensityValid(density)) { in GetMediaByName() 918 auto qd = hapManager_->FindQualifierValueByName(name, ResType::MEDIA, density); in GetMediaByName() [all …]
|
D | hap_manager.cpp | 172 const char *name, const ResType resType, uint32_t density) in FindQualifierValueByName() argument 179 return this->GetBestMatchResource(candidates, density); in FindQualifierValueByName() 182 …Resource::ValueUnderQualifierDir *HapManager::FindQualifierValueById(uint32_t id, uint32_t density) in FindQualifierValueById() argument 189 return this->GetBestMatchResource(candidates, density); in FindQualifierValueById() 193 candidates, uint32_t density) in GetBestMatchResource() argument 218 if (!bestOverlayResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource() 228 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource() 236 if (bestOverlayResConfig->IsMoreSuitable(bestResConfig, currentResConfig, density)) { in GetBestMatchResource()
|
/base/global/resource_management/interfaces/js/innerkits/core/include/ |
D | resource_manager_napi_utils.h | 53 static RState GetDataType(napi_env env, napi_value value, uint32_t& density);
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_napi_utils.cpp | 543 RState ResourceManagerNapiUtils::GetDataType(napi_env env, napi_value value, uint32_t& density) in GetDataType() argument 555 if (napi_get_value_uint32(env, value, &density) != napi_ok) { in GetDataType()
|
/base/location/ |
D | README.en.md | 38 …AN access points \(APs\) and Bluetooth devices around the device. A high density of WLAN APs and B…
|