Home | History | Annotate | Download | only in binder

Lines Matching full:flat

134     const sp<IBinder>& binder, const flat_binder_object& flat, Parcel* out)
136 return out->writeObject(flat, false);
219 BpBinder* proxy, const flat_binder_object& flat, const Parcel& in)
227 const flat_binder_object* flat = in.readObject(false);
229 if (flat) {
230 switch (flat->type) {
232 *out = static_cast<IBinder*>(flat->cookie);
233 return finish_unflatten_binder(NULL, *flat, in);
235 *out = proc->getStrongProxyForHandle(flat->handle);
237 static_cast<BpBinder*>(out->get()), *flat, in);
246 const flat_binder_object* flat = in.readObject(false);
248 if (flat) {
249 switch (flat->type) {
251 *out = static_cast<IBinder*>(flat->cookie);
252 return finish_unflatten_binder(NULL, *flat, in);
254 if (flat->binder != NULL) {
256 static_cast<IBinder*>(flat->cookie),
257 static_cast<RefBase::weakref_type*>(flat->binder));
261 return finish_unflatten_binder(NULL, *flat, in);
264 *out = proc->getWeakProxyForHandle(flat->handle);
266 static_cast<BpBinder*>(out->unsafe_get()), *flat, in);
413 flat_binder_object* flat
415 acquire_object(proc, *flat, this);
417 if (flat->type == BINDER_TYPE_FD) {
421 flat->handle = dup(flat->handle);
422 flat->cookie = (void*)1;
968 const flat_binder_object* flat = readObject(true);
969 if (flat) {
970 switch (flat->type) {
972 //LOGI("Returning file descriptor %ld from parcel %p\n", flat->handle, this);
973 return flat->handle;
1080 const flat_binder_object* flat
1082 if (flat->type == BINDER_TYPE_FD) {
1083 //LOGI("Closing fd: %ld\n", flat->handle);
1084 close(flat->handle);
1140 const flat_binder_object* flat
1143 << TypeCode(flat->type & 0x7f7f7f00)
1144 << " = " << flat->binder;
1161 const flat_binder_object* flat
1163 release_object(proc, *flat, this);
1175 const flat_binder_object* flat
1177 acquire_object(proc, *flat, this);
1312 const flat_binder_object* flat
1314 if (flat->type == BINDER_TYPE_FD) {
1318 release_object(proc, *flat, this);
1393 const flat_binder_object* flat
1395 if (flat->type == BINDER_TYPE_FD) {