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;
1087 const flat_binder_object* flat = readObject(true);
1088 if (flat) {
1089 switch (flat->type) {
1091 //LOGI("Returning file descriptor %ld from parcel %p\n", flat->handle, this);
1092 return flat->handle;
1225 const flat_binder_object* flat
1227 if (flat->type == BINDER_TYPE_FD) {
1228 //LOGI("Closing fd: %ld\n", flat->handle);
1229 close(flat->handle);
1285 const flat_binder_object* flat
1288 << TypeCode(flat->type & 0x7f7f7f00)
1289 << " = " << flat->binder;
1306 const flat_binder_object* flat
1308 release_object(proc, *flat, this);
1320 const flat_binder_object* flat
1322 acquire_object(proc, *flat, this);
1458 const flat_binder_object* flat
1460 if (flat->type == BINDER_TYPE_FD) {
1464 release_object(proc, *flat, this);
1542 const flat_binder_object* flat
1544 if (flat->type == BINDER_TYPE_FD) {