Home
last modified time | relevance | path

Searched refs:usageFlags (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSurfaceUtils.java59 long usageFlags = nativeDetectSurfaceUsageFlags(surface); in isSurfaceForPreview() local
64 boolean previewConsumer = ((usageFlags & disallowedFlags) == 0 in isSurfaceForPreview()
65 && (usageFlags & allowedFlags) != 0); in isSurfaceForPreview()
80 long usageFlags = nativeDetectSurfaceUsageFlags(surface); in isSurfaceForHwVideoEncoder() local
84 boolean videoEncoderConsumer = ((usageFlags & disallowedFlags) == 0 in isSurfaceForHwVideoEncoder()
85 && (usageFlags & allowedFlags) != 0); in isSurfaceForHwVideoEncoder()
201 long usageFlags = nativeDetectSurfaceUsageFlags(output); in isFlexibleConsumer() local
209 boolean flexibleConsumer = ((usageFlags & disallowedFlags) == 0 in isFlexibleConsumer()
210 && (usageFlags & allowedFlags) != 0); in isFlexibleConsumer()
/aosp12/frameworks/rs/support/jni/
H A Dandroid_rscompat_usage_io_driver.cpp76 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_INPUT) && in rscAllocationDestroy()
77 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT)) { in rscAllocationDestroy()
83 if ((alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT) && in rscAllocationDestroy()
84 (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) { in rscAllocationDestroy()
100 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) { in rscAllocationIoSend()
/aosp12/frameworks/rs/driver/
H A DrsdAllocation.cpp164 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_INPUT) { in UploadToTexture()
188 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) { in UploadToTexture()
388 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT) { in rsdAllocationInitStrided()
390 } else if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_INPUT) { in rsdAllocationInitStrided()
472 if (alloc->mHal.state.usageFlags & ~RS_ALLOCATION_USAGE_SCRIPT) { in rsdAllocationInitStrided()
573 if ((alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT) && in rsdAllocationDestroy()
574 (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) { in rsdAllocationDestroy()
600 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SHARED) { in rsdAllocationResize()
688 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SHARED) { in rsdAllocationSyncAll()
768 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) { in rsdAllocationSetSurface()
[all …]
/aosp12/frameworks/rs/
H A DrsAllocation.h58 uint32_t usageFlags; member
159 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) != 0; in getIsScript()
162 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) != 0; in getIsTexture()
165 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET) != 0; in getIsRenderTarget()
168 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) != 0; in getIsBufferObject()
H A DrsFBOCache.cpp52 if (!(a->getIsTexture() || (a->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT))) { in bindColorTarget()
H A DrsAllocation.cpp34 mHal.state.usageFlags = usages; in Allocation()
47 mHal.state.usageFlags = alloc->mHal.state.usageFlags; in Allocation()
363 prefix, mHal.drvState.lod[0].mallocPtr, mHal.state.usageFlags, mHal.state.mipmapControl); in dumpLOGV()
633 if (mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) { in ioReceive()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DRenderSurface.cpp114 uint64_t usageFlags = DEFAULT_USAGE; in setProtected() local
116 usageFlags |= GRALLOC_USAGE_PROTECTED; in setProtected()
118 const int status = native_window_set_usage(mNativeWindow.get(), usageFlags); in setProtected()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
H A DPermissionUsages.java115 long filterEndTimeMillis, int usageFlags, @NonNull LoaderManager loaderManager, in load() argument
119 filterEndTimeMillis, usageFlags, loaderManager, getUiInfo, in load()
129 long filterEndTimeMillis, int usageFlags, @NonNull LoaderManager loaderManager, in load() argument
139 args.putInt(KEY_USAGE_FLAGS, usageFlags); in load()
/aosp12/hardware/google/graphics/common/libhwc2.1/libdevice/
H A DExynosLayer.cpp717 src_img->usageFlags = 0xb00; in setSrcExynosImage()
749 src_img->usageFlags = 0x0; in setSrcExynosImage()
767 src_img->usageFlags = gmeta.producer_usage; in setSrcExynosImage()
816 dst_img->usageFlags = 0x0; in setDstExynosImage()
818 dst_img->usageFlags = VendorGraphicBufferMeta::get_producer_usage(handle); in setDstExynosImage()
822 dst_img->usageFlags = 0xb00; in setDstExynosImage()
H A DExynosDisplay.cpp4335 src_img->usageFlags = gmeta.producer_usage; in setCompositionTargetExynosImage()
4339 src_img->usageFlags = 0; in setCompositionTargetExynosImage()
4368 dst_img->usageFlags = 0; in setCompositionTargetExynosImage()
/aosp12/frameworks/rs/driver/runtime/
H A Drs_structs.h40 uint32_t usageFlags; member
H A Drs_sample.c542 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
595 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
640 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
/aosp12/hardware/google/graphics/common/libhwc2.1/libresource/
H A DExynosMPP.cpp421 if (getDrmMode(src.usageFlags) != NO_DRM) in isSupportedCapability()
434 if (getDrmMode(src.usageFlags) == NO_DRM) in isSupportedDRM()
1090 mDstImgs[index].bufferType, getBufferType(dst.usageFlags), dst.usageFlags, in needDstBufRealloc()
1096 (mDstImgs[index].bufferType != getBufferType(dst.usageFlags)) || in needDstBufRealloc()
1125 (mPrevFrameInfo.srcInfo[i].usageFlags != mAssignedSources[i]->mSrcImg.usageFlags) || in canUsePrevFrame()
1684 allocFormat, dst.usageFlags, mCurrentDstBuf); in doPostProcessing()
2095 if (getDrmMode(src.usageFlags) == NO_DRM) { in isSupported()
2507 (getDrmMode(mAssignedSources[i]->mSrcImg.usageFlags) != NO_DRM))) { in getAssignedCapacity()
/aosp12/frameworks/native/libs/gui/tests/
H A DEndToEndNativeInputTest.cpp364 int64_t usageFlags = BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN | in postBuffer() local
367 new GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, 1, usageFlags, "test"); in postBuffer()
/aosp12/hardware/google/graphics/common/libhwc2.1/libhwchelper/
H A DExynosHWCHelper.h363 uint64_t usageFlags = 0; member
H A DExynosHWCHelper.cpp476 img.usageFlags, img.layerFlags, img.acquireFenceFd, img.releaseFenceFd); in dumpExynosImage()