Home
last modified time | relevance | path

Searched refs:handleSize (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/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 %zu failed", handleSize); in AllocExtDataHandle()
33 auto ret = memset_s(handle, handleSize, 0, handleSize); in AllocExtDataHandle()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/utils/
H A Dcamera_buffer_handle_utils.cpp35 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in CameraAllocateBufferHandle() local
36 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in CameraAllocateBufferHandle()
38 (void)memset_s(handle, handleSize, 0, handleSize); in CameraAllocateBufferHandle()
46 MEDIA_ERR_LOG("InitBufferHandle malloc %zu failed", handleSize); in CameraAllocateBufferHandle()
/ohos5.0/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("InitBufferHandle malloc %zu failed", handleSize); in AllocateBufferHandle()
/ohos5.0/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()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dbuffer_util.c31 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in AllocateNativeBufferHandle() local
32 BufferHandle *handle = (BufferHandle *)(OsalMemCalloc(handleSize)); in AllocateNativeBufferHandle()
41 HDF_LOGE("BufferHandle malloc %zu failed", handleSize); in AllocateNativeBufferHandle()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dpicture_handle_client.cpp316 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in ReadBufferHandle() local
317 BufferHandle *handle = static_cast<BufferHandle *>(malloc(handleSize)); in ReadBufferHandle()
322 memset_s(handle, handleSize, 0, handleSize); in ReadBufferHandle()
/ohos5.0/docs/zh-cn/application-dev/dfx/
H A Dhiappevent-watcher-freeze-events-ndk.md94 auto handleSize = params["event_handler"].size();
112 …OG_INFO(LogType::LOG_APP, "HiAppEvent eventInfo.params.event_handler.size=%{public}d", handleSize);
173 auto handleSize = eventInfo["event_handler"].size();
191 …OG_INFO(LogType::LOG_APP, "HiAppEvent eventInfo.params.event_handler.size=%{public}d", handleSize);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_pattern.cpp305 SizeF handleSize = { in CalAndUpdateSelectOverlay() local
308 info.firstHandle.paintRect = RectF(rect.GetOffset(), handleSize); in CalAndUpdateSelectOverlay()
310 OffsetF offset(rect.Width() - handleSize.Width(), rect.Height() - handleSize.Height()); in CalAndUpdateSelectOverlay()
311 info.secondHandle.paintRect = RectF(rect.GetOffset() + offset, handleSize); in CalAndUpdateSelectOverlay()
1229 SizeF handleSize = { in OpenSelectOverlay() local
1232 info.firstHandle.paintRect = RectF(rect.GetOffset(), handleSize); in OpenSelectOverlay()
1233 OffsetF offset(rect.Width() - handleSize.Width(), rect.Height() - handleSize.Height()); in OpenSelectOverlay()
1234 info.secondHandle.paintRect = RectF(rect.GetOffset() + offset, handleSize); in OpenSelectOverlay()
/ohos5.0/docs/en/application-dev/dfx/
H A Dhiappevent-watcher-freeze-events-ndk.md94 auto handleSize = params["event_handler"].size();
112 …OG_INFO(LogType::LOG_APP, "HiAppEvent eventInfo.params.event_handler.size=%{public}d", handleSize);
173 auto handleSize = eventInfo["event_handler"].size();
191 …OG_INFO(LogType::LOG_APP, "HiAppEvent eventInfo.params.event_handler.size=%{public}d", handleSize);
/ohos5.0/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()
/ohos5.0/drivers/peripheral/codec/test/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp465 size_t handleSize = in BENCHMARK_F() local
469 omxBuffer->allocLen = handleSize; in BENCHMARK_F()
/ohos5.0/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcodec_hdi_decode.cpp458 size_t handleSize = in UseBufferHandle() local
460 omxBuffer->bufferLen = handleSize; in UseBufferHandle()