Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 72) sorted by relevance

123

/cts/tests/tests/util/src/android/util/cts/
DJsonReaderTest.java33 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 …]
DPrintStreamPrinterTest.java59 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/
DExpectationStore.java134 JsonReader reader = null; in parse() local
136 reader = new JsonReader(new FileReader(expectationsFile)); in parse()
137 reader.setLenient(true); in parse()
138 reader.beginArray(); in parse()
139 while (reader.hasNext()) { in parse()
140 readExpectation(reader, mode); in parse()
143 reader.endArray(); in parse()
147 if (reader != null) { in parse()
148 reader.close(); in parse()
153 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { in readExpectation() argument
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java48 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()
DNoReadLogsPermissionTest.java48 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/common/host-side/native-scanner/tests/src/com/android/compatibility/common/scanner/
DNativeScannerTest.java33 BufferedReader reader = new BufferedReader(singleTestString); in testSingleTestNamesCase() local
35 List<String> names = NativeScanner.getTestNames(reader, "TestSuite"); in testSingleTestNamesCase()
46 BufferedReader reader = new BufferedReader(singleTestString); in testMultipleTestNamesCase() local
48 List<String> names = NativeScanner.getTestNames(reader, "TestSuite"); in testMultipleTestNamesCase()
63 BufferedReader reader = new BufferedReader(singleTestString); in testMissingTestCaseNameCase() local
66 NativeScanner.getTestNames(reader, "TestSuite"); in testMissingTestCaseNameCase()
/cts/tools/cts-native-scanner/tests/src/com/android/cts/nativescanner/
DTestScannerTest.java35 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/
DTODO.txt4 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/
DDexFileImpl.java17 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;
DDexMethodImpl.java17 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;
DDexFieldImpl.java17 package dex.reader;
19 import dex.reader.DexClassImpl.FieldAnnotation;
20 import dex.reader.DexFileReader.FieldIdItem;
DDexAnnotationAttributeImpl.java17 package dex.reader;
19 import dex.reader.DexFileReader.FieldIdItem;
/cts/tests/tests/security/src/android/security/cts/
DARTBootASLRTest.java34 InputStreamReader reader = new InputStreamReader(ins, Charset.defaultCharset()); in testARTASLR() local
35 BufferedReader bufReader = new BufferedReader(reader); in testARTASLR()
50 reader.close(); in testARTASLR()
/cts/common/host-side/native-scanner/src/com/android/compatibility/common/scanner/
DNativeScanner.java42 static ArrayList<String> getTestNames(BufferedReader reader, String testSuite) in getTestNames() argument
49 while ((line = reader.readLine()) != null) { in getTestNames()
79 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); in main() local
80 for (String name : getTestNames(reader, testSuite)) { in main()
/cts/tools/dex-tools/test/dex/reader/util/
DJavaSourceToDexUtil.java17 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/os/src/android/os/cts/
DMessageQueueTest.java239 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/signature-tools/test/signature/converter/dex/
DGenericSignatureParserTest.java21 import dex.reader.DexTestsCommon;
22 import dex.reader.util.JavaSource;
23 import dex.reader.util.JavaSourceToDexUtil;
DDexUtilTest.java20 import dex.reader.DexTestsCommon;
21 import dex.reader.util.JavaSource;
22 import dex.reader.util.JavaSourceToDexUtil;
DDexTestConverter.java19 import dex.reader.util.JavaSource;
20 import dex.reader.util.JavaSourceToDexUtil;
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestCase.java303 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/
DDocletRunner.java56 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/tools/signature-tools/src/signature/io/html/
DTemplateStore.java40 InputStreamReader reader = new InputStreamReader(stream); in initialize() local
41 StringTemplateGroup deltaGroup = new StringTemplateGroup(reader, in initialize()
/cts/tools/dex-tools/test/dex/reader/
DLargeDexTests.java17 package dex.reader;
20 import dex.reader.util.JavaSource;
/cts/tools/cts-native-scanner/src/com/android/cts/nativescanner/
DTestScanner.java45 TestScanner(BufferedReader reader, String testSuite) { in TestScanner() argument
47 mReader = reader; in TestScanner()
/cts/tests/tests/content/src/android/content/cts/
DReadableFileReceiverActivity.java110 FileReader reader = new FileReader(file); in testFileContents() local
111 reader.read(buffer); in testFileContents()
112 reader.close(); in testFileContents()

123