Searched defs:maxBytes (Results 1 - 4 of 4) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DByteArrayRingBuffer.java30 * Creates a ring buffer that holds at most |maxBytes| of data. The overhead for each element
32 * @param maxBytes upper bound on the amount of data to hold
34 public ByteArrayRingBuffer(int maxBytes) { argument
35 if (maxBytes < 1) {
39 mMaxBytes = maxBytes;
82 * @param maxBytes upper bound on the amount of data to hold
84 public void resize(int maxBytes) { argument
85 pruneToSize(maxBytes);
86 mMaxBytes = maxBytes;
/frameworks/base/core/java/android/os/
H A DDropBoxManager.java186 * @param maxBytes of string to return (will truncate at this length).
189 public String getText(int maxBytes) { argument
191 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length));
197 byte[] buf = new byte[maxBytes];
200 while (n >= 0 && (readBytes += n) < maxBytes) {
201 n = is.read(buf, readBytes, maxBytes - readBytes);
H A DFileUtils.java560 public static String trimFilename(String str, int maxBytes) { argument
562 trimFilename(res, maxBytes);
566 private static void trimFilename(StringBuilder res, int maxBytes) { argument
568 if (raw.length > maxBytes) {
569 maxBytes -= 3;
570 while (raw.length > maxBytes) {
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp46 size_t releaseFromStart(size_t maxBytes);
115 size_t PageCache::releaseFromStart(size_t maxBytes) { argument
118 while (maxBytes > 0 && !mActivePages.empty()) {
123 if (maxBytes < page->mSize) {
129 maxBytes -= page->mSize;
497 size_t maxBytes = mLastAccessPos - mCacheOffset; local
500 if (maxBytes < kGrayArea) {
504 maxBytes -= kGrayArea;
507 size_t actualBytes = mCache->releaseFromStart(maxBytes);

Completed in 195 milliseconds