Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp288 return static_cast<size_t>(handle ? handle->numFds : 0); in getFdCount()
312 buf[9] = handle->numFds; in flatten()
315 static_cast<size_t>(handle->numFds) * sizeof(int)); in flatten()
316 memcpy(&buf[11], handle->data + handle->numFds, in flatten()
323 fds += handle->numFds; in flatten()
324 count -= static_cast<size_t>(handle->numFds); in flatten()
337 const size_t numFds = static_cast<size_t>(buf[9]); in unflatten() local
345 if (numFds >= maxNumber || numInts >= (maxNumber - 11)) { in unflatten()
349 numFds, numInts); in unflatten()
356 size_t fdCountNeeded = numFds; in unflatten()
[all …]
DFence.cpp169 uint32_t numFds; in unflatten() local
170 FlattenableUtils::read(buffer, size, numFds); in unflatten()
172 if (numFds > 1) { in unflatten()
176 if (count < numFds) { in unflatten()
180 if (numFds) { in unflatten()
/frameworks/native/libs/binder/
DParcel.cpp1149 err = writeInt32(handle->numFds); in writeNativeHandle()
1155 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++) in writeNativeHandle()
1162 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts); in writeNativeHandle()
1954 int numFds, numInts; in readNativeHandle() local
1956 err = readInt32(&numFds); in readNativeHandle()
1961 native_handle* h = native_handle_create(numFds, numInts); in readNativeHandle()
1966 for (int i=0 ; err==NO_ERROR && i<numFds ; i++) { in readNativeHandle()
1976 err = read(h->data + numFds, sizeof(int)*numInts); in readNativeHandle()