Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/os/
H A DDropBoxManager.java229 public @Nullable String getText(@BytesLong int maxBytes) { in getText() argument
231 if (mData != null) return new String(mData, 0, Math.min(maxBytes, mData.length)); in getText()
237 byte[] buf = new byte[maxBytes]; in getText()
240 while (n >= 0 && (readBytes += n) < maxBytes) { in getText()
241 n = is.read(buf, readBytes, maxBytes - readBytes); in getText()
H A DFileUtils.java1053 public static String trimFilename(String str, int maxBytes) { in trimFilename() argument
1055 trimFilename(res, maxBytes); in trimFilename()
1060 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() argument
1062 if (raw.length > maxBytes) { in trimFilename()
1063 maxBytes -= 3; in trimFilename()
1064 while (raw.length > maxBytes) { in trimFilename()
/aosp14/frameworks/base/media/native/midi/
H A Damidi.cpp320 ssize_t receive(int32_t *opcodePtr, uint8_t *buffer, size_t maxBytes, in receive() argument
346 numMessageBytes = std::min(maxBytes, numMessageBytes); in receive()
362 uint8_t *buffer, size_t maxBytes, size_t* numBytesReceivedPtr, int64_t *timestampPtr) { in AMidiOutputPort_receive() argument
368 return MidiReceiver((AMIDI_Port*)outputPort).receive(opcodePtr, buffer, maxBytes, in AMidiOutputPort_receive()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
H A 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()
/aosp14/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
H A DBluetoothMidiDecoderTest.java49 final int maxBytes = 20; in DecoderChecker() local
50 mDecoder = new BluetoothPacketDecoder(maxBytes); in DecoderChecker()
H A DBluetoothMidiEncoderTest.java64 final int maxBytes = 20; in EncoderChecker() local
65 mEncoder = new BluetoothPacketEncoder(mReceiver, maxBytes); in EncoderChecker()
/aosp14/frameworks/base/media/native/midi/include/amidi/
H A DAMidi.h278 …uint8_t *buffer, size_t maxBytes, size_t* numBytesReceivedPtr, int64_t *outTimestampPtr) __INTRODU…
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp597 size_t maxBytes = mRenderThread.getGrContext()->getResourceCacheLimit(); in dumpResourceCacheUsage() local
602 bytes * (1.0f / (1024.0f * 1024.0f)), maxBytes * (1.0f / (1024.0f * 1024.0f))); in dumpResourceCacheUsage()
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java2471 final int maxBytes = res.getInteger( in loadGlobalSettings() local
2473 if (maxBytes > 0) { in loadGlobalSettings()
2475 Integer.toString(maxBytes)); in loadGlobalSettings()
/aosp14/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1547 long maxBytes = 0; in findRapidBlame() local
1558 if (bytes > maxBytes) { in findRapidBlame()
1559 maxBytes = bytes; in findRapidBlame()
1566 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...