/hardware/qcom/display/msm8996/sdm/libs/hwc/ |
H A D | blit_engine_c2d.cpp | 140 uint32_t usage) { 156 status = alloc_buffer(&blit_target_buffer_[i], width, height, format, usage); 319 uint32_t usage = 0; local 337 usage = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | GRALLOC_USAGE_HW_TEXTURE; 339 usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 343 INT(HAL_PIXEL_FORMAT_RGBA_8888), usage, width, height); 360 HAL_PIXEL_FORMAT_RGBA_8888, usage) < 0)) { 139 AllocateBlitTargetBuffers(uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
|
/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_priv_handle.h | 137 private_handle_t(int fd, unsigned int size, int usage, int buf_type, int format, int w, int h) argument 139 static_cast<gralloc1_producer_usage_t>(usage), 140 static_cast<gralloc1_consumer_usage_t>(usage)) {
|
H A D | gr_allocator.cpp | 374 int usage = 0; local 377 usage = GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC; 453 // the usage bits, gralloc assigns a format. 477 // If no other usage flags are detected, default the 518 // TODO(user) : As of now relying only on producer usage 615 // Allow UBWC, if an OpenGL client sets UBWC usage flag and GPU plus MDP 617 // usage flag and MDP supports the format. 626 // Allow UBWC, only if CPU usage flags are not set
|
/hardware/qcom/msm8x84/kernel-headers/linux/ |
H A D | qseecom.h | 102 enum qseecom_key_management_usage_type usage; member in struct:qseecom_create_key_req 106 enum qseecom_key_management_usage_type usage; member in struct:qseecom_wipe_key_req 114 enum qseecom_key_management_usage_type usage; member in struct:qseecom_update_key_userinfo_req
|
/hardware/qcom/msm8x84/original-kernel-headers/linux/ |
H A D | qseecom.h | 136 enum qseecom_key_management_usage_type usage; member in struct:qseecom_create_key_req 140 enum qseecom_key_management_usage_type usage; member in struct:qseecom_wipe_key_req 148 enum qseecom_key_management_usage_type usage; member in struct:qseecom_update_key_userinfo_req
|
/hardware/google/av/codec2/vndk/ |
H A D | C2AllocatorGralloc.cpp | 35 * Usage mask that is passed through from gralloc to Codec 2.0 usage. 45 C2MemoryUsage C2AndroidMemoryUsage::FromGrallocUsage(uint64_t usage) { argument 48 ((usage & GRALLOC_USAGE_SW_READ_MASK) ? C2MemoryUsage::CPU_READ : 0) | 49 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) ? C2MemoryUsage::CPU_WRITE : 0) | 50 ((usage & GRALLOC_USAGE_PROTECTED) ? C2MemoryUsage::READ_PROTECTED : 0) | 51 (usage & PASSTHROUGH_USAGE_MASK)); 156 // we cannot validate width/height/format/usage without accessing gralloc driver 162 uint32_t width, uint32_t height, uint32_t format, uint64_t usage, 170 width, height, format, uint32_t(usage & 0xFFFFFFFF), uint32_t(usage >> 3 160 WrapNativeHandle( const native_handle_t *const handle, uint32_t width, uint32_t height, uint32_t format, uint64_t usage, uint32_t stride, uint64_t igbp_id = 0, uint32_t igbp_slot = 0) argument 209 Import( const C2Handle *const handle, uint32_t *width, uint32_t *height, uint32_t *format, uint64_t *usage, uint32_t *stride, uint64_t *igbp_id, uint32_t *igbp_slot) argument 238 WrapNativeCodec2GrallocHandle( const native_handle_t *const handle, uint32_t width, uint32_t height, uint32_t format, uint64_t usage, uint32_t stride, uint64_t igbp_id, uint32_t igbp_slot) argument 310 map( C2Rect rect, C2MemoryUsage usage, C2Fence *fence, C2PlanarLayout *layout , uint8_t **addr ) argument 574 _UnwrapNativeCodec2GrallocMetadata( const C2Handle *const handle, uint32_t *width, uint32_t *height, uint32_t *format,uint64_t *usage, uint32_t *stride, uint64_t *igbp_id, uint32_t *igbp_slot) argument 596 newGraphicAllocation( uint32_t width, uint32_t height, uint32_t format, const C2MemoryUsage &usage, std::shared_ptr<C2GraphicAllocation> *allocation) argument 699 newGraphicAllocation( uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, std::shared_ptr<C2GraphicAllocation> *allocation) argument [all...] |
H A D | C2AllocatorIon.cpp | 127 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, 230 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { argument 246 if (usage.expected & C2MemoryUsage::CPU_READ) { 249 if (usage.expected & C2MemoryUsage::CPU_WRITE) { 368 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { 369 return mImpl->map(offset, size, usage, fence, addr); 468 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { 473 MapperKey key = std::make_pair(usage.expected, capacity); 477 res = mUsageMapper(usage, capacity, align, heapMask, flags); 484 // add usage t 367 map( size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) argument 467 mapUsage( C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) argument 503 newLinearAllocation( uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation> *allocation) argument [all...] |
/hardware/google/av/media/codecs/mpeg4_h263/ |
H A D | C2SoftMpeg4Dec.cpp | 339 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local 340 c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16), mHeight, format, usage, &mOutBlock);
|
/hardware/google/av/media/codecs/xaac/ |
H A D | C2SoftXaacDec.cpp | 259 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; local 260 // TODO: error handling, proper usage, etc. 262 pool->fetchLinearBlock(mOutputDrainBufferWritePos, usage, &block);
|
/hardware/google/av/media/sfplugin/ |
H A D | CCodecBufferChannel.cpp | 375 const C2MemoryUsage &usage, 385 width, height, pixelFormat, usage, &block); 653 // TODO: read usage from intf 688 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; local 691 c2_status_t err = mPool->fetchLinearBlock(size, usage, &block); 827 // TODO: read usage from intf 828 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; variable 830 mPool, mFormat, HAL_PIXEL_FORMAT_YV12, usage, mLocalBufferPool); 857 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; 859 pool, format, HAL_PIXEL_FORMAT_YV12, usage, lb 371 AllocateGraphicBuffer( const std::shared_ptr<C2BlockPool> &pool, const sp<AMessage> &format, uint32_t pixelFormat, const C2MemoryUsage &usage, const std::shared_ptr<LocalBufferPool> &localBufferPool) argument [all...] |
/hardware/intel/img/hwcomposer/merrifield/include/pvr/hal/ |
H A D | img_gralloc_common_public.h | 128 /* This is used for buffer usage validation */ 129 int usage; member in struct:__anon814 264 /* Supported HW usage bits. If this is GRALLOC_USAGE_HW_MASK, all usages
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/pvr/hal/ |
H A D | img_gralloc_common_public.h | 128 /* This is used for buffer usage validation */ 129 int usage; member in struct:__anon859 264 /* Supported HW usage bits. If this is GRALLOC_USAGE_HW_MASK, all usages
|
/hardware/interfaces/camera/device/3.4/default/include/ext_device_v3_4_impl/ |
H A D | ExternalCameraDeviceSession.h | 159 V3_2::BufferUsageFlags usage; member in struct:android::hardware::camera::device::V3_4::implementation::ExternalCameraDeviceSession::HalStreamBuffer
|
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/ |
H A D | Gralloc1On0Adapter.h | 131 gralloc1_error_t setProducerUsage(gralloc1_producer_usage_t usage) { argument 132 producerUsage = usage; 136 gralloc1_error_t setConsumerUsage(gralloc1_consumer_usage_t usage) { argument 137 consumerUsage = usage; 163 auto usage = static_cast<gralloc1_consumer_usage_t>(intUsage); local 165 &Descriptor::setConsumerUsage, usage); 189 auto usage = static_cast<gralloc1_producer_usage_t>(intUsage); local 191 &Descriptor::setProducerUsage, usage); 294 auto usage = GRALLOC1_CONSUMER_USAGE_NONE; local 296 &Buffer::getConsumerUsage, &usage); 305 auto usage = GRALLOC1_PRODUCER_USAGE_NONE; local [all...] |
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | HidRawSensor.cpp | 36 SP(HidDevice) device, uint32_t usage, const std::vector<HidParser::ReportPacket> &packets) member in namespace:android::SensorHalExt 54 LOG_E << "finding sensor control usage failed" << LOG_ENDL; 60 switch (usage) { 108 LOG_E << "Cannot find accuracy field in usage " 109 << std::hex << usage << std::dec << LOG_ENDL; 149 return std::find(std::begin(usages), std::end(usages), d.usage) 167 LOG_E << "Custome usage " << digest.usage << ", min must < max" << LOG_ENDL; 173 LOG_E << "Custome usage " << std::hex << digest.usage << st 393 find( const std::vector<HidParser::ReportPacket> &packets, unsigned int usage, int type, int id) argument [all...] |
/hardware/libhardware/tests/hwc/ |
H A D | cnativewindow.c | 320 TRACE("set usage %d\n", va_arg(ap,int)); 428 static aBuffer *cnw_alloc(CNativeWindow *win, unsigned format, unsigned usage) { argument 447 buf->usage = usage; 450 format, usage, &buf->handle, &buf->stride); 466 unsigned usage; local 503 usage = GRALLOC_USAGE_HW_FB | 508 aBuffer *buf = cnw_alloc(win, win->format, usage); 515 win->spare = cnw_alloc(win, win->format, usage);
|
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | audio_policy_hal.cpp | 101 /* force using a specific device category for the specified usage */ 103 audio_policy_force_use_t usage, 107 qap->apm->setForceUse((AudioSystem::force_use)usage, 111 /* retreive current device category forced for a given usage */ 114 audio_policy_force_use_t usage) 118 (AudioSystem::force_use)usage); 102 ap_set_force_use(struct audio_policy *pol, audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument 112 ap_get_force_use( const struct audio_policy *pol, audio_policy_force_use_t usage) argument
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
H A D | hwc_copybit.cpp | 512 int usage = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP; local 520 if (0 == alloc_buffer(&tmpHnd, tmp_w, tmp_h, format, usage) && tmpHnd) {
|
/hardware/qcom/display/msm8909/libgralloc/ |
H A D | alloc_controller.cpp | 96 static bool useUncached(const int& usage) { argument 97 if ((usage & GRALLOC_USAGE_PROTECTED) or 98 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or 99 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or 100 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 161 int usage = 0; local 164 usage = GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 167 getAlignedWidthAndHeight(w, h, f, usage, aligned_w, aligned_h); 223 int usage, int& aligned_w, int& aligned_h) 225 bool ubwc_enabled = isUBwcEnabled(format, usage); 222 getAlignedWidthAndHeight(int width, int height, int format, int usage, int& aligned_w, int& aligned_h) argument 465 allocate(alloc_data& data, int usage) argument 539 getSize(int format, int width, int height, int usage, const int alignedw, const int alignedh) argument 695 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 775 int usage = 0; local 870 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument 955 isUBwcEnabled(int format, int usage) argument [all...] |
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
H A D | blit_engine_c2d.cpp | 140 uint32_t usage) { 156 status = alloc_buffer(&blit_target_buffer_[i], width, height, format, usage); 327 uint32_t usage = 0; local 347 usage = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | GRALLOC_USAGE_HW_TEXTURE; 349 usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 356 INT(HAL_PIXEL_FORMAT_RGBA_8888), usage, aligned_w, aligned_h); 373 HAL_PIXEL_FORMAT_RGBA_8888, usage) < 0)) { 139 AllocateBlitTargetBuffers(uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
|
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
H A D | alloc_controller.cpp | 96 static bool useUncached(const int& usage) { argument 97 if ((usage & GRALLOC_USAGE_PROTECTED) or 98 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or 99 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or 100 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 161 int usage = 0; local 164 usage = GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 167 getAlignedWidthAndHeight(w, h, f, usage, aligned_w, aligned_h); 223 int usage, int& aligned_w, int& aligned_h) 225 bool ubwc_enabled = isUBwcEnabled(format, usage); 222 getAlignedWidthAndHeight(int width, int height, int format, int usage, int& aligned_w, int& aligned_h) argument 465 allocate(alloc_data& data, int usage) argument 539 getSize(int format, int width, int height, int usage, const int alignedw, const int alignedh) argument 695 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 775 int usage = 0; local 870 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument 955 isUBwcEnabled(int format, int usage) argument [all...] |
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
H A D | blit_engine_c2d.cpp | 140 uint32_t usage) { 156 status = alloc_buffer(&blit_target_buffer_[i], width, height, format, usage); 327 uint32_t usage = 0; local 347 usage = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | GRALLOC_USAGE_HW_TEXTURE; 349 usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 356 INT(HAL_PIXEL_FORMAT_RGBA_8888), usage, aligned_w, aligned_h); 373 HAL_PIXEL_FORMAT_RGBA_8888, usage) < 0)) { 139 AllocateBlitTargetBuffers(uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
H A D | hwc_copybit.cpp | 422 int usage = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP; local 424 if (0 == alloc_buffer(&tmpHnd, tmp_w, tmp_h, fbHandle->format, usage)){
|
/hardware/qcom/display/msm8996/libgralloc/ |
H A D | alloc_controller.cpp | 90 static bool useUncached(const int& usage) { argument 91 if ((usage & GRALLOC_USAGE_PROTECTED) or 92 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or 93 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or 94 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 168 int usage = 0; local 171 usage = GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; 174 getAlignedWidthAndHeight(w, h, f, usage, aligned_w, aligned_h); 218 int usage, int& aligned_w, int& aligned_h) 220 bool ubwc_enabled = isUBwcEnabled(format, usage); 217 getAlignedWidthAndHeight(int width, int height, int format, int usage, int& aligned_w, int& aligned_h) argument 450 allocate(alloc_data& data, int usage) argument 520 isMacroTileEnabled(int format, int usage) argument 553 getSize(int format, int width, int height, int usage, const int alignedw, const int alignedh) argument 701 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 719 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tiled, unsigned int& size) argument 796 int usage = 0; local 873 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument 957 isUBwcEnabled(int format, int usage) argument [all...] |
/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_allocator.cpp | 373 int usage = 0; local 376 usage = GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC; 452 // the usage bits, gralloc assigns a format. 476 // If no other usage flags are detected, default the 516 // TODO(user) : As of now relying only on producer usage 613 // Allow UBWC, if an OpenGL client sets UBWC usage flag and GPU plus MDP 615 // usage flag and MDP supports the format. 624 // Allow UBWC, only if CPU usage flags are not set
|