Searched refs:maxBytes (Results 1 - 10 of 10) 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.cpp76 int samplingRate, size_t maxBytes, const void *buf, size_t size) {
84 samplingRate, maxBytes);
116 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels),
117 mSamplingRate(samplingRate), mMaxBytes(maxBytes) {
75 write(int streamid, const char *tag, int format, int channels, int samplingRate, size_t maxBytes, const void *buf, size_t size) argument
H A DBufLog.h57 * long maxBytes = 10 * samplingRate * frameSize; //10 seconds max
58 * BUFLOG(11, "loudnes_enhancer_out", format, channels, samplingRate, maxBytes,
120 size_t maxBytes);
165 // maxBytes: int [0 or positive number]
175 size_t maxBytes,
/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.java824 public static String trimFilename(String str, int maxBytes) { argument
826 trimFilename(res, maxBytes);
830 private static void trimFilename(StringBuilder res, int maxBytes) { argument
832 if (raw.length > maxBytes) {
833 maxBytes -= 3;
834 while (raw.length > maxBytes) {
/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);
66 sLruCache = new LruCache<Long, Bitmap>(maxBytes) {
/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);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp457 size_t bytes, maxBytes; local
459 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes);
464 bytes * (1.0f / (1024.0f * 1024.0f)), maxBytes * (1.0f / (1024.0f * 1024.0f)));
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java2530 final int maxBytes = mContext.getResources().getInteger(
2532 if (maxBytes > 0) {
2534 Integer.toString(maxBytes));
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1225 long maxBytes = 0;
1234 if (bytes > maxBytes) {
1235 maxBytes = bytes;
1242 if (maxBytes > 0 && maxBytes > totalBytes / 2) {

Completed in 260 milliseconds