Lines Matching refs:handle
45 handle = NULL;
58 handle = NULL;
74 handle = inHandle;
87 handle = buffer->handle;
92 if (handle) {
100 mBufferMapper.unregisterBuffer(handle);
101 native_handle_close(handle);
102 native_handle_delete(const_cast<native_handle*>(handle));
105 allocator.free(handle);
131 if (handle && w==width && h==height && f==format && reqUsage==usage)
134 if (handle) {
136 allocator.free(handle);
137 handle = 0;
146 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
172 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr);
193 status_t res = getBufferMapper().lockYCbCr(handle, usage, rect, ycbcr);
199 status_t res = getBufferMapper().unlock(handle);
204 return (8 + (handle ? handle->numInts : 0))*sizeof(int);
208 return handle ? handle->numFds : 0;
228 if (handle) {
229 buf[6] = handle->numFds;
230 buf[7] = handle->numInts;
231 native_handle_t const* const h = handle;
238 fds += handle->numFds;
239 count -= handle->numFds;
260 if (handle) {
261 // free previous handle if any
274 handle = h;
277 handle = NULL;
282 if (handle != 0) {
283 status_t err = mBufferMapper.registerBuffer(handle);