Lines Matching refs:handle
46 handle = NULL;
59 handle = NULL;
75 handle = inHandle;
88 handle = buffer->handle;
93 if (handle) {
101 mBufferMapper.unregisterBuffer(handle);
102 native_handle_close(handle);
103 native_handle_delete(const_cast<native_handle*>(handle));
106 allocator.free(handle);
132 if (handle && w==width && h==height && f==format && reqUsage==usage)
135 if (handle) {
137 allocator.free(handle);
138 handle = 0;
147 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
173 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr);
179 status_t res = getBufferMapper().unlock(handle);
184 return (8 + (handle ? handle->numInts : 0))*sizeof(int);
188 return handle ? handle->numFds : 0;
210 if (handle) {
211 buf[6] = handle->numFds;
212 buf[7] = handle->numInts;
213 native_handle_t const* const h = handle;
238 if (handle) {
239 // free previous handle if any
252 handle = h;
255 handle = NULL;
260 if (handle != 0) {
261 status_t err = mBufferMapper.registerBuffer(handle);