Home
last modified time | relevance | path

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

/frameworks/base/services/core/jni/
Dcom_android_server_am_CachedAppOptimizer.cpp109 uint64_t consumeBytes(VmaBatch& batch, uint64_t bytesToConsume) { in consumeBytes() argument
110 if (CC_UNLIKELY(bytesToConsume) < 0) { in consumeBytes()
115 if (CC_UNLIKELY(bytesToConsume > batch.totalBytes)) { in consumeBytes()
117 bytesToConsume = batch.totalBytes; in consumeBytes()
121 while (bytesConsumed < bytesToConsume) { in consumeBytes()
126 if (CC_UNLIKELY(bytesConsumed + batch.vmas[0].iov_len > bytesToConsume)) { in consumeBytes()
128 uint64_t bytesLeftToConsume = bytesToConsume - bytesConsumed; in consumeBytes()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java596 long bytesToConsume = (info.size + 511) & ~511; in restoreOneFile() local
597 while (bytesToConsume > 0) { in restoreOneFile()
598 int toRead = (bytesToConsume > buffer.length) in restoreOneFile()
599 ? buffer.length : (int) bytesToConsume; in restoreOneFile()
604 bytesToConsume -= nRead; in restoreOneFile()