Lines Matching refs:h
52 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, in GraphicBuffer() argument
64 mInitCheck = initSize(w, h, reqFormat, reqUsage); in GraphicBuffer()
67 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, in GraphicBuffer() argument
75 height = h; in GraphicBuffer()
116 status_t GraphicBuffer::reallocate(uint32_t w, uint32_t h, PixelFormat f, in reallocate() argument
122 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate()
130 return initSize(w, h, f, reqUsage); in reallocate()
133 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, in initSize() argument
137 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride); in initSize()
140 this->height = h; in initSize()
221 native_handle_t const* const h = handle; in flatten() local
222 memcpy(fds, h->data, h->numFds*sizeof(int)); in flatten()
223 memcpy(&buf[kFlattenFdsOffset], h->data + h->numFds, h->numInts*sizeof(int)); in flatten()
258 native_handle* h = native_handle_create(numFds, numInts); in unflatten() local
259 memcpy(h->data, fds, numFds*sizeof(int)); in unflatten()
260 memcpy(h->data + numFds, &buf[kFlattenFdsOffset], numInts*sizeof(int)); in unflatten()
261 handle = h; in unflatten()