Home
last modified time | relevance | path

Searched refs:HardwareBuffer (Results 1 – 25 of 34) sorted by relevance

12

/packages/services/Car/tests/CarLibUnitTest/src/android/car/evs/
DCarEvsManagerUnitTest.java40 import android.hardware.HardwareBuffer;
176 @IgnoreUnderRavenwood(blockedBy = HardwareBuffer.class)
194 HardwareBuffer hwbuffer = in testStartVideoStreamWithoutToken()
195 HardwareBuffer.create(/* width= */ 64, /* height= */ 32, in testStartVideoStreamWithoutToken()
196 /* format= */ HardwareBuffer.RGBA_8888, in testStartVideoStreamWithoutToken()
198 /* usage= */ HardwareBuffer.USAGE_CPU_READ_OFTEN); in testStartVideoStreamWithoutToken()
328 @IgnoreUnderRavenwood(blockedBy = HardwareBuffer.class)
331 HardwareBuffer hwbuffer = in testReturnFrameBuffer()
332 HardwareBuffer.create(/* width= */ 64, /* height= */ 32, in testReturnFrameBuffer()
333 /* format= */ HardwareBuffer.RGBA_8888, in testReturnFrameBuffer()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DCarEvsServiceUnitTest.java71 import android.hardware.HardwareBuffer;
327 HardwareBuffer buffer = in testOnEvent()
328 HardwareBuffer.create(/* width= */ 64, /* height= */ 32, in testOnEvent()
329 /* format= */ HardwareBuffer.RGBA_8888, in testOnEvent()
331 /* usage= */ HardwareBuffer.USAGE_CPU_READ_OFTEN); in testOnEvent()
377 HardwareBuffer buffer = in testInvalidStreamCallback()
378 HardwareBuffer.create(/* width= */ 64, /* height= */ 32, in testInvalidStreamCallback()
379 /* format= */ HardwareBuffer.RGBA_8888, in testInvalidStreamCallback()
381 /* usage= */ HardwareBuffer.USAGE_CPU_READ_OFTEN); in testInvalidStreamCallback()
782 HardwareBuffer buffer = in testStartActivity()
[all …]
/packages/services/Car/car-lib/src/android/car/evs/
DCarEvsBufferDescriptor.java32 import android.hardware.HardwareBuffer;
69 private final HardwareBuffer mHardwareBuffer;
78 public CarEvsBufferDescriptor(int id, @NonNull final HardwareBuffer buffer) { in CarEvsBufferDescriptor()
92 @NonNull HardwareBuffer buffer) { in CarEvsBufferDescriptor()
104 mHardwareBuffer = Objects.requireNonNull(HardwareBuffer.CREATOR.createFromParcel(in)); in CarEvsBufferDescriptor()
160 public HardwareBuffer getHardwareBuffer() { in getHardwareBuffer()
/packages/services/Car/cpp/evs/manager/aidl/utils/include/
DUtils.h48 static aidlgfx::common::HardwareBuffer makeHwBufferFromHidlBuffer(
51 static aidlgfx::common::HardwareBuffer makeHwBufferFromHidlBuffer(
67 const hidlgfx::common::V1_2::HardwareBuffer& hidlBuffer);
105 static hidlgfx::common::V1_2::HardwareBuffer makeToHidl(
106 const aidlgfx::common::HardwareBuffer& aidlDesc, bool doDup = true);
134 static aidlgfx::common::HardwareBuffer dupHardwareBuffer(
135 const aidlgfx::common::HardwareBuffer& buffer, bool doDup);
/packages/modules/NeuralNetworks/common/types/src/
DSharedMemoryAndroid.cpp132 size_t getSize(const Memory::HardwareBuffer& memory) { in getSize()
174 GeneralResult<Mapping> map(const Memory::HardwareBuffer& memory) { in map()
246 const Memory::HardwareBuffer::Deleter deleter = (takeOwnership ? freeHardwareBuffer : freeNoop); in createSharedMemoryFromAHWB()
247 Memory::HardwareBuffer handle = {.handle = Memory::HardwareBuffer::Handle(ahwb, deleter)}; in createSharedMemoryFromAHWB()
257 bool isAhwbBlob(const Memory::HardwareBuffer& memory) { in isAhwbBlob()
273 if (!std::holds_alternative<Memory::HardwareBuffer>(memory->handle)) { in isAhwbBlob()
276 return isAhwbBlob(std::get<Memory::HardwareBuffer>(memory->handle)); in isAhwbBlob()
/packages/services/Car/cpp/evs/apps/default/src/
DUtils.cpp27 using aidl::android::hardware::graphics::common::HardwareBuffer;
42 HardwareBuffer dupHardwareBuffer(const HardwareBuffer& buffer) { in dupHardwareBuffer()
43 HardwareBuffer dup = { in dupHardwareBuffer()
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
DDisplayHashingServiceImplTest.java27 import android.hardware.HardwareBuffer;
47 private final HardwareBuffer mBuffer = HardwareBuffer.create(10, 10,
48 HardwareBuffer.RGBX_8888, 1, HardwareBuffer.USAGE_CPU_READ_RARELY);
DMockImageHashManager.java18 import android.hardware.HardwareBuffer;
26 @Size(8) byte[] generateHash(HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash()
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/
DImageHashManager.java19 import android.hardware.HardwareBuffer;
35 private static native byte[] nativeGenerateHash(HardwareBuffer hardwareBuffer, in nativeGenerateHash()
39 @Size(8) byte[] generateHash(@NonNull HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash()
DDisplayHashingServiceImpl.java23 import android.hardware.HardwareBuffer;
63 @NonNull HardwareBuffer buffer, @NonNull Rect bounds, in onGenerateDisplayHash()
/packages/services/Car/cpp/computepipe/aidl/android/automotive/computepipe/runner/
DPacketDescriptor.aidl19 import android.hardware.graphics.common.HardwareBuffer;
46 HardwareBuffer handle;
/packages/services/Car/car-lib/src/com/android/car/internal/evs/
DEvsHalWrapper.java19 import android.hardware.HardwareBuffer;
33 void onFrameEvent(int id, HardwareBuffer buffer); in onFrameEvent()
/packages/services/Car/cpp/evs/manager/aidl/utils/src/
DUtils.cpp38 using ::aidl::android::hardware::graphics::common::HardwareBuffer;
45 using HIDLHardwareBuffer = ::android::hardware::graphics::common::V1_2::HardwareBuffer;
87 HardwareBuffer Utils::makeHwBufferFromHidlBuffer(const hidlevs::V1_0::BufferDesc& hidlBuffer, in makeHwBufferFromHidlBuffer()
95 HardwareBuffer hwBuffer = { in makeHwBufferFromHidlBuffer()
126 HardwareBuffer Utils::makeHwBufferFromHidlBuffer(const hidlevs::V1_1::BufferDesc& hidlBuffer, in makeHwBufferFromHidlBuffer()
134 HardwareBuffer hwBuffer = { in makeHwBufferFromHidlBuffer()
181 HIDLHardwareBuffer Utils::makeToHidl(const HardwareBuffer& aidlBuffer, bool doDup) { in makeToHidl()
538 HardwareBuffer Utils::dupHardwareBuffer(const HardwareBuffer& buffer, bool doDup) { in dupHardwareBuffer()
539 HardwareBuffer dup = { in dupHardwareBuffer()
/packages/services/Car/service/jni/evs/
DStreamHandler.cpp36 using ::aidl::android::hardware::graphics::common::HardwareBuffer;
57 HardwareBuffer dupHardwareBuffer(const HardwareBuffer& buffer, bool doDup) { in dupHardwareBuffer()
58 HardwareBuffer dup = { in dupHardwareBuffer()
/packages/services/Car/service-builtin/src/com/android/car/evs/
DEvsHalWrapperImpl.java19 import android.hardware.HardwareBuffer;
174 private void postNativeFrameHandler(int id, HardwareBuffer buffer) { in postNativeFrameHandler()
/packages/services/Car/libs/car-evs-helper-lib/src/com/android/car/internal/evs/
DGLES20CarEvsBufferRenderer.java22 import android.hardware.HardwareBuffer;
204 HardwareBuffer buffer = bufferToRender.getHardwareBuffer(); in onDrawFrame()
365 private native boolean nUpdateTexture(HardwareBuffer buffer, int textureId); in nUpdateTexture()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraController.java27 import android.hardware.HardwareBuffer;
297 HardwareBuffer hardwareBuffer;
681 long usage = HardwareBuffer.USAGE_CPU_READ_OFTEN | HardwareBuffer.USAGE_VIDEO_ENCODE; in setWebcamStreamConfig()
689 .setDefaultHardwareBufferFormat(HardwareBuffer.YCBCR_420_888) in setWebcamStreamConfig()
751 long usage = HardwareBuffer.USAGE_CPU_READ_OFTEN; in startShowingCameraUnavailableLogoNoOffload()
759 .setDefaultHardwareBufferFormat(HardwareBuffer.RGBA_8888) in startShowingCameraUnavailableLogoNoOffload()
1682 public HardwareBuffer buffer;
1683 public ImageAndBuffer(Image i, HardwareBuffer b) { in ImageAndBuffer()
DDeviceAsWebcamFgService.java28 import android.hardware.HardwareBuffer;
570 public native int nativeEncodeImage(HardwareBuffer buffer, long timestamp, int rotation); in nativeEncodeImage()
/packages/services/Car/cpp/computepipe/aidl/aidl_api/android.automotive.computepipe.runner/1/android/automotive/computepipe/runner/
DPacketDescriptor.aidl24 android.hardware.graphics.common.HardwareBuffer handle;
/packages/services/Car/cpp/computepipe/aidl/aidl_api/android.automotive.computepipe.runner/current/android/automotive/computepipe/runner/
DPacketDescriptor.aidl24 android.hardware.graphics.common.HardwareBuffer handle;
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h654 struct HardwareBuffer { struct
670 std::variant<Ashmem, Fd, HardwareBuffer, Unknown> handle;
DSharedMemory.h99 bool isAhwbBlob(const Memory::HardwareBuffer& memory);
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DMockEvsHal.cpp59 using ::aidl::android::hardware::graphics::common::HardwareBuffer;
89 HardwareBuffer copyHardwareBuffer(const HardwareBuffer& buffer, bool doDup) { in copyHardwareBuffer()
90 HardwareBuffer copied = { in copyHardwareBuffer()
/packages/services/Car/service/src/com/android/car/evs/
DStateMachine.java45 import android.hardware.HardwareBuffer;
163 public void onFrameEvent(int id, HardwareBuffer buffer) { in onFrameEvent()
255 private int processNewFrame(int id, @NonNull HardwareBuffer buffer) { in processNewFrame()
/packages/modules/NeuralNetworks/tools/api/
DTypes.t180 struct HardwareBuffer {
196 std::variant<Ashmem, Fd, HardwareBuffer, Unknown> handle;

12