Home
last modified time | relevance | path

Searched refs:otherDensity (Results 1 - 2 of 2) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
H A Dres_config_impl.cpp601 __attribute__((no_sanitize("integer"))) int ResConfigImpl::IsDensityMoreSuitable(ScreenDensity otherDensity, in IsDensityMoreSuitable() argument
609 this->screenDensityDpi_ != otherDensity) { in IsDensityMoreSuitable()
611 otherDistance = otherDensity - requestDensity; in IsDensityMoreSuitable()
621 if (this->screenDensityDpi_ != otherDensity) { in IsDensityMoreSuitable()
623 otherDistance = static_cast<int>(otherDensity - density); in IsDensityMoreSuitable()
730 int ResConfigImpl::IsDensityMoreSpecificThan(ScreenDensity otherDensity, uint32_t density) const in IsDensityMoreSpecificThan() argument
734 if (this->screenDensityDpi_ != otherDensity) { in IsDensityMoreSpecificThan()
745 (otherDensity == ScreenDensity::SCREEN_DENSITY_NOT_SET)) { in IsDensityMoreSpecificThan()
750 (otherDensity != ScreenDensity::SCREEN_DENSITY_NOT_SET)) { in IsDensityMoreSpecificThan()
754 if (this->screenDensityDpi_ != otherDensity) { in IsDensityMoreSpecificThan()
[all...]
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_config_impl.h237 int IsDensityMoreSuitable(ScreenDensity otherDensity, ScreenDensity requestDensity, uint32_t density = 0) const;
241 int IsDensityMoreSpecificThan(ScreenDensity otherDensity, uint32_t density = 0) const;

Completed in 2 milliseconds