Lines Matching defs:handle
231 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle)
234 if (N <= (size_t)handle) {
238 status_t err = mHandleToObject.insertAt(e, N, handle+1-N);
241 return &mHandleToObject.editItemAt(handle);
244 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle)
250 handle_entry* e = lookupHandleLocked(handle);
258 if (handle == 0) {
274 // stop special casing handle 0 for context manager and add
275 // a driver API to get a handle to the context manager with
285 b = BpBinder::create(handle);
292 // but another team is sending the handle to us.
301 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle)
307 handle_entry* e = lookupHandleLocked(handle);
315 // releasing a reference on this BpBinder, and a new reference on its handle
319 b = BpBinder::create(handle);
332 void ProcessState::expungeHandle(int32_t handle, IBinder* binder)
336 handle_entry* e = lookupHandleLocked(handle);
338 // This handle may have already been replaced with a new BpBinder