Home
last modified time | relevance | path

Searched refs:maxBytes (Results 1 – 15 of 15) 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.java1029 public static String trimFilename(String str, int maxBytes) { in trimFilename() argument
1031 trimFilename(res, maxBytes); in trimFilename()
1036 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() argument
1038 if (raw.length > maxBytes) { in trimFilename()
1039 maxBytes -= 3; in trimFilename()
1040 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.h184 …uint8_t *buffer, size_t maxBytes, size_t* numBytesReceivedPtr, int64_t *outTimestampPtr) __INTRODU…
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp578 size_t maxBytes = mRenderThread.getGrContext()->getResourceCacheLimit(); in dumpResourceCacheUsage() local
583 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.java2479 final int maxBytes = res.getInteger( in loadGlobalSettings() local
2481 if (maxBytes > 0) { in loadGlobalSettings()
2483 Integer.toString(maxBytes)); in loadGlobalSettings()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1266 long maxBytes = 0; in findRapidBlame() local
1275 if (bytes > maxBytes) { in findRapidBlame()
1276 maxBytes = bytes; in findRapidBlame()
1283 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...