Lines Matching refs:handle

53     handle = NULL;
66 handle = NULL;
82 handle = inHandle;
96 handle = buffer->handle;
101 if (handle) {
109 mBufferMapper.unregisterBuffer(handle);
110 native_handle_close(handle);
111 native_handle_delete(const_cast<native_handle*>(handle));
114 allocator.free(handle);
116 handle = NULL;
142 if (handle &&
149 if (handle) {
151 allocator.free(handle);
152 handle = 0;
173 &handle, &outStride);
200 status_t res = getBufferMapper().lock(handle, inUsage, rect, vaddr);
221 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr);
227 status_t res = getBufferMapper().unlock(handle);
248 status_t res = getBufferMapper().lockAsync(handle, inUsage, rect, vaddr,
271 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect,
278 status_t res = getBufferMapper().unlockAsync(handle, fenceFd);
283 return static_cast<size_t>(11 + (handle ? handle->numInts : 0)) * sizeof(int);
287 return static_cast<size_t>(handle ? handle->numFds : 0);
310 if (handle) {
311 buf[9] = handle->numFds;
312 buf[10] = handle->numInts;
313 memcpy(fds, handle->data,
314 static_cast<size_t>(handle->numFds) * sizeof(int));
315 memcpy(&buf[11], handle->data + handle->numFds,
316 static_cast<size_t>(handle->numInts) * sizeof(int));
321 if (handle) {
322 fds += handle->numFds;
323 count -= static_cast<size_t>(handle->numFds);
346 handle = NULL;
358 if (handle) {
359 // free previous handle if any
373 handle = NULL;
379 handle = h;
382 handle = NULL;
392 if (handle != 0) {
393 status_t err = mBufferMapper.registerBuffer(handle);
396 handle = NULL;