Home
last modified time | relevance | path

Searched refs:reserveInts (Results 1 - 25 of 43) sorted by relevance

12

/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_tunnel_handle.cpp21 GraphicExtDataHandle *AllocExtDataHandle(uint32_t reserveInts) in AllocExtDataHandle() argument
23 if (static_cast<size_t>(reserveInts) > (SIZE_MAX - sizeof(GraphicExtDataHandle)) / sizeof(int32_t)) { in AllocExtDataHandle()
24 BLOGE("reserveInts: %{public}u is too large", reserveInts); in AllocExtDataHandle()
27 size_t handleSize = sizeof(GraphicExtDataHandle) + (sizeof(int32_t) * reserveInts); in AllocExtDataHandle()
40 handle->reserveInts = reserveInts; in AllocExtDataHandle()
41 for (uint32_t i = 0; i < reserveInts; i++) { in AllocExtDataHandle()
80 tunnelHandle_ = AllocExtDataHandle(handle->reserveInts); in SetHandle()
86 for (uint32_t index = 0; index < handle->reserveInts; inde in SetHandle()
[all...]
H A Dbuffer_utils.cpp285 uint32_t reserveInts = parcel.ReadUint32(); in ReadExtDataHandle() local
286 if (reserveInts > SURFACE_PARCEL_SIZE_LIMIT) { in ReadExtDataHandle()
287 BLOGE("ReadExtDataHandle size more than limit, size: %{public}u", reserveInts); in ReadExtDataHandle()
290 GraphicExtDataHandle *tunnelHandle = AllocExtDataHandle(reserveInts); in ReadExtDataHandle()
296 for (uint32_t index = 0; index < reserveInts; index++) { in ReadExtDataHandle()
314 uint32_t reserveInts = handle->reserveInts; in WriteExtDataHandle() local
315 if (reserveInts > SURFACE_PARCEL_SIZE_LIMIT) { in WriteExtDataHandle()
316 BLOGE("WriteExtDataHandle size more than limit, size: %{public}u", reserveInts); in WriteExtDataHandle()
319 if (!parcel.WriteUint32(reserveInts)) { in WriteExtDataHandle()
[all...]
/foundation/graphic/graphic_surface/buffer_handle/src/
H A Dbuffer_handle.cpp37 BufferHandle *AllocateBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in AllocateBufferHandle() argument
39 if (reserveFds > BUFFER_HANDLE_RESERVE_MAX_SIZE || reserveInts > BUFFER_HANDLE_RESERVE_MAX_SIZE) { in AllocateBufferHandle()
40 UTILS_LOGE("AllocateBufferHandle reserveFds or reserveInts too lager"); in AllocateBufferHandle()
43 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in AllocateBufferHandle()
57 handle->reserveInts = reserveInts; in AllocateBufferHandle()
88 if (!parcel.WriteUint32(handle.reserveFds) || !parcel.WriteUint32(handle.reserveInts) || in WriteBufferHandle()
111 for (uint32_t j = 0; j < handle.reserveInts; j++) { in WriteBufferHandle()
123 uint32_t reserveInts = 0; in ReadBufferHandle() local
124 if (!parcel.ReadUint32(reserveFds) || !parcel.ReadUint32(reserveInts)) { in ReadBufferHandle()
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/src/utils/
H A Dcamera_buffer_handle_utils.cpp31 BufferHandle *CameraAllocateBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in CameraAllocateBufferHandle() argument
33 if (reserveFds > BUFFER_HANDLE_RESERVE_MAX_SIZE || reserveInts > BUFFER_HANDLE_RESERVE_MAX_SIZE) { in CameraAllocateBufferHandle()
34 MEDIA_ERR_LOG("CameraAllocateBufferHandle reserveFds or reserveInts too lager"); in CameraAllocateBufferHandle()
37 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in CameraAllocateBufferHandle()
46 handle->reserveInts = reserveInts; in CameraAllocateBufferHandle()
80 BufferHandle *newHandle = CameraAllocateBufferHandle(handle->reserveFds, handle->reserveInts); in CameraCloneBufferHandle()
106 if (handle->reserveInts == 0) { in CameraCloneBufferHandle()
111 if (memcpy_s(&newHandle->reserve[newHandle->reserveFds], sizeof(int32_t) * newHandle->reserveInts, in CameraCloneBufferHandle()
112 &handle->reserve[handle->reserveFds], sizeof(int32_t) * handle->reserveInts) ! in CameraCloneBufferHandle()
[all...]
/foundation/graphic/surface_lite/interfaces/innerkits/
H A Dsurface_buffer_impl.h46 uint32_t reserveInts; /* the number of reserved integer value */ member
143 * @brief Get buffer reserveInts, for shared physical memory.
148 return bufferData_.handle.reserveInts; in GetReserveInts()
152 * @brief Set buffer reserveInts, for shared physical memory.
155 void SetReserveInts(uint32_t reserveInts) in SetReserveInts() argument
157 bufferData_.handle.reserveInts = reserveInts; in SetReserveInts()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dpicture_handle_client.cpp305 uint32_t reserveInts = 0; in ReadBufferHandle() local
306 bool reserveIntsRet = data.ReadUint32(reserveInts); in ReadBufferHandle()
307 if (reserveInts < 0 || reserveInts > static_cast<uint32_t>(MAX_VALUE)) { in ReadBufferHandle()
310 MEDIA_DEBUG_LOG("PictureHandlerClient::ReadBufferHandle reserveInts: %{public}d", reserveInts); in ReadBufferHandle()
312 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in ReadBufferHandle()
321 handle->reserveInts = reserveInts; in ReadBufferHandle()
350 for (uint32_t j = 0; j < handle->reserveInts; in ReadBufferHandle()
[all...]
/foundation/graphic/graphic_surface/surface/test/systemtest/
H A Dnative_window_buffer_test.cpp57 uint32_t reserveInts = 1; in SetData() local
58 size_t handleSize = sizeof(OHExtDataHandle) + (sizeof(int32_t) * reserveInts); in SetData()
69 handle->reserveInts = reserveInts; in SetData()
70 for (uint32_t i = 0; i < reserveInts; i++) { in SetData()
100 (handleGet->GetHandle()->reserveInts != 1) || (handleGet->GetHandle()->reserve[0] != 1)) { in GetData()
H A Dsurface_ipc_with_pts_test.cpp88 uint32_t reserveInts = 1; in SetData() local
89 GraphicExtDataHandle *handle = AllocExtDataHandle(reserveInts); in SetData()
112 (handleGet->GetHandle()->reserveInts != 1) || (handleGet->GetHandle()->reserve[0] != 1)) { in GetData()
H A Dsurface_ipc_test.cpp78 uint32_t reserveInts = 1; in SetData() local
79 GraphicExtDataHandle *handle = AllocExtDataHandle(reserveInts); in SetData()
102 (handleGet->GetHandle()->reserveInts != 1) || (handleGet->GetHandle()->reserve[0] != 1)) { in GetData()
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dcommon_types.h31 uint32_t reserveInts; member
H A Dsurface_tunnel_handle.h23 GraphicExtDataHandle *AllocExtDataHandle(uint32_t reserveInts);
H A Dexternal_window.h370 uint32_t reserveInts; member
/foundation/graphic/graphic_surface/interfaces/inner_api/buffer_handle/
H A Dbuffer_handle_utils.h28 * @param reserveInts The number of reserved integers
32 BufferHandle *AllocateBufferHandle(uint32_t reserveInts, uint32_t reserveFds);
H A Dbuffer_handle.h36 uint32_t reserveInts; /**< the number of reserved integer value */ member
/foundation/graphic/graphic_surface/interfaces/inner_api/utils/
H A Dbuffer_handle_utils.h28 * @param reserveInts The number of reserved integers
32 BufferHandle *AllocateBufferHandle(uint32_t reserveInts, uint32_t reserveFds);
H A Dbuffer_handle.h36 uint32_t reserveInts; /**< the number of reserved integer value */ member
/foundation/graphic/graphic_surface/surface/include/
H A Dbuffer_handle.h36 uint32_t reserveInts; /**< the number of reserved integer value */ member
/foundation/graphic/graphic_surface/surface/test/fuzztest/bufferutils_fuzzer/
H A Dbufferutils_fuzzer.cpp47 uint32_t reserveInts = GetData<uint32_t>() % 0x100000; // no more than 0x100000 in DoSomethingInterestingWithMyAPI() local
67 GraphicExtDataHandle *handle = AllocExtDataHandle(reserveInts); in DoSomethingInterestingWithMyAPI()
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/utils/
H A Dcamera_buffer_handle_utils.h37 BufferHandle *CameraAllocateBufferHandle(uint32_t reserveInts, uint32_t reserveFds);
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client_tunnel_handle_demo.cpp63 priHandle.handle.reserveInts = 1; in main()
/foundation/graphic/surface_lite/frameworks/
H A Dbuffer_manager.cpp113 bufferHandle->reserveInts = buffer.GetReserveInts(); in AllocateBufferHandle()
138 buffer->SetReserveInts(bufferHandle->reserveInts); in AllocBuffer()
139 for (uint32_t i = 0; i < (bufferHandle->reserveFds + bufferHandle->reserveInts); i++) { in AllocBuffer()
H A Dsurface_buffer_impl.cpp130 ReadUint32(&io, &(bufferData_.handle.reserveInts)); in ReadFromIpcIo()
166 WriteUint32(&io, bufferData_.handle.reserveInts); in WriteToIpcIo()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/
H A Dhdilayerinfo_test.cpp348 uint32_t reserveInts = 1; in HWTEST_F() local
349 GraphicExtDataHandle *handleSet = AllocExtDataHandle(reserveInts); in HWTEST_F()
355 ASSERT_EQ(HdiLayerInfoTest::hdiLayerInfo_->GetTunnelHandle()->GetHandle()->reserveInts, in HWTEST_F()
356 tunnelHandle->GetHandle()->reserveInts); in HWTEST_F()
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_buffer.cpp59 sizeof(BufferHandle) + (sizeof(int32_t) * (bufferHandle->reserveFds + bufferHandle->reserveInts)); in Init()
130 sizeof(BufferHandle) + sizeof(int32_t) * (bufferHandle->reserveFds + bufferHandle->reserveInts); in Rebind()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dpicture_handle_service.cpp261 MEDIA_DEBUG_LOG("PictureHandlerService::WriteBufferHandler reserveInts: %{public}d", handle.reserveInts); in WriteBufferHandler()
262 data.WriteUint32(handle.reserveInts); in WriteBufferHandler()
291 for (uint32_t j = 0; j < handle.reserveInts; j++) { in WriteBufferHandler()

Completed in 10 milliseconds

12