Home
last modified time | relevance | path

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

/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/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/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/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/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/skia/tests/
DStreamTest.cpp22 #define MAX_SIZE (256 * 1024) macro