/cts/tests/tests/util/src/android/util/cts/ |
D | JsonReaderTest.java | 45 JsonReader reader = new JsonReader(new StringReader("[true, true]")); in testReadArray() local 46 reader.beginArray(); in testReadArray() 47 assertEquals(true, reader.nextBoolean()); in testReadArray() 48 assertEquals(true, reader.nextBoolean()); in testReadArray() 49 reader.endArray(); in testReadArray() 50 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray() 55 JsonReader reader = new JsonReader(new StringReader("[]")); in testReadEmptyArray() local 56 reader.beginArray(); in testReadEmptyArray() 57 assertFalse(reader.hasNext()); in testReadEmptyArray() 58 reader.endArray(); in testReadEmptyArray() [all …]
|
D | PrintStreamPrinterTest.java | 78 BufferedReader reader = new BufferedReader(new InputStreamReader(is)); in testPrintln() local 79 mLine = reader.readLine(); in testPrintln() 81 reader.close(); in testPrintln()
|
D | PrintWriterPrinterTest.java | 80 BufferedReader reader = new BufferedReader( in testPrintln() local 82 mLine = reader.readLine(); in testPrintln()
|
/cts/libs/vogar-expect/src/vogar/ |
D | ExpectationStore.java | 160 Reader reader = new InputStreamReader(is)) { in parse() 161 parse(reader, url.toString(), mode); in parse() 174 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() argument 176 try (JsonReader jsonReader = new JsonReader(reader)) { in parse() 189 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { in readExpectation() argument 199 reader.beginObject(); in readExpectation() 200 while (reader.hasNext()) { in readExpectation() 201 String name = reader.nextName(); in readExpectation() 203 result = Result.valueOf(reader.nextString()); in readExpectation() 205 names.add(reader.nextString()); in readExpectation() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoCaptureVideoPermissionTest.java | 48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePublicVirtualDisplay() local 51 reader.getSurface(), DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC); in testCreatePublicVirtualDisplay() 57 reader.close(); in testCreatePublicVirtualDisplay() 71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreateSecureVirtualDisplay() local 74 reader.getSurface(), DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE); in testCreateSecureVirtualDisplay() 80 reader.close(); in testCreateSecureVirtualDisplay() 92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePrivateVirtualDisplay() local 96 reader.getSurface(), 0); in testCreatePrivateVirtualDisplay() 102 reader.close(); in testCreatePrivateVirtualDisplay()
|
D | NoReadLogsPermissionTest.java | 48 BufferedReader reader = null; in testLogcat() local 53 reader = new BufferedReader(new InputStreamReader(logcatProc.getInputStream())); in testLogcat() 57 while ((line = reader.readLine()) != null) { in testLogcat() 72 if (reader != null) { in testLogcat() 73 reader.close(); in testLogcat()
|
/cts/tools/dex-tools/ |
D | TODO.txt | 4 Check if fileformat version matches dex reader 6 dex.reader.DexEncodedValueImpl has some FIXMEs 7 dex.reader.DexBuffer needs to be polished regarding unsigned datatypes
|
/cts/tools/dex-tools/src/dex/reader/ |
D | DexFileImpl.java | 17 package dex.reader; 19 import dex.reader.DexFileReader.ClassDefItem; 20 import dex.reader.DexFileReader.FieldIdItem; 21 import dex.reader.DexFileReader.MethodsIdItem; 22 import dex.reader.DexFileReader.ProtIdItem;
|
D | DexMethodImpl.java | 17 package dex.reader; 27 import dex.reader.DexClassImpl.MethodAnnotation; 28 import dex.reader.DexClassImpl.ParameterAnnotation; 29 import dex.reader.DexFileReader.FieldIdItem; 30 import dex.reader.DexFileReader.MethodsIdItem; 31 import dex.reader.DexFileReader.ProtIdItem;
|
D | DexFieldImpl.java | 17 package dex.reader; 19 import dex.reader.DexClassImpl.FieldAnnotation; 20 import dex.reader.DexFileReader.FieldIdItem;
|
D | DexAnnotationAttributeImpl.java | 17 package dex.reader; 19 import dex.reader.DexFileReader.FieldIdItem;
|
D | DexEncodedAnnotationImpl.java | 17 package dex.reader; 19 import dex.reader.DexFileReader.FieldIdItem;
|
D | DexParameterImpl.java | 17 package dex.reader; 22 import dex.reader.DexFileReader.FieldIdItem;
|
D | DexAnnotationImpl.java | 17 package dex.reader; 19 import dex.reader.DexFileReader.FieldIdItem;
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ARTBootASLRTest.java | 36 InputStreamReader reader = new InputStreamReader(ins, Charset.defaultCharset()); in testARTASLR() local 37 BufferedReader bufReader = new BufferedReader(reader); in testARTASLR() 52 reader.close(); in testARTASLR()
|
D | ServicePermissionsTest.java | 122 final BufferedReader reader = new BufferedReader( in testDumpProtected() local 127 while ((line = reader.readLine()) != null) { in testDumpProtected() 132 reader.close(); in testDumpProtected()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 239 try (ParcelFileDescriptor reader = pipe[0]; in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() argument 242 queue.addOnFileDescriptorEventListener(reader.getFileDescriptor(), 0, null); in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() 264 try (ParcelFileDescriptor reader = pipe[0]; in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered() argument 266 queue.removeOnFileDescriptorEventListener(reader.getFileDescriptor()); in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered() 279 try (final FileInputStream reader = new AutoCloseInputStream(pipe[0]); in testFileDescriptorCallbacks() argument 342 int count = reader.read(mBuffer, 0, mBuffer.length); in testFileDescriptorCallbacks() 363 queue.addOnFileDescriptorEventListener(reader.getFD(), in testFileDescriptorCallbacks() 374 reader.close(); in testFileDescriptorCallbacks() 382 queue.removeOnFileDescriptorEventListener(reader.getFD()); in testFileDescriptorCallbacks() 410 try (final FileInputStream reader = new AutoCloseInputStream(pipe[0]); in testPathologicalFileDescriptorReuseCallbacks1() argument [all …]
|
/cts/tools/dex-tools/test/dex/reader/util/ |
D | JavaSourceToDexUtil.java | 17 package dex.reader.util; 38 import dex.reader.DexBuffer; 39 import dex.reader.DexFileReader; 68 DexFileReader reader = new DexFileReader(); in getFrom() local 69 return reader.read(dexBuffer); in getFrom()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ConnectionStatus.java | 99 BufferedReader reader = new BufferedReader( in pingTest() local 101 while ((line = reader.readLine()) != null) { in pingTest() 108 reader = new BufferedReader( in pingTest() 110 while ((line = reader.readLine()) != null) { in pingTest()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestCase.java | 303 ImageReader reader = null; in createImageReader() local 304 reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), in createImageReader() 307 reader.setOnImageAvailableListener(listener, mHandler); in createImageReader() 309 return reader; in createImageReader() 326 protected void closeImageReader(ImageReader reader) { in closeImageReader() argument 327 if (reader != null) { in closeImageReader() 330 Image image = reader.acquireLatestImage(); in closeImageReader() 335 reader.close(); in closeImageReader() 336 reader = null; in closeImageReader()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ImageCaptureUriExtraToClipDataTest.java | 108 FileReader reader = new FileReader(mTestFile); in assertFileContents() local 109 reader.read(buffer); in assertFileContents() 110 reader.close(); in assertFileContents()
|
D | ReadableFileReceiverActivity.java | 110 FileReader reader = new FileReader(file); in testFileContents() local 111 reader.read(buffer); in testFileContents() 112 reader.close(); in testFileContents()
|
/cts/tools/dex-tools/test/dex/reader/ |
D | LargeDexTests.java | 17 package dex.reader; 20 import dex.reader.util.JavaSource;
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageWriterTest.java | 114 ImageReader reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions() local 116 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 119 reader.close(); in testAbandonedSurfaceExceptions() 133 reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions() 135 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 139 reader.close(); in testAbandonedSurfaceExceptions()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | ShellCommandBuilder.java | 75 try (BufferedReader reader = new BufferedReader( in execShellCommand() argument 77 while (reader.readLine() != null) { in execShellCommand()
|