Lines Matching refs:numFds
63 return ((nh == nullptr) || (nh->numFds == 0) || in native_handle_read_fd()
64 (nh->numFds <= index) || (index < 0)) ? in native_handle_read_fd()
210 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local
211 int* fds = new int[numFds]; in convertTo()
226 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo()
228 int* intsStart = handle->data + handle->numFds; in convertTo()
236 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo()
360 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument
372 if (numFds < numFdsInHandle) { in unflattenFence()
383 --numFds; in unflattenFence()
403 void*& buffer, size_t& size, int*& fds, size_t& numFds) { in flattenFence() argument
405 numFds < getFenceFdCount(fence)) { in flattenFence()
416 --numFds; in flattenFence()
450 size_t numFds = baseNumFds; in wrapAs() local
451 if (l.flatten(buffer, size, fds, numFds) != NO_ERROR) { in wrapAs()
458 numFds = baseNumFds; in wrapAs()
459 if (unflattenFence(t, nh, constBuffer, size, constFds, numFds) in wrapAs()
512 size_t numFds = baseNumFds; in convertTo() local
513 if (flattenFence(hidl_handle(nh), buffer, size, fds, numFds) != NO_ERROR) { in convertTo()
522 numFds = baseNumFds; in convertTo()
523 if (l->unflatten(constBuffer, size, constFds, numFds) != NO_ERROR) { in convertTo()
582 void*& buffer, size_t& size, int*& fds, size_t& numFds) { in flatten() argument
595 return flattenFence(t.fence, buffer, size, fds, numFds); in flatten()
622 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflatten() argument
636 return unflattenFence(&t->fence, nh, buffer, size, fds, numFds); in unflatten()
719 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflatten() argument
753 buffer, size, fds, numFds); in unflatten()
782 void*& buffer, size_t& size, int*& fds, size_t numFds) { in flatten() argument
814 *(tSnapshot[snapshotIndex]), buffer, size, fds, numFds); in flatten()
850 size_t numFds = 0; in getFdCount() local
852 numFds += getFdCount(t.deltas[i]); in getFdCount()
854 return numFds; in getFdCount()
875 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflatten() argument
892 buffer, size, fds, numFds); in unflatten()
914 void*& buffer, size_t& size, int*& fds, size_t& numFds) { in flatten() argument
926 status_t status = flatten(t.deltas[deltaIndex], buffer, size, fds, numFds); in flatten()
969 size_t numFds = baseNumFds; in wrapAs() local
970 if (l.flatten(buffer, size, fds, numFds) != NO_ERROR) { in wrapAs()
977 numFds = baseNumFds; in wrapAs()
978 if (unflatten(t, nh, constBuffer, size, constFds, numFds) != NO_ERROR) { in wrapAs()
1015 size_t numFds = baseNumFds; in convertTo() local
1016 if (flatten(t, buffer, size, fds, numFds) != NO_ERROR) { in convertTo()
1023 numFds = baseNumFds; in convertTo()
1024 if (l->unflatten(constBuffer, size, constFds, numFds) != NO_ERROR) { in convertTo()
1234 void*& buffer, size_t& size, int*& fds, size_t& numFds) { in flatten() argument
1255 status_t status = flattenFence(hidl_handle(*nh), buffer, size, fds, numFds); in flatten()
1286 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflatten() argument
1313 buffer, size, fds, numFds); in unflatten()
1352 size_t numFds = baseNumFds; in convertTo() local
1354 if (flatten(t, &nh, buffer, size, fds, numFds) != NO_ERROR) { in convertTo()
1361 numFds = baseNumFds; in convertTo()
1362 if (l->unflatten(constBuffer, size, constFds, numFds) != NO_ERROR) { in convertTo()