Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/utils/
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()
/frameworks/rs/support/jni/
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()
/frameworks/av/services/camera/virtualcamera/util/
DUtil.cc45 const uint32_t usageFlags) in YCbCrLockGuard() argument
52 mLockStatus = gBuffer->lockYCbCr(usageFlags, &mYCbCr); in YCbCrLockGuard()
86 const uint64_t usageFlags, sp<Fence> fence) { in PlanesLockGuard() argument
94 hwBuffer.get(), usageFlags, rawFence, nullptr, &mPlanes)); in PlanesLockGuard()
DUtil.h44 YCbCrLockGuard(std::shared_ptr<AHardwareBuffer> hwBuffer, uint32_t usageFlags);
74 uint64_t usageFlags, sp<Fence> fence = nullptr);
/frameworks/rs/driver/
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()
394 …} else if (alloc->mHal.state.usageFlags == (RS_ALLOCATION_USAGE_INCREMENTAL_SUPPORT | RS_ALLOCATIO… in rsdAllocationInitStrided()
410 … if (!(alloc->mHal.state.usageFlags == (RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_SHARED) || in rsdAllocationInitStrided()
411 …alloc->mHal.state.usageFlags == (RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_SHARED | RS_ALLO… in rsdAllocationInitStrided()
452 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) { in rsdAllocationInitStrided()
459 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) { in rsdAllocationInitStrided()
472 if (alloc->mHal.state.usageFlags & ~RS_ALLOCATION_USAGE_SCRIPT) { in rsdAllocationInitStrided()
[all …]
/frameworks/rs/
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()
DrsFBOCache.cpp52 if (!(a->getIsTexture() || (a->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT))) { in bindColorTarget()
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()
/frameworks/native/services/surfaceflinger/tests/
DDumpsys_test.cpp89 uint64_t usageFlags = BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN | in TEST() local
93 sp<GraphicBuffer>::make(1u, 1u, PIXEL_FORMAT_RGBA_8888, 1u, usageFlags, "test"); in TEST()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp115 uint64_t usageFlags = DEFAULT_USAGE; in setProtected() local
117 usageFlags |= GRALLOC_USAGE_PROTECTED; in setProtected()
119 const int status = native_window_set_usage(mNativeWindow.get(), usageFlags); in setProtected()
/frameworks/rs/driver/runtime/
Drs_structs.h40 uint32_t usageFlags; member
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()
/frameworks/native/services/surfaceflinger/FrontEnd/
DRequestedLayerState.cpp192 const uint64_t usageFlags = hasBuffer ? externalTexture->getUsage() : 0; in merge() local
193 if (oldUsageFlags != usageFlags) { in merge()
/frameworks/native/libs/gui/tests/
DEndToEndNativeInputTest.cpp416 int64_t usageFlags = BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN | in postBuffer() local
419 new GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, 1, usageFlags, "test"); in postBuffer()