/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 39 static final int MAX_SIZE = 100; field in CacheEvictionTest 61 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(MAX_SIZE).build(loader); in testEviction_maxSizeOneSegment() 62 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxSizeOneSegment() 64 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxSizeOneSegment() 67 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxSizeOneSegment() 76 .maximumWeight(2 * MAX_SIZE) in testEviction_maxWeightOneSegment() 79 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxWeightOneSegment() 81 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxWeightOneSegment() 84 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxWeightOneSegment() 93 .maximumSize(MAX_SIZE) in testEviction_maxSize() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 39 static final int MAX_SIZE = 100; field in CacheEvictionTest 61 CacheBuilder.newBuilder().concurrencyLevel(1).maximumSize(MAX_SIZE).build(loader); in testEviction_maxSizeOneSegment() 62 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxSizeOneSegment() 64 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxSizeOneSegment() 67 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxSizeOneSegment() 76 .maximumWeight(2 * MAX_SIZE) in testEviction_maxWeightOneSegment() 79 for (int i = 0; i < 2 * MAX_SIZE; i++) { in testEviction_maxWeightOneSegment() 81 assertEquals(Math.min(i + 1, MAX_SIZE), cache.size()); in testEviction_maxWeightOneSegment() 84 assertEquals(MAX_SIZE, cache.size()); in testEviction_maxWeightOneSegment() 93 .maximumSize(MAX_SIZE) in testEviction_maxSize() [all …]
|
/external/perfetto/src/trace_processor/ |
D | storage_minimal_smoke_test.cc | 52 const size_t MAX_SIZE = 1 << 20; in TEST_F() local 54 std::unique_ptr<uint8_t[]> buf(new uint8_t[MAX_SIZE]); in TEST_F() 55 auto rsize = fread(reinterpret_cast<char*>(buf.get()), 1, MAX_SIZE, f); in TEST_F() 75 const size_t MAX_SIZE = 1 << 20; in TEST_F() local 78 std::unique_ptr<uint8_t[]> buf(new uint8_t[MAX_SIZE]); in TEST_F() 79 auto rsize = fread(reinterpret_cast<char*>(buf.get()), 1, MAX_SIZE, f); in TEST_F() 86 const size_t MAX_SIZE = 1 << 20; in TEST_F() local 88 std::unique_ptr<uint8_t[]> buf(new uint8_t[MAX_SIZE]); in TEST_F() 89 auto rsize = fread(reinterpret_cast<char*>(buf.get()), 1, MAX_SIZE, f); in TEST_F()
|
/external/oss-fuzz/projects/mysql-server/targets/ |
D | fuzz_initfile.cc | 62 #define MAX_SIZE 256 macro 74 char command[MAX_SIZE]; in LLVMFuzzerTestOneInput() 75 char argbase[MAX_SIZE]; in LLVMFuzzerTestOneInput() 76 char arginitfile[MAX_SIZE]; in LLVMFuzzerTestOneInput() 78 snprintf(command, MAX_SIZE-1, "%s/mysql/data", filepath); in LLVMFuzzerTestOneInput() 81 snprintf(argbase, MAX_SIZE-1, "--basedir=%s/mysql/", filepath); in LLVMFuzzerTestOneInput() 82 snprintf(arginitfile, MAX_SIZE-1, "--init-file=%s/initnopw.sql", filepath); in LLVMFuzzerTestOneInput()
|
D | fuzz_mysqld.cc | 114 #define MAX_SIZE 256 macro 126 char command[MAX_SIZE]; in LLVMFuzzerTestOneInput() 127 char argbase[MAX_SIZE]; in LLVMFuzzerTestOneInput() 128 char arginitfile[MAX_SIZE]; in LLVMFuzzerTestOneInput() 129 snprintf(command, MAX_SIZE-1, "%s/mysql/data", filepath); in LLVMFuzzerTestOneInput() 132 snprintf(argbase, MAX_SIZE-1, "--basedir=%s/mysql/", filepath); in LLVMFuzzerTestOneInput() 133 snprintf(arginitfile, MAX_SIZE-1, "--init-file=%s/init.sql", filepath); in LLVMFuzzerTestOneInput()
|
D | fuzz_docommand.cc | 105 #define MAX_SIZE 256 macro 118 char command[MAX_SIZE]; in LLVMFuzzerTestOneInput() 119 char argbase[MAX_SIZE]; in LLVMFuzzerTestOneInput() 120 char arginitfile[MAX_SIZE]; in LLVMFuzzerTestOneInput() 121 snprintf(command, MAX_SIZE-1, "%s/mysql/data", filepath); in LLVMFuzzerTestOneInput() 124 snprintf(argbase, MAX_SIZE-1, "--basedir=%s/mysql/", filepath); in LLVMFuzzerTestOneInput() 125 snprintf(arginitfile, MAX_SIZE-1, "--init-file=%s/initnopw.sql", filepath); in LLVMFuzzerTestOneInput()
|
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2CellId.java | 60 public static final int MAX_SIZE = 1 << MAX_LEVEL; field in S2CellId 196 int si = (i.intValue() << 1) + delta - MAX_SIZE; in toPointRaw() 197 int ti = (j.intValue() << 1) + delta - MAX_SIZE; in toPointRaw() 570 i.intValue() + size < MAX_SIZE).parent(level); in getEdgeNeighbors() 572 j.intValue() + size < MAX_SIZE).parent(level); in getEdgeNeighbors() 603 isame = (i.intValue() + size) < MAX_SIZE; in getVertexNeighbors() 610 jsame = (j.intValue() + size) < MAX_SIZE; in getVertexNeighbors() 663 sameFace = (j.intValue() + k < MAX_SIZE); in getAllNeighbors() 670 j.intValue() + size < MAX_SIZE).parent(nbrLevel)); in getAllNeighbors() 677 sameFace && i.intValue() + size < MAX_SIZE).parent(nbrLevel)); in getAllNeighbors() [all …]
|
/external/volley/core/src/test/java/com/android/volley/toolbox/ |
D | DiskBasedCacheTest.java | 65 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/ |
D | BaseKeyPool.java | 8 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/ |
D | test_unit_rotation.c | 44 #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/ |
D | fs_racer_file_create.sh | 24 MAX_SIZE=2000000 27 SIZE=$(($RANDOM*MAX_SIZE/32767))
|
/external/ltp/testcases/kernel/syscalls/getrandom/ |
D | getrandom03.c | 13 #define MAX_SIZE 256 macro 29 char buf[MAX_SIZE]; in verify_getrandom()
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | CommonBufferTest.kt | 92 buffer.write(ByteArray(SegmentPool.MAX_SIZE)) in fillAndDrainPool() 93 buffer.write(ByteArray(SegmentPool.MAX_SIZE)) in fillAndDrainPool() 97 buffer.skip(SegmentPool.MAX_SIZE.toLong()) in fillAndDrainPool() 98 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.byteCount) in fillAndDrainPool() 101 buffer.skip(SegmentPool.MAX_SIZE.toLong()) in fillAndDrainPool() 102 assertEquals(SegmentPool.MAX_SIZE, SegmentPool.byteCount) in fillAndDrainPool() 105 buffer.write(ByteArray(SegmentPool.MAX_SIZE)) in fillAndDrainPool() 109 buffer.write(ByteArray(SegmentPool.MAX_SIZE)) in fillAndDrainPool()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | SegmentPool.java | 25 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/ |
D | SegmentPool.java | 26 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 | 15 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/openjdk/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/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | FileClientSessionCacheTest.java | 40 final int iterations = FileClientSessionCache.MAX_SIZE * 10; in testMaxSize() 58 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length); in testMaxSize()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_test_dma_perf.c | 32 #define MAX_SIZE (128 * 1024 * 1024) macro 71 for (unsigned size = MIN_SIZE; size <= MAX_SIZE; size <<= SIZE_SHIFT) { in si_test_dma_perf() 97 for (unsigned size = MIN_SIZE; size <= MAX_SIZE; size <<= SIZE_SHIFT) in si_test_dma_perf() 152 for (unsigned size = MIN_SIZE; size <= MAX_SIZE; size <<= SIZE_SHIFT) { in si_test_dma_perf() 343 for (unsigned size = MIN_SIZE; size <= MAX_SIZE; size <<= SIZE_SHIFT) { in si_test_dma_perf()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | FileClientSessionCache.java | 45 public static final int MAX_SIZE = 12; // ~72k field in FileClientSessionCache 118 return new LinkedHashMap<String, File>(MAX_SIZE, 0.75f, true /* access order */); in newAccessOrder() 246 if (size <= MAX_SIZE) { in makeRoom() 253 int removals = size - MAX_SIZE; in makeRoom()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | FileClientSessionCache.java | 48 public static final int MAX_SIZE = 12; // ~72k field in FileClientSessionCache 121 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/okio/okio/src/jvmMain/kotlin/okio/ |
D | SegmentPool.kt | 45 actual val MAX_SIZE = 64 * 1024 // 64 KiB. constant 110 if (firstLimit >= MAX_SIZE) return // Pool is full. in recycle()
|
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/ |
D | main.c | 14 #define MAX_SIZE (4 * 1024 * 1024) macro 15 char temp[MAX_SIZE], compact[MAX_SIZE];
|
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 79 #define MAX_SIZE (4 * 1024 * 1024) macro 80 char temp[MAX_SIZE], compact[MAX_SIZE];
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | parser.py | 46 MAX_SIZE = 0 variable 53 MAX_SIZE = sys.maxsize variable 56 MAX_SIZE = sys.maxint variable 288 minl, maxl = MAX_SIZE, 0
|