Home
last modified time | relevance | path

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

/packages/apps/Browser/tests/src/com/android/browser/
DWebStorageSizeManagerUnitTests.java179 long maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); in testCalculateGlobalLimit() local
180 assertEquals(12582912, maxSize); // 12MB in testCalculateGlobalLimit()
184 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); in testCalculateGlobalLimit()
185 assertEquals(19922944, maxSize); // 19MB in testCalculateGlobalLimit()
189 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); in testCalculateGlobalLimit()
190 assertEquals(536870912L, maxSize); // 512 MB in testCalculateGlobalLimit()
194 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); in testCalculateGlobalLimit()
195 assertEquals(0, maxSize); in testCalculateGlobalLimit()
199 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize); in testCalculateGlobalLimit()
200 assertEquals(0, maxSize); in testCalculateGlobalLimit()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_priority_queue.h53 AK_FORCE_INLINE void setMaxSize(const int maxSize) { in setMaxSize() argument
54 mMaxSize = min(maxSize, MAX_CAPACITY); in setMaxSize()
65 AK_FORCE_INLINE void clearAndResize(const int maxSize) { in clearAndResize() argument
69 setMaxSize(maxSize); in clearAndResize()
148 inline bool isFull(const int maxSize) const { in isFull() argument
149 return getSize() >= maxSize; in isFull()
190 AK_FORCE_INLINE DicNode *pushPoolNodeWithMaxSize(DicNode *dicNode, const int maxSize) { in pushPoolNodeWithMaxSize() argument
194 if (!isFull(maxSize)) { in pushPoolNodeWithMaxSize()
208 AK_FORCE_INLINE DicNode *copyPush(DicNode *dicNode, const int maxSize) { in copyPush() argument
209 return pushPoolNodeWithMaxSize(newDicNode(dicNode), maxSize); in copyPush()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DParseException.java117 int maxSize = 0; in getMessage() local
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
132 for (int i = 0; i < maxSize; i++) { in getMessage()
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
DParseException.java117 int maxSize = 0; in getMessage() local
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
132 for (int i = 0; i < maxSize; i++) { in getMessage()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DParseException.java117 int maxSize = 0; in getMessage() local
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
132 for (int i = 0; i < maxSize; i++) { in getMessage()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewWidget.java143 int[] maxSize = new int[2]; in getPreviewSize() local
144 maxSize[0] = i.getWidth() - mOriginalImagePadding.left - mOriginalImagePadding.right; in getPreviewSize()
145 maxSize[1] = i.getHeight() - mOriginalImagePadding.top; in getPreviewSize()
146 return maxSize; in getPreviewSize()
DAppsCustomizePagedView.java1252 int[] maxSize = w.getPreviewSize(); in syncWidgetPageItems()
1253 maxPreviewWidth = maxSize[0]; in syncWidgetPageItems()
1254 maxPreviewHeight = maxSize[1]; in syncWidgetPageItems()
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DStringUtils.java179 public static String trimText(String text, Paint p, int maxSize) { in trimText() argument
181 if (textSize > maxSize) { in trimText()
182 final int chars = p.breakText(text, true, maxSize - 12, null); in trimText()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java435 int maxSize = (currSize < 100) ? 100 : currSize; in getMaxPhoneBookSize() local
436 maxSize += maxSize / 2; in getMaxPhoneBookSize()
437 return roundUpToPowerOfTwo(maxSize); in getMaxPhoneBookSize()
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java121 /*package*/ CounterMap(int maxSize) { in CounterMap() argument
122 mMap = new HashMap<T, Integer>(maxSize); in CounterMap()
410 public ContentCache(String name, String[] baseProjection, int maxSize) { in ContentCache() argument
412 mLruCache = new LruCache<String, Cursor>(maxSize) { in ContentCache()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSingleCorpusPromoter.java51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) { in promoteUntilFull() argument
54 for (int i = 0; i < count && promoted.getCount() < maxSize; i++) { in promoteUntilFull()
/packages/apps/Dialer/src/com/android/dialer/util/
DExpirableCache.java263 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create() argument
264 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DDictionaryPool.java71 public DictionaryPool(final int maxSize, final AndroidSpellCheckerService service, in DictionaryPool() argument
74 mMaxSize = maxSize; in DictionaryPool()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DSizeClustering.java105 String maxSize = getSizeString(i + 1); in run() local
107 res.getString(R.string.size_between), minSize, maxSize); in run()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java394 Log.d(TAG, "Cache size: " + btk(mBitmapHolderCache.maxSize()) in ContactPhotoManagerImpl()
395 + " + " + btk(mBitmapCache.maxSize())); in ContactPhotoManagerImpl()
582 if (cachedBitmap.getByteCount() < mBitmapCache.maxSize() / 6) { in loadCachedPhoto()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageListAdapter.java493 public MessageItemCache(int maxSize) { in MessageItemCache() argument
494 super(maxSize); in MessageItemCache()
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp991 void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t maxSize, uint32_t currentSize, ui… in nativeNfcTag_doCheckNdefResult() argument
1030 sCheckNdefMaxSize = maxSize; in nativeNfcTag_doCheckNdefResult()