Home
last modified time | relevance | path

Searched refs:maxBytes (Results 1 – 12 of 12) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DByteArrayRingBuffer.java34 public ByteArrayRingBuffer(int maxBytes) { in ByteArrayRingBuffer() argument
35 if (maxBytes < 1) { in ByteArrayRingBuffer()
39 mMaxBytes = maxBytes; in ByteArrayRingBuffer()
84 public void resize(int maxBytes) { in resize() argument
85 pruneToSize(maxBytes); in resize()
86 mMaxBytes = maxBytes; in resize()
/frameworks/av/services/audioflinger/
DBufLog.cpp76 int samplingRate, size_t maxBytes, const void *buf, size_t size) { in write() argument
84 samplingRate, maxBytes); in write()
116 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels), in BufLogStream() argument
117 mSamplingRate(samplingRate), mMaxBytes(maxBytes) { in BufLogStream()
DBufLog.h120 size_t maxBytes);
175 size_t maxBytes,
/frameworks/av/media/libdatasource/
DNuCachedSource2.cpp46 size_t releaseFromStart(size_t maxBytes);
115 size_t PageCache::releaseFromStart(size_t maxBytes) { in releaseFromStart() argument
118 while (maxBytes > 0 && !mActivePages.empty()) { in releaseFromStart()
123 if (maxBytes < page->mSize) { in releaseFromStart()
129 maxBytes -= page->mSize; in releaseFromStart()
501 size_t maxBytes = mLastAccessPos - mCacheOffset; in restartPrefetcherIfNecessary_l() local
504 if (maxBytes < kGrayArea) { in restartPrefetcherIfNecessary_l()
508 maxBytes -= kGrayArea; in restartPrefetcherIfNecessary_l()
511 size_t actualBytes = mCache->releaseFromStart(maxBytes); in restartPrefetcherIfNecessary_l()
/frameworks/base/core/java/android/os/
DDropBoxManager.java205 public String getText(int maxBytes) { in getText() argument
207 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length)); in getText()
213 byte[] buf = new byte[maxBytes]; in getText()
216 while (n >= 0 && (readBytes += n) < maxBytes) { in getText()
217 n = is.read(buf, readBytes, maxBytes - readBytes); in getText()
DFileUtils.java1025 public static String trimFilename(String str, int maxBytes) { in trimFilename() argument
1027 trimFilename(res, maxBytes); in trimFilename()
1032 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() argument
1034 if (raw.length > maxBytes) { in trimFilename()
1035 maxBytes -= 3; in trimFilename()
1036 while (raw.length > maxBytes) { in trimFilename()
/frameworks/base/media/native/midi/
Damidi.cpp312 ssize_t receive(int32_t *opcodePtr, uint8_t *buffer, size_t maxBytes, in receive() argument
338 numMessageBytes = std::min(maxBytes, numMessageBytes); in receive()
354 uint8_t *buffer, size_t maxBytes, size_t* numBytesReceivedPtr, int64_t *timestampPtr) { in AMidiOutputPort_receive() argument
360 return MidiReceiver((AMIDI_Port*)outputPort).receive(opcodePtr, buffer, maxBytes, in AMidiOutputPort_receive()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DBitmapLoader.java65 int maxBytes = (int) (width * height * BYTES_PER_PIXEL * CACHE_SIZE_TO_SCREEN); in getLruCache() local
66 sLruCache = new LruCache<Long, Bitmap>(maxBytes) { in getLruCache()
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h182 …uint8_t *buffer, size_t maxBytes, size_t* numBytesReceivedPtr, int64_t *outTimestampPtr) __INTRODU…
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp434 size_t bytes, maxBytes; in dumpResourceCacheUsage() local
436 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes); in dumpResourceCacheUsage()
441 bytes * (1.0f / (1024.0f * 1024.0f)), maxBytes * (1.0f / (1024.0f * 1024.0f))); in dumpResourceCacheUsage()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java2505 final int maxBytes = res.getInteger( in loadGlobalSettings() local
2507 if (maxBytes > 0) { in loadGlobalSettings()
2509 Integer.toString(maxBytes)); in loadGlobalSettings()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1260 long maxBytes = 0; in findRapidBlame() local
1269 if (bytes > maxBytes) { in findRapidBlame()
1270 maxBytes = bytes; in findRapidBlame()
1277 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()