Home
last modified time | relevance | path

Searched refs:thisDistance (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dres_config_impl.cpp605 int thisDistance; in IsDensityMoreSuitable() local
610 thisDistance = this->screenDensityDpi_ - requestDensity; in IsDensityMoreSuitable()
612 if (IsDensityMoreSuitable(thisDistance, otherDistance)) { in IsDensityMoreSuitable()
622 thisDistance = static_cast<int>(this->screenDensityDpi_ - density); in IsDensityMoreSuitable()
624 if (IsDensityMoreSuitable(thisDistance, otherDistance)) { in IsDensityMoreSuitable()
638 if (thisDistance >= 0 && otherDistance >= 0) { in IsDensityMoreSuitable()
639 return (thisDistance <= otherDistance); in IsDensityMoreSuitable()
641 if (thisDistance > 0) { in IsDensityMoreSuitable()
647 return (thisDistance >= otherDistance); in IsDensityMoreSuitable()
755 int thisDistance = static_cast<int>(this->screenDensityDpi_ - density); in IsDensityMoreSpecificThan() local
[all …]
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_config_impl.cpp240 int thisDistance = this->screenDensity_ - request->screenDensity_; in IsMoreSuitable() local
242 if (thisDistance >= 0 && otherDistance >= 0) { in IsMoreSuitable()
243 return (thisDistance <= otherDistance); in IsMoreSuitable()
245 if (thisDistance > 0) { in IsMoreSuitable()
251 return (thisDistance >= otherDistance); in IsMoreSuitable()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dres_config_impl.h239 bool IsDensityMoreSuitable(int thisDistance, int otherDistance) const;