Lines Matching defs:flat

204     const sp<IBinder>& /*binder*/, const flat_binder_object& flat, Parcel* out)
206 return out->writeObject(flat, false);
298 BpBinder* /*proxy*/, const flat_binder_object& /*flat*/,
307 const flat_binder_object* flat = in.readObject(false);
309 if (flat) {
310 switch (flat->hdr.type) {
312 *out = reinterpret_cast<IBinder*>(flat->cookie);
313 return finish_unflatten_binder(NULL, *flat, in);
315 *out = proc->getStrongProxyForHandle(flat->handle);
317 static_cast<BpBinder*>(out->get()), *flat, in);
326 const flat_binder_object* flat = in.readObject(false);
328 if (flat) {
329 switch (flat->hdr.type) {
331 *out = reinterpret_cast<IBinder*>(flat->cookie);
332 return finish_unflatten_binder(NULL, *flat, in);
334 if (flat->binder != 0) {
336 reinterpret_cast<IBinder*>(flat->cookie),
337 reinterpret_cast<RefBase::weakref_type*>(flat->binder));
341 return finish_unflatten_binder(NULL, *flat, in);
344 *out = proc->getWeakProxyForHandle(flat->handle);
346 static_cast<BpBinder*>(out->unsafe_get()), *flat, in);
543 flat_binder_object* flat
545 acquire_object(proc, *flat, this, &mOpenAshmemSize);
547 if (flat->hdr.type == BINDER_TYPE_FD) {
551 flat->handle = fcntl(flat->handle, F_DUPFD_CLOEXEC, 0);
552 flat->cookie = 1;
2215 const flat_binder_object* flat = readObject(true);
2217 if (flat && flat->hdr.type == BINDER_TYPE_FD) {
2218 return flat->handle;
2408 const flat_binder_object* flat
2410 if (flat->hdr.type == BINDER_TYPE_FD) {
2411 //ALOGI("Closing fd: %ld", flat->handle);
2412 close(flat->handle);
2480 const flat_binder_object* flat
2483 << TypeCode(flat->hdr.type & 0x7f7f7f00)
2484 << " = " << flat->binder;
2501 const flat_binder_object* flat
2503 release_object(proc, *flat, this, &mOpenAshmemSize);
2515 const flat_binder_object* flat
2517 acquire_object(proc, *flat, this, &mOpenAshmemSize);
2704 const flat_binder_object* flat
2706 if (flat->hdr.type == BINDER_TYPE_FD) {
2710 release_object(proc, *flat, this, &mOpenAshmemSize);
2816 const flat_binder_object* flat
2818 if (flat->hdr.type == BINDER_TYPE_FD) {