Lines Matching defs:flat

156     const sp<IBinder>& /*binder*/, const flat_binder_object& flat, Parcel* out)
158 return out->writeObject(flat, false);
243 BpBinder* /*proxy*/, const flat_binder_object& /*flat*/,
252 const flat_binder_object* flat = in.readObject(false);
254 if (flat) {
255 switch (flat->type) {
257 *out = reinterpret_cast<IBinder*>(flat->cookie);
258 return finish_unflatten_binder(NULL, *flat, in);
260 *out = proc->getStrongProxyForHandle(flat->handle);
262 static_cast<BpBinder*>(out->get()), *flat, in);
271 const flat_binder_object* flat = in.readObject(false);
273 if (flat) {
274 switch (flat->type) {
276 *out = reinterpret_cast<IBinder*>(flat->cookie);
277 return finish_unflatten_binder(NULL, *flat, in);
279 if (flat->binder != 0) {
281 reinterpret_cast<IBinder*>(flat->cookie),
282 reinterpret_cast<RefBase::weakref_type*>(flat->binder));
286 return finish_unflatten_binder(NULL, *flat, in);
289 *out = proc->getWeakProxyForHandle(flat->handle);
291 static_cast<BpBinder*>(out->unsafe_get()), *flat, in);
458 flat_binder_object* flat
460 acquire_object(proc, *flat, this);
462 if (flat->type == BINDER_TYPE_FD) {
466 flat->handle = dup(flat->handle);
467 flat->cookie = 1;
1234 const flat_binder_object* flat = readObject(true);
1235 if (flat) {
1236 switch (flat->type) {
1238 //ALOGI("Returning file descriptor %ld from parcel %p", flat->handle, this);
1239 return flat->handle;
1393 const flat_binder_object* flat
1395 if (flat->type == BINDER_TYPE_FD) {
1396 //ALOGI("Closing fd: %ld", flat->handle);
1397 close(flat->handle);
1464 const flat_binder_object* flat
1467 << TypeCode(flat->type & 0x7f7f7f00)
1468 << " = " << flat->binder;
1485 const flat_binder_object* flat
1487 release_object(proc, *flat, this);
1499 const flat_binder_object* flat
1501 acquire_object(proc, *flat, this);
1659 const flat_binder_object* flat
1661 if (flat->type == BINDER_TYPE_FD) {
1665 release_object(proc, *flat, this);
1756 const flat_binder_object* flat
1758 if (flat->type == BINDER_TYPE_FD) {