/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 41 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/chromium_org/v8/src/heap/ |
D | gc-tracer.h | 15 template <typename T, size_t MAX_SIZE> 40 index_ = (index_ + 1) % (MAX_SIZE + 1); 45 index_ = (index_ + MAX_SIZE) % (MAX_SIZE + 1); 58 return (end_ - begin_ + MAX_SIZE + 1) % (MAX_SIZE + 1); in size() 65 end_ = (end_ + 1) % (MAX_SIZE + 1); in push_back() 66 if (end_ == begin_) begin_ = (begin_ + 1) % (MAX_SIZE + 1); in push_back() 69 begin_ = (begin_ + MAX_SIZE) % (MAX_SIZE + 1); in push_front() 70 if (begin_ == end_) end_ = (end_ + MAX_SIZE) % (MAX_SIZE + 1); in push_front() 75 T elements_[MAX_SIZE + 1];
|
/external/skia/tests/ |
D | BBoxHierarchyTest.cpp | 23 static const int MAX_SIZE = 1000; variable 33 rect.fLeft = rand.nextS() % MAX_SIZE; in random_rect() 34 rect.fRight = rand.nextS() % MAX_SIZE; in random_rect() 35 rect.fTop = rand.nextS() % MAX_SIZE; in random_rect() 36 rect.fBottom = rand.nextS() % MAX_SIZE; in random_rect() 174 SkIRect::MakeLTRB(-MAX_SIZE, -MAX_SIZE, MAX_SIZE, MAX_SIZE))); in DEF_TEST() 180 SkIRect::MakeLTRB(-MAX_SIZE, -MAX_SIZE, MAX_SIZE, MAX_SIZE))); in DEF_TEST()
|
D | StreamTest.cpp | 19 #define MAX_SIZE (256 * 1024) macro
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
D | BaseKeyPool.java | 10 private static final int MAX_SIZE = 20; field in BaseKeyPool 15 keyPool = new ArrayDeque<T>(MAX_SIZE); in BaseKeyPool() 30 if (keyPool.size() < MAX_SIZE) { in offer()
|
/external/chromium_org/third_party/opus/src/celt/tests/ |
D | test_unit_rotation.c | 48 #define MAX_SIZE 100 macro 55 opus_val16 x0[MAX_SIZE]; in test_rotation() 56 opus_val16 x1[MAX_SIZE]; in test_rotation()
|
/external/libopus/celt/tests/ |
D | test_unit_rotation.c | 48 #define MAX_SIZE 100 macro 55 opus_val16 x0[MAX_SIZE]; in test_rotation() 56 opus_val16 x1[MAX_SIZE]; in test_rotation()
|
/external/chromium_org/third_party/skia/tests/ |
D | BBoxHierarchyTest.cpp | 20 static const SkScalar MAX_SIZE = 1000.0f; variable 30 rect.fLeft = rand.nextRangeF(0, MAX_SIZE); in random_rect() 31 rect.fRight = rand.nextRangeF(0, MAX_SIZE); in random_rect() 32 rect.fTop = rand.nextRangeF(0, MAX_SIZE); in random_rect() 33 rect.fBottom = rand.nextRangeF(0, MAX_SIZE); in random_rect()
|
D | StreamTest.cpp | 19 #define MAX_SIZE (256 * 1024) macro
|
/external/okhttp/okio/src/main/java/okio/ |
D | SegmentPool.java | 27 static final long MAX_SIZE = 64 * 1024; // 64 KiB. field in SegmentPool 54 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. in recycle()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | ByteArrayPool.java | 13 private static final int MAX_SIZE = 512 * 1024; field in ByteArrayPool 14 private static final int MAX_BYTE_ARRAY_COUNT = MAX_SIZE / TEMP_BYTES_SIZE;
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | FileClientSessionCacheTest.java | 36 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/ |
D | FileClientSessionCache.java | 39 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/okhttp/okio/src/test/java/okio/ |
D | OkBufferTest.java | 122 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool() 123 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool() 127 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool() 128 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.INSTANCE.byteCount); in fillAndDrainPool() 131 buffer.readByteString(SegmentPool.MAX_SIZE); in fillAndDrainPool() 132 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.INSTANCE.byteCount); in fillAndDrainPool() 135 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool() 139 buffer.write(new byte[(int) SegmentPool.MAX_SIZE]); in fillAndDrainPool()
|
/external/chromium_org/net/disk_cache/blockfile/ |
D | backend_impl_v3.h | 40 MAX_SIZE = 1 << 1, // A maximum size was provided. enumerator
|
D | backend_impl_v3.cc | 106 user_flags_ |= MAX_SIZE; in SetMaxSize()
|