Home
last modified time | relevance | path

Searched refs:GetScreenDensity (Results 1 - 20 of 20) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dhap_parser_test.cpp102 EXPECT_EQ(SCREEN_DENSITY_SDPI, config->GetScreenDensity()); in HWTEST_F()
131 * @tc.desc: Test GetScreenDensity
136 ASSERT_EQ(SCREEN_DENSITY_SDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_SDPI)); in HWTEST_F()
137 ASSERT_EQ(SCREEN_DENSITY_MDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_MDPI)); in HWTEST_F()
138 ASSERT_EQ(SCREEN_DENSITY_LDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_LDPI)); in HWTEST_F()
139 ASSERT_EQ(SCREEN_DENSITY_XLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XLDPI)); in HWTEST_F()
140 ASSERT_EQ(SCREEN_DENSITY_XXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXLDPI)); in HWTEST_F()
141 ASSERT_EQ(SCREEN_DENSITY_XXXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXXLDPI)); in HWTEST_F()
142 ASSERT_EQ(SCREEN_DENSITY_NOT_SET, HapParser::GetScreenDensity(10000000)); in HWTEST_F()
H A Dresource_manager_test.cpp344 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity()); in HWTEST_F()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A 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/frameworks/resmgr/test/unittest/common/
H A Dhap_parser_test.cpp107 EXPECT_EQ(SCREEN_DENSITY_SDPI / BASE_DPI, config->GetScreenDensity()); in HWTEST_F()
134 * @tc.desc: Test GetScreenDensity
139 ASSERT_EQ(SCREEN_DENSITY_SDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_SDPI)); in HWTEST_F()
140 ASSERT_EQ(SCREEN_DENSITY_MDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_MDPI)); in HWTEST_F()
141 ASSERT_EQ(SCREEN_DENSITY_LDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_LDPI)); in HWTEST_F()
142 ASSERT_EQ(SCREEN_DENSITY_XLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XLDPI)); in HWTEST_F()
143 ASSERT_EQ(SCREEN_DENSITY_XXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXLDPI)); in HWTEST_F()
144 ASSERT_EQ(SCREEN_DENSITY_XXXLDPI, HapParser::GetScreenDensity(SCREEN_DENSITY_XXXLDPI)); in HWTEST_F()
145 ASSERT_EQ(SCREEN_DENSITY_NOT_SET, HapParser::GetScreenDensity(10000000)); in HWTEST_F()
H A Dres_config_test.cpp86 EXPECT_FLOAT_EQ(1, rc->GetScreenDensity()); in HWTEST_F()
H A Dresource_manager_test.cpp332 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity()); in HWTEST_F()
1956 EXPECT_EQ(config->GetScreenDensity(), 0); in HWTEST_F()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dhap_parser.h84 static ScreenDensity GetScreenDensity(uint32_t value);
H A Dres_config_impl.h80 ScreenDensity GetScreenDensity() const;
H A Dres_config.h43 virtual ScreenDensity GetScreenDensity() const = 0;
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_config_impl.h124 float GetScreenDensity() const;
H A Dhap_parser.h165 static ScreenDensity GetScreenDensity(uint32_t value);
/base/global/resource_management/interfaces/inner_api/include/
H A Dres_config.h58 virtual float GetScreenDensity() const = 0;
/base/global/resource_management/frameworks/resmgr/src/
H A Dres_config_impl.cpp247 float ResConfigImpl::GetScreenDensity() const in GetScreenDensity() function in OHOS::Global::Resource::ResConfigImpl
399 if (this->GetScreenDensity() != other.GetScreenDensity()) { in Copy()
400 this->SetScreenDensity(other.GetScreenDensity()); in Copy()
H A Dnative_resource_manager.cpp406 configuration->screenDensity = static_cast<::ScreenDensity>(resConfig.GetScreenDensity()); in OH_ResourceManager_GetConfiguration()
H A Dhap_manager.cpp245 if (this->overrideResConfig_->GetScreenDensity() != SCREEN_DENSITY_NOT_SET) { in getCompleteOverrideConfig()
246 completeOverrideConfig->SetScreenDensity(this->overrideResConfig_->GetScreenDensity()); in getCompleteOverrideConfig()
H A Dresource_manager_impl.cpp693 float density = rc.GetScreenDensity(); in RecalculateFloat()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A 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/interfaces/cj/src/
H A Dresource_manager_impl.cpp299 deviceCapability.screenDensity = static_cast<int32_t>(cfg->ConvertDensity(cfg->GetScreenDensity())); in GetDeviceCapability()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp666 configKey.screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams()
767 ScreenDensity HapParser::GetScreenDensity(uint32_t value) in GetScreenDensity() function in OHOS::Global::Resource::HapParser
/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_utils.cpp464 status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap()

Completed in 22 milliseconds