Lines Matching defs:handle
119 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
127 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
132 if ((obj.cookie != 0) && (outAshmemSize != NULL) && ashmem_valid(obj.handle)) {
134 int size = ashmem_get_size_region(obj.handle);
167 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
175 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
181 if ((outAshmemSize != NULL) && ashmem_valid(obj.handle)) {
182 int size = ashmem_get_size_region(obj.handle);
188 close(obj.handle);
229 const int32_t handle = proxy ? proxy->handle() : 0;
232 obj.handle = handle;
263 const int32_t handle = proxy ? proxy->handle() : 0;
266 obj.handle = handle;
315 *out = proc->getStrongProxyForHandle(flat->handle);
344 *out = proc->getWeakProxyForHandle(flat->handle);
551 flat->handle = fcntl(flat->handle, F_DUPFD_CLOEXEC, 0);
1130 status_t Parcel::writeNativeHandle(const native_handle* handle)
1132 if (!handle || handle->version != sizeof(native_handle))
1136 err = writeInt32(handle->numFds);
1139 err = writeInt32(handle->numInts);
1142 for (int i=0 ; err==NO_ERROR && i<handle->numFds ; i++)
1143 err = writeDupFileDescriptor(handle->data[i]);
1146 ALOGD("write native handle, write dup fd failed");
1149 err = write(handle->data + handle->numFds, sizeof(int)*handle->numInts);
1159 obj.handle = fd;
2218 return flat->handle;
2411 //ALOGI("Closing fd: %ld", flat->handle);
2412 close(flat->handle);