/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...] |
/external/chromium_org/third_party/angle/tests/preprocessor_tests/ |
input_test.cpp | 79 int maxSize = 1; 81 EXPECT_EQ(1u, input1.read(buf, maxSize)); 83 EXPECT_EQ(1u, input1.read(buf, maxSize)); 85 EXPECT_EQ(1u, input1.read(buf, maxSize)); 87 EXPECT_EQ(0u, input1.read(buf, maxSize)); 89 maxSize = 2; 91 EXPECT_EQ(2u, input2.read(buf, maxSize)); 93 EXPECT_EQ(1u, input2.read(buf, maxSize)); 95 EXPECT_EQ(0u, input2.read(buf, maxSize)); 97 maxSize = 3 [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; 90 * @param maxSize The new maximum size. 94 public void resize(int maxSize) { 95 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...] |
/system/vold/ |
Xwarp.h | 31 static int status(bool *ready, unsigned *mirrorPos, unsigned *maxSize);
|
Xwarp.cpp | 44 int Xwarp::status(bool *ready, unsigned *mirrorPos, unsigned *maxSize) { 49 *maxSize = 0; 61 fscanf(fp, "%u %u", mirrorPos, 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/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) {}
|
/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; 104 trimToSize(maxSize); 134 trimToSize(maxSize); 142 * @param maxSize the maximum size of the cache before returning. May be - [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
dic_node_priority_queue.h | 50 AK_FORCE_INLINE void setMaxSize(const int maxSize) { 51 ASSERT(maxSize <= mCapacity); 52 mMaxSize = min(maxSize, mCapacity); 63 AK_FORCE_INLINE void clearAndResize(const int maxSize) { 64 ASSERT(maxSize <= mCapacity); 68 setMaxSize(maxSize); 138 inline bool isFull(const int maxSize) const { 139 return getSize() >= maxSize; 179 AK_FORCE_INLINE DicNode *pushPoolNodeWithMaxSize(DicNode *dicNode, const int maxSize) { 183 if (!isFull(maxSize)) { [all...] |
/external/qemu/android/utils/ |
system.c | 86 size_t maxSize; 91 maxSize = (~(size_t)0) / itemSize; 92 if (count > maxSize) 93 AASSERT_FAIL("allocation too large (%d > %d)\n", count, maxSize); 110 size_t maxSize; 115 maxSize = (~(size_t)0) / itemSize; 116 if (count > maxSize) 118 itemSize, count, maxSize);
|
/external/smack/src/org/jivesoftware/smackx/muc/ |
ConnectionDetachedPacketCollector.java | 59 public ConnectionDetachedPacketCollector(int maxSize) { 60 this.resultQueue = new ArrayBlockingQueue<Packet>(maxSize);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
ObjectCache.java | 45 public ObjectCache(Callback<T> callbacks, int maxSize) { 47 mMaxSize = maxSize;
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
ParseException.java | 117 int maxSize = 0; 119 if (maxSize < expectedTokenSequences[i].length) { 120 maxSize = expectedTokenSequences[i].length; 132 for (int i = 0; i < maxSize; i++) {
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
ParseException.java | 117 int maxSize = 0; 119 if (maxSize < expectedTokenSequences[i].length) { 120 maxSize = expectedTokenSequences[i].length; 132 for (int i = 0; i < maxSize; i++) {
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
ParseException.java | 117 int maxSize = 0; 119 if (maxSize < expectedTokenSequences[i].length) { 120 maxSize = expectedTokenSequences[i].length; 132 for (int i = 0; i < maxSize; i++) {
|
/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);
|
Input.h | 27 size_t read(char* buf, size_t 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);
|
/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/chromium_org/third_party/icu/source/tools/gencmn/ |
gencmn.c | 51 uint32_t maxSize; 75 "%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\n", argc < 0 ? 'u' : 'U', *argv); 79 "file from specified files. Omit any files larger than maxsize, if maxsize > 0.\n"); 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); 113 maxSize, sourceTOC, verbose, NULL);
|
/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];
|
/external/icu4c/tools/gencmn/ |
gencmn.c | 51 uint32_t maxSize; 75 "%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\n", argc < 0 ? 'u' : 'U', *argv); 79 "file from specified files. Omit any files larger than maxsize, if maxsize > 0.\n"); 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); 113 maxSize, sourceTOC, verbose, NULL);
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
DragImage.h | 50 void fitToMaxSize(const IntSize& srcSize, const IntSize& maxSize);
|
/frameworks/base/core/java/android/net/http/ |
HttpResponseCache.java | 181 * @param maxSize the maximum size of the cache in bytes. 187 public static HttpResponseCache install(File directory, long maxSize) throws IOException { 194 && installedCache.getMaxSize() == maxSize 204 new com.android.okhttp.HttpResponseCache(directory, maxSize); 220 * this cache. This may be greater than the {@link #maxSize} if a background 231 public long maxSize() {
|