Home | History | Annotate | Download | only in binder

Lines Matching defs:flat

146     const sp<IBinder>& binder, const flat_binder_object& flat, Parcel* out)
148 return out->writeObject(flat, false);
231 BpBinder* proxy, const flat_binder_object& flat, const Parcel& in)
239 const flat_binder_object* flat = in.readObject(false);
241 if (flat) {
242 switch (flat->type) {
244 *out = static_cast<IBinder*>(flat->cookie);
245 return finish_unflatten_binder(NULL, *flat, in);
247 *out = proc->getStrongProxyForHandle(flat->handle);
249 static_cast<BpBinder*>(out->get()), *flat, in);
258 const flat_binder_object* flat = in.readObject(false);
260 if (flat) {
261 switch (flat->type) {
263 *out = static_cast<IBinder*>(flat->cookie);
264 return finish_unflatten_binder(NULL, *flat, in);
266 if (flat->binder != NULL) {
268 static_cast<IBinder*>(flat->cookie),
269 static_cast<RefBase::weakref_type*>(flat->binder));
273 return finish_unflatten_binder(NULL, *flat, in);
276 *out = proc->getWeakProxyForHandle(flat->handle);
278 static_cast<BpBinder*>(out->unsafe_get()), *flat, in);
429 flat_binder_object* flat
431 acquire_object(proc, *flat, this);
433 if (flat->type == BINDER_TYPE_FD) {
437 flat->handle = dup(flat->handle);
438 flat->cookie = (void*)1;
1139 const flat_binder_object* flat = readObject(true);
1140 if (flat) {
1141 switch (flat->type) {
1143 //ALOGI("Returning file descriptor %ld from parcel %p\n", flat->handle, this);
1144 return flat->handle;
1277 const flat_binder_object* flat
1279 if (flat->type == BINDER_TYPE_FD) {
1280 //ALOGI("Closing fd: %ld\n", flat->handle);
1281 close(flat->handle);
1337 const flat_binder_object* flat
1340 << TypeCode(flat->type & 0x7f7f7f00)
1341 << " = " << flat->binder;
1358 const flat_binder_object* flat
1360 release_object(proc, *flat, this);
1372 const flat_binder_object* flat
1374 acquire_object(proc, *flat, this);
1510 const flat_binder_object* flat
1512 if (flat->type == BINDER_TYPE_FD) {
1516 release_object(proc, *flat, this);
1594 const flat_binder_object* flat
1596 if (flat->type == BINDER_TYPE_FD) {