Home
last modified time | relevance | path

Searched refs:density (Results 1 – 14 of 14) sorted by relevance

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dresource_manager_test_media.cpp134 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 …]
Dresource_manager_test_hap.cpp678 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);
Dresource_manager_test_common.cpp228 int density = 120; in TestGetMediaWithDensityById() local
232 RState state = rm->GetMediaById(id, outValue, density); in TestGetMediaWithDensityById()
266 uint32_t density = 120; in TestGetMediaWithDensityByName() local
268 RState state = rm->GetMediaByName("icon", outValue, density); in TestGetMediaWithDensityByName()
/base/global/resource_management/frameworks/resmgr/include/
Dres_config_impl.h40 …bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request, uint32_t density = 0…
149 ScreenDensity ConvertDensity(float density);
154 bool IsMoreSpecificThan(const ResConfigImpl *other, uint32_t density = 0) const;
170 …MoreSuitable(ScreenDensity otherDensity, ScreenDensity requestDensity, uint32_t density = 0) const;
174 int IsDensityMoreSpecificThan(ScreenDensity otherDensity, uint32_t density = 0) const;
Dresource_manager_impl.h338 virtual RState GetMediaById(uint32_t id, std::string &outValue, uint32_t density = 0);
347 virtual RState GetMediaByName(const char *name, std::string &outValue, uint32_t density = 0);
387 uint32_t density = 0);
398 uint32_t density = 0);
407 virtual RState GetMediaBase64DataById(uint32_t id, std::string &outValue, uint32_t density = 0);
416 …ual RState GetMediaBase64DataByName(const char *name, std::string &outValue, uint32_t density = 0);
478 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0);
490 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0);
569 bool IsDensityValid(uint32_t density);
Dhap_manager.h127 …const HapResource::ValueUnderQualifierDir *FindQualifierValueById(uint32_t id, uint32_t density = …
137 uint32_t density = 0);
319 candidates, uint32_t density);
/base/global/resource_management/frameworks/resmgr/src/
Dres_config_impl.cpp141 ScreenDensity ResConfigImpl::ConvertDensity(float density) in ConvertDensity() argument
143 float deviceDpi = density * Utils::DPI_BASE; in ConvertDensity()
382 const ResConfigImpl *request, uint32_t density) const in IsMoreSuitable()
415 ret = IsDensityMoreSuitable(other->screenDensityDpi_, request->screenDensityDpi_, density); in IsMoreSuitable()
420 return this->IsMoreSpecificThan(other, density); in IsMoreSuitable()
466 uint32_t density) const in IsDensityMoreSuitable()
471 if (density == ScreenDensity::SCREEN_DENSITY_NOT_SET) { in IsDensityMoreSuitable()
486 thisDistance = static_cast<int>(this->screenDensityDpi_ - density); in IsDensityMoreSuitable()
487 otherDistance = static_cast<int>(otherDensity - density); in IsDensityMoreSuitable()
543 bool ResConfigImpl::IsMoreSpecificThan(const ResConfigImpl *other, uint32_t density) const in IsMoreSpecificThan()
[all …]
Dresource_manager_impl.cpp547 float density = rc.GetScreenDensity(); in RecalculateFloat() local
548 if (density == SCREEN_DENSITY_NOT_SET) { in RecalculateFloat()
553 result = result * density; in RecalculateFloat()
555 float fontSizeDensity = density * ((fabs(fontRatio_) <= 1E-6) ? 1.0f : fontRatio_); in RecalculateFloat()
745 RState ResourceManagerImpl::GetMediaById(uint32_t id, std::string &outValue, uint32_t density) in GetMediaById() argument
747 if (!IsDensityValid(density)) { in GetMediaById()
751 auto qd = hapManager_->FindQualifierValueById(id, density); in GetMediaById()
760 …tate ResourceManagerImpl::GetMediaByName(const char *name, std::string &outValue, uint32_t density) in GetMediaByName() argument
762 if (!IsDensityValid(density)) { in GetMediaByName()
766 auto qd = hapManager_->FindQualifierValueByName(name, ResType::MEDIA, density); in GetMediaByName()
[all …]
Dhap_manager.cpp168 const char *name, const ResType resType, uint32_t density) in FindQualifierValueByName() argument
175 return this->GetBestMatchResource(candidates, density); in FindQualifierValueByName()
178 …Resource::ValueUnderQualifierDir *HapManager::FindQualifierValueById(uint32_t id, uint32_t density) in FindQualifierValueById() argument
185 return this->GetBestMatchResource(candidates, density); in FindQualifierValueById()
189 candidates, uint32_t density) in GetBestMatchResource() argument
214 if (!bestOverlayResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource()
224 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource()
232 if (bestOverlayResConfig->IsMoreSuitable(bestResConfig, currentResConfig, density)) { in GetBestMatchResource()
/base/global/resource_management/interfaces/inner_api/include/
Dresource_manager.h126 virtual RState GetMediaById(uint32_t id, std::string &outValue, uint32_t density = 0) = 0;
128 … virtual RState GetMediaByName(const char *name, std::string &outValue, uint32_t density = 0) = 0;
137 uint32_t density = 0) = 0;
140 uint32_t density = 0) = 0;
142 …virtual RState GetMediaBase64DataById(uint32_t id, std::string &outValue, uint32_t density = 0) =…
144 …State GetMediaBase64DataByName(const char *name, std::string &outValue, uint32_t density = 0) = 0;
160 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0) = 0;
163 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0) = 0;
Dres_config.h72 virtual ScreenDensity ConvertDensity(float density) = 0;
/base/global/resource_management/interfaces/js/innerkits/core/include/
Dresource_manager_napi_utils.h51 static RState GetDensity(napi_env env, napi_value value, uint32_t& density);
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_napi_utils.cpp544 RState ResourceManagerNapiUtils::GetDensity(napi_env env, napi_value value, uint32_t& density) in GetDensity() argument
556 if (napi_get_value_uint32(env, value, &density) != napi_ok) { in GetDensity()
/base/location/
DREADME.en.md38 …AN access points \(APs\) and Bluetooth devices around the device. A high density of WLAN APs and B…