Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp188 return handle ? handle->numFds : 0; in getFdCount()
211 buf[6] = handle->numFds; in flatten()
214 memcpy(fds, h->data, h->numFds*sizeof(int)); in flatten()
215 memcpy(&buf[8], h->data + h->numFds, h->numInts*sizeof(int)); in flatten()
229 const size_t numFds = buf[6]; in unflatten() local
243 if (numFds || numInts) { in unflatten()
249 native_handle* h = native_handle_create(numFds, numInts); in unflatten()
250 memcpy(h->data, fds, numFds*sizeof(int)); in unflatten()
251 memcpy(h->data + numFds, &buf[8], numInts*sizeof(int)); in unflatten()
/frameworks/native/libs/binder/
DParcel.cpp696 err = writeInt32(handle->numFds); in writeNativeHandle()
702 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++) in writeNativeHandle()
709 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts); in writeNativeHandle()
1071 int numFds, numInts; in readNativeHandle() local
1073 err = readInt32(&numFds); in readNativeHandle()
1078 native_handle* h = native_handle_create(numFds, numInts); in readNativeHandle()
1079 for (int i=0 ; err==NO_ERROR && i<numFds ; i++) { in readNativeHandle()
1083 err = read(h->data + numFds, sizeof(int)*numInts); in readNativeHandle()