/cts/tests/tests/car/src/android/car/cts/utils/ |
D | DisplayUtils.java | 43 private ImageReader mReader; field in DisplayUtils.VirtualDisplaySession 58 if (mReader != null) { in createDisplay() 62 mReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, in createDisplay() 68 width, height, density, mReader.getSurface(), flags); in createDisplay() 90 if (mReader != null) { in createDisplayWithDefaultDisplayMetricsAndWait() 99 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait() 127 mReader.getSurface(), flags); in createDisplayWithDefaultDisplayMetricsAndWait() 147 if (mReader != null) { in close() 148 mReader.close(); in close()
|
/cts/libs/input/src/com/android/cts/input/ |
D | HidDevice.java | 52 mReader.beginObject(); in readResults() 54 while (mReader.hasNext()) { in readResults() 55 String fieldName = mReader.nextName(); in readResults() 57 result.eventId = Byte.decode(mReader.nextString()); in readResults() 60 result.deviceId = Integer.decode(mReader.nextString()); in readResults() 63 result.reportType = Byte.decode(mReader.nextString()); in readResults() 69 mReader.endObject(); in readResults()
|
D | UinputDevice.java | 51 mReader.beginObject(); in readResults() 53 while (mReader.hasNext()) { in readResults() 54 String fieldName = mReader.nextName(); in readResults() 56 result.reason = mReader.nextString(); in readResults() 59 result.deviceId = Integer.decode(mReader.nextString()); in readResults() 62 result.status = Integer.decode(mReader.nextString()); in readResults() 65 mReader.endObject(); in readResults()
|
D | VirtualInputDevice.java | 69 protected JsonReader mReader; field in VirtualInputDevice 101 while (mReader.peek() != JsonToken.END_DOCUMENT) { in VirtualInputDevice() 119 mReader.beginArray(); in readData() 120 while (mReader.hasNext()) { in readData() 121 data.add(Integer.decode(mReader.nextString())); in readData() 123 mReader.endArray(); in readData() 125 mReader.endArray(); in readData() 225 mReader = new JsonReader(new InputStreamReader(mInputStream, "UTF-8")); in setupPipes() 229 mReader.setLenient(true); in setupPipes()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | DisplayUtils.java | 43 private ImageReader mReader; field in DisplayUtils.VirtualDisplaySession 63 if (mReader != null) { in createDisplayWithDefaultDisplayMetricsAndWait() 72 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait() 100 mReader.getSurface(), flags); in createDisplayWithDefaultDisplayMetricsAndWait() 120 if (mReader != null) { in close() 121 mReader.close(); in close()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | ImageSurface.java | 48 private ImageReader mReader; field in ImageSurface 114 if (mReader != null) { in createSurface() 122 mReader = ImageReader.newInstance(width, height, format, maxNumImages); in createSurface() 123 mReader.setOnImageAvailableListener(this, mHandler); in createSurface() 124 mReaderSurface = mReader.getSurface(); in createSurface() 155 if (mReader != null) { in release() 160 Image image = mReader.acquireLatestImage(); in release() 165 mReader.close(); in release() 166 mReader = null; in release()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | BufferedReaderLineSpliterator.java | 18 private final BufferedReader mReader; field in BufferedReaderLineSpliterator 24 mReader = reader; in BufferedReaderLineSpliterator() 32 mReader = reader; in BufferedReaderLineSpliterator() 55 String line = mReader.readLine(); in nextLine()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | VirtualDisplayHelper.java | 55 private ImageReader mReader; field in VirtualDisplayHelper 90 mVirtualDisplay.setSurface(mReader.getSurface()); in turnDisplayOn() 97 mReader.close(); in releaseDisplay() 104 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in createVirtualDisplay() 127 VIRTUAL_DISPLAY_NAME, WIDTH, HEIGHT, DENSITY, mReader.getSurface(), flags); in createVirtualDisplay()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | DisplayUtils.java | 90 private ImageReader mReader; field in DisplayUtils.VirtualDisplaySession 94 if (mReader != null) { in createDisplay() 98 mReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, in createDisplay() 103 "A11yDisplay", width, height, density, mReader.getSurface(), flags); in createDisplay() 112 if (mReader != null) { in close() 113 mReader.close(); in close()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | DataSpaceTest.java | 55 private ImageReader mReader; field in DataSpaceTest 107 if (mReader != null) { in tearDown() 108 mReader.close(); in tearDown() 109 mReader = null; in tearDown() 238 mReader = ImageReader.newInstance(100, 100, ImageFormat.YUV_420_888, 1); in getDataSpaceFromImageReaderNextImage() 239 mWriter = ImageWriter.newInstance(mReader.getSurface(), 1); in getDataSpaceFromImageReaderNextImage() 254 nextImage = mReader.acquireLatestImage(); in getDataSpaceFromImageReaderNextImage()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestRule.java | 80 private ImageReader mReader; field in Camera2AndroidTestRule 169 return mReader; in getReader() 472 mReader = createImageReader(size, format, maxNumImages, listener); in createDefaultImageReader() 473 mReaderSurface = mReader.getSurface(); in createDefaultImageReader() 497 mReader = createImageReader(size, format, maxNumImages, usage, listener); in createDefaultImageReader() 498 mReaderSurface = mReader.getSurface(); in createDefaultImageReader() 552 closeImageReader(mReader); in closeDefaultImageReader() 553 mReader = null; in closeDefaultImageReader() 591 Surface surface = mReader.getSurface(); in prepareCaptureRequest()
|
D | Camera2AndroidTestCase.java | 90 protected ImageReader mReader; field in Camera2AndroidTestCase 415 mReader = createImageReader(size, format, maxNumImages, listener); in createDefaultImageReader() 416 mReaderSurface = mReader.getSurface(); in createDefaultImageReader() 440 mReader = createImageReader(size, format, maxNumImages, usage, listener); in createDefaultImageReader() 441 mReaderSurface = mReader.getSurface(); in createDefaultImageReader() 495 closeImageReader(mReader); in closeDefaultImageReader() 496 mReader = null; in closeDefaultImageReader() 533 Surface surface = mReader.getSurface(); in prepareCaptureRequest()
|
D | Camera2SurfaceViewTestCase.java | 109 protected ImageReader mReader; field in Camera2SurfaceViewTestCase 550 mReader = r; in createImageReader() 558 CameraTestUtils.closeImageReader(mReader); in closeImageReader() 559 mReader = null; in closeImageReader()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowFocusTests.java | 678 private final ImageReader mReader; field in WindowFocusTests.InvisibleVirtualDisplaySession 682 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, in InvisibleVirtualDisplaySession() 686 WIDTH, HEIGHT, DENSITY, mReader.getSurface(), in InvisibleVirtualDisplaySession() 705 if (mReader != null) { in close() 706 mReader.close(); in close() 729 private final ImageReader mReader; field in WindowFocusTests.VirtualDisplayWithOwnFocusSession 739 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, in VirtualDisplayWithOwnFocusSession() 744 DENSITY, mReader.getSurface(), in VirtualDisplayWithOwnFocusSession() 774 if (mReader != null) { in close() 775 mReader.close(); in close()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 65 protected ImageReader mReader; field in ProjectionOffscreenActivity 135 mService.startRendering(mReader.getSurface(), WIDTH, HEIGHT, DENSITY, 176 mReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in onCreate() 178 mReader.setOnImageAvailableListener(this, null); in onCreate() 197 mReader.close(); in onDestroy()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | AndroidManifestParser.java | 39 private BufferedReader mReader; field in AndroidManifestParser 84 mReader = new BufferedReader(new InputStreamReader(process.getInputStream())); in processManifest() 100 while ((line = mReader.readLine()) != null) { in parseElement() 120 while ((line = mReader.readLine()) != null) { in parseElementItem()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | ImageReaderDecoderTest.java | 105 private ImageReader mReader; field in ImageReaderDecoderTest 816 mReader = ImageReader.newInstance(width, height, format, maxNumImages); in createImageReader() 817 mReaderSurface = mReader.getSurface(); in createImageReader() 818 mReader.setOnImageAvailableListener(listener, mHandler); in createImageReader() 829 if (mReader != null) { in closeImageReader() 832 Image image = mReader.acquireLatestImage(); in closeImageReader() 837 mReader.close(); in closeImageReader() 838 mReader = null; in closeImageReader()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageReaderTest.java | 1646 img = mReader.acquireNextImage(); in invalidAccessTestAfterClose() 1679 mReader.discardFreeBuffers(); in discardFreeBuffersTestByCamera() 1691 Image img = mReader.acquireLatestImage(); in discardFreeBuffersTestByCamera() 1695 mReader.discardFreeBuffers(); in discardFreeBuffersTestByCamera() 1778 mReader.setOnImageAvailableListener(imageDropperListener, mHandler); in bufferFormatTestByCamera() 1788 OutputConfiguration config = new OutputConfiguration(mReader.getSurface()); in bufferFormatTestByCamera() 1870 outputSurfaces.add(mReader.getSurface()); in bufferFormatLongProcessingTimeTestByCamera() 1896 Image img = mReader.acquireNextImage(); in bufferFormatLongProcessingTimeTestByCamera() 1932 mReader.setOnImageAvailableListener(imageDropperListener, mHandler); in bufferFormatLongProcessingTimeTestByCamera() 1933 Image img = mReader.acquireLatestImage(); in bufferFormatLongProcessingTimeTestByCamera() [all …]
|
D | ImageWriterTest.java | 474 outputSurfaces.add(mReader.getSurface()); in readerWriterFormatTestByCamera() 496 mReader.getImageFormat() == CAMERA_PRIVATE_FORMAT); in readerWriterFormatTestByCamera() 500 mReader.getImageFormat() == CAMERA_PRIVATE_FORMAT); in readerWriterFormatTestByCamera() 591 mReader.close(); in readerWriterFormatTestByCamera() 592 mReader = null; in readerWriterFormatTestByCamera()
|
D | ZoomCaptureTest.java | 194 OutputConfiguration config = new OutputConfiguration(mReader.getSurface()); in bufferFormatZoomTestByCamera() 336 Image img = mReader.acquireNextImage(); in onImageAvailable()
|
D | RecordingTest.java | 2107 mReader.setOnImageAvailableListener(imageListener, mHandler); in prepareVideoSnapshot()
|