/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/ |
H A D | js_canvas_path.cpp | 36 double density = GetDensity(); in JsPath2DSetTransform() local 37 … path2d_->SetTransform(scaleX, skewX, skewY, scaleY, translateX * density, translateY * density); in JsPath2DSetTransform() 48 double density = GetDensity(); in JsPath2DMoveTo() local 49 path2d_->MoveTo(x * density, y * density); in JsPath2DMoveTo() 61 path2d_->LineTo(x * density, y * density); in JsPath2DLineTo() 79 … path2d_->Arc(x * density, y * density, radius * density, startAngle, endAngle, anticlockwise); in JsPath2DArc() 95 path2d_->ArcTo(x1 * density, y1 * density, x2 * density, y2 * density, radius * density); in JsPath2DArcTo() 109 path2d_->QuadraticCurveTo(cpx * density, cpy * density, x * density, y * density); in JsPath2DQuadraticCurveTo() 127 … cp1x * density, cp1y * density, cp2x * density, cp2y * density, x * density, y * density); in JsPath2DBezierCurveTo() 149 path2d_->Ellipse(x * density, y * density, radiusX * density, radiusY * density, rotation, in JsPath2DEllipse() [all …]
|
H A D | js_canvas_renderer.cpp | 156 gradient->SetBeginOffset(Offset(x0 * density, y0 * density)); in JsCreateLinearGradient() 157 gradient->SetEndOffset(Offset(x1 * density, y1 * density)); in JsCreateLinearGradient() 177 gradient->SetBeginOffset(Offset(startX * density, startY * density)); in JsCreateRadialGradient() 178 gradient->SetEndOffset(Offset(endX * density, endY * density)); in JsCreateRadialGradient() 623 fWidth *= density; in JsCreateImageData() 624 fHeight *= density; in JsCreateImageData() 1092 renderingContext2DModel_->MoveTo(x * density, y * density); in JsMoveTo() 1103 renderingContext2DModel_->LineTo(x * density, y * density); in JsLineTo() 1118 param.x *= density; in JsBezierCurveTo() 1119 param.y *= density; in JsBezierCurveTo() [all …]
|
H A D | js_matrix2d.cpp | 141 translateX *= density; in JsSetTranslateX() 155 translateY *= density; in JsSetTranslateY() 191 double density = GetDensity(); in JsGetTranslateX() local 192 translateX /= density; in JsGetTranslateX() 201 double density = GetDensity(); in JsGetTranslateY() local 202 translateY /= density; in JsGetTranslateY() 251 double density = GetDensity(); in JsRotate() local 252 rx *= density; in JsRotate() 253 ry *= density; in JsRotate() 272 tx *= density; in JsTranslate() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/ |
H A D | resourcemanager.md | 82 Enumerates screen density types. 88 | SCREEN_SDPI | Screen density with small-scale dots per inch (SDPI).| 89 | SCREEN_MDPI | Screen density with medium-scale dots per inch (MDPI).| 90 | SCREEN_LDPI | Screen density with large-scale dots per inch (LDPI).| 91 | SCREEN_XLDPI | Screen density with extra-large-scale dots per inch (XLDPI).| 117 | density | Screen density. If the value of **enddensity** is **0**, the current system screen dens… 150 | density | Screen density. If the value of **enddensity** is **0**, the current system screen dens… 183 | density | Screen density. If the value of **enddensity** is **0**, the current system screen dens… 218 | density | Screen density. If the value of **enddensity** is **0**, the current system screen dens… 253 | density | Screen density. If the value of **enddensity** is **0**, the current system screen dens… [all …]
|
H A D | ohresmgr_8h.md | 24 …int64_t \*resultLen, uint32_t density=0) | Obtains the Base64 code of the media resource with the … 25 …int64_t \*resultLen, uint32_t density=0) | Obtains the Base64 code of the media resource with the … 26 … uint64_t \*resultLen, uint32_t density=0) | Obtains the content of the media resource with the sp… 27 … uint64_t \*resultLen, uint32_t density=0) | Obtains the content of the media resource with the sp… 28 …or, uint32_t density=0, uint32_t type=0) | Obtains the **DrawableDescriptor** object of the icon r… 29 …or, uint32_t density=0, uint32_t type=0) | Obtains the **DrawableDescriptor** object of the icon r…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/ |
H A D | resourcemanager.md | 102 …uint32_t resId, ArkUI_DrawableDescriptor ** drawableDescriptor, uint32_t density = 0, uint32_t typ… 117 | density | 可选参数screen、enddensity、enddensity,值为0表示使用当前系统dpi的密度。 | 150 | density | 可选参数screen enddensity **enddensity**,值为0表示使用当前系统dpi的密度。 | 168 …Manager * mgr, uint32_t resId, uint8_t ** resultValue, uint64_t * resultLen, uint32_t density = 0 ) 183 | density | 可选参数screen enddensity **enddensity**,值为0表示使用当前系统dpi的密度。 | 203 …rceManager * mgr, uint32_t resId, char ** resultValue, uint64_t * resultLen, uint32_t density = 0 ) 218 | density | 可选参数screen enddensity **enddensity**,值为0表示使用当前系统dpi的密度。 | 238 …ager * mgr, const char * resName, char ** resultValue, uint64_t * resultLen, uint32_t density = 0 ) 253 | density | 可选参数screen enddensity **enddensity**,值为0表示使用当前系统dpi的密度。 | 265 …r * mgr, const char * resName, uint8_t ** resultValue, uint64_t * resultLen, uint32_t density = 0 ) [all …]
|
H A D | ohresmgr_8h.md | 24 …gr, uint32_t resId, char \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | 获取指定资源ID,指定屏… 25 …nst char \*resName, char \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | 获取指定资源名称,指定屏… 26 … uint32_t resId, uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | 获取指定资源ID,指定屏… 27 … char \*resName, uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | 获取指定资源名称,指定屏… 28 …int32_t resId, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density=0, uint32_t type=… 29 …har \*resName, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density=0, uint32_t type=…
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_media.cpp | 134 int density = 160; variable 170 int density = 240; variable 206 int density = 320; variable 242 int density = 480; variable 278 int density = 640; variable 362 int density = 120; variable 398 int density = 160; variable 434 int density = 240; variable 470 int density = 320; variable 506 int density = 480; variable [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | configuration_utils.cpp | 65 float density; in InitDisplayConfig() local 67 if (!GetDisplayConfig(displayId, density, direction)) { in InitDisplayConfig() 75 UpdateDisplayResConfig(resourceManager, density, direction); in InitDisplayConfig() 87 float density; in UpdateDisplayConfig() local 89 if (!GetDisplayConfig(displayId, density, direction)) { in UpdateDisplayConfig() 106 UpdateDisplayResConfig(resourceManager, density, direction); in UpdateDisplayConfig() 124 density = display->GetVirtualPixelRatio(); in GetDisplayConfig() 129 displayId, density, directionStr.c_str()); in GetDisplayConfig() 134 float &density, std::string &direction) in UpdateDisplayResConfig() argument 138 density, direction.c_str()); in UpdateDisplayResConfig() [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | js-framework-resource-restriction.md | 6 …the application scenarios or device characteristics, covering the screen density, and more. The qu… 11 - Qualifiers are ordered in the following sequence: screen density. You can select one or multiple … 28 …density | Indicates the screen density of the device, in dpi. The value can be:<br/>- ldpi: low-de… 33 …ces in the following priorities: screen orientation > dark mode > screen density. If no matching r… 35 …vice status. For example, the res-hdpi.json qualifier file does not match the device density xhdpi.
|
/ohos5.0/base/global/resource_management/interfaces/native/resource/include/ |
H A D | ohresmgr.h | 65 char **resultValue, uint64_t *resultLen, uint32_t density = 0); 88 char **resultValue, uint64_t *resultLen, uint32_t density); 111 const char *resName, char **resultValue, uint64_t *resultLen, uint32_t density = 0); 134 const char *resName, char **resultValue, uint64_t *resultLen, uint32_t density); 157 uint8_t **resultValue, uint64_t *resultLen, uint32_t density = 0); 180 uint8_t **resultValue, uint64_t *resultLen, uint32_t density); 203 uint8_t **resultValue, uint64_t *resultLen, uint32_t density = 0); 226 uint8_t **resultValue, uint64_t *resultLen, uint32_t density); 248 …uint32_t resId, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density = 0, uint32_t type… 271 uint32_t resId, ArkUI_DrawableDescriptor **drawableDescriptor, uint32_t density, uint32_t type); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.33/ |
H A D | changelogs-global.md | 197 …density = 0) | 使用接口通过资源id获取媒体文件base64编码值 | ResourceMana… 199 …density = 0) | 使用接口通过资源id获取媒体文件内容 | ResourceManager_… 200 …density = 0) | 使用接口通过资源名称获取媒体文件内容 | ResourceManager_ErrorCode O… 201 …density = 0, uint32_t type = 0) | 使用接口通过资源id获取图片的描述符 | ResourceManager_ErrorCode OH_Res… 202 …density = 0, uint32_t type = 0) | 使用接口通过资源名称获取图片的描述符 | ResourceManager_ErrorCode OH_ResourceManage… 211 char \*\*resultValue, uint64_t \*resultLen, uint32_t density); 214 const char \*resName, char \*\*resultValue, uint64_t \*resultLen, uint32_t density); 217 uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density); 220 uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density); 223 … uint32_t resId, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density, uint32_t type); [all …]
|
/ohos5.0/foundation/window/window_manager/wm/src/ |
H A D | window_display_change_adapter.cpp | 71 auto density = displayInfo->GetVirtualPixelRatio(); in OnChange() local 73 if (displayId_ == displayId && NearEqual(density_, density) && orientation_ == orientation) { in OnChange() 78 density_ = density; in OnChange() 80 displayInfoChangeListener_->OnDisplayInfoChange(token_, displayId, density, orientation); in OnChange() 84 DisplayId displayId, float density, DisplayOrientation orientation) in OnDisplayInfoChange() argument 90 if (displayId_ == displayId && NearEqual(density_, density) && orientation_ == orientation) { in OnDisplayInfoChange() 95 density_ = density; in OnDisplayInfoChange() 97 displayInfoChangeListener_->OnDisplayInfoChange(token, displayId, density, orientation); in OnDisplayInfoChange()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_pixel_unit_convert_ffi.cpp | 31 double density = PipelineBase::GetCurrentDensity(); in FfiOHOSAceFrameworkVp2Px() local 32 return value * density; in FfiOHOSAceFrameworkVp2Px() 41 double density = PipelineBase::GetCurrentDensity(); in FfiOHOSAceFrameworkPx2Vp() local 42 if (NearZero(density)) { in FfiOHOSAceFrameworkPx2Vp() 45 return value / density; in FfiOHOSAceFrameworkPx2Vp() 51 double density = PipelineBase::GetCurrentDensity(); in GetFp2PxParam() local 62 return density * fontScale; in GetFp2PxParam()
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-app-ability-configurationConstant.md | 47 Enumerates the screen density modes. 55 | SCREEN_DENSITY_NOT_SET | 0 | The screen pixel density is not set.| 56 | SCREEN_DENSITY_SDPI | 120 | The pixel density of the screen is 'SDPI'.| 57 | SCREEN_DENSITY_MDPI | 160 | The pixel density of the screen is 'MDPI'.| 58 | SCREEN_DENSITY_LDPI | 240 | The pixel density of the screen is 'LDPI'.| 59 | SCREEN_DENSITY_XLDPI | 320 | The pixel density of the screen is 'XLDPI'.| 60 | SCREEN_DENSITY_XXLDPI | 480 | The pixel density of the screen is 'XXLDPI'.| 61 | SCREEN_DENSITY_XXXLDPI | 640 | The pixel density of the screen is 'XXXLDPI'.|
|
/ohos5.0/base/global/resource_management/interfaces/cj/src/ |
H A D | resource_manager_ffi.h | 70 FFI_EXPORT RetDataCArrUI8 CJ_GetMediaByName(int64_t id, const char* resName, uint32_t density); 71 FFI_EXPORT RetDataCArrUI8 CJ_GetMediaContent(int64_t id, uint32_t resId, uint32_t density); 72 …PORT RetDataCArrUI8 CJ_GetMediaContentByResource(int64_t id, CResource resource, uint32_t density); 73 … FFI_EXPORT RetDataCString CJ_GetMediaContentBase64(int64_t id, uint32_t resId, uint32_t density); 74 …etDataCString CJ_GetMediaContentBase64ByResource(int64_t id, CResource resource, uint32_t density); 75 …T RetDataCString CJ_GetMediaContentBase64ByName(int64_t id, const char* resName, uint32_t density); 76 FFI_EXPORT RetDataI64 CJ_GetDrawableDescriptor(int64_t id, uint32_t resId, uint32_t density); 77 …RT RetDataI64 CJ_GetDrawableDescriptorByResource(int64_t id, CResource resource, uint32_t density); 78 …XPORT RetDataI64 CJ_GetDrawableDescriptorByName(int64_t id, const char* resName, uint32_t density);
|
H A D | resource_manager_impl.cpp | 293 uint32_t density) in GetMediaDataByName() argument 295 RState state = resMgr_->GetMediaDataByName(name, len, outValue, density); in GetMediaDataByName() 305 uint32_t density) in GetMediaDataById() argument 307 RState state = resMgr_->GetMediaDataById(id, len, outValue, density); in GetMediaDataById() 318 RState state = resMgr_->GetMediaBase64DataById(id, outValue, density); in GetMediaContentBase64ById() 329 RState state = resMgr_->GetMediaBase64DataByName(name, outValue, density); in GetMediaContentBase64ByName() 338 int32_t ResourceManagerImpl::GetDrawableDescriptor(uint32_t id, int64_t &outValue, uint32_t density) in GetDrawableDescriptor() argument 343 state, drawableType, density); in GetDrawableDescriptor() 361 state, drawableType, density); in GetDrawableDescriptorByName() 427 std::shared_ptr<Global::Resource::ResourceManager> resMgr, uint32_t density, RState &state) in GetDrawableDescriptorPtr() argument [all …]
|
H A D | resource_manager_interface.h | 50 uint32_t density) = 0; 52 uint32_t density) = 0; 61 …virtual int32_t GetMediaContentBase64ById(uint32_t id, std::string &outValue, uint32_t density) = … 62 …int32_t GetMediaContentBase64ByName(const char *name, std::string &outValue, uint32_t density) = 0; 63 virtual int32_t GetDrawableDescriptor(uint32_t id, int64_t &outValue, uint32_t density) = 0; 64 …ual int32_t GetDrawableDescriptorByName(const char *name, int64_t &outValue, uint32_t density) = 0;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | flutter_render_context.cpp | 119 auto density = context->GetDensity(); in SetOffSet() local 122 if (!NearZero(density)) { in SetOffSet() 125 … renderPost.GetX() / density - renderPost.GetX(), renderPost.GetY() / density - renderPost.GetY()); in SetOffSet() 126 pluginOffset = { renderPost.GetX() / density - renderPost.GetX(), in SetOffSet() 127 renderPost.GetY() / density - renderPost.GetY() }; in SetOffSet() 129 layer->SetOffset(pos.GetX() / density, pos.GetY() / density); in SetOffSet() 130 pluginOffset = { pos.GetX() / density, pos.GetY() / density }; in SetOffSet()
|
/ohos5.0/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_display_change_adapter_test.cpp | 35 void OnDisplayInfoChange(const sptr<IRemoteObject>& token, DisplayId displayId, float density, in OnDisplayInfoChange() argument 39 density_ = density; in OnDisplayInfoChange() 100 float density = 0.2f; variable 103 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); 105 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); 108 ASSERT_EQ(density, listener->density_);
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | native_resource_manager.cpp | 115 char **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaBase64() argument 121 char **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaBase64Data() argument 127 RState state = mgr->resManager->GetMediaBase64DataById(resId, tempResultValue, density); in OH_ResourceManager_GetMediaBase64Data() 150 const char *resName, char **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaBase64ByName() argument 156 const char *resName, char **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaBase64DataByName() argument 186 uint8_t **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMedia() argument 188 return OH_ResourceManager_GetMediaData(mgr, resId, resultValue, resultLen, density); in OH_ResourceManager_GetMedia() 192 uint8_t **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaData() argument 219 uint8_t **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaByName() argument 225 uint8_t **resultValue, uint64_t *resultLen, uint32_t density) in OH_ResourceManager_GetMediaDataByName() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | screen_system_manager.h | 56 void SetWindowInfo(double screenWidth, double density, double dipScale) in SetWindowInfo() argument 59 density_ = density; in SetWindowInfo() 61 viewScale_ = density / dipScale; in SetWindowInfo() 64 void SetWindowInfo(double density, double dipScale) in SetWindowInfo() argument 66 density_ = density; in SetWindowInfo() 68 viewScale_ = density / dipScale; in SetWindowInfo()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/ |
H A D | resource_manager_impl.h | 420 uint32_t density = 0); 431 uint32_t density = 0); 511 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 523 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 627 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0); 640 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0); 714 uint32_t density = 0); 768 bool IsDensityValid(uint32_t density); 779 std::unique_ptr<uint8_t[]> &outValue, uint32_t density); 784 uint32_t iconType, uint32_t density); [all …]
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/include/ |
H A D | mock_resource_manager_impl.h | 308 virtual RState GetMediaById(uint32_t id, std::string &outValue, uint32_t density = 0); 317 virtual RState GetMediaByName(const char *name, std::string &outValue, uint32_t density = 0); 373 uint32_t density = 0); 384 uint32_t density = 0); 393 virtual RState GetMediaBase64DataById(uint32_t id, std::string &outValue, uint32_t density = 0); 402 …ual RState GetMediaBase64DataByName(const char *name, std::string &outValue, uint32_t density = 0); 464 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 476 std::unique_ptr<uint8_t[]> &outValue, uint32_t density = 0); 562 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0); 575 std::unique_ptr<uint8_t[]> &outValue, uint32_t iconType, uint32_t density = 0);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.33/ |
H A D | changelogs-global.md | 197 …density = 0) | Obtains the Base64 code of a media file … 199 …density = 0) | Obtains the content of a media file b… 200 …density = 0) | Obtains the content of a media file based on the… 201 …density = 0, uint32_t type = 0) | Obtains the file descriptor or an image based on the … 202 …density = 0, uint32_t type = 0) | Obtains the file descriptor or an image based on the resource na… 211 char \*\*resultValue, uint64_t \*resultLen, uint32_t density); 214 const char \*resName, char \*\*resultValue, uint64_t \*resultLen, uint32_t density); 217 uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density); 220 uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density); 223 … uint32_t resId, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density, uint32_t type); [all …]
|