/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 64 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/ |
D | hardware_buffer_jni.cpp | 29 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/ |
D | Bitmap.h | 85 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,
|
D | Bitmap.cpp | 184 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/ |
D | DeferredLayerUpdater.cpp | 162 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/ |
D | AImageReaderWindowTest.cpp | 95 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/ |
D | rsGrallocConsumer.cpp | 151 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/ |
D | hardware_buffer_jni.h | 69 AHardwareBuffer* hardwareBuffer) __INTRODUCED_IN(26);
|
/frameworks/base/core/jni/include/android_runtime/ |
D | android_hardware_HardwareBuffer.h | 33 JNIEnv* env, AHardwareBuffer* hardwareBuffer);
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareBufferRenderer.cpp | 72 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/ |
D | SkiaGpuPipeline.h | 41 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override;
|
/frameworks/base/core/java/android/window/ |
D | ScreenCapture.java | 192 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/ |
D | Bitmap.java | 803 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/ |
D | SharedElementCallback.java | 188 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/ |
D | RequestProcessorTest.kt | 182 return bitmap.hardwareBuffer == this.hardwareBuffer && bitmap.colorSpace == this.colorSpace in Bitmap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ImageCaptureImpl.kt | 54 return Bitmap.wrapHardwareBuffer(snapshot.hardwareBuffer, snapshot.colorSpace) in captureTask()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 771 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/ |
D | RenderProxy.cpp | 101 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/ |
D | EmptySensorManager.java | 63 HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 185 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/ |
D | PenStylusActivity.kt | 53 mHardwareBuffer = image.hardwareBuffer!!
|
/frameworks/base/core/jni/ |
D | android_hardware_HardwareBuffer.cpp | 232 JNIEnv* env, AHardwareBuffer* hardwareBuffer) { in android_hardware_HardwareBuffer_createFromAHardwareBuffer() argument 233 GraphicBuffer* buffer = AHardwareBuffer_to_GraphicBuffer(hardwareBuffer); in android_hardware_HardwareBuffer_createFromAHardwareBuffer()
|
D | android_graphics_GraphicBuffer.cpp | 246 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/ |
D | SkiaCpuPipeline.h | 40 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override {} in setHardwareBuffer() argument
|
/frameworks/base/libs/hwui/platform/host/pipeline/skia/ |
D | SkiaGpuPipeline.h | 42 void setHardwareBuffer(AHardwareBuffer* hardwareBuffer) override {} in setHardwareBuffer() argument
|