/frameworks/base/core/jni/ |
D | android_os_NativeHandle.cpp | 42 const int numFds = handle->numFds; in MakeJavaNativeHandleObj() local 43 ScopedLocalRef<jintArray> fds(env, env->NewIntArray(numFds)); in MakeJavaNativeHandleObj() 44 env->SetIntArrayRegion(fds.get(), 0, numFds, &(handle->data[0])); in MakeJavaNativeHandleObj() 48 env->SetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeJavaNativeHandleObj() 70 const int numFds = (int) env->GetArrayLength(fds.get()); in MakeCppNativeHandle() local 74 ? native_handle_create(numFds, numInts) in MakeCppNativeHandle() 75 : storage->allocTemporaryNativeHandle(numFds, numInts); in MakeCppNativeHandle() 78 env->GetIntArrayRegion(fds.get(), 0, numFds, &(handle->data[0])); in MakeCppNativeHandle() 79 env->GetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeCppNativeHandle()
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
D | Conversion.cpp | 63 return ((nh == nullptr) || (nh->numFds == 0) || in native_handle_read_fd() 64 (nh->numFds <= index) || (index < 0)) ? in native_handle_read_fd() 224 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local 225 int* fds = new int[numFds]; in convertTo() 240 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo() 242 int* intsStart = handle->data + handle->numFds; in convertTo() 250 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo() 374 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument 386 if (numFds < numFdsInHandle) { in unflattenFence() 397 --numFds; in unflattenFence() [all …]
|
D | H2BGraphicBufferProducer.cpp | 81 return ((nh == nullptr) || (nh->numFds == 0) || in native_handle_read_fd() 82 (nh->numFds <= index) || (index < 0)) ? in native_handle_read_fd() 159 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local 160 int* fds = new int[numFds]; in convertTo() 175 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo() 177 int* intsStart = handle->data + handle->numFds; in convertTo() 185 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo() 236 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument 248 if (numFds < numFdsInHandle) { in unflattenFence() 259 --numFds; in unflattenFence() [all …]
|
/frameworks/native/libs/gui/include/gui/bufferqueue/1.0/ |
D | Conversion.h | 327 void const*& buffer, size_t& size, int const*& fds, size_t& numFds); 340 void*& buffer, size_t& size, int*& fds, size_t& numFds); 401 void*& buffer, size_t& size, int*& fds, size_t& numFds); 420 void const*& buffer, size_t& size, int const*& fds, size_t& numFds); 459 void const*& buffer, size_t& size, int const*& fds, size_t& numFds); 476 void*& buffer, size_t& size, int*& fds, size_t numFds); 518 void const*& buffer, size_t& size, int const*& fds, size_t& numFds); 534 void*& buffer, size_t& size, int*& fds, size_t& numFds); 650 void*& buffer, size_t& size, int*& fds, size_t& numFds); 670 void const*& buffer, size_t& size, int const*& fds, size_t& numFds);
|
/frameworks/native/libs/ui/ |
D | Fence.cpp | 166 uint32_t numFds; in unflatten() local 167 FlattenableUtils::read(buffer, size, numFds); in unflatten() 169 if (numFds > 1) { in unflatten() 173 if (count < numFds) { in unflatten() 177 if (numFds) { in unflatten()
|
D | GraphicBuffer.cpp | 426 memcpy(buf + 13, handle->data + handle->numFds, in flatten() 472 const size_t numFds = static_cast<size_t>(buf[10]); in unflatten() local 480 if (numFds >= maxNumber || numInts >= (maxNumber - flattenWordCount)) { in unflatten() 485 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", numFds, numInts); in unflatten() 492 size_t fdCountNeeded = numFds; in unflatten() 500 if (numFds || numInts) { in unflatten() 513 native_handle_create(static_cast<int>(numFds), static_cast<int>(numInts)); in unflatten() 522 memcpy(h->data, fds, numFds * sizeof(int)); in unflatten() 523 memcpy(h->data + numFds, buf + flattenWordCount, numInts * sizeof(int)); in unflatten() 560 fds += numFds; in unflatten() [all …]
|
D | Gralloc2.cpp | 204 *outNumFds = uint32_t(bufferHandle->numFds); in getTransportSize() 335 if (fenceHandle && fenceHandle->numFds == 1) { in unlock()
|
D | Gralloc3.cpp | 169 *outNumFds = uint32_t(bufferHandle->numFds); in getTransportSize() 291 if (fenceHandle && fenceHandle->numFds == 1) { in unlock()
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
D | native_handle_wrapper.h | 27 const int fd_count = handle->numFds; in NativeHandleWrapper() 84 for (int i = 0; i < handle->numFds; i++) { in FromFdsAndInts() 87 memcpy(&handle->data[handle->numFds], ints.data(), in FromFdsAndInts()
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | utils.cpp | 133 if (nh1->numFds !=0 || nh2->numFds !=0) { in isWindowNativeHandleEqual() 137 if (nh1->version != nh2->version || nh1->numFds != nh2->numFds || in isWindowNativeHandleEqual()
|
/frameworks/base/core/java/android/os/ |
D | NativeHandle.java | 187 int numFds = mFds.length; in getFdsAsIntArray() local 188 int[] fds = new int[numFds]; in getFdsAsIntArray() 190 for (int i = 0; i < numFds; i++) { in getFdsAsIntArray()
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 138 return ((nh == nullptr) || (nh->numFds == 0) || 139 (nh->numFds <= index) || (index < 0)) ? 634 t.nativeHandle->numFds, in convertTo() 635 (t.nativeHandle->numFds > 0) ? t.nativeHandle->data[0] : -1, in convertTo() 636 (t.nativeHandle->numFds > 1) ? t.nativeHandle->data[1] : -1); in convertTo() 644 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); in convertTo() local 645 int* fds = new int[numFds]; in convertTo() 660 ints[10] = static_cast<int32_t>(handle->numFds); in convertTo() 662 int* intsStart = handle->data + handle->numFds; in convertTo() 670 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo()
|
/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 448 result = 31 * result + buf->numFds; in operator() 450 int length = buf->numFds + buf->numInts; in operator() 460 if (buf1->numFds == buf2->numFds && buf1->numInts == buf2->numInts) { in operator() 461 int length = buf1->numFds + buf1->numInts; in operator()
|
/frameworks/base/core/jni/hwbinder/ |
D | EphemeralStorage.cpp | 75 int numFds, int numInts) { in allocTemporaryNativeHandle() argument 79 item.mPtr = native_handle_create(numFds, numInts); in allocTemporaryNativeHandle()
|
D | EphemeralStorage.h | 46 native_handle_t *allocTemporaryNativeHandle(int numFds, int numInts);
|
/frameworks/av/media/utils/ |
D | AImageReaderUtils.cpp | 44 if (handle->numFds != 0 || in AImageReader_getHGBPFromHandle()
|
/frameworks/av/media/bufferpool/2.0/tests/ |
D | allocator.cpp | 61 numFds = sizeof(mFds) / sizeof(int), enumerator 70 HandleAshmem::numFds,
|
/frameworks/av/media/bufferpool/1.0/vts/ |
D | allocator.cpp | 61 numFds = sizeof(mFds) / sizeof(int), enumerator 70 HandleAshmem::numFds,
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 124 handle->numFds < 0 || in native_handle_is_invalid() 127 handle->numFds > int((INT_MAX - handle->version) / sizeof(int)) - handle->numInts); in native_handle_is_invalid() 159 &handle->data[handle->numFds + handle->numInts - NUM_INTS]); in getExtraData() 190 … handle->numInts > int((INT_MAX - handle->version) / sizeof(int)) - NUM_INTS - handle->numFds) { in WrapAndMoveNativeHandle() 198 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle() 200 memcpy(&res->data, &handle->data, sizeof(int) * (handle->numFds + handle->numInts)); in WrapAndMoveNativeHandle() 248 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle() 250 memcpy(&res->data, &handle->data, sizeof(int) * (res->numFds + res->numInts)); in UnwrapNativeHandle()
|
D | types.cpp | 156 if (!from || from->numFds == 0) { in h2b() 160 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
/frameworks/native/libs/gui/bufferqueue/2.0/ |
D | types.cpp | 149 if (!from || from->numFds == 0) { in h2b() 153 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3Device.h | 383 result = 31 * result + buf->numFds; in operator() 384 for (int i = 0; i < buf->numFds; i++) { in operator() 393 if (buf1->numFds == buf2->numFds) { in operator() 394 for (int i = 0; i < buf1->numFds; i++) { in operator()
|
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/ |
D | VtsHalBufferHubV1_0TargetTest.cpp | 226 EXPECT_EQ(token->numFds, 0); in TEST_F() 321 EXPECT_EQ(token->numFds, 0); in TEST_F()
|
/frameworks/native/services/bufferhub/ |
D | BufferHubService.cpp | 93 if (!tokenHandle.getNativeHandle() || tokenHandle->numFds != 0 || tokenHandle->numInts <= 1) { in importBuffer() 185 if (fd.getNativeHandle() == nullptr || fd->numFds < 1) { in debug()
|
/frameworks/av/media/codec2/sfplugin/ |
D | C2OMXNode.cpp | 361 fd0.reset(nativeHandle->numFds > 0 ? nativeHandle->data[0] : -1); in emptyBuffer() 362 fd1.reset(nativeHandle->numFds > 1 ? nativeHandle->data[1] : -1); in emptyBuffer()
|