/system/core/libcutils/ |
native_handle.c | 31 native_handle_t* native_handle_create(int numFds, int numInts) 33 if (numFds < 0 || numInts < 0 || numFds > kMaxNativeFds || numInts > kMaxNativeInts) { 37 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); 41 h->numFds = numFds; 62 const int numFds = h->numFds; 64 for (i=0 ; i<numFds ; i++) {
|
/system/core/include/cutils/ |
native_handle.h | 27 int numFds; /* number of file-descriptors at &data[0] */ 28 int numInts; /* number of ints at &data[numFds] */ 29 int data[0]; /* numFds + numInts ints */ 50 native_handle_t* native_handle_create(int numFds, int numInts);
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
gralloc_cb.h | 55 numFds = 0; 56 numInts = CB_HANDLE_NUM_INTS(numFds); 65 numFds = 1; 68 numFds = 0; 71 numInts = CB_HANDLE_NUM_INTS(numFds); 78 hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds));
|
/external/curl/docs/examples/ |
multi-single.c | 75 int numfds; local 78 mc = curl_multi_wait(multi_handle, NULL, 0, 1000, &numfds); 85 /* 'numfds' being zero means either a timeout or no file descriptors to 90 if(!numfds) { 91 repeats++; /* count number of repeated zero numfds */
|
/external/curl/docs/libcurl/ |
curl_multi_wait.3 | 33 int *numfds); 84 int numfds; 90 mc = curl_multi_wait(multi_handle, NULL, 0, 1000, &numfds); 98 /* 'numfds' being zero means either a timeout or no file descriptors to 103 if(!numfds) { 104 repeats++; /* count number of repeated zero 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);
|
/frameworks/native/libs/ui/ |
GraphicBuffer.cpp | 288 return static_cast<size_t>(handle ? handle->numFds : 0); 312 buf[9] = handle->numFds; 315 static_cast<size_t>(handle->numFds) * sizeof(int)); 316 memcpy(&buf[11], handle->data + handle->numFds, 323 fds += handle->numFds; 324 count -= static_cast<size_t>(handle->numFds); 337 const size_t numFds = static_cast<size_t>(buf[9]); 345 if (numFds >= maxNumber || numInts >= (maxNumber - 11)) { 348 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", 349 numFds, numInts) [all...] |
Fence.cpp | 164 uint32_t numFds; 165 FlattenableUtils::read(buffer, size, numFds); 167 if (numFds > 1) { 171 if (count < numFds) { 175 if (numFds) {
|
/device/google/dragon/sensor_hub/ |
sensors.h | 49 numFds, 53 struct pollfd mPollFds[numFds];
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
PollArrayWrapper.java | 116 int poll(int numfds, int offset, long timeout) { 118 numfds, timeout); 125 private native int poll0(long pollAddress, int numfds, long timeout);
|
/libcore/ojluni/src/main/native/ |
PollArrayWrapper.c | 77 jlong address, jint numfds, 86 RESTARTABLE (poll(a, numfds, timeout), err); 88 err = ipoll(a, numfds, timeout);
|
/hardware/libhardware/modules/gralloc/ |
gralloc_priv.h | 94 numFds = sNumFds; 103 h->numInts != sNumInts() || h->numFds != sNumFds ||
|
/device/linaro/hikey/gralloc/ |
gralloc_priv.h | 231 numFds = sNumFds; 262 numFds = sNumFds; 298 numFds = sNumFds; 316 if (!h || h->version != sizeof(native_handle) || h->numFds != sNumFds ||
|
/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/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));
|
/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 | 126 numFds = kNumFds; 137 h->numFds != kNumFds || hnd->magic != kMagic) { 142 h ? h->numFds : -1, kNumFds,
|
/hardware/qcom/display/msmcobalt/libgralloc1/ |
gr_priv_handle.h | 123 numFds = kNumFds; 154 h->numFds != kNumFds || hnd->magic != kMagic) { 159 h ? h->numFds : -1, kNumFds,
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_sock.c | 172 * @numfds : num of file descriptors to be sent 181 int numfds) 186 char control[CMSG_SPACE(sizeof(int) * numfds)]; 207 /* if numfds is valid, we need to pass it through control msg */ 208 if (numfds > 0) { 215 cmsghp->cmsg_len = CMSG_LEN(sizeof(int) * numfds); 218 memcpy(fds_ptr, sendfds, sizeof(int) * numfds);
|
/hardware/qcom/camera/msmcobalt/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_sock.c | 172 * @numfds : num of file descriptors to be sent 181 int numfds) 186 char control[CMSG_SPACE(sizeof(int) * numfds)]; 207 /* if numfds is valid, we need to pass it through control msg */ 208 if (numfds > 0) { 215 cmsghp->cmsg_len = CMSG_LEN(sizeof(int) * numfds); 218 memcpy(fds_ptr, sendfds, sizeof(int) * numfds);
|
/hardware/qcom/display/msm8084/libgralloc/ |
gralloc_priv.h | 244 numFds = sNumFds; 257 h->numInts != sNumInts || h->numFds != sNumFds || 266 h ? h->numFds : -1, sNumFds,
|
/hardware/qcom/display/msm8226/libgralloc/ |
gralloc_priv.h | 247 numFds = sNumFds; 260 h->numInts != sNumInts() || h->numFds != sNumFds || 269 h ? h->numFds : -1, sNumFds,
|
/hardware/qcom/display/msm8909/libgralloc/ |
gralloc_priv.h | 248 numFds = sNumFds; 261 h->numInts != sNumInts() || h->numFds != sNumFds || 270 h ? h->numFds : -1, sNumFds,
|
/hardware/qcom/display/msm8994/libgralloc/ |
gralloc_priv.h | 255 numFds = sNumFds; 268 h->numInts != sNumInts() || h->numFds != sNumFds || 277 h ? h->numFds : -1, sNumFds,
|
/hardware/qcom/display/msm8996/libgralloc/ |
gralloc_priv.h | 259 numFds = sNumFds; 268 h->numInts != sNumInts() || h->numFds != sNumFds || 277 h ? h->numFds : -1, sNumFds,
|