Home
last modified time | relevance | path

Searched refs:MAX_SIZE (Results 1 – 25 of 33) 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/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java65 private static final int MAX_SIZE = 1024 * 1024; field in DiskBasedCacheTest
76 cache = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE); in setup()
137 Cache copy = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE); in testReinitialize()
170 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("oversize")); in testTooLargeEntry()
178 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("maxsize") - 1); in testMaxSizeEntry()
187 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("maxsize") - 1); in testTrimAtThreshold()
202 Cache.Entry entry1 = randomData(MAX_SIZE / 3 - getEntrySizeOnDisk("entry1") - 1); in testTrimWithMultipleEvictions_underHysteresisThreshold()
204 Cache.Entry entry2 = randomData(MAX_SIZE / 3 - getEntrySizeOnDisk("entry2") - 1); in testTrimWithMultipleEvictions_underHysteresisThreshold()
206 Cache.Entry entry3 = randomData(MAX_SIZE / 3 - getEntrySizeOnDisk("entry3") - 1); in testTrimWithMultipleEvictions_underHysteresisThreshold()
215 (int) (DiskBasedCache.HYSTERESIS_FACTOR * MAX_SIZE) in testTrimWithMultipleEvictions_underHysteresisThreshold()
[all …]
/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.c44 #define MAX_SIZE 100 macro
51 opus_val16 x0[MAX_SIZE]; in test_rotation()
52 opus_val16 x1[MAX_SIZE]; in test_rotation()
/external/ltp/testcases/kernel/fs/racer/
Dfs_racer_file_create.sh24 MAX_SIZE=2000000
27 SIZE=$(($RANDOM*MAX_SIZE/32767))
/external/ltp/testcases/kernel/syscalls/getrandom/
Dgetrandom03.c37 #define MAX_SIZE 256 macro
53 char buf[MAX_SIZE]; in verify_getrandom()
/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/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DSegmentPool.java26 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/
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/repackaged/common/src/main/java/com/android/org/conscrypt/
DFileClientSessionCache.java47 public static final int MAX_SIZE = 12; // ~72k field in FileClientSessionCache
120 return new LinkedHashMap<String, File>(MAX_SIZE, 0.75f, true /* access order */); in newAccessOrder()
254 if (size <= MAX_SIZE) { in makeRoom()
261 int removals = size - MAX_SIZE; in makeRoom()
/external/conscrypt/common/src/main/java/org/conscrypt/
DFileClientSessionCache.java44 public static final int MAX_SIZE = 12; // ~72k field in FileClientSessionCache
117 return new LinkedHashMap<String, File>(MAX_SIZE, 0.75f, true /* access order */); in newAccessOrder()
250 if (size <= MAX_SIZE) { in makeRoom()
257 int removals = size - MAX_SIZE; in makeRoom()
/external/conscrypt/openjdk/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/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DFileClientSessionCacheTest.java40 final int iterations = FileClientSessionCache.MAX_SIZE * 10; in testMaxSize()
58 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length); in testMaxSize()
/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/libpng/contrib/tools/
Dpngcp.c423 # define MAX_SIZE ((png_alloc_size_t)(-1)) macro
854 dp->stack[sp].hi_size = MAX_SIZE; in push_opt()
948 assert(best_size < MAX_SIZE); in next_opt()
979 assert(lo_size < MAX_SIZE && hi_size < MAX_SIZE); in next_opt()
1113 dp->stack[sp].best_size = MAX_SIZE; in next_opt()
1201 assert(dp->write_size > 0U && dp->write_size < MAX_SIZE); in advance_opt()
1812 if ((MAX_SIZE-dp->h)/rb < dp->h) in read_png()
1894 if (dp->write_size < size || dp->write_size == MAX_SIZE) in write_function()
2162 dp->best_size = MAX_SIZE; in log_search()
2216 dp->best_size = MAX_SIZE; in cp_one_file()
[all …]
/external/lua/src/
Dlstring.c204 if (l >= (MAX_SIZE - sizeof(TString))/sizeof(char)) in luaS_newlstr()
239 if (s > MAX_SIZE - sizeof(Udata)) in luaS_newudata()
Dllimits.h42 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ macro
/external/bcc/tools/
Dmemleak_example.txt155 [-Z MAX_SIZE] [-O OBJ]
185 -Z MAX_SIZE, --max-size MAX_SIZE
/external/guava/guava/src/com/google/common/base/
DSmallCharMatcher.java33 static final int MAX_SIZE = 1023; field in SmallCharMatcher
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp77 MAX_SIZE = -1, //!< Should be queried at runtime and replaced with max possible value enumerator
705 sizeHint.x() != MAX_SIZE ? sizeHint.x() : 4096, in getMaxImageSize()
706 sizeHint.y() != MAX_SIZE ? sizeHint.y() : 4096, in getMaxImageSize()
707 sizeHint.z() != MAX_SIZE ? sizeHint.z() : 256, in getMaxImageSize()
708 sizeHint.w() != MAX_SIZE ? sizeHint.w() : 256); in getMaxImageSize()
1650 if (size[i] == MAX_SIZE) in getSizeDescription()
1710 sizes.push_back(tcu::select(IVec4(MAX_SIZE), baselineSize, bvecFromMask(*it))); in genSizeCombinations()
/external/ltp/runtest/
Dnet_stress.ipsec_icmp2 # Max ICMP message size descriptsion, MAX_SIZE is 65535
6 # MAX = MAX_SIZE - IP(20) - ICMP(8) = 65507
17 # MAX = MAX_SIZE - ICMP(8) = 65527
/external/skia/src/core/
DSkCoverageDelta.h121 static constexpr int MAX_SIZE = MAX_MASK_SIZE * (sizeof(SkFixed) + sizeof(SkAlpha)); variable
/external/libese/third_party/NXPNFC_P61_JCOP_Kit/inc/
DAla.h140 #define MAX_SIZE 0xFF macro
/external/skqp/src/core/
DSkCoverageDelta.h121 static constexpr int MAX_SIZE = MAX_MASK_SIZE * (sizeof(SkFixed) + sizeof(SkAlpha)); variable
/external/libese/third_party/NXPNFC_P61_JCOP_Kit/src/
DAla.cpp1895 while(recv_len > MAX_SIZE) in Process_EseResponse()
1904 pTranscv_Info->sSendData[xx++] = MAX_SIZE; in Process_EseResponse()
1905 recv_len = recv_len - MAX_SIZE; in Process_EseResponse()
1906 memcpy(&(pTranscv_Info->sSendData[xx]),pTranscv_Info->sRecvData,MAX_SIZE); in Process_EseResponse()
1907 pTranscv_Info->sSendlength = xx+ MAX_SIZE; in Process_EseResponse()

12