Lines Matching refs:flat
199 const sp<IBinder>& /*binder*/, const flat_binder_object& flat, Parcel* out) in finish_flatten_binder() argument
201 return out->writeObject(flat, false); in finish_flatten_binder()
305 const flat_binder_object* flat = in.readObject(false); in unflatten_binder() local
307 if (flat) { in unflatten_binder()
308 switch (flat->hdr.type) { in unflatten_binder()
310 *out = reinterpret_cast<IBinder*>(flat->cookie); in unflatten_binder()
311 return finish_unflatten_binder(nullptr, *flat, in); in unflatten_binder()
313 *out = proc->getStrongProxyForHandle(flat->handle); in unflatten_binder()
315 static_cast<BpBinder*>(out->get()), *flat, in); in unflatten_binder()
324 const flat_binder_object* flat = in.readObject(false); in unflatten_binder() local
326 if (flat) { in unflatten_binder()
327 switch (flat->hdr.type) { in unflatten_binder()
329 *out = reinterpret_cast<IBinder*>(flat->cookie); in unflatten_binder()
330 return finish_unflatten_binder(nullptr, *flat, in); in unflatten_binder()
332 if (flat->binder != 0) { in unflatten_binder()
334 reinterpret_cast<IBinder*>(flat->cookie), in unflatten_binder()
335 reinterpret_cast<RefBase::weakref_type*>(flat->binder)); in unflatten_binder()
339 return finish_unflatten_binder(nullptr, *flat, in); in unflatten_binder()
342 *out = proc->getWeakProxyForHandle(flat->handle); in unflatten_binder()
344 static_cast<BpBinder*>(out->unsafe_get()), *flat, in); in unflatten_binder()
541 flat_binder_object* flat in appendFrom() local
543 acquire_object(proc, *flat, this, &mOpenAshmemSize); in appendFrom()
545 if (flat->hdr.type == BINDER_TYPE_FD) { in appendFrom()
549 flat->handle = fcntl(flat->handle, F_DUPFD_CLOEXEC, 0); in appendFrom()
550 flat->cookie = 1; in appendFrom()
2288 const flat_binder_object* flat = readObject(true); in readFileDescriptor() local
2290 if (flat && flat->hdr.type == BINDER_TYPE_FD) { in readFileDescriptor()
2291 return flat->handle; in readFileDescriptor()
2528 const flat_binder_object* flat in closeFileDescriptors() local
2530 if (flat->hdr.type == BINDER_TYPE_FD) { in closeFileDescriptors()
2532 close(flat->handle); in closeFileDescriptors()
2600 const flat_binder_object* flat in print() local
2603 << TypeCode(flat->hdr.type & 0x7f7f7f00) in print()
2604 << " = " << flat->binder; in print()
2624 const flat_binder_object* flat in releaseObjects() local
2626 release_object(proc, *flat, this, &mOpenAshmemSize); in releaseObjects()
2641 const flat_binder_object* flat in acquireObjects() local
2643 acquire_object(proc, *flat, this, &mOpenAshmemSize); in acquireObjects()
2830 const flat_binder_object* flat in continueWrite() local
2832 if (flat->hdr.type == BINDER_TYPE_FD) { in continueWrite()
2836 release_object(proc, *flat, this, &mOpenAshmemSize); in continueWrite()
2950 const flat_binder_object* flat in scanForFds() local
2952 if (flat->hdr.type == BINDER_TYPE_FD) { in scanForFds()