Home
last modified time | relevance | path

Searched refs:screenDensity (Results 1 – 13 of 13) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp412 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in CreateResConfigFromKeyParams() local
425 screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams()
438 resConfig->SetScreenDensity(screenDensity); in CreateResConfigFromKeyParams()
469 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity() local
471 screenDensity = SCREEN_DENSITY_SDPI; in GetScreenDensity()
473 screenDensity = SCREEN_DENSITY_MDPI; in GetScreenDensity()
475 screenDensity = SCREEN_DENSITY_LDPI; in GetScreenDensity()
477 screenDensity = SCREEN_DENSITY_XLDPI; in GetScreenDensity()
479 screenDensity = SCREEN_DENSITY_XXLDPI; in GetScreenDensity()
481 screenDensity = SCREEN_DENSITY_XXXLDPI; in GetScreenDensity()
[all …]
/base/update/update_app/product/oh/base/src/main/ets/MainAbility/
DMainAbility.ts38 this.log('BaseAbility onCreate:' + this.context.config.screenDensity);
44 this.log('BaseAbility onCreate:' + this.context.config.screenDensity);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp631 configKey.screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams()
671 resConfig->SetScreenDensity((configKey->screenDensity) / Utils::DPI_BASE); in BuildResConfig()
734 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity() local
736 screenDensity = SCREEN_DENSITY_SDPI; in GetScreenDensity()
738 screenDensity = SCREEN_DENSITY_MDPI; in GetScreenDensity()
740 screenDensity = SCREEN_DENSITY_LDPI; in GetScreenDensity()
742 screenDensity = SCREEN_DENSITY_XLDPI; in GetScreenDensity()
744 screenDensity = SCREEN_DENSITY_XXLDPI; in GetScreenDensity()
746 screenDensity = SCREEN_DENSITY_XXXLDPI; in GetScreenDensity()
748 return screenDensity; in GetScreenDensity()
[all …]
/base/global/resource_management/frameworks/resmgr/include/
Dhap_parser.h210 std::string screenDensity; member
217 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; member
Dres_config_impl.h90 void SetScreenDensity(float screenDensity);
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_config_impl.h72 void SetScreenDensity(ScreenDensity screenDensity);
Dres_config.h37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_config_impl.cpp88 void ResConfigImpl::SetScreenDensity(ScreenDensity screenDensity) in SetScreenDensity() argument
90 this->screenDensity_ = screenDensity; in SetScreenDensity()
/base/global/resource_management/interfaces/inner_api/include/
Dres_config.h42 virtual void SetScreenDensity(float screenDensity) = 0;
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dresource_manager_test_common.h67 void AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity);
Dresource_manager_test_common.cpp119 float screenDensity) in AddColorModeResource() argument
129 rc->SetScreenDensity(screenDensity); in AddColorModeResource()
/base/global/resource_management/frameworks/resmgr/src/
Dres_config_impl.cpp191 void ResConfigImpl::SetScreenDensity(float screenDensity) in SetScreenDensity() argument
193 this->density_ = screenDensity; in SetScreenDensity()
194 this->screenDensityDpi_ = ConvertDensity(screenDensity); in SetScreenDensity()
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_napi_utils.cpp442 napi_value screenDensity; in CreateJsDeviceCap() local
443 …_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap()
448 status = napi_set_named_property(env, result, "screenDensity", screenDensity); in CreateJsDeviceCap()