Lines Matching refs:handle
170 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle)
173 if (N <= (size_t)handle) {
177 status_t err = mHandleToObject.insertAt(e, N, handle+1-N);
180 return &mHandleToObject.editItemAt(handle);
183 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle)
189 handle_entry* e = lookupHandleLocked(handle);
197 if (handle == 0) {
213 // stop special casing handle 0 for context manager and add
214 // a driver API to get a handle to the context manager with
224 b = new BpBinder(handle);
231 // but another team is sending the handle to us.
240 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle)
246 handle_entry* e = lookupHandleLocked(handle);
254 // releasing a reference on this BpBinder, and a new reference on its handle
258 b = new BpBinder(handle);
271 void ProcessState::expungeHandle(int32_t handle, IBinder* binder)
275 handle_entry* e = lookupHandleLocked(handle);
277 // This handle may have already been replaced with a new BpBinder