Searched refs:totalRead (Results 1 – 3 of 3) sorted by relevance
252 int totalRead = 0; in convertDmToFl() local256 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()
405 int bytesRead = 0, totalRead = 0; in writeAndCheckData() local407 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()
382 private Integer getProgress(long contentLength, long totalRead) { in getProgress() argument384 return (int) (totalRead * 100 / contentLength); in getProgress()