/cts/tests/sensor/jni/ |
D | android_hardware_cts_SensorDirectReportTest.cpp | 37 AHardwareBuffer *hardwareBuffer = AHardwareBuffer_fromHardwareBuffer(env, hardwareBufferObj); in readHardwareBuffer() local 38 if (hardwareBuffer == nullptr) { in readHardwareBuffer() 46 if (AHardwareBuffer_lock(hardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, in readHardwareBuffer() 55 AHardwareBuffer_unlock(hardwareBuffer, &fence); in readHardwareBuffer()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorRatePermissionDirectReportTestHelper.java | 82 private static native boolean nativeReadHardwareBuffer(HardwareBuffer hardwareBuffer, in nativeReadHardwareBuffer() argument 159 HardwareBuffer hardwareBuffer = HardwareBuffer.create( in getSensorEvents() local 164 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in getSensorEvents() 169 readEventsFromHardwareBuffer(token, hardwareBuffer, sensorEventCount); in getSensorEvents() 171 hardwareBuffer.close(); in getSensorEvents() 179 int token, HardwareBuffer hardwareBuffer, int sensorEventCount) { in readEventsFromHardwareBuffer() argument 186 nativeReadHardwareBuffer(hardwareBuffer, buffer, 0, 0, sharedMemorySize); in readEventsFromHardwareBuffer()
|
/cts/tests/sensor/sensorratepermission/DebuggableAPI31/src/android/sensorratepermission/cts/debuggableapi31/ |
D | DebuggableAPI31Test.java | 104 HardwareBuffer hardwareBuffer = HardwareBuffer.create( in testDirectChannel() local 108 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in testDirectChannel() 110 hardwareBuffer.close(); in testDirectChannel()
|
/cts/tests/sensor/sensorratepermission/DirectReportAPI30/src/android/sensorratepermission/cts/directreportapi30/ |
D | DirectReportAPI30Test.java | 148 HardwareBuffer hardwareBuffer = HardwareBuffer.create( in testSamplingRateMicToggleOffOnOff() local 152 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in testSamplingRateMicToggleOffOnOff() 174 hardwareBuffer, sensorEventCount); in testSamplingRateMicToggleOffOnOff() 176 hardwareBuffer.close(); in testSamplingRateMicToggleOffOnOff()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBufferRendererTests.kt | 83 fun testHardwareBufferRender() = hardwareBufferRendererTest { hardwareBuffer, renderer -> in <lambda>() method 99 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>() 167 ) = hardwareBufferRendererTest(format = format) { hardwareBuffer, renderer -> in <lambda>() method 195 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>() 223 hardwareBuffer, renderer -> in <lambda>() method 252 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>() 562 ) = hardwareBufferRendererTest { hardwareBuffer, renderer -> in <lambda>() method 603 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>() 678 block: (hardwareBuffer: HardwareBuffer, renderer: HardwareBufferRenderer) -> Unit, in <lambda>() 687 val hardwareBuffer = HardwareBuffer.create( in <lambda>() constant [all …]
|
D | HardwareRendererTests.kt | 222 val buffer = image.hardwareBuffer in testBasicDrawGpuConsumer()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTakeScreenshotTest.java | 421 final HardwareBuffer hardwareBuffer = screenshot.getHardwareBuffer(); in verifyScreenshotResult() local 422 assertThat(hardwareBuffer).isNotNull(); in verifyScreenshotResult() 423 assertThat(hardwareBuffer.getWidth()).isEqualTo(expectedWidth); in verifyScreenshotResult() 424 assertThat(hardwareBuffer.getHeight()).isEqualTo(expectedHeight); in verifyScreenshotResult() 428 assertThat(Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)).isNotNull(); in verifyScreenshotResult()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 139 private static native boolean nativeReadHardwareBuffer(HardwareBuffer hardwareBuffer, in nativeReadHardwareBuffer() argument 1277 HardwareBuffer hardwareBuffer; in allocateHardwareBuffer() local 1279 hardwareBuffer = HardwareBuffer.create( in allocateHardwareBuffer() 1283 return hardwareBuffer; in allocateHardwareBuffer() 1299 HardwareBuffer hardwareBuffer in prepareDirectChannel() local 1302 hardwareBuffer != null); in prepareDirectChannel() 1303 channel = mSensorManager.createDirectChannel(hardwareBuffer); in prepareDirectChannel()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorTest.java | 475 try (HardwareBuffer hardwareBuffer = createSensorsHardwareBuffer()) { in directConnection_hardwareBuffer_throwsException() argument 477 () -> mVirtualDeviceSensorManager.createDirectChannel(hardwareBuffer)); in directConnection_hardwareBuffer_throwsException() 536 try (HardwareBuffer hardwareBuffer = createSensorsHardwareBuffer()) { in directConnectionForDefaultDevice_hardwareBuffer_notValidForVirtualDevice() argument 537 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in directConnectionForDefaultDevice_hardwareBuffer_notValidForVirtualDevice()
|