Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/res/cts/
DRawResourceTest.java46 int readCount; in verifyTextAsset() local
48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
49 for (int i = 0; i < readCount; i++) { in verifyTextAsset()
58 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
59 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, in verifyTextAsset()
60 -1, readCount); in verifyTextAsset()
62 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
63 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount, in verifyTextAsset()
64 0, readCount); in verifyTextAsset()
DResourcesTest.java777 int readCount; in verifyTextAsset() local
779 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
780 for (int i = 0; i < readCount; i++) { in verifyTextAsset()
789 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
790 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, in verifyTextAsset()
791 -1, readCount); in verifyTextAsset()
793 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
794 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount, in verifyTextAsset()
795 0, readCount); in verifyTextAsset()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java383 int readCount; in run() local
384 while ((readCount = is.read(buffer)) >= 0) { in run()
385 bytesRead += readCount; in run()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java1605 final int readCount = recorder.read(buffer, 0, buffer.length); in readDataTimed() local
1606 if (readCount <= 0) { in readDataTimed()
1609 out.put(buffer, 0, readCount); in readDataTimed()