Home
last modified time | relevance | path

Searched refs:reserveInts (Results 1 – 25 of 66) sorted by relevance

123

/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_tunnel_handle.cpp21 GraphicExtDataHandle *AllocExtDataHandle(uint32_t reserveInts) in AllocExtDataHandle() argument
23 if ((size_t)reserveInts > (SIZE_MAX - sizeof(GraphicExtDataHandle)) / sizeof(int32_t)) { in AllocExtDataHandle()
24 BLOGE("reserveInts: %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; index++) { in SetHandle()
109 tunnelHandle_->reserveInts != handle->GetHandle()->reserveInts; in Different()
113 for (uint32_t index = 0; index < handle->GetHandle()->reserveInts; index++) { in Different()
H A Dbuffer_utils.cpp245 uint32_t reserveInts = parcel.ReadUint32(); in ReadExtDataHandle() local
246 if (reserveInts > SURFACE_PARCEL_SIZE_LIMIT) { in ReadExtDataHandle()
247 BLOGE("ReadExtDataHandle size more than limit, size: %{public}u", reserveInts); in ReadExtDataHandle()
250 GraphicExtDataHandle *tunnelHandle = AllocExtDataHandle(reserveInts); in ReadExtDataHandle()
256 for (uint32_t index = 0; index < reserveInts; index++) { in ReadExtDataHandle()
273 uint32_t reserveInts = handle->reserveInts; in WriteExtDataHandle() local
274 if (reserveInts > SURFACE_PARCEL_SIZE_LIMIT) { in WriteExtDataHandle()
275 BLOGE("WriteExtDataHandle size more than limit, size: %{public}u", reserveInts); in WriteExtDataHandle()
278 parcel.WriteUint32(reserveInts); in WriteExtDataHandle()
280 for (uint32_t index = 0; index < handle->reserveInts; index++) { in WriteExtDataHandle()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dbuffer_util.c24 BufferHandle *AllocateNativeBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in AllocateNativeBufferHandle() argument
26 if (reserveFds > MAX_RESERVE_FDS || reserveInts > MAX_RESERVE_INTS) { in AllocateNativeBufferHandle()
31 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in AllocateNativeBufferHandle()
36 handle->reserveInts = reserveInts; in AllocateNativeBufferHandle()
53 BufferHandle *handle = AllocateNativeBufferHandle(other->reserveFds, other->reserveInts); in CloneNativeBufferHandle()
86 if (other->reserveInts == 0) { in CloneNativeBufferHandle()
155 for (uint32_t j = 0; j < handle->reserveInts; j++) { in HdfSbufWriteNativeBufferHandle()
173 for (uint32_t j = 0; j < handle->reserveInts; j++) { in ReadReserveData()
190 uint32_t reserveInts = 0; in HdfSbufReadNativeBufferHandle() local
191 if (!HdfSbufReadUint32(data, &reserveFds) || !HdfSbufReadUint32(data, &reserveInts)) { in HdfSbufReadNativeBufferHandle()
[all …]
H A Dnative_buffer.cpp90 …ssageParcel.WriteUint32(handle_->reserveFds) || !messageParcel.WriteUint32(handle_->reserveInts) || in Marshalling()
181 os << "reserveInts:" << handle_->reserveInts << ", "; in Dump()
184 if (UINT32_MAX - handle_->reserveFds >= handle_->reserveInts) { in Dump()
185 uint32_t reserveSize = handle_->reserveFds + handle_->reserveInts; in Dump()
206 uint32_t reserveInts = 0; in ExtractFromParcel() local
207 if (!messageParcel.ReadUint32(reserveFds) || !messageParcel.ReadUint32(reserveInts)) { in ExtractFromParcel()
211 if ((handle_ = AllocateNativeBufferHandle(reserveFds, reserveInts)) == nullptr) { in ExtractFromParcel()
247 for (uint32_t j = 0; j < handle.reserveInts; j++) { in WriteReserveData()
265 for (uint32_t j = 0; j < handle.reserveInts; j++) { in ReadReserveData()
/ohos5.0/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 …CHECK_ERROR_RETURN_RET_LOG(reserveFds > RESERVE_MAX_SIZE || reserveInts > RESERVE_MAX_SIZE, nullpt… in CameraAllocateBufferHandle()
35 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in CameraAllocateBufferHandle()
44 handle->reserveInts = reserveInts; in CameraAllocateBufferHandle()
72 BufferHandle *newHandle = CameraAllocateBufferHandle(handle->reserveFds, handle->reserveInts); in CameraCloneBufferHandle()
95 if (handle->reserveInts == 0) { in CameraCloneBufferHandle()
100 … if (memcpy_s(&newHandle->reserve[newHandle->reserveFds], sizeof(int32_t) * newHandle->reserveInts, in CameraCloneBufferHandle()
101 &handle->reserve[handle->reserveFds], sizeof(int32_t) * handle->reserveInts) != EOK) { in CameraCloneBufferHandle()
/ohos5.0/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()
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()
129 BufferHandle *handle = AllocateBufferHandle(reserveFds, reserveInts); in ReadBufferHandle()
166 for (uint32_t j = 0; j < handle->reserveInts; j++) { in ReadBufferHandle()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A D_o_h_ext_data_handle.md23 | uint32_t [reserveInts](#reserveints) | Reserve数组的个数。 |
52 ### reserveInts subsection
55 uint32_t OHExtDataHandle::reserveInts
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/display/
H A D_ext_data_handle_v10.md21 | unsigned int [reserveInts](#reserveints) | Reserve数组的个数 |
48 ### reserveInts subsection
51 unsigned int ExtDataHandle::reserveInts
/ohos5.0/foundation/graphic/surface_lite/interfaces/innerkits/
H A Dsurface_buffer_impl.h46 uint32_t reserveInts; /* the number of reserved integer value */ member
148 return bufferData_.handle.reserveInts; in GetReserveInts()
155 void SetReserveInts(uint32_t reserveInts) in SetReserveInts() argument
157 bufferData_.handle.reserveInts = reserveInts; in SetReserveInts()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/
H A Dbuffer_handle_test.cpp35 static BufferHandle *CreateBufferHandle(uint32_t reserveFds = 1, uint32_t reserveInts = 0);
42 BufferHandle *BufferHandleTest::CreateBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in CreateBufferHandle() argument
44 BufferHandle *handle = AllocateNativeBufferHandle(reserveFds, reserveInts); in CreateBufferHandle()
61 for (uint32_t i = reserveFds; i < reserveInts; i++) { in CreateBufferHandle()
83 os << "reserveInts:" << handle->reserveInts << ", "; in BufferHandleDump()
85 if (UINT32_MAX - handle->reserveFds >= handle->reserveInts) { in BufferHandleDump()
86 uint32_t reserveSize = handle->reserveFds + handle->reserveInts; in BufferHandleDump()
447 uint32_t realReserveInts = srcHandle->reserveInts;
450 srcHandle->reserveInts = MAX_RESERVE_INTS + 1;
456 srcHandle->reserveInts = realReserveInts;
/ohos5.0/drivers/peripheral/camera/test/hdi/sequenceable_test/src/
H A Dcamera_hdi_sequenceable_test.cpp122 constexpr int32_t reserveInts = 0; variable
124 BufferHandle* handle0 = BufferHandleSequenceable::NewBufferHandle(reserveFds, reserveInts);
150 constexpr int32_t reserveInts = 0; variable
151 BufferHandle* handle0 = BufferHandleSequenceable::NewBufferHandle(reserveFds, reserveInts);
157 bufferHandle.reserveInts = 2;
/ohos5.0/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()
68 handle->reserveInts = reserveInts; in SetData()
69 for (uint32_t i = 0; i < reserveInts; i++) { in SetData()
99 (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()
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A D_o_h_ext_data_handle.md23 | uint32_t [reserveInts](#reserveints) | Number of reserved arrays.|
52 ### reserveInts subsection
55 uint32_t OHExtDataHandle::reserveInts
/ohos5.0/drivers/interface/camera/sequenceable/buffer_handle/
H A Dbuffer_handle_sequenceable.cpp45 auto newBufferHandle = NewBufferHandle(bufferHandle.reserveFds, bufferHandle.reserveInts); in BufferHandleSequenceable()
54 BufferHandle* BufferHandleSequenceable::NewBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in NewBufferHandle() argument
56 return AllocateNativeBufferHandle(reserveFds, reserveInts); in NewBufferHandle()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dpicture_handle_client.cpp309 uint32_t reserveInts = 0; in ReadBufferHandle() local
310 bool reserveIntsRet = data.ReadUint32(reserveInts); in ReadBufferHandle()
311 if (reserveInts < 0 || reserveInts > static_cast<uint32_t>(MAX_VALUE)) { in ReadBufferHandle()
314 MEDIA_DEBUG_LOG("PictureHandlerClient::ReadBufferHandle reserveInts: %{public}d", reserveInts); in ReadBufferHandle()
316 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts)); in ReadBufferHandle()
325 handle->reserveInts = reserveInts; in ReadBufferHandle()
356 for (uint32_t j = 0; j < handle->reserveInts; j++) { in ReadBufferHandle()
/ohos5.0/drivers/peripheral/codec/hal/src/
H A Dcodec_types.c38 …(!HdfSbufWriteUint32(data, handle->reserveFds) || !HdfSbufWriteUint32(data, handle->reserveInts) || in BufferHandleMarshalling()
65 for (uint32_t i = 0; i < handle->reserveInts; i++) { in BufferHandleMarshalling()
79 uint32_t reserveInts = 0; in BufferHandleUnmarshalling() local
80 if (!HdfSbufReadUint32(data, &reserveFds) || !HdfSbufReadUint32(data, &reserveInts)) { in BufferHandleUnmarshalling()
85 BufferHandle *tmpHandle = AllocateBufferHandle(reserveFds, reserveInts); in BufferHandleUnmarshalling()
114 for (uint32_t i = 0; i < tmpHandle->reserveInts; i++) { in BufferHandleUnmarshalling()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dcommon_types.h31 uint32_t reserveInts; member
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/utils/
H A Dbuffer_handle_utils.h32 BufferHandle *AllocateBufferHandle(uint32_t reserveInts, uint32_t reserveFds);
H A Dbuffer_handle.h59 uint32_t reserveInts; /**< the number of reserved integer value */ member
/ohos5.0/foundation/graphic/graphic_surface/surface/include/
H A Dbuffer_handle.h59 uint32_t reserveInts; /**< the number of reserved integer value */ member
/ohos5.0/drivers/peripheral/display/buffer/vdi_base/include/
H A Dbuffer_handle.h36 uint32_t reserveInts; /**< the number of reserved integer value */ member
/ohos5.0/drivers/hdf_core/interfaces/inner_api/hdi/base/
H A Dbuffer_handle.h64 uint32_t reserveInts; /**< Number of the reserved integers */ member

123