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.java62 int readCount; in verifyTextAsset() local
64 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
65 for (int i = 0; i < readCount; i++) { in verifyTextAsset()
74 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
75 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, in verifyTextAsset()
76 -1, readCount); in verifyTextAsset()
78 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
79 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount, in verifyTextAsset()
80 0, readCount); in verifyTextAsset()
DResourcesTest.java1029 int readCount; in verifyTextAsset() local
1031 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
1032 for (int i = 0; i < readCount; i++) { in verifyTextAsset()
1041 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
1042 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, in verifyTextAsset()
1043 -1, readCount); in verifyTextAsset()
1045 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
1046 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount, in verifyTextAsset()
1047 0, readCount); in verifyTextAsset()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java493 int readCount; in run() local
494 while ((readCount = is.read(buffer)) >= 0) { in run()
495 bytesRead += readCount; in run()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioRecordTest.java1621 final int readCount = recorder.read(buffer, 0, buffer.length); in readDataTimed() local
1622 if (readCount <= 0) { in readDataTimed()
1625 out.put(buffer, 0, readCount); in readDataTimed()