/system/core/libcutils/ |
native_handle.c | 31 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) 39 handle->numFds = numFds; 45 native_handle_t* native_handle_create(int numFds, int numInts) 47 if (numFds < 0 || numInts < 0 || numFds > kMaxNativeFds || numInts > kMaxNativeInts) { 51 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); 55 h->numFds = numFds; 63 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 */ 60 * NATIVE_HANDLE_DECLARE_STORAGE. numFds and numInts must not respectively 63 native_handle_t* native_handle_init(char* storage, int numFds, int numInts); 72 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));
|
/external/drm_gralloc/ |
gralloc_drm_handle.h | 72 handle->base.numFds != GRALLOC_DRM_HANDLE_NUM_FDS || 74 ALOGE("invalid handle: version=%d, numInts=%d, numFds=%d, magic=%x", 76 handle->base.numFds, handle->magic);
|
/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->numFds < 1) {
|
/frameworks/av/media/libstagefright/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 | 79 return ((nh == nullptr) || (nh->numFds == 0) || 80 (nh->numFds <= index) || (index < 0)) ? 152 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0); 153 int* fds = new int[numFds]; 168 ints[10] = static_cast<int32_t>(handle->numFds); 170 int* intsStart = handle->data + handle->numFds; 178 status_t status = l->unflatten(constBuffer, size, constFds, numFds); 221 * \param[in,out] numFds The size of the flat fd buffer. 229 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 | 331 return static_cast<size_t>(handle ? handle->numFds : 0); 356 buf[10] = handle->numFds; 359 static_cast<size_t>(handle->numFds) * sizeof(int)); 360 memcpy(&buf[12], handle->data + handle->numFds, 367 fds += handle->numFds; 368 count -= static_cast<size_t>(handle->numFds); 381 const size_t numFds = static_cast<size_t>(buf[10]); 389 if (numFds >= maxNumber || numInts >= (maxNumber - 12)) { 392 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", 393 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->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 | 128 numFds = kNumFds; 146 h->numFds != kNumFds || hnd->magic != kMagic) { 151 h ? h->numFds : -1, kNumFds,
|
/device/huawei/angler/dumpstate/ |
DumpstateDevice.cpp | 37 if (handle->numFds < 1) {
|
/device/lge/bullhead/dumpstate/ |
DumpstateDevice.cpp | 37 if (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 | 223 other.mHandle->numFds, other.mHandle->numInts); 225 for (int i = 0; i < other.mHandle->numFds; ++i) { 229 memcpy(&mHandle->data[other.mHandle->numFds], 230 &other.mHandle->data[other.mHandle->numFds],
|
/device/asus/fugu/dumpstate/ |
DumpstateDevice.cpp | 114 if (handle->numFds < 1) {
|
/hardware/akm/AK8975_FS/libsensors/ |
sensors.cpp | 142 numFds, 145 static const size_t wake = numFds - 1; 147 struct pollfd mPollFds[numFds]; 305 n = poll(mPollFds, numFds, nbEvents ? 0 : -1);
|