/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | hap_parser_test.cpp | 102 EXPECT_EQ(SCREEN_DENSITY_SDPI, config->GetScreenDensity()); 136 ASSERT_EQ(SCREEN_DENSITY_SDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_SDPI)); 137 ASSERT_EQ(SCREEN_DENSITY_MDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_MDPI)); 138 ASSERT_EQ(SCREEN_DENSITY_LDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_LDPI)); 139 ASSERT_EQ(SCREEN_DENSITY_XLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XLDPI)); 140 ASSERT_EQ(SCREEN_DENSITY_XXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXLDPI)); 141 ASSERT_EQ(SCREEN_DENSITY_XXXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXXLDPI)); 142 ASSERT_EQ(SCREEN_DENSITY_NOT_SET, HapParser::GetScreenDensity(10000000));
|
D | resource_manager_test.cpp | 344 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity());
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | hap_parser_test.cpp | 108 EXPECT_EQ(SCREEN_DENSITY_SDPI / BASE_DPI, config->GetScreenDensity()); 144 ASSERT_EQ(SCREEN_DENSITY_SDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_SDPI)); 145 ASSERT_EQ(SCREEN_DENSITY_MDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_MDPI)); 146 ASSERT_EQ(SCREEN_DENSITY_LDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_LDPI)); 147 ASSERT_EQ(SCREEN_DENSITY_XLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XLDPI)); 148 ASSERT_EQ(SCREEN_DENSITY_XXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXLDPI)); 149 ASSERT_EQ(SCREEN_DENSITY_XXXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXXLDPI)); 150 ASSERT_EQ(SCREEN_DENSITY_NOT_SET, HapParser::GetScreenDensity(10000000));
|
D | resource_manager_test.cpp | 287 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity());
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | res_config_impl.cpp | 108 ScreenDensity ResConfigImpl::GetScreenDensity() const in GetScreenDensity() function in OHOS::Global::Resource::ResConfigImpl 176 if (this->GetScreenDensity() != other.GetScreenDensity()) { in Copy() 177 this->SetScreenDensity(other.GetScreenDensity()); in Copy()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | hap_parser.h | 84 static ScreenDensity GetScreenDensity(uint32_t value);
|
D | res_config_impl.h | 80 ScreenDensity GetScreenDensity() const;
|
D | res_config.h | 43 virtual ScreenDensity GetScreenDensity() const = 0;
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | res_config.h | 56 virtual float GetScreenDensity() const = 0;
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_config_impl.cpp | 177 float ResConfigImpl::GetScreenDensity() const in GetScreenDensity() function in OHOS::Global::Resource::ResConfigImpl 282 if (this->GetScreenDensity() != other.GetScreenDensity()) { in Copy() 283 this->SetScreenDensity(other.GetScreenDensity()); in Copy()
|
D | resource_manager_impl.cpp | 547 float density = rc.GetScreenDensity(); in RecalculateFloat()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_config_impl.h | 98 float GetScreenDensity() const;
|
D | hap_parser.h | 151 static ScreenDensity GetScreenDensity(uint32_t value);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | hap_parser.cpp | 425 screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams() 467 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity() function in OHOS::Global::Resource::HapParser
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | hap_parser.cpp | 606 configKey.screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams() 705 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity() function in OHOS::Global::Resource::HapParser
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_napi_utils.cpp | 453 …status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &s… in CreateJsDeviceCap()
|