/external/guava/guava/src/com/google/common/collect/ |
D | EvictingQueue.java | 51 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() 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/ |
D | LruBitmapPool.java | 28 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/ |
D | DiskLruCacheWrapper.java | 30 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()
|
D | MemorySizeCalculator.java | 37 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/glide/library/src/main/java/com/bumptech/glide/util/ |
D | LruCache.java | 15 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/clang/utils/ABITest/ |
D | TypeGen.py | 324 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 …]
|
D | Enumeration.py | 161 def getNthTuple(N, maxSize=aleph0, maxElement=aleph0, useDivmod=False, useLeftToRight=False): argument 172 if maxSize is aleph0: 174 bounds = [maxElement**i for i in range(1, maxSize+1)] 177 S,M = getNthPairBounded(N, maxSize, useDivmod=useDivmod) 179 def getNthTupleChecked(N, maxSize=aleph0, maxElement=aleph0, argument 182 t = GNT(N,maxSize,maxElement,useDivmod,useLeftToRight) 183 assert len(t) <= maxSize
|
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/ |
D | AndroidShimResponseCache.java | 42 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/okhttp-android-support/src/test/java/com/squareup/okhttp/android/ |
D | HttpResponseCache.java | 73 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/jetty/src/java/org/eclipse/jetty/io/ |
D | BuffersFactory.java | 23 …rType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize) in newBuffers() argument 25 if (maxSize>=0) in newBuffers() 26 return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); in newBuffers()
|
/external/skia/tests/ |
D | PackBitsTest.cpp | 52 size_t maxSize = SkPackBits::ComputeMaxSize16(size); in test_pack16() local 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack16() 87 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8() 106 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local 107 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
|
/external/v8/test/mjsunit/regress/ |
D | regress-319722-ArrayBuffer.js | 29 var maxSize = %_MaxSmi() + 1; variable 35 ab = new ArrayBuffer(maxSize * k); 45 new constr(ab, 0, maxSize);
|
D | regress-319722-TypedArrays.js | 30 var maxSize = %_MaxSmi() + 1; variable 33 new constr(maxSize);
|
/external/libnfc-nxp/src/ |
D | phFriNfc_NdefMap.c | 1239 NFCSTATUS phFriNfc_NdefMap_GetContainerSize(const phFriNfc_NdefMap_t *NdefMap,uint32_t *maxSize, ui… in phFriNfc_NdefMap_GetContainerSize() argument 1246 if( (NdefMap == NULL) || (maxSize == NULL) || (actualSize == NULL)) in phFriNfc_NdefMap_GetContainerSize() 1262 *maxSize = NdefMap->MifareULContainer.RemainingSize; in phFriNfc_NdefMap_GetContainerSize() 1280 *maxSize = NdefMap->DesfireCapContainer.NdefFileSize - 2; in phFriNfc_NdefMap_GetContainerSize() 1293 *maxSize = NdefMap->TopazContainer.RemainingSize; in phFriNfc_NdefMap_GetContainerSize() 1304 *maxSize = NdefMap->TopazContainer.NDEFRWSize; in phFriNfc_NdefMap_GetContainerSize() 1321 *maxSize = NdefMap->StdMifareContainer.remainingSize; in phFriNfc_NdefMap_GetContainerSize() 1365 *maxSize = (((30 * (16 * 3)) + (sect_index * (16 * 15))) - 4); in phFriNfc_NdefMap_GetContainerSize() 1369 *maxSize = (((actual_sect_index - 1) * (16 * 3)) - 4); in phFriNfc_NdefMap_GetContainerSize() 1373 *maxSize = (((actual_sect_index - 2) * (16 * 3)) - 4); in phFriNfc_NdefMap_GetContainerSize() [all …]
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
D | DiskLruCache.java | 142 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/lzma/CPP/Windows/ |
D | FileMapping.h | 15 WRes Create(DWORD protect, UInt64 maxSize, LPCTSTR name) in Create() argument 17 …eateFileMapping(INVALID_HANDLE_VALUE, NULL, protect, (DWORD)(maxSize >> 32), (DWORD)maxSize, name); in Create()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLSignatureRawRSA.java | 100 int maxSize = NativeCrypto.RSA_size(key.getNativeRef()); in engineInitSign() local 101 inputBuffer = new byte[maxSize]; in engineInitSign() 118 int maxSize = NativeCrypto.RSA_size(key.getNativeRef()); in engineInitVerify() local 119 inputBuffer = new byte[maxSize]; in engineInitVerify()
|
/external/icu/icu4c/source/tools/gencmn/ |
D | gencmn.c | 51 uint32_t maxSize; in main() local 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); in main() 113 maxSize, sourceTOC, verbose, NULL); in main()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | DiskLruCache.java | 147 private long maxSize; field in DiskLruCache 187 DiskLruCache(FileSystem fileSystem, File directory, int appVersion, int valueCount, long maxSize, in DiskLruCache() argument 196 this.maxSize = maxSize; in DiskLruCache() 247 int valueCount, long maxSize) { in create() argument 248 if (maxSize <= 0) { in create() 259 return new DiskLruCache(fileSystem, directory, appVersion, valueCount, maxSize, executor); in create() 491 return maxSize; in getMaxSize() 498 public synchronized void setMaxSize(long maxSize) { in setMaxSize() argument 499 this.maxSize = maxSize; in setMaxSize() 570 if (size > maxSize || journalRebuildRequired()) { in completeEdit() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
D | ShortArrayCodeOutput.java | 32 public ShortArrayCodeOutput(int maxSize) { in ShortArrayCodeOutput() argument 33 if (maxSize < 0) { in ShortArrayCodeOutput() 37 this.array = new short[maxSize]; in ShortArrayCodeOutput()
|
/external/proguard/src/proguard/evaluation/ |
D | Stack.java | 47 public Stack(int maxSize) in Stack() argument 49 values = new Value[maxSize]; in Stack() 79 public void reset(int maxSize) in reset() argument 82 if (maxSize > values.length) in reset() 85 values = new Value[maxSize]; in reset()
|
D | TracedStack.java | 47 public TracedStack(int maxSize) in TracedStack() argument 49 super(maxSize); in TracedStack() 51 producerStack = new Stack(maxSize); in TracedStack() 52 actualProducerStack = new Stack(maxSize); in TracedStack()
|
/external/eigen/test/ |
D | nomalloc.cpp | 104 const int maxSize = 16; in ctms_decompositions() local 110 maxSize, maxSize> Matrix; in ctms_decompositions() 115 maxSize, 1> Vector; in ctms_decompositions() 120 maxSize, maxSize> ComplexMatrix; in ctms_decompositions()
|
/external/deqp/modules/gles2/functional/ |
D | es2fNegativeBufferApiTests.cpp | 408 GLint maxSize; in init() 409 glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE, &maxSize); in init() 410 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA4, 1, maxSize+1); in init() 412 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA4, maxSize+1, 1); in init() 414 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA4, maxSize+1, maxSize+1); in init()
|
/external/deqp/framework/opengl/ |
D | gluFboRenderContext.cpp | 197 int maxSize = 0; in createFramebuffer() local 198 gl.getIntegerv(GL_MAX_RENDERBUFFER_SIZE, &maxSize); in createFramebuffer() 200 width = (width == glu::RenderConfig::DONT_CARE) ? maxSize : width; in createFramebuffer() 201 height = (height == glu::RenderConfig::DONT_CARE) ? maxSize : height; in createFramebuffer()
|