/system/core/libcutils/ |
native_handle.c | 28 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) { 36 handle->numFds = numFds; 41 native_handle_t* native_handle_create(int numFds, int numInts) { 42 if (numFds < 0 || numInts < 0 || numFds > kMaxNativeFds || numInts > kMaxNativeInts) { 47 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); 51 h->numFds = numFds; 58 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts) [all...] |
/system/core/libcutils/include/cutils/ |
native_handle.h | 34 int numFds; /* number of file-descriptors at &data[0] */ 35 int numInts; /* number of ints at &data[numFds] */ 40 int data[0]; /* numFds + numInts ints */ 62 * NATIVE_HANDLE_DECLARE_STORAGE. numFds and numInts must not respectively 65 native_handle_t* native_handle_init(char* storage, int numFds, int numInts); 74 native_handle_t* native_handle_create(int numFds, int numInts);
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
gralloc_cb.h | 69 numFds = 0; 70 numInts = CB_HANDLE_NUM_INTS(numFds); 79 numFds++; 82 numInts = CB_HANDLE_NUM_INTS(numFds); 87 numFds++; 90 numInts = CB_HANDLE_NUM_INTS(numFds); 97 hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds));
|
/hardware/interfaces/camera/common/1.0/default/ |
HandleImporter.cpp | 56 if (!handle->numFds && !handle->numInts) { 114 if (handle == nullptr || handle->numFds == 0) { 116 } else if (handle->numFds == 1) { 124 handle->numFds);
|
/system/libhidl/transport/memory/1.0/default/ |
AshmemMapper.cpp | 31 if (mem.handle()->numFds == 0) {
|
/hardware/interfaces/dumpstate/1.0/default/ |
DumpstateDevice.cpp | 40 if (handle == nullptr || handle->numFds < 1) {
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
Conversion.h | 143 return ((nh == nullptr) || (nh->numFds == 0) || 144 (nh->numFds <= index) || (index < 0)) ? 580 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); 581 int* fds = new int[numFds]; 596 ints[10] = static_cast<int32_t>(handle->numFds); 598 int* intsStart = handle->data + handle->numFds; 606 status_t status = l->unflatten(constBuffer, size, constFds, numFds); 915 * int*& fds, size_t& numFds) 920 * int*& fds, size_t& numFds) [all...] |
/device/google/dragon/sensor_hub/ |
sensors.h | 49 numFds, 53 struct pollfd mPollFds[numFds];
|
/hardware/libhardware/modules/gralloc/ |
gralloc_priv.h | 94 numFds = sNumFds; 103 h->numInts != sNumInts() || h->numFds != sNumFds ||
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H2BGraphicBufferProducer.cpp | 81 return ((nh == nullptr) || (nh->numFds == 0) || 82 (nh->numFds <= index) || (index < 0)) ? 154 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); 155 int* fds = new int[numFds]; 170 ints[10] = static_cast<int32_t>(handle->numFds); 172 int* intsStart = handle->data + handle->numFds; 180 status_t status = l->unflatten(constBuffer, size, constFds, numFds); 223 * \param[in,out] numFds The size of the flat fd buffer. 231 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { [all...] |
/frameworks/native/libs/ui/ |
Fence.cpp | 172 uint32_t numFds; 173 FlattenableUtils::read(buffer, size, numFds); 175 if (numFds > 1) { 179 if (count < numFds) { 183 if (numFds) {
|
GraphicBuffer.cpp | 330 return static_cast<size_t>(handle ? handle->numFds : 0); 356 buf[10] = handle->numFds; 358 memcpy(fds, handle->data, static_cast<size_t>(handle->numFds) * sizeof(int)); 359 memcpy(buf + 13, handle->data + handle->numFds, 366 fds += handle->numFds; 367 count -= static_cast<size_t>(handle->numFds); 391 const size_t numFds = static_cast<size_t>(buf[10]); 399 if (numFds >= maxNumber || numInts >= (maxNumber - flattenWordCount)) { 404 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", numFds, numInts) [all...] |
/device/linaro/hikey/gralloc/ |
gralloc_priv.h | 231 numFds = sNumFds; 262 numFds = sNumFds; 298 numFds = sNumFds; 321 int numFds = sNumFds; 325 numFds--; 330 if (h->numFds != numFds || h->numInts != numInts)
|
/device/google/dragon/dumpstate/ |
DumpstateDevice.cpp | 38 if (handle == nullptr || handle->numFds < 1) {
|
/hardware/intel/img/hwcomposer/merrifield/ips/tangier/ |
TngGrallocBufferMapper.cpp | 35 mClonedHandle = native_handle_create(h->numFds, h->numInts); 40 for (int i = 0; i < h->numFds; i++) 44 memcpy(mClonedHandle->data + h->numFds, h->data + h->numFds, h->numInts*sizeof(int));
|
/hardware/qcom/display/msm8960/libgralloc/ |
gralloc_priv.h | 203 numFds = sNumFds; 216 h->numInts != sNumInts || h->numFds != sNumFds || 224 h ? h->numFds : -1, sNumFds,
|
/hardware/qcom/display/msm8996/libgralloc1/ |
gr_priv_handle.h | 129 numFds = kNumFds; 147 h->numFds != kNumFds || hnd->magic != kMagic) { 152 h ? h->numFds : -1, kNumFds,
|
/hardware/qcom/display/msm8998/libgralloc1/ |
gr_priv_handle.h | 129 numFds = kNumFds; 147 h->numFds != kNumFds || hnd->magic != kMagic) { 152 h ? h->numFds : -1, kNumFds,
|
/hardware/qcom/display/sdm845/libgralloc1/ |
gr_priv_handle.h | 129 numFds = kNumFds; 147 h->numFds != kNumFds || hnd->magic != kMagic) { 152 h ? h->numFds : -1, kNumFds,
|
/device/huawei/angler/dumpstate/ |
DumpstateDevice.cpp | 37 if (handle == nullptr || handle->numFds < 1) {
|
/device/lge/bullhead/dumpstate/ |
DumpstateDevice.cpp | 37 if (handle == nullptr || handle->numFds < 1) {
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/tangier/ |
TngGrallocBufferMapper.cpp | 35 mClonedHandle = native_handle_create(h->numFds, h->numInts); 40 for (int i = 0; i < h->numFds; i++) 44 memcpy(mClonedHandle->data + h->numFds, h->data + h->numFds, h->numInts*sizeof(int));
|
/system/libhidl/base/include/hidl/ |
MQDescriptor.h | 224 other.mHandle->numFds, other.mHandle->numInts); 226 for (int i = 0; i < other.mHandle->numFds; ++i) { 230 memcpy(&mHandle->data[other.mHandle->numFds], 231 &other.mHandle->data[other.mHandle->numFds],
|
/frameworks/av/services/camera/libcameraservice/device1/ |
CameraHardwareInterface.h | 448 result = 31 * result + buf->numFds; 450 int length = buf->numFds + buf->numInts; 460 if (buf1->numFds == buf2->numFds && buf1->numInts == buf2->numInts) { 461 int length = buf1->numFds + buf1->numInts;
|
/device/google/marlin/dumpstate/ |
DumpstateDevice.cpp | 118 if (handle == nullptr || handle->numFds < 1) { 129 if (handle->numFds < 2) {
|