/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
LruBitmapPool.java | 15 private int maxSize; 23 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { 24 this.initialMaxSize = maxSize; 25 this.maxSize = maxSize; 29 public LruBitmapPool(int maxSize) { 30 initialMaxSize = maxSize; 31 this.maxSize = maxSize; 41 maxSize = Math.round(initialMaxSize * sizeMultiplier) [all...] |
/external/chromium_org/third_party/angle/tests/preprocessor_tests/ |
input_test.cpp | 74 int maxSize = 1; 76 EXPECT_EQ(1u, input1.read(buf, maxSize)); 78 EXPECT_EQ(1u, input1.read(buf, maxSize)); 80 EXPECT_EQ(1u, input1.read(buf, maxSize)); 82 EXPECT_EQ(0u, input1.read(buf, maxSize)); 84 maxSize = 2; 86 EXPECT_EQ(2u, input2.read(buf, maxSize)); 88 EXPECT_EQ(1u, input2.read(buf, maxSize)); 90 EXPECT_EQ(0u, input2.read(buf, maxSize)); 92 maxSize = 3 [all...] |
/external/chromium_org/third_party/skia/bench/ |
MemsetBench.cpp | 31 MemsetBench(MemsetType type, size_t minSize, size_t maxSize) { 32 SkASSERT((minSize < maxSize) && (maxSize <= kBufferSize)); 34 fMaxSize = maxSize; 36 type, minSize, maxSize); 63 Memset32Bench(size_t minSize, size_t maxSize) 64 : INHERITED(MEMSET32, minSize, maxSize) {} 82 Memset16Bench(size_t minSize, size_t maxSize) 83 : INHERITED(MEMSET16, minSize, maxSize) {}
|
/external/skia/bench/ |
MemsetBench.cpp | 31 MemsetBench(MemsetType type, size_t minSize, size_t maxSize) { 32 SkASSERT((minSize < maxSize) && (maxSize <= kBufferSize)); 34 fMaxSize = maxSize; 36 type, minSize, maxSize); 63 Memset32Bench(size_t minSize, size_t maxSize) 64 : INHERITED(MEMSET32, minSize, maxSize) {} 82 Memset16Bench(size_t minSize, size_t maxSize) 83 : INHERITED(MEMSET16, minSize, maxSize) {}
|
/libcore/luni/src/main/java/libcore/util/ |
BasicLruCache.java | 28 private final int maxSize; 30 public BasicLruCache(int maxSize) { 31 if (maxSize <= 0) { 32 throw new IllegalArgumentException("maxSize <= 0"); 34 this.maxSize = maxSize; 58 trimToSize(maxSize); 78 trimToSize(maxSize); 82 private void trimToSize(int maxSize) { 83 while (map.size() > maxSize) { [all...] |
/art/runtime/base/ |
bounded_fifo.h | 24 template <typename T, const size_t MaxSize> 29 CHECK(IsPowerOfTwo(MaxSize)); 48 DCHECK_LE(size_, MaxSize); 64 static const size_t mask_ = MaxSize - 1; 66 T data_[MaxSize];
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
LruCache.java | 15 private int maxSize; 21 this.maxSize = size; 28 maxSize = Math.round(initialMaxSize * multiplier); 52 if (itemSize >= maxSize) { 90 trimToSize(maxSize);
|
/external/eigen/test/ |
redux.cpp | 135 int maxsize = (std::min)(100,EIGEN_TEST_MAX_SIZE); local 136 TEST_SET_BUT_UNUSED_VARIABLE(maxsize); 144 CALL_SUBTEST_4( matrixRedux(MatrixXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) ); 145 CALL_SUBTEST_4( matrixRedux(ArrayXXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) ); 146 CALL_SUBTEST_5( matrixRedux(MatrixXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) ); 147 CALL_SUBTEST_5( matrixRedux(ArrayXXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) ); [all...] |
/frameworks/base/core/java/android/util/ |
LruCache.java | 67 private int maxSize; 76 * @param maxSize for caches that do not override {@link #sizeOf}, this is 80 public LruCache(int maxSize) { 81 if (maxSize <= 0) { 82 throw new IllegalArgumentException("maxSize <= 0"); 84 this.maxSize = maxSize; 91 * @param maxSize The new maximum size. 93 public void resize(int maxSize) { 94 if (maxSize <= 0) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
LruCache.java | 71 private int maxSize; 80 * @param maxSize for caches that do not override {@link #sizeOf}, this is 84 public LruCache(int maxSize) { 85 if (maxSize <= 0) { 86 throw new IllegalArgumentException("maxSize <= 0"); 88 this.maxSize = maxSize; 94 * @param maxSize The new maximum size. 98 public void resize(int maxSize) { 99 if (maxSize <= 0) [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
LruCache.java | 34 private int maxSize; 43 * @param maxSize for caches that do not override {@link #sizeOf}, this is 47 public LruCache(int maxSize) { 48 if (maxSize <= 0) { 49 throw new IllegalArgumentException("maxSize <= 0"); 51 this.maxSize = maxSize; 58 * @param maxSize The new maximum size. 60 public void resize(int maxSize) { 61 if (maxSize <= 0) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
DiskLruCacheWrapper.java | 36 * @param maxSize The max size for the disk cache 39 public synchronized static DiskCache get(File directory, int maxSize) { 41 WRAPPER = new DiskLruCacheWrapper(directory, maxSize); 47 private final int maxSize; 51 protected DiskLruCacheWrapper(File directory, int maxSize) { 53 this.maxSize = maxSize; 59 diskLruCache = DiskLruCache.open(directory, APP_VERSION, VALUE_COUNT, maxSize);
|
MemorySizeCalculator.java | 33 final int maxSize = getMaxSize(activityManager); 41 if (targetMemoryCacheSize + targetPoolSize <= maxSize) { 45 int part = Math.round((float) maxSize / (BITMAP_POOL_TARGET_SCREENS + MEMORY_CACHE_TARGET_SCREENS)); 52 + " memory class limited? " + (targetMemoryCacheSize + targetPoolSize > maxSize) + " max size: " 53 + toMb(maxSize) + " memoryClass: " + activityManager.getMemoryClass() + " isLowMemoryDevice: "
|
/external/qemu/android/utils/ |
system.c | 87 size_t maxSize; 92 maxSize = (~(size_t)0) / itemSize; 93 if (count > maxSize) 94 AASSERT_FAIL("allocation too large (%d > %d)\n", count, maxSize); 111 size_t maxSize; 116 maxSize = (~(size_t)0) / itemSize; 117 if (count > maxSize) 119 itemSize, count, maxSize);
|
/packages/apps/Browser/tests/src/com/android/browser/ |
WebStorageSizeManagerUnitTests.java | 179 long maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); 180 assertEquals(12582912, maxSize); // 12MB 184 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); 185 assertEquals(19922944, maxSize); // 19MB 189 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); 190 assertEquals(536870912L, maxSize); // 512 MB 194 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); 195 assertEquals(0, maxSize); 199 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); 200 assertEquals(0, maxSize); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
tgsi_build.h | 64 unsigned maxsize ); 78 unsigned maxsize ); 92 unsigned maxsize ); 109 unsigned maxsize );
|
/external/clang/test/CXX/temp/temp.spec/temp.inst/ |
p11.cpp | 6 return T::MaxSize; // expected-error {{'int' cannot be used prior to '::'}}
|
/external/icu/icu4c/source/common/ |
lrucache.h | 39 LRUCache(int32_t maxSize, UErrorCode &status); 69 int32_t maxSize; 81 int32_t maxSize, 84 LRUCache(maxSize, status), createFunc(cf) {
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_build.h | 64 unsigned maxsize ); 78 unsigned maxsize ); 92 unsigned maxsize ); 109 unsigned maxsize );
|
/external/chromium_org/third_party/angle/src/compiler/preprocessor/ |
Input.cpp | 32 size_t Input::read(char *buf, size_t maxSize) 35 while ((nRead < maxSize) && (mReadLoc.sIndex < mCount)) 38 size = std::min(size, maxSize);
|
/external/lzma/CPP/Windows/ |
FileMapping.h | 15 WRes Create(DWORD protect, UInt64 maxSize, LPCTSTR name)
17 _handle = ::CreateFileMapping(INVALID_HANDLE_VALUE, NULL, protect, (DWORD)(maxSize >> 32), (DWORD)maxSize, name);
|
/external/pcre/dist/doc/ |
pcre_jit_stack_alloc.3 | |
/dalvik/dx/src/com/android/dx/io/instructions/ |
ShortArrayCodeOutput.java | 30 * @param maxSize the maximum number of code units that will be written 32 public ShortArrayCodeOutput(int maxSize) { 33 if (maxSize < 0) { 34 throw new IllegalArgumentException("maxSize < 0"); 37 this.array = new short[maxSize];
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
ShortArrayCodeOutput.java | 30 * @param maxSize the maximum number of code units that will be written 32 public ShortArrayCodeOutput(int maxSize) { 33 if (maxSize < 0) { 34 throw new IllegalArgumentException("maxSize < 0"); 37 this.array = new short[maxSize];
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
Queue.py | 24 If maxsize is <= 0, the queue size is infinite. 26 def __init__(self, maxsize=0): 27 self.maxsize = maxsize 28 self._init(maxsize) 103 n = 0 < self.maxsize == self._qsize() 120 if self.maxsize > 0: 122 if self._qsize() == self.maxsize: 125 while self._qsize() == self.maxsize: 131 while self._qsize() == self.maxsize [all...] |