Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DRecoverySystem.java278 long soFar = 0; in verifyPackage() local
282 while (soFar < toRead) { in verifyPackage()
286 if (soFar + size > toRead) { in verifyPackage()
287 size = (int)(toRead - soFar); in verifyPackage()
291 soFar += read; in verifyPackage()
295 int p = (int)(soFar * 100 / toRead); in verifyPackage()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java5682 int soFar = 0; in readExactly() local
5683 while (soFar < size) { in readExactly()
5684 int nRead = in.read(buffer, offset + soFar, size - soFar); in readExactly()
5686 … if (MORE_DEBUG) Slog.w(TAG, "- wanted exactly " + size + " but got only " + soFar); in readExactly()
5689 soFar += nRead; in readExactly()
5690 if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soFar)); in readExactly()
5692 return soFar; in readExactly()
6973 int soFar = 0; in readExactly() local
6974 while (soFar < size) { in readExactly()
6975 int nRead = in.read(buffer, offset + soFar, size - soFar); in readExactly()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java1453 final int soFar = totalScrolled.get(); in testConsecutiveSmoothScroll()
1454 scrollAmt.set(soFar); in testConsecutiveSmoothScroll()
1455 rv.smoothScrollBy(0, 5000 - soFar); in testConsecutiveSmoothScroll()
1461 final int soFar = totalScrolled.get(); in testConsecutiveSmoothScroll() local
1462 assertEquals("second scroll should be competed properly", 5000, soFar); in testConsecutiveSmoothScroll()