Home
last modified time | relevance | path

Searched refs:totalRead (Results 1 – 5 of 5) sorted by relevance

/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java145 int totalRead = 0; in read() local
146 while (totalRead < len) { in read()
147 int readNow = in.read(buffer.array(), totalRead, len - totalRead); in read()
152 totalRead += readNow; in read()
365 int totalRead = 0; in handleStartRecording()
366 while (totalRead < mRecordingLength) { in handleStartRecording()
367 int lenRead = mRecord.read(data, 0, (mRecordingLength - totalRead)); in handleStartRecording()
375 totalRead += lenRead; in handleStartRecording()
/cts/suite/audio_quality/test_description/
Dprocessing_main.py147 totalRead = 0
148 while totalRead < length:
149 raw = self.conn.recv(length - totalRead)
153 totalRead += justRead
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java359 int bytesRead = 0, totalRead = 0; in writeAndCheckData() local
361 bytesRead = in.read(read, totalRead, read.length - totalRead); in writeAndCheckData()
362 totalRead += bytesRead; in writeAndCheckData()
363 } while (bytesRead >= 0 && totalRead < data.length); in writeAndCheckData()
364 assertEquals(totalRead, data.length); in writeAndCheckData()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java957 int totalRead = 0; in convertDmToFl() local
961 numRead = dmStream.read(dmData, totalRead, dmData.length - totalRead); in convertDmToFl()
969 totalRead += numRead; in convertDmToFl()
970 if (totalRead == dmData.length) { in convertDmToFl()
975 byte[] fileData = Arrays.copyOf(dmData, totalRead); in convertDmToFl()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java944 int totalRead = 0; in convertDmToFl() local
948 numRead = dmStream.read(dmData, totalRead, dmData.length - totalRead); in convertDmToFl()
956 totalRead += numRead; in convertDmToFl()
957 if (totalRead == dmData.length) { in convertDmToFl()
962 byte[] fileData = Arrays.copyOf(dmData, totalRead); in convertDmToFl()