Searched defs:maxBytes (Results 1 - 6 of 6) 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/av/services/audioflinger/
H A DBufLog.cpp75 int samplingRate, size_t maxBytes, const void *buf, size_t size) {
83 samplingRate, maxBytes);
115 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels),
116 mSamplingRate(samplingRate), mMaxBytes(maxBytes) {
74 write(int streamid, const char *tag, int format, int channels, int samplingRate, size_t maxBytes, const void *buf, size_t size) argument
/frameworks/base/core/java/android/os/
H A DDropBoxManager.java187 * @param maxBytes of string to return (will truncate at this length).
190 public String getText(int maxBytes) { argument
192 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length));
198 byte[] buf = new byte[maxBytes];
201 while (n >= 0 && (readBytes += n) < maxBytes) {
202 n = is.read(buf, readBytes, maxBytes - readBytes);
H A DFileUtils.java563 public static String trimFilename(String str, int maxBytes) { argument
565 trimFilename(res, maxBytes);
569 private static void trimFilename(StringBuilder res, int maxBytes) { argument
571 if (raw.length > maxBytes) {
572 maxBytes -= 3;
573 while (raw.length > maxBytes) {
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp327 size_t bytes, maxBytes; local
329 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes);
334 bytes, bytes * (1.0f / (1024.0f * 1024.0f)), maxBytes * (1.0f / (1024.0f * 1024.0f)));
/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 851 milliseconds