/cts/tests/tests/util/src/android/util/cts/ |
D | JsonReaderTest.java | 33 JsonReader reader = new JsonReader(new StringReader("[true, true]")); in testReadArray() local 34 reader.beginArray(); in testReadArray() 35 assertEquals(true, reader.nextBoolean()); in testReadArray() 36 assertEquals(true, reader.nextBoolean()); in testReadArray() 37 reader.endArray(); in testReadArray() 38 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray() 42 JsonReader reader = new JsonReader(new StringReader("[]")); in testReadEmptyArray() local 43 reader.beginArray(); in testReadEmptyArray() 44 assertFalse(reader.hasNext()); in testReadEmptyArray() 45 reader.endArray(); in testReadEmptyArray() [all …]
|
D | PrintStreamPrinterTest.java | 59 BufferedReader reader = new BufferedReader(new InputStreamReader(is)); in testPrintln() local 60 mLine = reader.readLine(); in testPrintln() 62 reader.close(); 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/cts-native-scanner/tests/src/com/android/cts/nativescanner/ |
D | TestScannerTest.java | 35 BufferedReader reader = new BufferedReader(singleTestString); in testSingleTestNamesCase() local 37 TestScanner testScanner = new TestScanner(reader, "TestSuite"); in testSingleTestNamesCase() 50 BufferedReader reader = new BufferedReader(singleTestString); in testMultipleTestNamesCase() local 52 TestScanner testScanner = new TestScanner(reader, "TestSuite"); in testMultipleTestNamesCase() 68 BufferedReader reader = new BufferedReader(singleTestString); in testMissingTestCaseNameCase() local 70 TestScanner testScanner = new TestScanner(reader, "TestSuite"); in testMissingTestCaseNameCase()
|
/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;
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ARTBootASLRTest.java | 34 InputStreamReader reader = new InputStreamReader(ins, Charset.defaultCharset()); in testARTASLR() local 35 BufferedReader bufReader = new BufferedReader(reader); in testARTASLR() 50 reader.close(); in testARTASLR()
|
D | ServicePermissionsTest.java | 120 final BufferedReader reader = new BufferedReader( in testDumpProtected() local 125 while ((line = reader.readLine()) != null) { in testDumpProtected() 130 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/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/tools/cts-java-scanner/src/com/android/cts/javascanner/ |
D | DocletRunner.java | 56 BufferedReader reader = new BufferedReader( in runJavaDoc() local 60 while ((line = reader.readLine()) != null) { in runJavaDoc() 64 if (reader != null) { in runJavaDoc() 65 reader.close(); in runJavaDoc()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | WifiStatus.java | 119 BufferedReader reader = new BufferedReader( in pingTest() local 121 while ((line = reader.readLine()) != null) { in pingTest() 128 reader = new BufferedReader( in pingTest() 130 while ((line = reader.readLine()) != null) { in pingTest()
|
/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/tools/cts-native-scanner/src/com/android/cts/nativescanner/ |
D | TestScanner.java | 45 TestScanner(BufferedReader reader, String testSuite) { in TestScanner() argument 47 mReader = reader; in TestScanner()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 103 BufferedReader reader = null; in appendFileContentToSummary() local 105 reader = new BufferedReader(new FileReader(path)); in appendFileContentToSummary() 108 line = reader.readLine(); in appendFileContentToSummary() 120 if (reader != null) { in appendFileContentToSummary() 122 reader.close(); in appendFileContentToSummary()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageWriterTest.java | 149 ImageReader reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions() local 151 ImageWriter writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 154 reader.close(); in testAbandonedSurfaceExceptions() 168 reader = ImageReader.newInstance(READER_WIDTH, READER_HEIGHT, READER_FORMAT, in testAbandonedSurfaceExceptions() 170 writer = ImageWriter.newInstance(reader.getSurface(), MAX_NUM_IMAGES); in testAbandonedSurfaceExceptions() 174 reader.close(); in testAbandonedSurfaceExceptions()
|