/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() 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/ |
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/opencv3/modules/java/src/ |
D | objdetect+CascadeClassifier.java | 91 …ge, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) in detectMultiScale() argument 94 …j, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height); in detectMultiScale() 114 …atOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) in detectMultiScale2() argument 118 …j, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height); in detectMultiScale2() 139 …hts, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, boolean outputRe… in detectMultiScale3() argument 144 …scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height, ou… in detectMultiScale3()
|
/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/skia/tests/ |
D | PackBitsTest.cpp | 38 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/ |
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/opencv3/modules/features2d/src/ |
D | keypoint.cpp | 121 SizePredicate( float _minSize, float _maxSize ) : minSize(_minSize), maxSize(_maxSize) in SizePredicate() 127 return (size < minSize) || (size > maxSize); in operator ()() 130 float minSize, maxSize; member 133 …eyPointsFilter::runByKeypointSize( std::vector<KeyPoint>& keypoints, float minSize, float maxSize ) in runByKeypointSize() argument 136 CV_Assert( maxSize >= 0); in runByKeypointSize() 137 CV_Assert( minSize <= maxSize ); in runByKeypointSize() 139 …ypoints.erase( std::remove_if(keypoints.begin(), keypoints.end(), SizePredicate(minSize, maxSize)), in runByKeypointSize()
|
/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/opencv3/modules/cudaimgproc/src/cuda/ |
D | generalized_hough.cu | 169 PtrStep<short2> r_table, int* r_sizes, int maxSize, in buildRTable() argument 186 if (ind < maxSize) in buildRTable() 259 … const int maxSize, const float dp, const int threshold) in Ballard_Pos_findPosInHist() argument 277 if (ind < maxSize) in Ballard_Pos_findPosInHist() 285 …int Ballard_Pos_findPosInHist_gpu(PtrStepSzi hist, float4* out, int3* votes, int maxSize, float dp… in Ballard_Pos_findPosInHist_gpu() argument 297 Ballard_Pos_findPosInHist<<<grid, block>>>(hist, out, votes, maxSize, dp, threshold); in Ballard_Pos_findPosInHist_gpu() 305 totalCount = ::min(totalCount, maxSize); in Ballard_Pos_findPosInHist_gpu() 464 int* sizes, const int maxSize, in Guil_Full_buildFeatureList() argument 499 if (ind < maxSize) in Guil_Full_buildFeatureList() 523 int* sizes, int maxSize, in Guil_Full_buildFeatureList_caller() argument [all …]
|
D | hough_segments.cu | 57 int4* out, const int maxSize, in houghLinesProbabilistic() argument 186 if (ind < maxSize) in houghLinesProbabilistic() 206 if (ind < maxSize) in houghLinesProbabilistic() 217 …int houghLinesProbabilistic_gpu(PtrStepSzb mask, PtrStepSzi accum, int4* out, int maxSize, float r… in houghLinesProbabilistic_gpu() argument 230 out, maxSize, in houghLinesProbabilistic_gpu() 241 totalCount = ::min(totalCount, maxSize); in houghLinesProbabilistic_gpu()
|
D | hough_lines.cu | 149 …inesGetResult(const PtrStepSzi accum, float2* out, int* votes, const int maxSize, const float rho,… in linesGetResult() argument 169 if (ind < maxSize) in linesGetResult() 177 …int linesGetResult_gpu(PtrStepSzi accum, float2* out, int* votes, int maxSize, float rho, float th… in linesGetResult_gpu() argument 189 …linesGetResult<<<grid, block>>>(accum, out, votes, maxSize, rho, theta, threshold, accum.cols - 2); in linesGetResult_gpu() 197 totalCount = ::min(totalCount, maxSize); in linesGetResult_gpu()
|
/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);
|
/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/skia/src/gpu/ |
D | GrGpu.cpp | 117 int maxSize = this->caps()->maxTextureSize(); in createTexture() local 118 if (desc.fWidth > maxSize || desc.fHeight > maxSize) { in createTexture() 170 int maxSize = this->caps()->maxTextureSize(); in wrapBackendTexture() local 171 if (desc.fWidth > maxSize || desc.fHeight > maxSize) { in wrapBackendTexture() 206 int maxSize = this->caps()->maxTextureSize(); in wrapBackendTextureAsRenderTarget() local 207 if (desc.fWidth > maxSize || desc.fHeight > maxSize) { in wrapBackendTextureAsRenderTarget()
|
/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/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() 246 int valueCount, long maxSize) { in create() argument 247 if (maxSize <= 0) { in create() 258 return new DiskLruCache(fileSystem, directory, appVersion, valueCount, maxSize, executor); in create() 490 return maxSize; in getMaxSize() 497 public synchronized void setMaxSize(long maxSize) { in setMaxSize() argument 498 this.maxSize = maxSize; in setMaxSize() 569 if (size > maxSize || journalRebuildRequired()) { in completeEdit() [all …]
|
/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/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()
|