Searched refs:usage (Results 1 - 25 of 206) sorted by relevance

123456789

/hardware/intel/img/hwcomposer/merrifield/common/buffers/
H A DGraphicBuffer.cpp34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) argument
36 if (usage == USAGE_INVALID) {
40 return (usage & GRALLOC_USAGE_PROTECTED) != 0;
52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) argument
54 if (usage == USAGE_INVALID) {
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/
H A DGraphicBuffer.cpp34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) argument
36 if (usage == USAGE_INVALID) {
40 return (usage & GRALLOC_USAGE_PROTECTED) != 0;
52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) argument
54 if (usage == USAGE_INVALID) {
/hardware/qcom/display/msm8226/libgralloc/
H A Dgpu.cpp54 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument
72 if ((usage & GRALLOC_USAGE_PROTECTED) &&
73 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) {
81 err = mAllocCtrl->allocate(data, usage);
97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) {
115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
131 if (usage
192 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
252 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
262 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument
355 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
365 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
H A Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
H A Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8960/libgralloc/
H A Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument
73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) {
79 err = mAllocCtrl->allocate(data, usage);
95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) {
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) {
107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
112 if (usage & (GRALLOC_USAGE_HW_TEXTURE |
115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL)
123 if (usage
175 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument
235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument
245 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument
339 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
349 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
H A Dgpu.h39 int gralloc_alloc_buffer(size_t size, int usage,
46 int alloc_impl(int w, int h, int format, int usage,
51 int format, int usage,
54 int gralloc_alloc_framebuffer_locked(size_t size, int usage,
57 int gralloc_alloc_framebuffer(size_t size, int usage,
64 int usage, buffer_handle_t* pHandle,
H A Dalloc_controller.cpp56 static bool canFallback(int usage, bool triedSystem) argument
70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED))
72 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY))
78 static bool useUncached(int usage) argument
81 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP)
83 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED)
179 int IonController::allocate(alloc_data& data, int usage) argument
184 data.uncached = useUncached(usage);
187 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP)
190 if(usage
353 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
H A Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8084/libgralloc/
H A Dgpu.h38 int gralloc_alloc_buffer(size_t size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
H A Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument
73 if ((usage & GRALLOC_USAGE_PROTECTED) &&
74 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) {
82 err = mAllocCtrl->allocate(data, usage);
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
105 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
115 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) {
116 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
128 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
132 if (usage
189 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
249 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
259 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument
352 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
362 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
H A Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8909/libgralloc/
H A Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
H A Dgpu.cpp51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument
69 if ((usage & GRALLOC_USAGE_PROTECTED) &&
70 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) {
78 err = mAllocCtrl->allocate(data, usage);
94 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
97 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) {
104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) {
115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
127 if (usage
203 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
265 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
275 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument
368 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
378 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
H A Dalloc_controller.h44 virtual int allocate(alloc_data& data, int usage) = 0;
60 virtual int allocate(alloc_data& data, int usage);
/hardware/qcom/display/msm8994/libgralloc/
H A Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
H A Dgpu.cpp59 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument
77 if (usage & GRALLOC_USAGE_PROTECTED) {
85 err = mAllocCtrl->allocate(data, usage);
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
118 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) {
119 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) {
131 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
135 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
139 if (usage
208 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
270 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
280 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument
382 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
392 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
/hardware/qcom/display/msm8996/libgralloc/
H A Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
H A Dgpu.cpp58 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument
74 if (usage & GRALLOC_USAGE_PROTECTED) {
75 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) {
86 err = mAllocCtrl->allocate(data, usage);
102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) {
106 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) {
110 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) {
114 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) {
118 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) {
122 if (usage
192 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument
251 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument
261 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument
377 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
387 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument
[all...]
/hardware/qcom/display/msm8998/libgralloc/
H A Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/libhardware/include/hardware/
H A Dgralloc.h123 /* mask for the software usage bit-mask */
140 /* implementation-specific private usage flags */
193 * specified usage. This call may block, for instance if the h/w needs
202 * If usage specifies GRALLOC_USAGE_SW_*, vaddr is filled with the address
221 * If the buffer was created with a usage mask incompatible with the
222 * requested usage flags here, -EINVAL is returned.
227 buffer_handle_t handle, int usage,
266 buffer_handle_t handle, int usage,
281 buffer_handle_t handle, int usage,
311 buffer_handle_t handle, int usage,
394 map_usage_to_memtrack(uint32_t usage) argument
[all...]
/hardware/intel/img/hwcomposer/merrifield/ips/penwell/
H A DPnwPrimaryPlane.cpp46 uint32_t usage; local
50 usage = tmpBuf.getUsage();
51 if (!handle || (GRALLOC_USAGE_HW_FB & usage)) {
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
H A DHidLocal.cpp28 if (usage.empty()) {
31 return (index >= usage.size()) ? usage.back() : usage[index];
62 usage.push_back(unsignedInteger);
71 LOG_E << "usage min not set when saw usage max " << i << LOG_ENDL;
77 usage.push_back(j);
/hardware/intel/img/hwcomposer/merrifield/include/
H A DGraphicBuffer.h40 static bool isProtectedUsage(uint32_t usage);
43 static bool isCompressionUsage(uint32_t usage);
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/
H A DGraphicBuffer.h40 static bool isProtectedUsage(uint32_t usage);
43 static bool isCompressionUsage(uint32_t usage);

Completed in 418 milliseconds

123456789