Lines Matching refs:obj
85 const flat_binder_object& obj, const void* who) in acquire_binder_object() argument
87 switch (obj.hdr.type) { in acquire_binder_object()
89 if (obj.binder) { in acquire_binder_object()
90 LOG_REFS("Parcel %p acquiring reference on local %p", who, obj.cookie); in acquire_binder_object()
91 reinterpret_cast<IBinder*>(obj.cookie)->incStrong(who); in acquire_binder_object()
95 if (obj.binder) in acquire_binder_object()
96 reinterpret_cast<RefBase::weakref_type*>(obj.binder)->incWeak(who); in acquire_binder_object()
99 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle); in acquire_binder_object()
107 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle); in acquire_binder_object()
113 ALOGD("Invalid object type 0x%08x", obj.hdr.type); in acquire_binder_object()
116 void acquire_object(const sp<ProcessState>& proc, const binder_object_header& obj, in acquire_object() argument
118 switch (obj.type) { in acquire_object()
123 const flat_binder_object& fbo = reinterpret_cast<const flat_binder_object&>(obj); in acquire_object()
131 const flat_binder_object& obj, const void* who) in release_object() argument
133 switch (obj.hdr.type) { in release_object()
135 if (obj.binder) { in release_object()
136 LOG_REFS("Parcel %p releasing reference on local %p", who, obj.cookie); in release_object()
137 reinterpret_cast<IBinder*>(obj.cookie)->decStrong(who); in release_object()
141 if (obj.binder) in release_object()
142 reinterpret_cast<RefBase::weakref_type*>(obj.binder)->decWeak(who); in release_object()
145 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle); in release_object()
153 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle); in release_object()
158 if (obj.cookie != 0) { // owned in release_object()
159 close(obj.handle); in release_object()
173 ALOGE("Invalid object type 0x%08x", obj.hdr.type); in release_object()
185 flat_binder_object obj = {}; in flatten_binder() local
195 obj.hdr.type = BINDER_TYPE_HANDLE; in flatten_binder()
196 obj.flags = FLAT_BINDER_FLAG_ACCEPTS_FDS; in flatten_binder()
197 obj.binder = 0; /* Don't pass uninitialized stack data to a remote process */ in flatten_binder()
198 obj.handle = handle; in flatten_binder()
199 obj.cookie = 0; in flatten_binder()
205 obj.flags = priority & FLAT_BINDER_FLAG_PRIORITY_MASK; in flatten_binder()
206 obj.flags |= FLAT_BINDER_FLAG_ACCEPTS_FDS | FLAT_BINDER_FLAG_INHERIT_RT; in flatten_binder()
207 obj.flags |= (policy & 3) << FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT; in flatten_binder()
209 obj.flags |= FLAT_BINDER_FLAG_TXN_SECURITY_CTX; in flatten_binder()
211 obj.hdr.type = BINDER_TYPE_BINDER; in flatten_binder()
212 obj.binder = reinterpret_cast<uintptr_t>(local->getWeakRefs()); in flatten_binder()
213 obj.cookie = reinterpret_cast<uintptr_t>(local); in flatten_binder()
216 obj.hdr.type = BINDER_TYPE_BINDER; in flatten_binder()
217 obj.binder = 0; in flatten_binder()
218 obj.cookie = 0; in flatten_binder()
221 return finish_flatten_binder(binder, obj, out); in flatten_binder()
731 binder_buffer_object obj = { in writeEmbeddedBuffer() local
743 return writeObject(obj); in writeEmbeddedBuffer()
750 binder_buffer_object obj { in writeBuffer() local
760 return writeObject(obj); in writeBuffer()
775 binder_buffer_object *obj = in updateCache() local
777 if(obj->hdr.type != BINDER_TYPE_PTR) in updateCache()
781 ifo.buffer = obj->buffer; in updateCache()
782 ifo.bufend = obj->buffer + obj->length; in updateCache()
1216 const T* obj = reinterpret_cast<const T*>(mData+DPOS); in readObject() local
1218 const binder_object_header *hdr = reinterpret_cast<const binder_object_header*>(obj); in readObject()
1231 return obj; in readObject()
1245 return obj; in readObject()
1277 return obj; in readObject()
1293 return obj; in readObject()