/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 412 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 in GetScreenDensity() 507 std::string screenDensity; ToFolderPath() local [all...] |
/base/global/resource_management/interfaces/native/resource/include/ |
H A D | resmgr_common.h | 155 ScreenDensity screenDensity;
member
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | res_config_impl.h | 69 * Set resConfig screenDensity 70 * @param screenDensity the resConfig screenDensity 72 void SetScreenDensity(ScreenDensity screenDensity);
|
H A D | res_config.h | 37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0;
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_parser.h | 233 std::string screenDensity; member 240 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; member
|
H A D | res_config_impl.h | 95 * Set resConfig screenDensity 96 * @param screenDensity the resConfig screenDensity 98 void SetScreenDensity(float screenDensity);
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 666 configKey.screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams() 706 resConfig->SetScreenDensity((configKey->screenDensity) / Utils::DPI_BASE); in BuildResConfig() 769 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity() local 771 screenDensity = SCREEN_DENSITY_SDPI; in GetScreenDensity() 773 screenDensity = SCREEN_DENSITY_MDPI; in GetScreenDensity() 775 screenDensity = SCREEN_DENSITY_LDPI; in GetScreenDensity() 777 screenDensity = SCREEN_DENSITY_XLDPI; in GetScreenDensity() 779 screenDensity = SCREEN_DENSITY_XXLDPI; in GetScreenDensity() 781 screenDensity = SCREEN_DENSITY_XXXLDPI; in GetScreenDensity() 783 return screenDensity; in GetScreenDensity() [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_config_impl.cpp | 88 void ResConfigImpl::SetScreenDensity(ScreenDensity screenDensity) in SetScreenDensity() argument 90 this->screenDensity_ = screenDensity; in SetScreenDensity()
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_common.h | 73 void AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity);
|
H A D | resource_manager_test_common.cpp | 119 float screenDensity) in AddColorModeResource() 129 rc->SetScreenDensity(screenDensity); in AddColorModeResource() 118 AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity) AddColorModeResource() argument
|
/base/global/resource_management/interfaces/inner_api/include/ |
H A D | res_config.h | 42 virtual void SetScreenDensity(float screenDensity) = 0;
|
/base/global/resource_management/interfaces/cj/src/ |
H A D | resource_manager_interface.h | 29 int32_t screenDensity; member
|
H A D | resource_manager_impl.cpp | 299 deviceCapability.screenDensity = static_cast<int32_t>(cfg->ConvertDensity(cfg->GetScreenDensity())); in GetDeviceCapability() 301 LOGI("ResourceManagerImpl::GetDeviceCapability ok screenDensity %{public}" PRId32, in GetDeviceCapability() 302 deviceCapability.screenDensity); in GetDeviceCapability()
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_config_impl.cpp | 208 void ResConfigImpl::SetScreenDensity(float screenDensity) in SetScreenDensity() argument 210 this->density_ = screenDensity; in SetScreenDensity() 211 this->screenDensityDpi_ = ConvertDensity(screenDensity); in SetScreenDensity()
|
H A D | native_resource_manager.cpp | 406 configuration->screenDensity = static_cast<::ScreenDensity>(resConfig.GetScreenDensity());
in OH_ResourceManager_GetConfiguration()
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
H A D | resource_manager_napi_utils.cpp | 463 napi_value screenDensity; in CreateJsDeviceCap() local 464 status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap() 466 context.SetErrorMsg("Failed to create screenDensity"); in CreateJsDeviceCap() 469 status = napi_set_named_property(env, result, "screenDensity", screenDensity); in CreateJsDeviceCap() 471 context.SetErrorMsg("Failed to set screenDensity property"); in CreateJsDeviceCap() 545 SetIntProperty(env, context, result, "screenDensity", static_cast<int>(cfg->GetScreenDensityDpi())); in CreateConfig() 604 std::vector<std::string> properties = {"direction", "deviceType", "screenDensity", "colorMode", "mcc", "mnc"}; in GetEnumParamOfConfig() 634 } else if (property == "screenDensity") { in GetEnumParamOfConfig()
|