Lines Matching refs:obj

73     const flat_binder_object& obj, const void* who)
75 switch (obj.type) {
77 if (obj.binder) {
78 LOG_REFS("Parcel %p acquiring reference on local %p", who, obj.cookie);
79 static_cast<IBinder*>(obj.cookie)->incStrong(who);
83 if (obj.binder)
84 static_cast<RefBase::weakref_type*>(obj.binder)->incWeak(who);
87 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
95 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
106 ALOGD("Invalid object type 0x%08lx", obj.type);
110 const flat_binder_object& obj, const void* who)
112 switch (obj.type) {
114 if (obj.binder) {
115 LOG_REFS("Parcel %p releasing reference on local %p", who, obj.cookie);
116 static_cast<IBinder*>(obj.cookie)->decStrong(who);
120 if (obj.binder)
121 static_cast<RefBase::weakref_type*>(obj.binder)->decWeak(who);
124 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
132 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
137 if (obj.cookie != (void*)0) close(obj.handle);
142 ALOGE("Invalid object type 0x%08lx", obj.type);
154 flat_binder_object obj;
156 obj.flags = 0x7f | FLAT_BINDER_FLAG_ACCEPTS_FDS;
165 obj.type = BINDER_TYPE_HANDLE;
166 obj.handle = handle;
167 obj.cookie = NULL;
169 obj.type = BINDER_TYPE_BINDER;
170 obj.binder = local->getWeakRefs();
171 obj.cookie = local;
174 obj.type = BINDER_TYPE_BINDER;
175 obj.binder = NULL;
176 obj.cookie = NULL;
179 return finish_flatten_binder(binder, obj, out);
185 flat_binder_object obj;
187 obj.flags = 0x7f | FLAT_BINDER_FLAG_ACCEPTS_FDS;
198 obj.type = BINDER_TYPE_WEAK_HANDLE;
199 obj.handle = handle;
200 obj.cookie = NULL;
202 obj.type = BINDER_TYPE_WEAK_BINDER;
203 obj.binder = binder.get_refs();
204 obj.cookie = binder.unsafe_get();
206 return finish_flatten_binder(real, obj, out);
217 obj.type = BINDER_TYPE_BINDER;
218 obj.binder = NULL;
219 obj.cookie = NULL;
220 return finish_flatten_binder(NULL, obj, out);
223 obj.type = BINDER_TYPE_BINDER;
224 obj.binder = NULL;
225 obj.cookie = NULL;
226 return finish_flatten_binder(NULL, obj, out);
715 flat_binder_object obj;
716 obj.type = BINDER_TYPE_FD;
717 obj.flags = 0x7f | FLAT_BINDER_FLAG_ACCEPTS_FDS;
718 obj.handle = fd;
719 obj.cookie = (void*) (takeOwnership ? 1 : 0);
720 return writeObject(obj, true);
1169 const flat_binder_object* obj
1172 if (!nullMetaData && (obj->cookie == NULL && obj->binder == NULL)) {
1177 return obj;
1186 ALOGV("Parcel %p looking for obj at %d, hint=%d\n",
1200 ALOGV("Parcel found obj %d at index %d with forward search",
1204 return obj;
1213 ALOGV("Parcel found obj %d at index %d with backward search",
1217 return obj;