Home
last modified time | relevance | path

Searched refs:FILE_DATA (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java32 private static final byte[] FILE_DATA = new byte[] { field in AssetFileDescriptor_AutoCloseInputStreamTest
35 private static final int FILE_LENGTH = FILE_DATA.length;
46 outputStream.write(FILE_DATA); in setUp()
62 assertEquals(FILE_DATA[0], mInput.read()); in testSkip()
64 assertEquals(FILE_DATA[1], mInput.read()); in testSkip()
66 assertEquals(FILE_DATA[5], mInput.read()); in testSkip()
74 assertEquals(FILE_DATA[i], mInput.read()); in testRead()
83 assertEquals(FILE_DATA[i], mInput.read()); in testReadPartial()
94 MoreAsserts.assertEquals(FILE_DATA, buf); in testReadBufferLen()
102 assertEquals(FILE_DATA[0], buf[0]); in testReadBuffer()
[all …]
DAssetFileDescriptor_AutoCloseOutputStreamTest.java31 private static final byte[] FILE_DATA = new byte[] { field in AssetFileDescriptor_AutoCloseOutputStreamTest
62 outputStream.write(FILE_DATA[0]); in testAutoCloseOutputStream()
63 outputStream.write(FILE_DATA, 1, 5); in testAutoCloseOutputStream()
64 outputStream.write(FILE_DATA); in testAutoCloseOutputStream()
73 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream()
75 for (int i = 0; i < FILE_DATA.length; i++) { in testAutoCloseOutputStream()
76 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream()
DAssetFileDescriptorTest.java37 private static final byte[] FILE_DATA = field in AssetFileDescriptorTest
107 mOutputStream.write(FILE_DATA); in testInputOutputStream()
129 byte[] dataFromFile = new byte[FILE_DATA.length]; in testInputOutputStream()
132 while ((readByte != FILE_END) && (readLength < FILE_DATA.length)) { in testInputOutputStream()
135 readLength, FILE_DATA.length - readLength); in testInputOutputStream()
137 assertEquals(FILE_DATA.length, readLength); in testInputOutputStream()
138 assertTrue(Arrays.equals(FILE_DATA, dataFromFile)); in testInputOutputStream()
162 mOutputStream.write(FILE_DATA); in testInputOutputStream()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java37 private static final int FILE_DATA = 0x20; field in FileObserverTest
197 out.write(FILE_DATA); // modify, open, write, modify in verifyTriggeredEventsOnFile()