Home | History | Annotate | Download | only in binder

Lines Matching refs:handle

88             const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
96 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
125 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
133 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
138 if (obj.cookie != (void*)0) close(obj.handle);
165 const int32_t handle = proxy ? proxy->handle() : 0;
167 obj.handle = handle;
198 const int32_t handle = proxy ? proxy->handle() : 0;
200 obj.handle = handle;
248 *out = proc->getStrongProxyForHandle(flat->handle);
277 *out = proc->getWeakProxyForHandle(flat->handle);
438 flat->handle = dup(flat->handle);
707 status_t Parcel::writeNativeHandle(const native_handle* handle)
709 if (!handle || handle->version != sizeof(native_handle))
713 err = writeInt32(handle->numFds);
716 err = writeInt32(handle->numInts);
719 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++)
720 err = writeDupFileDescriptor(handle->data[i]);
723 ALOGD("write native handle, write dup fd failed");
726 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts);
735 obj.handle = fd;
1144 //ALOGI("Returning file descriptor %ld from parcel %p\n", flat->handle, this);
1145 return flat->handle;
1281 //ALOGI("Closing fd: %ld\n", flat->handle);
1282 close(flat->handle);