Home
last modified time | relevance | path

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

/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.java228 public @Nullable String getText(@BytesLong int maxBytes) { in getText() argument
230 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length)); in getText()
236 byte[] buf = new byte[maxBytes]; in getText()
239 while (n >= 0 && (readBytes += n) < maxBytes) { in getText()
240 n = is.read(buf, readBytes, maxBytes - readBytes); in getText()
DFileUtils.java1052 public static String trimFilename(String str, int maxBytes) { in trimFilename() argument
1054 trimFilename(res, maxBytes); in trimFilename()
1059 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() argument
1061 if (raw.length > maxBytes) { in trimFilename()
1062 maxBytes -= 3; in trimFilename()
1063 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/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DBluetoothMidiDecoderTest.java49 final int maxBytes = 20; in DecoderChecker() local
50 mDecoder = new BluetoothPacketDecoder(maxBytes); in DecoderChecker()
DBluetoothMidiEncoderTest.java63 final int maxBytes = 20; in EncoderChecker() local
64 mEncoder = new BluetoothPacketEncoder(mReceiver, maxBytes); in EncoderChecker()
/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.cpp587 size_t maxBytes = mRenderThread.getGrContext()->getResourceCacheLimit(); in dumpResourceCacheUsage() local
592 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.java2481 final int maxBytes = res.getInteger( in loadGlobalSettings() local
2483 if (maxBytes > 0) { in loadGlobalSettings()
2485 Integer.toString(maxBytes)); in loadGlobalSettings()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1415 long maxBytes = 0; in findRapidBlame() local
1424 if (bytes > maxBytes) { in findRapidBlame()
1425 maxBytes = bytes; in findRapidBlame()
1432 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()