Searched refs:ScreenDensity (Results 1 – 17 of 17) sorted by relevance
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_config_impl.cpp | 32 static const std::vector<std::pair<float, ScreenDensity>> resolutions = { 33 { 0.0, ScreenDensity::SCREEN_DENSITY_NOT_SET }, 34 { 120.0, ScreenDensity::SCREEN_DENSITY_SDPI }, 35 { 160.0, ScreenDensity::SCREEN_DENSITY_MDPI }, 36 { 240.0, ScreenDensity::SCREEN_DENSITY_LDPI }, 37 { 320.0, ScreenDensity::SCREEN_DENSITY_XLDPI }, 38 { 480.0, ScreenDensity::SCREEN_DENSITY_XXLDPI }, 39 { 640.0, ScreenDensity::SCREEN_DENSITY_XXXLDPI }, 141 ScreenDensity ResConfigImpl::ConvertDensity(float density) in ConvertDensity() 465 int ResConfigImpl::IsDensityMoreSuitable(ScreenDensity otherDensity, ScreenDensity requestDensity, in IsDensityMoreSuitable() [all …]
|
D | res_desc.cpp | 36 case ScreenDensity::SCREEN_DENSITY_SDPI: in GetScreenDensityStr() 39 case ScreenDensity::SCREEN_DENSITY_MDPI: in GetScreenDensityStr() 42 case ScreenDensity::SCREEN_DENSITY_LDPI: in GetScreenDensityStr() 45 case ScreenDensity::SCREEN_DENSITY_XLDPI: in GetScreenDensityStr() 48 case ScreenDensity::SCREEN_DENSITY_XXLDPI: in GetScreenDensityStr() 51 case ScreenDensity::SCREEN_DENSITY_XXXLDPI: in GetScreenDensityStr()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_config_impl.h | 164 …int IsDensityMoreSuitable(ScreenDensity otherDensity, ScreenDensity requestDensity, uint32_t densi… 168 int IsDensityMoreSpecificThan(ScreenDensity otherDensity, uint32_t density = 0) const; 170 ScreenDensity ConvertDensity(float density); 175 ScreenDensity screenDensityDpi_;
|
D | hap_parser.h | 101 static ScreenDensity GetScreenDensity(uint32_t value); 157 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | res_desc_test.cpp | 149 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_SDPI, RE_120_STR); 150 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_MDPI, RE_160_STR); 151 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_LDPI, RE_240_STR); 152 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XLDPI, RE_320_STR); 153 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XXLDPI, RE_480_STR); 154 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XXXLDPI, RE_640_STR); 155 …TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_NOT_SET, "not_screen_density");
|
D | res_config_impl_test.cpp | 1229 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1232 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1233 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1254 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1256 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1257 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1277 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); 1280 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_XLDPI); 1283 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_XXLDPI); 1303 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI); [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_config_impl.h | 72 void SetScreenDensity(ScreenDensity screenDensity); 80 ScreenDensity GetScreenDensity() const; 119 ScreenDensity screenDensity_;
|
D | res_config.h | 37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0; 43 virtual ScreenDensity GetScreenDensity() const = 0;
|
D | hap_parser.h | 84 static ScreenDensity GetScreenDensity(uint32_t value);
|
D | res_common.h | 101 enum ScreenDensity { enum
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | res_desc_test.cpp | 149 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_SDPI, RE_120_STR); 150 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_MDPI, RE_160_STR); 151 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_LDPI, RE_240_STR); 152 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XLDPI, RE_320_STR); 153 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XXLDPI, RE_480_STR); 154 TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_XXXLDPI, RE_640_STR); 155 …TestKeyParam(KeyType::SCREEN_DENSITY, ScreenDensity::SCREEN_DENSITY_NOT_SET, "not_screen_density");
|
D | res_config_impl_test.cpp | 1328 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1331 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1332 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1353 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1355 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1356 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1376 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); 1379 current->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_XLDPI / BASE_DPI); 1382 other->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_XXLDPI / BASE_DPI); 1402 request->SetScreenDensity(ScreenDensity::SCREEN_DENSITY_LDPI / BASE_DPI); [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | res_desc.cpp | 29 case ScreenDensity::SCREEN_DENSITY_SDPI: in GetScreenDensityStr() 32 case ScreenDensity::SCREEN_DENSITY_MDPI: in GetScreenDensityStr() 35 case ScreenDensity::SCREEN_DENSITY_LDPI: in GetScreenDensityStr() 38 case ScreenDensity::SCREEN_DENSITY_XLDPI: in GetScreenDensityStr() 41 case ScreenDensity::SCREEN_DENSITY_XXLDPI: in GetScreenDensityStr() 44 case ScreenDensity::SCREEN_DENSITY_XXXLDPI: in GetScreenDensityStr()
|
D | res_config_impl.cpp | 88 void ResConfigImpl::SetScreenDensity(ScreenDensity screenDensity) in SetScreenDensity() 108 ScreenDensity ResConfigImpl::GetScreenDensity() const in GetScreenDensity() 238 if (request->screenDensity_ != ScreenDensity::SCREEN_DENSITY_NOT_SET && in IsMoreSuitable() 299 return (this->screenDensity_ != ScreenDensity::SCREEN_DENSITY_NOT_SET); in IsMoreSpecificThan()
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | res_common.h | 126 enum ScreenDensity { enum
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | hap_parser.cpp | 412 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in CreateResConfigFromKeyParams() 467 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity() 469 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | hap_parser.cpp | 607 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity() 609 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity()
|