Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java252 int totalRead = 0; in convertDmToFl() local
256 numRead = dmStream.read(dmData, totalRead, dmData.length - totalRead); in convertDmToFl()
264 totalRead += numRead; in convertDmToFl()
265 if (totalRead == dmData.length) { in convertDmToFl()
270 byte[] fileData = Arrays.copyOf(dmData, totalRead); in convertDmToFl()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java405 int bytesRead = 0, totalRead = 0; in writeAndCheckData() local
407 bytesRead = in.read(read, totalRead, read.length - totalRead); in writeAndCheckData()
408 totalRead += bytesRead; in writeAndCheckData()
409 } while (bytesRead >= 0 && totalRead < data.length); in writeAndCheckData()
410 assertEquals(totalRead, data.length); in writeAndCheckData()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java382 private Integer getProgress(long contentLength, long totalRead) { in getProgress() argument
384 return (int) (totalRead * 100 / contentLength); in getProgress()