/packages/apps/Browser/tests/src/com/android/browser/ |
D | WebStorageSizeManagerUnitTests.java | 179 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/ |
D | dic_node_priority_queue.h | 53 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/ |
D | ParseException.java | 117 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/ |
D | ParseException.java | 117 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/ |
D | ParseException.java | 117 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/ |
D | PagedViewWidget.java | 143 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()
|
D | AppsCustomizePagedView.java | 1252 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/ |
D | StringUtils.java | 179 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/ |
D | AtPhonebook.java | 435 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/ |
D | ContentCache.java | 121 /*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/ |
D | SingleCorpusPromoter.java | 51 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/ |
D | ExpirableCache.java | 263 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/ |
D | DictionaryPool.java | 71 public DictionaryPool(final int maxSize, final AndroidSpellCheckerService service, in DictionaryPool() argument 74 mMaxSize = maxSize; in DictionaryPool()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | SizeClustering.java | 105 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/ |
D | ContactPhotoManager.java | 394 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/ |
D | MessageListAdapter.java | 493 public MessageItemCache(int maxSize) { in MessageItemCache() argument 494 super(maxSize); in MessageItemCache()
|
/packages/apps/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 991 void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t maxSize, uint32_t currentSize, ui… in nativeNfcTag_doCheckNdefResult() argument 1030 sCheckNdefMaxSize = maxSize; in nativeNfcTag_doCheckNdefResult()
|