Home
last modified time | relevance | path

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

12345

/hardware/google/gfxstream/guest/mesa/include/android_stub/cutils/
Dnative_handle.h37 int numFds; /* number of file-descriptors at &data[0] */ member
68 native_handle_t* native_handle_init(char* storage, int numFds, int numInts);
78 native_handle_t* native_handle_create(int numFds, int numInts);
/hardware/interfaces/common/support/
DNativeHandle.cpp54 to.fds = std::vector<ndk::ScopedFileDescriptor>(handle->numFds); in toAidl()
55 for (size_t i = 0; i < handle->numFds; i++) { in toAidl()
60 to.ints = std::vector<int32_t>(handle->data + handle->numFds, in toAidl()
61 handle->data + handle->numFds + handle->numInts); in toAidl()
Dtest.cpp27 ASSERT_EQ(libcutils->numFds, aidl.fds.size()); in checkEq()
29 for (size_t i = 0; i < libcutils->numFds; i++) { in checkEq()
47 int lfd = libcutils->data[libcutils->numFds + i]; in checkEq()
/hardware/interfaces/graphics/mapper/2.1/utils/hal/include/mapper-hal/2.1/
DMapper.h59 uint32_t numFds = 0; in getTransportSize() local
61 Error error = this->mHal->getTransportSize(bufferHandle, &numFds, &numInts); in getTransportSize()
62 hidl_cb(error, numFds, numInts); in getTransportSize()
/hardware/google/gchips/gralloc4/src/
Dmali_gralloc_buffer4.h307 numFds = n; in set_numfds()
314 numFds += n; in incr_numfds()
317 return numFds; in incr_numfds()
327 h->numFds + h->numInts != NUM_INTS_IN_PRIVATE_HANDLE) in validate()
408 numInts, numFds, fd_count, in dump()
Dmali_gralloc_buffer.h307 numFds = n; in set_numfds()
314 numFds += n; in incr_numfds()
317 return numFds; in incr_numfds()
327 h->numFds + h->numInts != NUM_INTS_IN_PRIVATE_HANDLE) in validate()
408 numInts, numFds, fd_count, in dump()
/hardware/libhardware/modules/gralloc/
Dgralloc_priv.h94 numFds = sNumFds; in private_handle_t()
103 h->numInts != sNumInts() || h->numFds != sNumFds || in validate()
/hardware/qcom/display/msm8960/libgralloc/
Dgralloc_priv.h203 numFds = sNumFds; in fd()
216 h->numInts != sNumInts || h->numFds != sNumFds || in validate()
224 h ? h->numFds : -1, sNumFds, in validate()
/hardware/interfaces/camera/device/3.5/default/include/device_v3_5_impl/
DCameraDeviceSession.h121 result = 31 * result + buf->numFds; in operator()
122 for (int i = 0; i < buf->numFds; i++) { in operator()
131 if (buf1->numFds == buf2->numFds) { in operator()
132 for (int i = 0; i < buf1->numFds; i++) { in operator()
/hardware/interfaces/camera/common/default/
DHandleImporter.cpp96 if (!handle->numFds && !handle->numInts) { in importBuffer()
126 if (handle == nullptr || handle->numFds == 0) { in importFence()
128 } else if (handle->numFds == 1) { in importFence()
135 ALOGE("invalid fence handle with %d file descriptors", handle->numFds); in importFence()
/hardware/qcom/display/msm8226/libgralloc/
Dgralloc_priv.h247 numFds = sNumFds; in fd()
260 h->numInts != sNumInts() || h->numFds != sNumFds || in validate()
269 h ? h->numFds : -1, sNumFds, in validate()
/hardware/qcom/display/msm8084/libgralloc/
Dgralloc_priv.h244 numFds = sNumFds; in fd()
257 h->numInts != sNumInts || h->numFds != sNumFds || in validate()
266 h ? h->numFds : -1, sNumFds, in validate()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_priv_handle.h133 numFds = kNumFds; in fd()
155 h->numFds != kNumFds) { in validate()
158 h ? h->numFds : -1, kNumFds); in validate()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_priv_handle.h131 numFds = kNumFds; in fd()
149 h->numFds != kNumFds || hnd->magic != kMagic) { in validate()
154 h ? h->numFds : -1, kNumFds, in validate()
/hardware/qcom/display/msm8996/libgralloc/
Dgralloc_priv.h268 numFds = sNumFds; in fd()
277 h->numInts != sNumInts() || h->numFds != sNumFds || in validate()
286 h ? h->numFds : -1, sNumFds, in validate()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_priv_handle.h138 numFds = kNumFds; in fd()
156 h->numFds != kNumFds || hnd->magic != kMagic) { in validate()
161 h ? h->numFds : -1, kNumFds, in validate()
/hardware/qcom/display/msm8994/libgralloc/
Dgralloc_priv.h265 numFds = sNumFds; in fd()
278 h->numInts != sNumInts() || h->numFds != sNumFds || in validate()
287 h ? h->numFds : -1, sNumFds, in validate()
/hardware/qcom/display/msm8909/gralloc/
Dgr_priv_handle.h137 numFds = kNumFds; in fd()
155 h->numFds != kNumFds || hnd->magic != kMagic) { in validate()
160 h ? h->numFds : -1, kNumFds, in validate()
/hardware/google/gfxstream/guest/fuchsia/include/cutils/
Dnative_handle.h6 int numFds; member
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dgralloc_priv.h272 numFds = sNumFds; in private_handle_t()
303 h->numInts != sNumInts() || h->numFds != sNumFds || in validate()
312 h ? h->numFds : -1, sNumFds, in validate()
/hardware/qcom/display/msm8998/libgralloc/
Dgralloc_priv.h281 numFds = sNumFds; in private_handle_t()
316 h->numInts != sNumInts() || h->numFds != sNumFds) { in validate()
321 h ? h->numFds : -1, sNumFds); in validate()
/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
DMapper.h174 if (handle && handle->numFds > 1) { in getFenceFd()
175 ALOGE("invalid fence handle with %d fds", handle->numFds); in getFenceFd()
179 int fenceFd = (handle && handle->numFds == 1) ? handle->data[0] : -1; in getFenceFd()
/hardware/interfaces/graphics/mapper/4.0/utils/vts/
DMapperVts.cpp261 if (fenceHandle->numFds == 1) { in unlock()
265 ASSERT_EQ(0, fenceHandle->numFds) << " invalid fence handle " << fenceHandle; in unlock()
283 if (fenceHandle->numFds == 1) { in flushLockedBuffer()
287 ASSERT_EQ(0, fenceHandle->numFds) << " invalid fence handle " << fenceHandle; in flushLockedBuffer()
319 ASSERT_GE(bufferHandle->numFds, int(tmpNumFds)) << "invalid numFds " << tmpNumFds; in getTransportSize()
/hardware/interfaces/dumpstate/1.0/default/
DDumpstateDevice.cpp40 if (handle == nullptr || handle->numFds < 1) { in dumpstateBoard()
/hardware/interfaces/health/storage/1.0/default/
DStorage.cpp45 if (handle == nullptr || handle->numFds < 1) { in debug()

12345