Searched refs:FILE_DATA (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 46 private static final byte[] FILE_DATA = new byte[] { field in AssetFileDescriptor_AutoCloseOutputStreamTest 77 outputStream.write(FILE_DATA[0]); in testAutoCloseOutputStream() 78 outputStream.write(FILE_DATA, 1, 5); in testAutoCloseOutputStream() 79 outputStream.write(FILE_DATA); in testAutoCloseOutputStream() 88 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream() 90 for (int i = 0; i < FILE_DATA.length; i++) { in testAutoCloseOutputStream() 91 assertEquals(FILE_DATA[i], inputStream.read()); in testAutoCloseOutputStream()
|
D | AssetFileDescriptor_AutoCloseInputStreamTest.java | 63 private static final byte[] FILE_DATA = new byte[]{ field in AssetFileDescriptor_AutoCloseInputStreamTest 66 private static final int FILE_LENGTH = FILE_DATA.length; 77 outputStream.write(FILE_DATA); in setUp() 93 assertEquals(FILE_DATA[0], mInput.read()); in testSkip() 95 assertEquals(FILE_DATA[1], mInput.read()); in testSkip() 97 assertEquals(FILE_DATA[5], mInput.read()); in testSkip() 106 assertEquals(FILE_DATA[i], mInput.read()); in testRead() 116 assertEquals(FILE_DATA[i], mInput.read()); in testReadPartial() 128 MoreAsserts.assertEquals(FILE_DATA, buf); in testReadBufferLen() 137 assertEquals(FILE_DATA[0], buf[0]); in testReadBuffer() [all …]
|
D | AssetFileDescriptorTest.java | 58 private static final byte[] FILE_DATA = field in AssetFileDescriptorTest 128 mOutputStream.write(FILE_DATA); in testInputOutputStream() 144 byte[] dataFromFile = new byte[FILE_DATA.length]; in testInputOutputStream() 147 while ((readByte != FILE_END) && (readLength < FILE_DATA.length)) { in testInputOutputStream() 150 readLength, FILE_DATA.length - readLength); in testInputOutputStream() 152 assertEquals(FILE_DATA.length, readLength); in testInputOutputStream() 153 assertTrue(Arrays.equals(FILE_DATA, dataFromFile)); in testInputOutputStream() 171 mOutputStream.write(FILE_DATA); in testInputOutputStream()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverTest.java | 41 private static final int FILE_DATA = 0x20; field in FileObserverTest 220 out.write(FILE_DATA); // modify, open, write, modify in verifyTriggeredEventsOnFile()
|