HomeSort by relevance Sort by last modified time
    Searched refs:maxBytes (Results 1 - 25 of 107) sorted by null

1 2 3 4 5

  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
ByteArrayRingBuffer.java 30 * 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) {
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) {
85 pruneToSize(maxBytes);
86 mMaxBytes = maxBytes;
  /tools/tradefederation/core/src/com/android/tradefed/device/
ILogcatReceiver.java 34 public InputStreamSource getLogcatData(int maxBytes);
LogcatReceiver.java 82 public InputStreamSource getLogcatData(int maxBytes) {
83 return mReceiver.getData(maxBytes);
LargeOutputReceiver.java 97 * Gets the last <var>maxBytes</var> of collected output as a {@link InputStreamSource}.
99 * @param maxBytes the maximum amount of data to return. Should be an amount that can
103 public synchronized InputStreamSource getData(final int maxBytes) {
108 final FixedByteArrayOutputStream os = new FixedByteArrayOutputStream(maxBytes);
  /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
CollationWeights.java 32 maxBytes[1] = Collation.TRAIL_WEIGHT_BYTE;
35 maxBytes[2] = Collation.PRIMARY_COMPRESSION_HIGH_BYTE - 1;
38 maxBytes[2] = 0xff;
41 maxBytes[3] = 0xff;
43 maxBytes[4] = 0xff;
50 maxBytes[1] = 0;
52 maxBytes[2] = 0;
54 maxBytes[3] = 0xff;
56 maxBytes[4] = 0xff;
63 maxBytes[1] = 0
    [all...]
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
CollationWeights.java 30 maxBytes[1] = Collation.TRAIL_WEIGHT_BYTE;
33 maxBytes[2] = Collation.PRIMARY_COMPRESSION_HIGH_BYTE - 1;
36 maxBytes[2] = 0xff;
39 maxBytes[3] = 0xff;
41 maxBytes[4] = 0xff;
48 maxBytes[1] = 0;
50 maxBytes[2] = 0;
52 maxBytes[3] = 0xff;
54 maxBytes[4] = 0xff;
61 maxBytes[1] = 0
    [all...]
  /external/icu/icu4c/source/i18n/
collationweights.cpp 101 minBytes[i] = maxBytes[i] = 0;
109 maxBytes[1] = Collation::TRAIL_WEIGHT_BYTE;
112 maxBytes[2] = Collation::PRIMARY_COMPRESSION_HIGH_BYTE - 1;
115 maxBytes[2] = 0xff;
118 maxBytes[3] = 0xff;
120 maxBytes[4] = 0xff;
128 maxBytes[1] = 0;
130 maxBytes[2] = 0;
132 maxBytes[3] = 0xff;
134 maxBytes[4] = 0xff
    [all...]
collationweights.h 87 return (int32_t)(maxBytes[idx] - minBytes[idx] + 1);
104 uint32_t maxBytes[5];
  /external/dng_sdk/source/
dng_string.h 68 uint32 maxBytes = 6,
81 void Truncate (uint32 maxBytes);
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
CacheManager.java 40 int maxEntries, int maxBytes, int version) {
51 cache = new BlobCache(path, maxEntries, maxBytes, false,
  /packages/apps/Settings/src/com/android/settings/bluetooth/
Utf8ByteLengthFilter.java 43 Utf8ByteLengthFilter(int maxBytes) {
44 mMaxBytes = maxBytes;
  /system/timezone/distro/core/src/main/com/android/timezone/distro/
FileUtils.java 162 * Reads up to {@code maxBytes} bytes from the specified file. The returned array can be
163 * shorter than {@code maxBytes} if the file is shorter.
165 public static byte[] readBytes(File file, int maxBytes) throws IOException {
166 if (maxBytes <= 0) {
167 throw new IllegalArgumentException("maxBytes ==" + maxBytes);
171 byte[] max = new byte[maxBytes];
172 int bytesRead = in.read(max, 0, maxBytes);
  /external/autotest/site_utils/stats/
log_daemon_common.py 38 args.output_logfile, maxBytes=10**6, backupCount=5)
  /external/skia/src/core/
SkImageFilterCache.cpp 30 CacheImpl(size_t maxBytes) : fMaxBytes(maxBytes), fCurrentBytes(0) { }
134 SkImageFilterCache* SkImageFilterCache::Create(size_t maxBytes) {
135 return new CacheImpl(maxBytes);
SkImageFilterCache.h 56 static SkImageFilterCache* Create(size_t maxBytes);
  /external/skqp/src/core/
SkImageFilterCache.cpp 30 CacheImpl(size_t maxBytes) : fMaxBytes(maxBytes), fCurrentBytes(0) { }
134 SkImageFilterCache* SkImageFilterCache::Create(size_t maxBytes) {
135 return new CacheImpl(maxBytes);
SkImageFilterCache.h 56 static SkImageFilterCache* Create(size_t maxBytes);
  /frameworks/av/services/audioflinger/
BufLog.cpp 76 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) {
125 ALOGV("Creating BufLogStream id:%d tag:%s format:%#x ch:%d sr:%d maxbytes:%zu", mId, mTag,
BufLog.h 57 * long maxBytes = 10 * samplingRate * frameSize; //10 seconds max
58 * BUFLOG(11, "loudnes_enhancer_out", format, channels, samplingRate, maxBytes,
81 #define __BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \
82 BufLogSingleton::instance()->write(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, \
85 #define BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \
88 #define BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \
89 __BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE)
120 size_t maxBytes);
165 // maxBytes: int [0 or positive number]
175 size_t maxBytes,
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/log/
LogReceiver.java 71 public InputStreamSource getLogcatData(int maxBytes) {
72 return mReceiver.getData(maxBytes);
  /system/netd/server/
BandwidthController.cpp 372 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) {
378 if (!maxBytes) {
386 if (maxBytes == -1) {
404 chain, maxBytes, cost));
414 mSharedQuotaBytes = maxBytes;
418 if (maxBytes != mSharedQuotaBytes) {
419 res |= updateQuota(cost, maxBytes);
425 mSharedQuotaBytes = maxBytes;
480 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) {
486 if (!maxBytes) {
    [all...]
  /frameworks/base/core/java/android/os/
DropBoxManager.java 187 * @param maxBytes of string to return (will truncate at this length).
190 public String getText(int maxBytes) {
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);
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
BitmapLoader.java 65 int maxBytes = (int) (width * height * BYTES_PER_PIXEL * CACHE_SIZE_TO_SCREEN);
66 sLruCache = new LruCache<Long, Bitmap>(maxBytes) {
  /frameworks/av/media/libstagefright/
NuCachedSource2.cpp 46 size_t releaseFromStart(size_t maxBytes);
115 size_t PageCache::releaseFromStart(size_t maxBytes) {
118 while (maxBytes > 0 && !mActivePages.empty()) {
123 if (maxBytes < page->mSize) {
129 maxBytes -= page->mSize;
497 size_t maxBytes = mLastAccessPos - mCacheOffset;
500 if (maxBytes < kGrayArea) {
504 maxBytes -= kGrayArea;
507 size_t actualBytes = mCache->releaseFromStart(maxBytes);
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BlobCache.java 30 // [8] MaxBytes: Max number of data bytes per region (including header).
57 // public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) throws IOException;
130 // them can grow to the size specified by maxBytes. The maxEntries parameter
133 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset)
135 this(path, maxEntries, maxBytes, reset, 0);
138 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset,
149 resetCache(maxEntries, maxBytes);
300 private void resetCache(int maxEntries, int maxBytes) throws IOException {
307 writeInt(buf, IH_MAX_BYTES, maxBytes);

Completed in 997 milliseconds

1 2 3 4 5