Home
last modified time | relevance | path

Searched refs:handleSize (Results 1 - 7 of 7) sorted by relevance

/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_tunnel_handle.cpp27 size_t handleSize = sizeof(GraphicExtDataHandle) + (sizeof(int32_t) * reserveInts); in AllocExtDataHandle() local
28 GraphicExtDataHandle *handle = static_cast<GraphicExtDataHandle *>(malloc(handleSize)); in AllocExtDataHandle()
30 BLOGE("malloc %{public}zu failed", handleSize); in AllocExtDataHandle()
33 auto ret = memset_s(handle, handleSize, 0, handleSize); in AllocExtDataHandle()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/utils/
H A Dcamera_buffer_handle_utils.cpp37 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in CameraAllocateBufferHandle() local
38 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in CameraAllocateBufferHandle()
40 (void)memset_s(handle, handleSize, 0, handleSize); in CameraAllocateBufferHandle()
48 MEDIA_ERR_LOG("InitBufferHandle malloc %zu failed", handleSize); in CameraAllocateBufferHandle()
/foundation/graphic/graphic_surface/buffer_handle/src/
H A Dbuffer_handle.cpp43 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in AllocateBufferHandle() local
44 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in AllocateBufferHandle()
46 errno_t ret = memset_s(handle, handleSize, 0, handleSize); in AllocateBufferHandle()
59 UTILS_LOGE("AllocateBufferHandle malloc %{public}zu failed", handleSize); in AllocateBufferHandle()
/foundation/graphic/graphic_surface/surface/test/systemtest/
H A Dnative_window_buffer_test.cpp58 size_t handleSize = sizeof(OHExtDataHandle) + (sizeof(int32_t) * reserveInts); in SetData() local
59 OHExtDataHandle *handle = static_cast<OHExtDataHandle *>(malloc(handleSize)); in SetData()
63 int32_t ret = memset_s(handle, handleSize, 0, handleSize); in SetData()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dpicture_handle_client.cpp312 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in ReadBufferHandle() local
313 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in ReadBufferHandle()
318 memset_s(handle, handleSize, 0, handleSize); in ReadBufferHandle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_pattern.cpp268 SizeF handleSize = {
271 info.firstHandle.paintRect = RectF(rect.GetOffset(), handleSize);
273 OffsetF offset(rect.Width() - handleSize.Width(), rect.Height() - handleSize.Height());
274 info.secondHandle.paintRect = RectF(rect.GetOffset() + offset, handleSize);
1235 SizeF handleSize = {
1238 info.firstHandle.paintRect = RectF(rect.GetOffset(), handleSize);
1239 OffsetF offset(rect.Width() - handleSize.Width(), rect.Height() - handleSize.Height());
1240 info.secondHandle.paintRect = RectF(rect.GetOffset() + offset, handleSize);
[all...]
/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dnative_window_test.cpp42 size_t handleSize = sizeof(OHExtDataHandle) + (sizeof(int32_t) * reserveInts); in AllocOHExtDataHandle() local
43 OHExtDataHandle *handle = static_cast<OHExtDataHandle *>(malloc(handleSize)); in AllocOHExtDataHandle()
45 BLOGE("AllocOHExtDataHandle malloc %zu failed", handleSize); in AllocOHExtDataHandle()
48 auto ret = memset_s(handle, handleSize, 0, handleSize); in AllocOHExtDataHandle()

Completed in 8 milliseconds