Lines Matching full:handle
53 handle = NULL;
66 handle = NULL;
82 handle = inHandle;
95 handle = buffer->handle;
100 if (handle) {
108 mBufferMapper.unregisterBuffer(handle);
109 native_handle_close(handle);
110 native_handle_delete(const_cast<native_handle*>(handle));
113 allocator.free(handle);
140 if (handle &&
147 if (handle) {
149 allocator.free(handle);
150 handle = 0;
171 &handle, &outStride);
198 status_t res = getBufferMapper().lock(handle, inUsage, rect, vaddr);
219 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr);
225 status_t res = getBufferMapper().unlock(handle);
246 status_t res = getBufferMapper().lockAsync(handle, inUsage, rect, vaddr,
269 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect,
276 status_t res = getBufferMapper().unlockAsync(handle, fenceFd);
281 return static_cast<size_t>(11 + (handle ? handle->numInts : 0)) * sizeof(int);
285 return static_cast<size_t>(handle ? handle->numFds : 0);
308 if (handle) {
309 buf[9] = handle->numFds;
310 buf[10] = handle->numInts;
311 memcpy(fds, handle->data,
312 static_cast<size_t>(handle->numFds) * sizeof(int));
313 memcpy(&buf[11], handle->data + handle->numFds,
314 static_cast<size_t>(handle->numInts) * sizeof(int));
319 if (handle) {
320 fds += handle->numFds;
321 count -= static_cast<size_t>(handle->numFds);
344 handle = NULL;
356 if (handle) {
357 // free previous handle if any
371 handle = NULL;
377 handle = h;
380 handle = NULL;
390 if (handle != 0) {
391 status_t err = mBufferMapper.registerBuffer(handle);
394 handle = NULL;