/frameworks/wilhelm/tests/sandbox/ |
H A D | getch.c | 38 fd_set fds; local 39 FD_ZERO(&fds); // not in original posting to stackoverflow 40 FD_SET(0, &fds); 41 return select(1, &fds, NULL, NULL, &tv);
|
/frameworks/native/include/binder/ |
H A D | Parcel.h | 509 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0; 510 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0; 535 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument 536 return val.flatten(buffer, size, fds, count); 538 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument 539 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count);
|
/frameworks/native/include/gui/ |
H A D | BufferItem.h | 41 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 42 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
H A D | FrameTimestamps.h | 263 status_t flatten(void*& buffer, size_t& size, int*& fds, 265 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, 323 status_t flatten(void*& buffer, size_t& size, int*& fds, 325 status_t unflatten(void const*& buffer, size_t& size, int const*& fds,
|
H A D | IGraphicBufferProducer.h | 360 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 361 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 397 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 398 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
/frameworks/native/include/ui/ |
H A D | Fence.h | 135 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 136 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
H A D | FenceTime.h | 66 status_t flatten(void*& buffer, size_t& size, int*& fds, 68 status_t unflatten(void const*& buffer, size_t& size, int const*& fds,
|
H A D | GraphicBuffer.h | 191 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 192 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 239 // numbers of fds/ints in native_handle_t to flatten
|
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 550 // officially know we have fds. 1284 int* fds = NULL; local 1286 fds = new (std::nothrow) int[fd_count]; 1287 if (fds == nullptr) { 1288 ALOGE("write: failed to allocate requested %zu fds", fd_count); 1293 err = val.flatten(buf, len, fds, fd_count); 1295 err = this->writeDupFileDescriptor( fds[i] ); 1299 delete [] fds; 2306 int* fds = NULL; local 2308 fds [all...] |
/frameworks/native/libs/binder/include/binder/ |
H A D | Parcel.h | 509 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0; 510 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0; 535 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument 536 return val.flatten(buffer, size, fds, count); 538 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument 539 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count);
|
/frameworks/native/libs/gui/ |
H A D | BufferItem.cpp | 126 void*& buffer, size_t& size, int*& fds, size_t& count) const { 141 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); 147 status_t err = mFence->flatten(buffer, size, fds, count); 194 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 205 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); 212 status_t err = mFence->unflatten(buffer, size, fds, count); 125 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 193 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
H A D | FrameTimestamps.cpp | 543 status_t FrameEventsDelta::flatten(void*& buffer, size_t& size, int*& fds, 572 status_t status = fence->flatten(buffer, size, fds, count); 581 int const*& fds, size_t& count) { 610 status_t status = fence->unflatten(buffer, size, fds, count); 655 void*& buffer, size_t& size, int*& fds, size_t& count) const { 668 status_t status = d.flatten(buffer, size, fds, count); 677 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 691 status_t status = d.unflatten(buffer, size, fds, count);
|
H A D | IGraphicBufferProducer.cpp | 1039 void*& buffer, size_t& size, int*& fds, size_t& count) const 1054 status_t result = fence->flatten(buffer, size, fds, count); 1067 void const*& buffer, size_t& size, int const*& fds, size_t& count) 1083 status_t result = fence->unflatten(buffer, size, fds, count); 1114 void*& buffer, size_t& size, int*& fds, size_t& count) const 1127 return frameTimestamps.flatten(buffer, size, fds, count); 1131 void const*& buffer, size_t& size, int const*& fds, size_t& count) 1144 return frameTimestamps.unflatten(buffer, size, fds, count); 1038 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 1066 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument 1113 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 1130 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 155 int* fds = new int[numFds]; local 173 std::copy(handle->data, intsStart, fds); 179 int const* constFds = static_cast<int const*>(fds); 182 delete [] fds; 222 * \param[in,out] fds The pointer to the flat fd buffer. 231 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { 248 *nh = native_handle_create_from_fd(*fds); 253 ++fds; 269 * \param[in,out] fds The pointer to the flat fd buffer. 274 void*& buffer, size_t& size, int*& fds, size_ 230 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument 273 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument 320 int* fds = static_cast<int*>(baseFds.get()); local 382 int* fds = static_cast<int*>(baseFds.get()); local 480 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument 551 int* fds = baseFds.get(); local 620 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument 719 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, std::vector<native_handle_t*>* nh, void*& buffer, size_t& size, int*& fds, size_t numFds) argument 823 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, std::vector<std::vector<native_handle_t*> >* nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument 887 int* fds = static_cast<int*>(baseFds.get()); local [all...] |
/frameworks/native/libs/gui/include/gui/ |
H A D | BufferItem.h | 41 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 42 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
H A D | FrameTimestamps.h | 263 status_t flatten(void*& buffer, size_t& size, int*& fds, 265 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, 323 status_t flatten(void*& buffer, size_t& size, int*& fds, 325 status_t unflatten(void const*& buffer, size_t& size, int const*& fds,
|
H A D | IGraphicBufferProducer.h | 360 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 361 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 397 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 398 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
/frameworks/native/libs/input/tests/ |
H A D | TestHelpers.h | 32 int fds[2]; local 33 ::pipe(fds); 35 receiveFd = fds[0]; 36 sendFd = fds[1];
|
/frameworks/native/libs/nativewindow/ |
H A D | AHardwareBuffer.cpp | 158 std::unique_ptr<int[]> fds(new int[fdCount]); 165 int* fdsStart = fds.get(); 189 memcpy(fdData, fds.get(), sizeof(int) * fdCount);
|
/frameworks/native/libs/ui/ |
H A D | Fence.cpp | 142 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 150 *fds++ = mFenceFd; 156 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument 178 mFenceFd.reset(*fds++);
|
H A D | FenceTime.cpp | 228 void*& buffer, size_t& size, int*& fds, size_t& count) const { 238 return fence->flatten(buffer, size, fds, count); 248 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 259 return fence->unflatten(buffer, size, fds, count); 227 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 247 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
H A D | GraphicBuffer.cpp | 338 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 363 memcpy(fds, handle->data, static_cast<size_t>(mTransportNumFds) * sizeof(int)); 371 fds += mTransportNumFds; 379 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 399 // Limit the maxNumber to be relatively small. The number of fds or ints 446 memcpy(h->data, fds, numFds * sizeof(int)); 484 fds += numFds; 378 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
|
/frameworks/native/libs/ui/include/ui/ |
H A D | Fence.h | 135 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 136 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
|
H A D | FenceTime.h | 66 status_t flatten(void*& buffer, size_t& size, int*& fds, 68 status_t unflatten(void const*& buffer, size_t& size, int const*& fds,
|
H A D | GraphicBuffer.h | 191 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const; 192 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count); 239 // numbers of fds/ints in native_handle_t to flatten
|