Lines Matching defs:flat

148     const sp<IBinder>& binder, const flat_binder_object& flat, Parcel* out)
150 return out->writeObject(flat, false);
233 BpBinder* proxy, const flat_binder_object& flat, const Parcel& in)
241 const flat_binder_object* flat = in.readObject(false);
243 if (flat) {
244 switch (flat->type) {
246 *out = static_cast<IBinder*>(flat->cookie);
247 return finish_unflatten_binder(NULL, *flat, in);
249 *out = proc->getStrongProxyForHandle(flat->handle);
251 static_cast<BpBinder*>(out->get()), *flat, in);
260 const flat_binder_object* flat = in.readObject(false);
262 if (flat) {
263 switch (flat->type) {
265 *out = static_cast<IBinder*>(flat->cookie);
266 return finish_unflatten_binder(NULL, *flat, in);
268 if (flat->binder != NULL) {
270 static_cast<IBinder*>(flat->cookie),
271 static_cast<RefBase::weakref_type*>(flat->binder));
275 return finish_unflatten_binder(NULL, *flat, in);
278 *out = proc->getWeakProxyForHandle(flat->handle);
280 static_cast<BpBinder*>(out->unsafe_get()), *flat, in);
431 flat_binder_object* flat
433 acquire_object(proc, *flat, this);
435 if (flat->type == BINDER_TYPE_FD) {
439 flat->handle = dup(flat->handle);
440 flat->cookie = (void*)1;
1163 const flat_binder_object* flat = readObject(true);
1164 if (flat) {
1165 switch (flat->type) {
1167 //ALOGI("Returning file descriptor %ld from parcel %p\n", flat->handle, this);
1168 return flat->handle;
1301 const flat_binder_object* flat
1303 if (flat->type == BINDER_TYPE_FD) {
1304 //ALOGI("Closing fd: %ld\n", flat->handle);
1305 close(flat->handle);
1372 const flat_binder_object* flat
1375 << TypeCode(flat->type & 0x7f7f7f00)
1376 << " = " << flat->binder;
1393 const flat_binder_object* flat
1395 release_object(proc, *flat, this);
1407 const flat_binder_object* flat
1409 acquire_object(proc, *flat, this);
1547 const flat_binder_object* flat
1549 if (flat->type == BINDER_TYPE_FD) {
1553 release_object(proc, *flat, this);
1631 const flat_binder_object* flat
1633 if (flat->type == BINDER_TYPE_FD) {