Home
last modified time | relevance | path

Searched refs:hardwareBuffer (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp64 AHardwareBuffer *hardwareBuffer; in testInvalidSharedMem_NoCrash() local
79 AHardwareBuffer_allocate(&desc, &hardwareBuffer); in testInvalidSharedMem_NoCrash()
80 AHardwareBuffer_lock(hardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, in testInvalidSharedMem_NoCrash()
83 const native_handle_t *resourceHandle = AHardwareBuffer_getNativeHandle(hardwareBuffer); in testInvalidSharedMem_NoCrash()
100 AHardwareBuffer_release(hardwareBuffer); in testInvalidSharedMem_NoCrash()
/frameworks/base/native/android/
Dhardware_buffer_jni.cpp29 jobject AHardwareBuffer_toHardwareBuffer(JNIEnv* env, AHardwareBuffer* hardwareBuffer) { in AHardwareBuffer_toHardwareBuffer() argument
30 return android_hardware_HardwareBuffer_createFromAHardwareBuffer(env, hardwareBuffer); in AHardwareBuffer_toHardwareBuffer()
/frameworks/base/libs/hwui/hwui/
DBitmap.h85 static sk_sp<Bitmap> createFrom(AHardwareBuffer* hardwareBuffer,
89 static sk_sp<Bitmap> createFrom(AHardwareBuffer* hardwareBuffer,
136 AHardwareBuffer* hardwareBuffer();
191 static sk_sp<Bitmap> createFrom(AHardwareBuffer* hardwareBuffer, const SkImageInfo& info,
DBitmap.cpp184 sk_sp<Bitmap> Bitmap::createFrom(AHardwareBuffer* hardwareBuffer, sk_sp<SkColorSpace> colorSpace, in createFrom() argument
187 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in createFrom()
189 return createFrom(hardwareBuffer, info, bufferDesc, palette); in createFrom()
192 sk_sp<Bitmap> Bitmap::createFrom(AHardwareBuffer* hardwareBuffer, SkColorType colorType, in createFrom() argument
196 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in createFrom()
199 return createFrom(hardwareBuffer, info, bufferDesc, palette); in createFrom()
202 sk_sp<Bitmap> Bitmap::createFrom(AHardwareBuffer* hardwareBuffer, const SkImageInfo& info, in createFrom() argument
207 return sk_sp<Bitmap>(new Bitmap(hardwareBuffer, info, rowBytes, palette)); in createFrom()
392 AHardwareBuffer* Bitmap::hardwareBuffer() { in hardwareBuffer() function in android::Bitmap
/frameworks/base/libs/hwui/
DDeferredLayerUpdater.cpp162 AHardwareBuffer* hardwareBuffer = ASurfaceTexture_dequeueBuffer( in apply() local
167 if (hardwareBuffer) { in apply()
170 hardwareBuffer, dataspace, newContent, in apply()
173 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in apply()
176 AHardwareBuffer_release(hardwareBuffer); in apply()
/frameworks/av/media/ndk/tests/
DAImageReaderWindowTest.cpp95 AHardwareBuffer *hardwareBuffer = nullptr; in HandleImageAvailable() local
96 ret = AImage_getHardwareBuffer(img.get(), &hardwareBuffer); in HandleImageAvailable()
98 ASSERT_NE(hardwareBuffer, nullptr); in HandleImageAvailable()
99 const native_handle_t *nh = AHardwareBuffer_getNativeHandle(hardwareBuffer); in HandleImageAvailable()
/frameworks/rs/
DrsGrallocConsumer.cpp151 AHardwareBuffer *hardwareBuffer = nullptr; in lockNextBuffer() local
152 ret = AImage_getHardwareBuffer(img, &hardwareBuffer); in lockNextBuffer()
153 if (ret != AMEDIA_OK || hardwareBuffer == nullptr) { in lockNextBuffer()
163 mAlloc[idx]->mHal.state.nativeBuffer = hardwareBuffer; in lockNextBuffer()
/frameworks/native/include/android/
Dhardware_buffer_jni.h69 AHardwareBuffer* hardwareBuffer) __INTRODUCED_IN(26);
/frameworks/base/core/jni/include/android_runtime/
Dandroid_hardware_HardwareBuffer.h33 JNIEnv* env, AHardwareBuffer* hardwareBuffer);
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareBufferRenderer.cpp72 auto* hardwareBuffer = HardwareBufferHelpers::AHardwareBuffer_fromHardwareBuffer(env, buffer); in android_graphics_HardwareBufferRenderer_create() local
76 proxy->setHardwareBuffer(hardwareBuffer); in android_graphics_HardwareBufferRenderer_create()
/frameworks/base/libs/hwui/platform/android/pipeline/skia/
DSkiaGpuPipeline.h41 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override;
/frameworks/base/core/java/android/window/
DScreenCapture.java192 public ScreenshotHardwareBuffer(HardwareBuffer hardwareBuffer, ColorSpace colorSpace, in ScreenshotHardwareBuffer() argument
194 mHardwareBuffer = hardwareBuffer; in ScreenshotHardwareBuffer()
211 private static ScreenshotHardwareBuffer createFromNative(HardwareBuffer hardwareBuffer, in createFromNative() argument
215 hardwareBuffer, in createFromNative()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java803 public static Bitmap wrapHardwareBuffer(@NonNull HardwareBuffer hardwareBuffer, in wrapHardwareBuffer() argument
805 final long usage = hardwareBuffer.getUsage(); in wrapHardwareBuffer()
815 Bitmap bitmap = nativeWrapHardwareBufferBitmap(hardwareBuffer, in wrapHardwareBuffer()
818 bitmap.mHardwareBuffer = new WeakReference<HardwareBuffer>(hardwareBuffer); in wrapHardwareBuffer()
2495 HardwareBuffer hardwareBuffer = mHardwareBuffer == null ? null : mHardwareBuffer.get(); in getHardwareBuffer() local
2496 if (hardwareBuffer == null || hardwareBuffer.isClosed()) { in getHardwareBuffer()
2497 hardwareBuffer = nativeGetHardwareBuffer(mNativePtr); in getHardwareBuffer()
2498 mHardwareBuffer = new WeakReference<HardwareBuffer>(hardwareBuffer); in getHardwareBuffer()
2500 return hardwareBuffer; in getHardwareBuffer()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java188 HardwareBuffer hardwareBuffer = bitmap.getHardwareBuffer(); in onCaptureSharedElementSnapshot() local
189 bundle.putParcelable(BUNDLE_SNAPSHOT_HARDWARE_BUFFER, hardwareBuffer); in onCaptureSharedElementSnapshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DRequestProcessorTest.kt182 return bitmap.hardwareBuffer == this.hardwareBuffer && bitmap.colorSpace == this.colorSpace in Bitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageCaptureImpl.kt54 return Bitmap.wrapHardwareBuffer(snapshot.hardwareBuffer, snapshot.colorSpace) in captureTask()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java771 MemoryFile memoryFile, HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
801 } else if (hardwareBuffer != null) { in createDirectChannelImpl()
802 if (hardwareBuffer.getFormat() != HardwareBuffer.BLOB) { in createDirectChannelImpl()
805 if (hardwareBuffer.getHeight() != 1) { in createDirectChannelImpl()
808 if (hardwareBuffer.getWidth() < MIN_DIRECT_CHANNEL_BUFFER_SIZE) { in createDirectChannelImpl()
813 if ((hardwareBuffer.getUsage() & HardwareBuffer.USAGE_SENSOR_DIRECT_DATA) == 0) { in createDirectChannelImpl()
817 size = hardwareBuffer.getWidth(); in createDirectChannelImpl()
820 -1, hardwareBuffer); in createDirectChannelImpl()
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp101 mRenderThread.queue().post([this, hardwareBuffer = buffer]() mutable { in setHardwareBuffer()
102 mContext->setHardwareBuffer(hardwareBuffer); in setHardwareBuffer()
103 if (hardwareBuffer) { in setHardwareBuffer()
104 AHardwareBuffer_release(hardwareBuffer); in setHardwareBuffer()
/frameworks/layoutlib/bridge/src/android/hardware/
DEmptySensorManager.java63 HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java185 final ScreenCapture.ScreenshotHardwareBuffer hardwareBuffer = captureScreen(); in prepare() local
186 if (hardwareBuffer == null) { in prepare()
191 final boolean isProtected = hasProtectedContent(hardwareBuffer.getHardwareBuffer()); in prepare()
192 if (!createSurfaceControl(hardwareBuffer.containsSecureLayers())) { in prepare()
203 && setScreenshotTextureAndSetViewport(hardwareBuffer, displayInfo.rotation))) { in prepare()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPenStylusActivity.kt53 mHardwareBuffer = image.hardwareBuffer!!
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp232 JNIEnv* env, AHardwareBuffer* hardwareBuffer) { in android_hardware_HardwareBuffer_createFromAHardwareBuffer() argument
233 GraphicBuffer* buffer = AHardwareBuffer_to_GraphicBuffer(hardwareBuffer); in android_hardware_HardwareBuffer_createFromAHardwareBuffer()
Dandroid_graphics_GraphicBuffer.cpp246 AHardwareBuffer* hardwareBuffer) { in android_graphics_GraphicBuffer_createFromAHardwareBuffer() argument
247 GraphicBuffer* buffer = GraphicBuffer::fromAHardwareBuffer(hardwareBuffer); in android_graphics_GraphicBuffer_createFromAHardwareBuffer()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaCpuPipeline.h40 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override {} in setHardwareBuffer() argument
/frameworks/base/libs/hwui/platform/host/pipeline/skia/
DSkiaGpuPipeline.h42 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override {} in setHardwareBuffer() argument

12