Home
last modified time | relevance | path

Searched refs:maxSize (Results 1 – 25 of 154) sorted by relevance

1234567

/external/guava/guava/src/com/google/common/collect/
DEvictingQueue.java51 final int maxSize; field in EvictingQueue
53 private EvictingQueue(int maxSize) { in EvictingQueue() argument
54 checkArgument(maxSize >= 0, "maxSize (%s) must >= 0", maxSize); in EvictingQueue()
55 this.delegate = new ArrayDeque<E>(maxSize); in EvictingQueue()
56 this.maxSize = maxSize; in EvictingQueue()
65 public static <E> EvictingQueue<E> create(int maxSize) { in create() argument
66 return new EvictingQueue<E>(maxSize); in create()
76 return maxSize - size(); in remainingCapacity()
101 if (maxSize == 0) { in add()
104 if (size() == maxSize) { in add()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
DLruBitmapPool.java28 private int maxSize; field in LruBitmapPool
36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { in LruBitmapPool() argument
37 this.initialMaxSize = maxSize; in LruBitmapPool()
38 this.maxSize = maxSize; in LruBitmapPool()
48 public LruBitmapPool(int maxSize) { in LruBitmapPool() argument
49 this(maxSize, getDefaultStrategy()); in LruBitmapPool()
54 return maxSize; in getMaxSize()
59 maxSize = Math.round(initialMaxSize * sizeMultiplier); in setSizeMultiplier()
65 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { in put()
90 trimToSize(maxSize); in evict()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DDiskLruCacheWrapper.java30 private final int maxSize; field in DiskLruCacheWrapper
42 public static synchronized DiskCache get(File directory, int maxSize) { in get() argument
45 wrapper = new DiskLruCacheWrapper(directory, maxSize); in get()
50 protected DiskLruCacheWrapper(File directory, int maxSize) { in DiskLruCacheWrapper() argument
52 this.maxSize = maxSize; in DiskLruCacheWrapper()
58 diskLruCache = DiskLruCache.open(directory, APP_VERSION, VALUE_COUNT, maxSize); in getDiskCache()
DMemorySizeCalculator.java37 final int maxSize = getMaxSize(activityManager); in MemorySizeCalculator() local
45 if (targetMemoryCacheSize + targetPoolSize <= maxSize) { in MemorySizeCalculator()
49 …int part = Math.round((float) maxSize / (BITMAP_POOL_TARGET_SCREENS + MEMORY_CACHE_TARGET_SCREENS)… in MemorySizeCalculator()
56 … + " memory class limited? " + (targetMemoryCacheSize + targetPoolSize > maxSize) + " max size: " in MemorySizeCalculator()
57 … + toMb(maxSize) + " memoryClass: " + activityManager.getMemoryClass() + " isLowMemoryDevice: " in MemorySizeCalculator()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DInitialize.cpp7263 const int maxSize = 80; in add2ndGenerationSamplingImaging() local
7264 char builtInConstant[maxSize]; in add2ndGenerationSamplingImaging()
7271 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexAttribs = %d;", resources.maxVe… in add2ndGenerationSamplingImaging()
7274 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexUniformVectors = %d;", resource… in add2ndGenerationSamplingImaging()
7277 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVertexTextureImageUnits = %d;", resou… in add2ndGenerationSamplingImaging()
7280 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxCombinedTextureImageUnits = %d;", res… in add2ndGenerationSamplingImaging()
7283 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxTextureImageUnits = %d;", resources.m… in add2ndGenerationSamplingImaging()
7286 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxFragmentUniformVectors = %d;", resour… in add2ndGenerationSamplingImaging()
7289 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxDrawBuffers = %d;", resources.maxDraw… in add2ndGenerationSamplingImaging()
7293 …snprintf(builtInConstant, maxSize, "const mediump int gl_MaxVaryingVectors = %d;", resources.maxV… in add2ndGenerationSamplingImaging()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowHttpResponseCache.java26 private long maxSize; field in ShadowHttpResponseCache
32 protected static HttpResponseCache install(File directory, long maxSize) { in install() argument
37 shadowCache.maxSize = maxSize; in install()
52 protected long maxSize() { in maxSize() method in ShadowHttpResponseCache
53 return maxSize; in maxSize()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DLruCache.java15 private int maxSize; field in LruCache
26 this.maxSize = size; in LruCache()
40 maxSize = Math.round(initialMaxSize * multiplier); in setSizeMultiplier()
68 return maxSize; in getMaxSize()
111 if (itemSize >= maxSize) { in put()
167 trimToSize(maxSize); in evict()
/external/libaom/libaom/test/
Dav1_quantize_test.cc44 const int maxSize = 1024; variable
53 DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[maxSize]); in RunQuantizeTest()
58 DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[maxSize]); in RunQuantizeTest()
59 DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[maxSize]); in RunQuantizeTest()
60 DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[maxSize]); in RunQuantizeTest()
61 DECLARE_ALIGNED(16, tran_low_t, ref_dqcoeff_ptr[maxSize]); in RunQuantizeTest()
128 DECLARE_ALIGNED(16, tran_low_t, coeff_ptr[maxSize]); in RunEobTest()
133 DECLARE_ALIGNED(16, tran_low_t, qcoeff_ptr[maxSize]); in RunEobTest()
134 DECLARE_ALIGNED(16, tran_low_t, dqcoeff_ptr[maxSize]); in RunEobTest()
135 DECLARE_ALIGNED(16, tran_low_t, ref_qcoeff_ptr[maxSize]); in RunEobTest()
[all …]
/external/clang/utils/ABITest/
DTypeGen.py324 def __init__(self, typeGen, maxSize, useIncomplete=False, useZero=False): argument
329 self.maxSize = int(maxSize)
330 self.W = useIncomplete + useZero + self.maxSize
352 def __init__(self, typeGen, useUnion, maxSize): argument
356 self.maxSize = int(maxSize)
361 if self.maxSize is aleph0:
365 for i in range(self.maxSize+1):
373 fields = map(self.typeGen.get,getNthTuple(I,self.maxSize,self.typeGen.cardinality))
377 def __init__(self, typeGen, useReturn, maxSize): argument
381 self.maxSize = maxSize
[all …]
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
DAndroidShimResponseCache.java42 public static AndroidShimResponseCache create(File directory, long maxSize) throws IOException { in create() argument
43 Cache cache = new Cache(directory, maxSize); in create()
47 public boolean isEquivalent(File directory, long maxSize) { in isEquivalent() argument
50 && installedCache.getMaxSize() == maxSize in isEquivalent()
95 public long maxSize() { in maxSize() method in AndroidShimResponseCache
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/
DAndroidShimResponseCache.java44 public static AndroidShimResponseCache create(File directory, long maxSize) throws IOException { in create() argument
45 Cache cache = new Cache(directory, maxSize); in create()
49 public boolean isEquivalent(File directory, long maxSize) { in isEquivalent() argument
52 && installedCache.getMaxSize() == maxSize in isEquivalent()
97 public long maxSize() { in maxSize() method in AndroidShimResponseCache
/external/skqp/tests/
DPackBitsTest.cpp38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local
40 gTests[i].fCount, dst, maxSize - 1); in test_pack8()
44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8()
62 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local
63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
DHttpResponseCache.java73 public static synchronized HttpResponseCache install(File directory, long maxSize) throws in install() argument
81 if (trueResponseCache.isEquivalent(directory, maxSize)) { in install()
90 AndroidShimResponseCache.create(directory, maxSize); in install()
123 public long maxSize() { in maxSize() method in HttpResponseCache
124 return shimResponseCache.maxSize(); in maxSize()
/external/skia/tests/
DPackBitsTest.cpp38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local
40 gTests[i].fCount, dst, maxSize - 1); in test_pack8()
44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8()
62 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local
63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
/external/skia/src/core/
DSkArenaAlloc.cpp103 constexpr uint32_t maxSize = std::numeric_limits<uint32_t>::max(); in ensureSpace() local
105 AssertRelease(size <= maxSize - overhead); in ensureSpace()
109 AssertRelease(objSizeAndOverhead <= maxSize - alignmentOverhead); in ensureSpace()
114 if (fFirstHeapAllocationSize <= maxSize / fFib0) { in ensureSpace()
119 minAllocationSize = maxSize; in ensureSpace()
127 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
/external/skqp/src/core/
DSkArenaAlloc.cpp103 constexpr uint32_t maxSize = std::numeric_limits<uint32_t>::max(); in ensureSpace() local
105 AssertRelease(size <= maxSize - overhead); in ensureSpace()
109 AssertRelease(objSizeAndOverhead <= maxSize - alignmentOverhead); in ensureSpace()
114 if (fFirstHeapAllocationSize <= maxSize / fFib0) { in ensureSpace()
119 minAllocationSize = maxSize; in ensureSpace()
127 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DCallOptions.java373 public CallOptions withMaxInboundMessageSize(int maxSize) { in withMaxInboundMessageSize() argument
374 checkArgument(maxSize >= 0, "invalid maxsize %s", maxSize); in withMaxInboundMessageSize()
376 newOptions.maxInboundMessageSize = maxSize; in withMaxInboundMessageSize()
384 public CallOptions withMaxOutboundMessageSize(int maxSize) { in withMaxOutboundMessageSize() argument
385 checkArgument(maxSize >= 0, "invalid maxsize %s", maxSize); in withMaxOutboundMessageSize()
387 newOptions.maxOutboundMessageSize = maxSize; in withMaxOutboundMessageSize()
/external/jline/src/src/main/java/jline/
DHistory.java21 private int maxSize = 500; field in History
148 public void setMaxSize(final int maxSize) { in setMaxSize() argument
149 this.maxSize = maxSize; in setMaxSize()
156 return this.maxSize; in getMaxSize()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DForwardingClientStream.java91 public void setMaxInboundMessageSize(int maxSize) { in setMaxInboundMessageSize() argument
92 delegate().setMaxInboundMessageSize(maxSize); in setMaxInboundMessageSize()
96 public void setMaxOutboundMessageSize(int maxSize) { in setMaxOutboundMessageSize() argument
97 delegate().setMaxOutboundMessageSize(maxSize); in setMaxOutboundMessageSize()
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DDiskLruCache.java142 private long maxSize; field in DiskLruCache
176 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { in DiskLruCache() argument
183 this.maxSize = maxSize; in DiskLruCache()
195 public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) in open() argument
197 if (maxSize <= 0) { in open()
217 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open()
236 cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open()
480 return maxSize; in getMaxSize()
487 public synchronized void setMaxSize(long maxSize) { in setMaxSize() argument
488 this.maxSize = maxSize; in setMaxSize()
[all …]
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Dallocate.pass.cpp56 size_t maxSize = Traits::max_size(a); in testAllocForSizeThrows() local
58 a.allocate(maxSize); in testAllocForSizeThrows()
64 if (maxSize != sizeTypeMax) in testAllocForSizeThrows()
74 size_t overSize = maxSize + 1; in testAllocForSizeThrows()
/external/libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Ddb_deallocate.pass.cpp36 const std::size_t maxSize = Traits::max_size(a); in main() local
38 a.deallocate(nullptr, maxSize); in main()
40 a.deallocate(nullptr, maxSize + 1); in main()
/external/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/
Ddb_deallocate.pass.cpp38 std::size_t maxSize = std::numeric_limits<std::size_t>::max() in main() local
41 m1.deallocate(nullptr, maxSize); in main()
43 m1.deallocate(nullptr, maxSize + 1); in main()
/external/apache-commons-bcel/src/examples/Mini/
DParseException.java120 int maxSize = 0; in getMessage() local
122 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
123 maxSize = expectedTokenSequences[i].length; in getMessage()
135 for (int i = 0; i < maxSize; i++) { in getMessage()
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DInput.cpp60 size_t Input::read(char *buf, size_t maxSize, int *lineNo) in read() argument
65 if (mReadLoc.sIndex < mCount && maxSize > 0) in read()
106 size_t maxRead = maxSize; in read()
110 size = std::min(size, maxSize); in read()

1234567