Lines Matching refs:flat
169 const sp<IBinder>& binder, const flat_binder_object& flat) in finishFlattenBinder() argument
171 status_t status = writeObject(flat, false); in finishFlattenBinder()
246 const flat_binder_object* flat = readObject(false); in unflattenBinder() local
248 if (flat) { in unflattenBinder()
249 switch (flat->hdr.type) { in unflattenBinder()
251 sp<IBinder> binder = reinterpret_cast<IBinder*>(flat->cookie); in unflattenBinder()
256 ProcessState::self()->getStrongProxyForHandle(flat->handle); in unflattenBinder()
457 flat_binder_object* flat in appendFrom() local
459 acquire_object(proc, *flat, this, &mOpenAshmemSize); in appendFrom()
461 if (flat->hdr.type == BINDER_TYPE_FD) { in appendFrom()
465 flat->handle = fcntl(flat->handle, F_DUPFD_CLOEXEC, 0); in appendFrom()
466 flat->cookie = 1; in appendFrom()
2221 const flat_binder_object* flat = readObject(true); in readFileDescriptor() local
2223 if (flat && flat->hdr.type == BINDER_TYPE_FD) { in readFileDescriptor()
2224 return flat->handle; in readFileDescriptor()
2465 const flat_binder_object* flat in closeFileDescriptors() local
2467 if (flat->hdr.type == BINDER_TYPE_FD) { in closeFileDescriptors()
2469 close(flat->handle); in closeFileDescriptors()
2537 const flat_binder_object* flat in print() local
2540 << TypeCode(flat->hdr.type & 0x7f7f7f00) in print()
2541 << " = " << flat->binder; in print()
2561 const flat_binder_object* flat in releaseObjects() local
2563 release_object(proc, *flat, this, &mOpenAshmemSize); in releaseObjects()
2578 const flat_binder_object* flat in acquireObjects() local
2580 acquire_object(proc, *flat, this, &mOpenAshmemSize); in acquireObjects()
2769 const flat_binder_object* flat in continueWrite() local
2771 if (flat->hdr.type == BINDER_TYPE_FD) { in continueWrite()
2775 release_object(proc, *flat, this, &mOpenAshmemSize); in continueWrite()
2891 const flat_binder_object* flat in scanForFds() local
2893 if (flat->hdr.type == BINDER_TYPE_FD) { in scanForFds()