Home
last modified time | relevance | path

Searched refs:GetScreenDensity (Results 1 – 16 of 16) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_parser_test.cpp102 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));
Dresource_manager_test.cpp344 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity());
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dhap_parser_test.cpp108 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));
Dresource_manager_test.cpp287 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity());
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_config_impl.cpp108 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/
Dhap_parser.h84 static ScreenDensity GetScreenDensity(uint32_t value);
Dres_config_impl.h80 ScreenDensity GetScreenDensity() const;
Dres_config.h43 virtual ScreenDensity GetScreenDensity() const = 0;
/base/global/resource_management/interfaces/inner_api/include/
Dres_config.h56 virtual float GetScreenDensity() const = 0;
/base/global/resource_management/frameworks/resmgr/src/
Dres_config_impl.cpp177 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()
Dresource_manager_impl.cpp547 float density = rc.GetScreenDensity(); in RecalculateFloat()
/base/global/resource_management/frameworks/resmgr/include/
Dres_config_impl.h98 float GetScreenDensity() const;
Dhap_parser.h151 static ScreenDensity GetScreenDensity(uint32_t value);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp425 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/
Dhap_parser.cpp606 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/
Dresource_manager_napi_utils.cpp453 …status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &s… in CreateJsDeviceCap()