Home
last modified time | relevance | path

Searched refs:ScreenDensity (Results 1 – 17 of 17) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
Dres_config_impl.cpp32 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 …]
Dres_desc.cpp36 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/
Dres_config_impl.h164 …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_;
Dhap_parser.h101 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/
Dres_desc_test.cpp149 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");
Dres_config_impl_test.cpp1229 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/
Dres_config_impl.h72 void SetScreenDensity(ScreenDensity screenDensity);
80 ScreenDensity GetScreenDensity() const;
119 ScreenDensity screenDensity_;
Dres_config.h37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0;
43 virtual ScreenDensity GetScreenDensity() const = 0;
Dhap_parser.h84 static ScreenDensity GetScreenDensity(uint32_t value);
Dres_common.h101 enum ScreenDensity { enum
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp149 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");
Dres_config_impl_test.cpp1328 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/
Dres_desc.cpp29 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()
Dres_config_impl.cpp88 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/
Dres_common.h126 enum ScreenDensity { enum
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp412 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/
Dhap_parser.cpp607 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity()
609 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity()