Home
last modified time | relevance | path

Searched refs:soFar (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java250 int soFar = 0; in readExactly() local
251 while (soFar < size) { in readExactly()
252 int nRead = in.read(buffer, offset + soFar, size - soFar); in readExactly()
255 Slog.w(TAG, "- wanted exactly " + size + " but got only " + soFar); in readExactly()
259 soFar += nRead; in readExactly()
261 Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soFar)); in readExactly()
264 return soFar; in readExactly()
/frameworks/base/core/java/android/os/
DRecoverySystem.java370 long soFar = 0; in verifyPackage()
382 if (soFar >= toRead) { in verifyPackage()
390 if (soFar + size > toRead) { in verifyPackage()
391 size = (int)(toRead - soFar); in verifyPackage()
394 soFar += read; in verifyPackage()
398 int p = (int)(soFar * 100 / toRead); in verifyPackage()