/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | hap_parser_test.cpp | 102 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 D | resource_manager_test.cpp | 344 EXPECT_EQ(SCREEN_DENSITY_NOT_SET, rc.GetScreenDensity()); in HWTEST_F()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A 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/frameworks/resmgr/test/unittest/common/ |
H A D | hap_parser_test.cpp | 107 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 D | res_config_test.cpp | 86 EXPECT_FLOAT_EQ(1, rc->GetScreenDensity()); in HWTEST_F()
|
H A D | resource_manager_test.cpp | 332 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 D | hap_parser.h | 84 static ScreenDensity GetScreenDensity(uint32_t value);
|
H A D | res_config_impl.h | 80 ScreenDensity GetScreenDensity() const;
|
H A D | res_config.h | 43 virtual ScreenDensity GetScreenDensity() const = 0;
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | res_config_impl.h | 124 float GetScreenDensity() const;
|
H A D | hap_parser.h | 165 static ScreenDensity GetScreenDensity(uint32_t value);
|
/base/global/resource_management/interfaces/inner_api/include/ |
H A D | res_config.h | 58 virtual float GetScreenDensity() const = 0;
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_config_impl.cpp | 247 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 D | native_resource_manager.cpp | 406 configuration->screenDensity = static_cast<::ScreenDensity>(resConfig.GetScreenDensity());
in OH_ResourceManager_GetConfiguration()
|
H A D | hap_manager.cpp | 245 if (this->overrideResConfig_->GetScreenDensity() != SCREEN_DENSITY_NOT_SET) { in getCompleteOverrideConfig() 246 completeOverrideConfig->SetScreenDensity(this->overrideResConfig_->GetScreenDensity()); in getCompleteOverrideConfig()
|
H A D | resource_manager_impl.cpp | 693 float density = rc.GetScreenDensity(); in RecalculateFloat()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A 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/interfaces/cj/src/ |
H A D | resource_manager_impl.cpp | 299 deviceCapability.screenDensity = static_cast<int32_t>(cfg->ConvertDensity(cfg->GetScreenDensity())); in GetDeviceCapability()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 666 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 D | resource_manager_napi_utils.cpp | 464 status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap()
|