Home
last modified time | relevance | path

Searched refs:numFds (Results 1 – 17 of 17) sorted by relevance

/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp79 return ((nh == nullptr) || (nh->numFds == 0) || in native_handle_read_fd()
80 (nh->numFds <= index) || (index < 0)) ? in native_handle_read_fd()
152 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local
153 int* fds = new int[numFds]; in convertTo()
168 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo()
170 int* intsStart = handle->data + handle->numFds; in convertTo()
178 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo()
229 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument
241 if (numFds < numFdsInHandle) { in unflattenFence()
252 --numFds; in unflattenFence()
[all …]
/frameworks/av/media/libstagefright/omx/1.0/
DConversion.h143 return ((nh == nullptr) || (nh->numFds == 0) ||
144 (nh->numFds <= index) || (index < 0)) ?
580 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local
581 int* fds = new int[numFds]; in convertTo()
596 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo()
598 int* intsStart = handle->data + handle->numFds; in convertTo()
606 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo()
1015 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument
1027 if (numFds < numFdsInHandle) { in unflattenFence()
1038 --numFds; in unflattenFence()
[all …]
/frameworks/native/libs/ui/
DGraphicBuffer.cpp331 return static_cast<size_t>(handle ? handle->numFds : 0); in getFdCount()
356 buf[10] = handle->numFds; in flatten()
359 static_cast<size_t>(handle->numFds) * sizeof(int)); in flatten()
360 memcpy(&buf[12], handle->data + handle->numFds, in flatten()
367 fds += handle->numFds; in flatten()
368 count -= static_cast<size_t>(handle->numFds); in flatten()
381 const size_t numFds = static_cast<size_t>(buf[10]); in unflatten() local
389 if (numFds >= maxNumber || numInts >= (maxNumber - 12)) { in unflatten()
393 numFds, numInts); in unflatten()
400 size_t fdCountNeeded = numFds; in unflatten()
[all …]
DFence.cpp172 uint32_t numFds; in unflatten() local
173 FlattenableUtils::read(buffer, size, numFds); in unflatten()
175 if (numFds > 1) { in unflatten()
179 if (count < numFds) { in unflatten()
183 if (numFds) { in unflatten()
DGralloc2.cpp175 if (fenceHandle && fenceHandle->numFds == 1) { in unlock()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h492 result = 31 * result + buf->numFds; in operator()
494 int length = buf->numFds + buf->numInts; in operator()
504 if (buf1->numFds == buf2->numFds && buf1->numInts == buf2->numInts) { in operator()
505 int length = buf1->numFds + buf1->numInts; in operator()
DCameraHardwareInterface.cpp93 if (descriptor->numFds != 1) { in registerMemory()
95 __FUNCTION__, descriptor->numFds); in registerMemory()
/frameworks/av/include/media/omx/1.0/
DConversion.h137 return ((nh == nullptr) || (nh->numFds == 0) ||
138 (nh->numFds <= index) || (index < 0)) ?
587 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local
588 int* fds = new int[numFds]; in convertTo()
603 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo()
605 int* intsStart = handle->data + handle->numFds; in convertTo()
613 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.h293 result = 31 * result + buf->numFds; in operator()
294 for (int i = 0; i < buf->numFds; i++) { in operator()
303 if (buf1->numFds == buf2->numFds) { in operator()
304 for (int i = 0; i < buf1->numFds; i++) { in operator()
DCamera3Device.cpp917 } else if (bSrc.releaseFence->numFds == 1) { in processOneCaptureResultLocked()
921 __FUNCTION__, result.frameNumber, i, bSrc.releaseFence->numFds); in processOneCaptureResultLocked()
951 } else if (result.inputBuffer.releaseFence->numFds == 1) { in processOneCaptureResultLocked()
955 __FUNCTION__, result.frameNumber, result.inputBuffer.releaseFence->numFds); in processOneCaptureResultLocked()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub_client.cpp106 size_t numFds = static_cast<size_t>(native_handle()->numFds); in GetBlobFds() local
107 *fds_count = std::min(max_fds_count, numFds); in GetBlobFds()
Dion_buffer.cpp165 const int fd_count = other->handle()->numFds; in Duplicate()
/frameworks/native/cmds/lshal/
Dtest.cpp53 if (handle->numFds < 1) { in debug()
/frameworks/native/libs/binder/
DParcel.cpp1135 err = writeInt32(handle->numFds); in writeNativeHandle()
1141 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++) in writeNativeHandle()
1148 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts); in writeNativeHandle()
2100 int numFds, numInts; in readNativeHandle() local
2102 err = readInt32(&numFds); in readNativeHandle()
2107 native_handle* h = native_handle_create(numFds, numInts); in readNativeHandle()
2112 for (int i=0 ; err==NO_ERROR && i<numFds ; i++) { in readNativeHandle()
2122 err = read(h->data + numFds, sizeof(int)*numInts); in readNativeHandle()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dbufferhub_rpc.h31 const int fd_count = buffer.handle()->numFds; in NativeBufferHandle()
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp117 if (mem.handle() == nullptr || mem.handle()->numFds != 1) { in map()
/frameworks/av/media/libaudiohal/
DStreamHalHidl.cpp160 if (handle->numFds > 0) { in createMmapBuffer()