Home
last modified time | relevance | path

Searched refs:mWriter (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorDirectChannelWriterTest.java63 private final VirtualSensorDirectChannelWriter mWriter = new VirtualSensorDirectChannelWriter(); field in VirtualSensorDirectChannelWriterTest
67 mWriter.close(); in tearDown()
73 mWriter.configureChannel(CHANNEL_HANDLE, mAccelerometer, RATE_NORMAL, REPORT_TOKEN)) in configureChannel_rateNormal_noChannelAdded_returnsError()
80 mWriter.configureChannel(CHANNEL_HANDLE, mAccelerometer, RATE_STOP, REPORT_TOKEN)) in configureChannel_rateStop_noChannelAdded_returnsError()
88 () -> mWriter.addChannel(CHANNEL_HANDLE, /*sharedMemory=*/null)); in addChannel_nullSharedMemory_throwsException()
96 mWriter.addChannel(CHANNEL_HANDLE, sharedMemory); in removeChannel_closesSharedMemory()
97 mWriter.removeChannel(CHANNEL_HANDLE); in removeChannel_closesSharedMemory()
107 () -> mWriter.writeSensorEvent(mAccelerometer, /*event=*/null)); in writeEvent_nullEvent_throwsException()
114 () -> mWriter.writeSensorEvent(/*sensor=*/null, in writeEvent_nullSensor_throwsException()
120 assertThat(mWriter.writeSensorEvent( in writeEvent_noConfiguredChannel_returnsError()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DDataSpaceTest.java54 private ImageWriter mWriter; field in DataSpaceTest
111 if (mWriter != null) { in tearDown()
112 mWriter.close(); in tearDown()
113 mWriter = null; in tearDown()
145 mWriter = new ImageWriter.Builder(mSurface).build(); in getDataSpace()
152 inputImage = mWriter.dequeueInputImage(); in getDataSpace()
156 mWriter.queueInputImage(inputImage); in getDataSpace()
184 mWriter = ImageWriter.newInstance(mSurface, 1); in getDataSpaceWithoutSetDataSpace()
188 inputImage = mWriter.dequeueInputImage(); in getDataSpaceWithoutSetDataSpace()
189 mWriter.queueInputImage(inputImage); in getDataSpaceWithoutSetDataSpace()
[all …]
/cts/hostsidetests/multiuser/dpc/src/com/android/cts/multiuser/dpc/
DDpcShellCommand.java33 private final PrintWriter mWriter; field in DpcShellCommand
41 mWriter = writer; in DpcShellCommand()
47 mWriter.println("Missing cmd"); in run()
60 mWriter.println("Invalid command: " + cmd); in run()
64 mWriter.println("Failed to execute " + Arrays.toString(mArgs) + ": " + e); in run()
68 mWriter.println("Command succeeded!"); in run()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DTimeUtilsTest.java33 private final PrintWriter mWriter = new PrintWriter(System.out); field in TimeUtilsTest
42 TimeUtils.dumpTime(mWriter, 179); in testDumpTime()
43 mWriter.flush(); in testDumpTime()
51 TimeUtils.formatDuration(789, mWriter); in testFormatDuration()
52 mWriter.flush(); in testFormatDuration()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java73 private ImageWriter mWriter; field in ImageWriterTest
81 if (mWriter != null) { in tearDown()
82 mWriter.close(); in tearDown()
83 mWriter = null; in tearDown()
465 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in readerWriterFormatTestByCamera()
467 mWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in readerWriterFormatTestByCamera()
469 SimpleImageWriterListener writerImageListener = new SimpleImageWriterListener(mWriter); in readerWriterFormatTestByCamera()
470 mWriter.setOnImageReleasedListener(writerImageListener, mHandler); in readerWriterFormatTestByCamera()
493 mWriter.getMaxImages() == MAX_NUM_IMAGES); in readerWriterFormatTestByCamera()
504 mWriter.getFormat() == CAMERA_PRIVATE_FORMAT); in readerWriterFormatTestByCamera()
[all …]
DPerformanceTest.java119 private ImageWriter mWriter; field in PerformanceTest
1453 mWriter.queueInputImage(inputImages[i]);
1571 mWriter.queueInputImage(inputImages[i]);
1597 mWriter.queueInputImage(inputImages[i]);
1682 CameraTestUtils.closeImageWriter(mWriter);
1683 mWriter = null;
1724 mWriter = CameraTestUtils.makeImageWriter(
DMultiViewTest.java1011 if (image != null && mWriter != null) { in onImageAvailable()
1012 mWriter.queueInputImage(image); in onImageAvailable()
1018 mWriter = writer; in ImageWriterQueuer()
1020 private ImageWriter mWriter = null; field in MultiViewTest.ImageWriterQueuer
DRecordingTest.java2786 mWriter = writer;
2811 if (image != null && mWriter != null) {
2813 mWriter.queueInputImage(image);
2842 mWriter = null;
2847 private ImageWriter mWriter = null;
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java696 private final ImageWriter mWriter; field in CameraTestUtils.SimpleImageWriterListener
699 if (writer != mWriter) { in onImageReleased()
713 mWriter = writer; in SimpleImageWriterListener()