Lines Matching refs:handle
53 handle = NULL; in GraphicBuffer()
66 handle = NULL; in GraphicBuffer()
82 handle = inHandle; in GraphicBuffer()
95 handle = buffer->handle; in GraphicBuffer()
100 if (handle) { in ~GraphicBuffer()
108 mBufferMapper.unregisterBuffer(handle); in free_handle()
109 native_handle_close(handle); in free_handle()
110 native_handle_delete(const_cast<native_handle*>(handle)); in free_handle()
113 allocator.free(handle); in free_handle()
140 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate()
143 if (handle) { in reallocate()
145 allocator.free(handle); in reallocate()
146 handle = 0; in reallocate()
155 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride); in initSize()
181 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr); in lock()
202 status_t res = getBufferMapper().lockYCbCr(handle, usage, rect, ycbcr); in lockYCbCr()
208 status_t res = getBufferMapper().unlock(handle); in unlock()
228 status_t res = getBufferMapper().lockAsync(handle, usage, rect, vaddr, fenceFd); in lockAsync()
248 status_t res = getBufferMapper().lockAsyncYCbCr(handle, usage, rect, ycbcr, fenceFd); in lockAsyncYCbCr()
254 status_t res = getBufferMapper().unlockAsync(handle, fenceFd); in unlockAsync()
259 return (10 + (handle ? handle->numInts : 0))*sizeof(int); in getFlattenedSize()
263 return handle ? handle->numFds : 0; in getFdCount()
285 if (handle) { in flatten()
286 buf[8] = handle->numFds; in flatten()
287 buf[9] = handle->numInts; in flatten()
288 native_handle_t const* const h = handle; in flatten()
295 if (handle) { in flatten()
296 fds += handle->numFds; in flatten()
297 count -= handle->numFds; in flatten()
320 handle = NULL; in unflatten()
332 if (handle) { in unflatten()
346 handle = NULL; in unflatten()
352 handle = h; in unflatten()
355 handle = NULL; in unflatten()
363 if (handle != 0) { in unflatten()
364 status_t err = mBufferMapper.registerBuffer(handle); in unflatten()
367 handle = NULL; in unflatten()