Searched refs:maxBytes (Results 1 – 5 of 5) sorted by relevance
34 public ByteArrayRingBuffer(int maxBytes) { in ByteArrayRingBuffer() argument35 if (maxBytes < 1) { in ByteArrayRingBuffer()39 mMaxBytes = maxBytes; in ByteArrayRingBuffer()84 public void resize(int maxBytes) { in resize() argument85 pruneToSize(maxBytes); in resize()86 mMaxBytes = maxBytes; in resize()
189 public String getText(int maxBytes) { in getText() argument191 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length)); in getText()197 byte[] buf = new byte[maxBytes]; in getText()200 while (n >= 0 && (readBytes += n) < maxBytes) { in getText()201 n = is.read(buf, readBytes, maxBytes - readBytes); in getText()
560 public static String trimFilename(String str, int maxBytes) { in trimFilename() argument562 trimFilename(res, maxBytes); in trimFilename()566 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() argument568 if (raw.length > maxBytes) { in trimFilename()569 maxBytes -= 3; in trimFilename()570 while (raw.length > maxBytes) { in trimFilename()
46 size_t releaseFromStart(size_t maxBytes);115 size_t PageCache::releaseFromStart(size_t maxBytes) { in releaseFromStart() argument118 while (maxBytes > 0 && !mActivePages.empty()) { in releaseFromStart()123 if (maxBytes < page->mSize) { in releaseFromStart()129 maxBytes -= page->mSize; in releaseFromStart()497 size_t maxBytes = mLastAccessPos - mCacheOffset; in restartPrefetcherIfNecessary_l() local500 if (maxBytes < kGrayArea) { in restartPrefetcherIfNecessary_l()504 maxBytes -= kGrayArea; in restartPrefetcherIfNecessary_l()507 size_t actualBytes = mCache->releaseFromStart(maxBytes); in restartPrefetcherIfNecessary_l()
2622 final int maxBytes = mContext.getResources().getInteger( in loadGlobalSettings() local2624 if (maxBytes > 0) { in loadGlobalSettings()2626 Integer.toString(maxBytes)); in loadGlobalSettings()