Home
last modified time | relevance | path

Searched refs:MAX_SIZE (Results 1 – 25 of 31) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/cache/
DCacheEvictionTest.java41 static final int MAX_SIZE = 100; field in CacheEvictionTest
68 .maximumSize(MAX_SIZE) in testEviction_maxSizeOneSegment()
70 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxSizeOneSegment()
72 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxSizeOneSegment()
75 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxSizeOneSegment()
83 .maximumWeight(2 * MAX_SIZE) in testEviction_maxWeightOneSegment()
86 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxWeightOneSegment()
88 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxWeightOneSegment()
91 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxWeightOneSegment()
99 .maximumSize(MAX_SIZE) in testEviction_maxSize()
[all …]
/external/v8/src/heap/
Dgc-tracer.h16 template <typename T, size_t MAX_SIZE>
41 index_ = (index_ + 1) % (MAX_SIZE + 1);
46 index_ = (index_ + MAX_SIZE) % (MAX_SIZE + 1);
59 return (end_ - begin_ + MAX_SIZE + 1) % (MAX_SIZE + 1); in size()
66 end_ = (end_ + 1) % (MAX_SIZE + 1); in push_back()
67 if (end_ == begin_) begin_ = (begin_ + 1) % (MAX_SIZE + 1); in push_back()
70 begin_ = (begin_ + MAX_SIZE) % (MAX_SIZE + 1); in push_front()
71 if (begin_ == end_) end_ = (end_ + MAX_SIZE) % (MAX_SIZE + 1); in push_front()
81 T elements_[MAX_SIZE + 1];
/external/valgrind/memcheck/tests/solaris/
Dbrk.c44 #define MAX_SIZE 8192 in test_updown() macro
46 for (i = 0; i < MAX_SIZE; i++) { in test_updown()
52 for (i = 0; i < MAX_SIZE; i++) { in test_updown()
53 tmp = syscall(SYS_brk, begin + MAX_SIZE - 1 - i); in test_updown()
56 #undef MAX_SIZE in test_updown()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
DBaseKeyPool.java8 private static final int MAX_SIZE = 20; field in BaseKeyPool
9 private final Queue<T> keyPool = Util.createQueue(MAX_SIZE);
20 if (keyPool.size() < MAX_SIZE) { in offer()
/external/libopus/celt/tests/
Dtest_unit_rotation.c48 #define MAX_SIZE 100 macro
55 opus_val16 x0[MAX_SIZE]; in test_rotation()
56 opus_val16 x1[MAX_SIZE]; in test_rotation()
/external/okhttp/okio/okio/src/main/java/okio/
DSegmentPool.java25 static final long MAX_SIZE = 64 * 1024; // 64 KiB. field in SegmentPool
53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. in recycle()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DByteArrayPool.java15 private static final int MAX_SIZE = 2 * 1048 * 1024; field in ByteArrayPool
16 private static final int MAX_BYTE_ARRAY_COUNT = MAX_SIZE / TEMP_BYTES_SIZE;
/external/conscrypt/src/main/java/org/conscrypt/
DFileClientSessionCache.java39 public static final int MAX_SIZE = 12; // ~72k field in FileClientSessionCache
114 MAX_SIZE, 0.75f, true /* access order */); in newAccessOrder()
248 if (size <= MAX_SIZE) { in makeRoom()
255 int removals = size - MAX_SIZE; in makeRoom()
/external/conscrypt/src/test/java/org/conscrypt/
DFileClientSessionCacheTest.java36 final int iterations = FileClientSessionCache.MAX_SIZE * 10; in testMaxSize()
54 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length); in testMaxSize()
/external/pdfium/third_party/libopenjpeg20/
D0001-image-data.patch16 + const OPJ_UINT32 MAX_SIZE = UINT32_MAX / sizeof(OPJ_INT32);
17 + if (height == 0 || width > MAX_SIZE / height) {
Dj2k.c8157 const OPJ_UINT32 MAX_SIZE = UINT32_MAX / sizeof(OPJ_INT32); in opj_j2k_update_image_data() local
8158 if (height == 0 || width > MAX_SIZE / height) { in opj_j2k_update_image_data()
/external/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java119 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool()
120 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool()
124 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool()
125 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.byteCount); in fillAndDrainPool()
128 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool()
129 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.byteCount); in fillAndDrainPool()
132 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool()
136 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool()
/external/guava/guava/src/com/google/common/base/
DSmallCharMatcher.java33 static final int MAX_SIZE = 1023; field in SmallCharMatcher
DCharMatcher.java879 return totalCharacters <= SmallCharMatcher.MAX_SIZE
/external/caliper/lib/
Djava-allocation-instrumenter-2.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/skia/tests/
DStreamTest.cpp22 #define MAX_SIZE (256 * 1024) macro
/external/zxing/core/
Dcore.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/guice/extensions/struts2/lib/
Dant-1.6.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/dagger2/lib/
Dauto-value-1.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/tools/findbugs/lib/
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/jarjar/lib/
Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.ui.workbench_3.6.1.M20101117-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/robolectric/v3/runtime/
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12