Searched refs:maxBytes (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/os/
H A DDropBoxManager.java184 * @param maxBytes of string to return (will truncate at this length).
187 public String getText(int maxBytes) { argument
189 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length));
195 byte[] buf = new byte[maxBytes];
198 while (n >= 0 && (readBytes += n) < maxBytes) {
199 n = is.read(buf, readBytes, maxBytes - readBytes);
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp44 size_t releaseFromStart(size_t maxBytes);
113 size_t PageCache::releaseFromStart(size_t maxBytes) { argument
116 while (maxBytes > 0 && !mActivePages.empty()) {
121 if (maxBytes < page->mSize) {
127 maxBytes -= page->mSize;
447 size_t maxBytes = mLastAccessPos - mCacheOffset; local
450 if (maxBytes < kGrayArea) {
454 maxBytes -= kGrayArea;
457 size_t actualBytes = mCache->releaseFromStart(maxBytes);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java2127 final int maxBytes = mContext.getResources().getInteger(
2129 if (maxBytes > 0) {
2131 Integer.toString(maxBytes));

Completed in 102 milliseconds