/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 | 50 AK_FORCE_INLINE void setMaxSize(const int maxSize) { in setMaxSize() argument 51 ASSERT(maxSize <= mCapacity); in setMaxSize() 52 mMaxSize = min(maxSize, mCapacity); in setMaxSize() 63 AK_FORCE_INLINE void clearAndResize(const int maxSize) { in clearAndResize() argument 64 ASSERT(maxSize <= mCapacity); in clearAndResize() 68 setMaxSize(maxSize); in clearAndResize() 138 inline bool isFull(const int maxSize) const { in isFull() argument 139 return getSize() >= maxSize; in isFull() 179 AK_FORCE_INLINE DicNode *pushPoolNodeWithMaxSize(DicNode *dicNode, const int maxSize) { in pushPoolNodeWithMaxSize() argument 183 if (!isFull(maxSize)) { in pushPoolNodeWithMaxSize() [all …]
|
/packages/apps/UnifiedEmail/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/UnifiedEmail/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/UnifiedEmail/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 | 142 int[] maxSize = new int[2]; in getPreviewSize() local 143 maxSize[0] = i.getWidth() - mOriginalImagePadding.left - mOriginalImagePadding.right; in getPreviewSize() 144 maxSize[1] = i.getHeight() - mOriginalImagePadding.top; in getPreviewSize() 145 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/Launcher3/src/com/android/launcher3/ |
D | PagedViewWidget.java | 156 int[] maxSize = new int[2]; in getPreviewSize() local 157 maxSize[0] = i.getWidth() - mOriginalImagePadding.left - mOriginalImagePadding.right; in getPreviewSize() 158 maxSize[1] = i.getHeight() - mOriginalImagePadding.top; in getPreviewSize() 159 return maxSize; in getPreviewSize()
|
D | AppsCustomizePagedView.java | 1256 int[] maxSize = w.getPreviewSize(); in syncWidgetPageItems() 1257 maxPreviewWidth = maxSize[0]; in syncWidgetPageItems() 1258 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/Email/src/com/android/email/provider/ |
D | ContentCache.java | 122 /*package*/ CounterMap(int maxSize) { in CounterMap() argument 123 mMap = new HashMap<T, Integer>(maxSize); in CounterMap() 411 public ContentCache(String name, String[] baseProjection, int maxSize) { in ContentCache() argument 413 mLruCache = new LruCache<String, Cursor>(maxSize) { in ContentCache()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 439 int maxSize = (currSize < 100) ? 100 : currSize; in getMaxPhoneBookSize() local 440 maxSize += maxSize / 2; in getMaxPhoneBookSize() 441 return roundUpToPowerOfTwo(maxSize); in getMaxPhoneBookSize()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageFooterView.java | 161 final int maxSize = attachments.size(); in renderAttachments() local 162 final List<Attachment> tiledAttachments = new ArrayList<Attachment>(maxSize); in renderAttachments() 163 final List<Attachment> barAttachments = new ArrayList<Attachment>(maxSize); in renderAttachments()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AttachmentTile.java | 170 final int maxSize = getResources().getInteger(R.integer.attachment_preview_max_size); in setThumbnail() local 180 final boolean large = width >= maxSize || scaledWidth >= mIcon.getWidth() in setThumbnail() 181 || height >= maxSize || scaledHeight >= mIcon.getHeight(); in setThumbnail()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | AttachmentsView.java | 317 final int maxSize = account.settings.getMaxAttachmentSize(); in addAttachment() local 320 if (attachment.size == -1 || attachment.size > maxSize) { in addAttachment() 324 + attachment.size) > maxSize) { in addAttachment()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | ObjectCache.java | 45 public ObjectCache(Callback<T> callbacks, int maxSize) { in ObjectCache() argument 47 mMaxSize = maxSize; in ObjectCache()
|
/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/UnifiedEmail/src/com/android/bitmap/ |
D | AltPooledCache.java | 201 public NonPooledCache(int maxSize) { in NonPooledCache() argument 202 super(maxSize); in NonPooledCache()
|
/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/ContactsCommon/src/com/android/contacts/common/ |
D | ContactPhotoManager.java | 597 Log.d(TAG, "Cache size: " + btk(mBitmapHolderCache.maxSize()) in ContactPhotoManagerImpl() 598 + " + " + btk(mBitmapCache.maxSize())); in ContactPhotoManagerImpl() 798 if (cachedBitmap.getByteCount() < mBitmapCache.maxSize() / 6) { in loadCachedPhoto()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | CachingPipeline.java | 361 float maxSize = Math.max(iconBounds.width(), iconBounds.height()); in render() local 362 float scale = maxSize / minSize; in render()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
D | PhotoManager.java | 226 LogUtils.d(TAG, "Cache size: " + btk(sBitmapHolderCache.maxSize()) in LogUtils.d() 227 + " + " + btk(sBitmapCache.maxSize())); in LogUtils.d() argument
|
/packages/apps/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 1020 void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t maxSize, uint32_t currentSize, ui… in nativeNfcTag_doCheckNdefResult() argument 1059 sCheckNdefMaxSize = maxSize; in nativeNfcTag_doCheckNdefResult()
|