Home
last modified time | relevance | path

Searched refs:screenDensity (Results 1 - 16 of 16) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A 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 in GetScreenDensity()
507 std::string screenDensity; ToFolderPath() local
[all...]
/base/global/resource_management/interfaces/native/resource/include/
H A Dresmgr_common.h155 ScreenDensity screenDensity; member
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dres_config_impl.h69 * Set resConfig screenDensity
70 * @param screenDensity the resConfig screenDensity
72 void SetScreenDensity(ScreenDensity screenDensity);
H A Dres_config.h37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0;
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_parser.h233 std::string screenDensity; member
240 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; member
H A Dres_config_impl.h95 * Set resConfig screenDensity
96 * @param screenDensity the resConfig screenDensity
98 void SetScreenDensity(float screenDensity);
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp666 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 Dres_config_impl.cpp88 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 Dresource_manager_test_common.h73 void AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity);
H A Dresource_manager_test_common.cpp119 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 Dres_config.h42 virtual void SetScreenDensity(float screenDensity) = 0;
/base/global/resource_management/interfaces/cj/src/
H A Dresource_manager_interface.h29 int32_t screenDensity; member
H A Dresource_manager_impl.cpp299 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 Dres_config_impl.cpp208 void ResConfigImpl::SetScreenDensity(float screenDensity) in SetScreenDensity() argument
210 this->density_ = screenDensity; in SetScreenDensity()
211 this->screenDensityDpi_ = ConvertDensity(screenDensity); in SetScreenDensity()
H A Dnative_resource_manager.cpp406 configuration->screenDensity = static_cast<::ScreenDensity>(resConfig.GetScreenDensity()); in OH_ResourceManager_GetConfiguration()
/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_utils.cpp463 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()

Completed in 14 milliseconds