Home
last modified time | relevance | path

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

12

/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.h50 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/
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/UnifiedEmail/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/UnifiedEmail/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.java142 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()
DAppsCustomizePagedView.java1252 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/
DPagedViewWidget.java156 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()
DAppsCustomizePagedView.java1256 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/
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/Email/src/com/android/email/provider/
DContentCache.java122 /*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/
DAtPhonebook.java439 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/
DMessageFooterView.java161 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/
DAttachmentTile.java170 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/
DAttachmentsView.java317 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/
DObjectCache.java45 public ObjectCache(Callback<T> callbacks, int maxSize) { in ObjectCache() argument
47 mMaxSize = maxSize; in ObjectCache()
/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/UnifiedEmail/src/com/android/bitmap/
DAltPooledCache.java201 public NonPooledCache(int maxSize) { in NonPooledCache() argument
202 super(maxSize); in NonPooledCache()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageListAdapter.java493 public MessageItemCache(int maxSize) { in MessageItemCache() argument
494 super(maxSize); in MessageItemCache()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java597 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/
DCachingPipeline.java361 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/
DPhotoManager.java226 LogUtils.d(TAG, "Cache size: " + btk(sBitmapHolderCache.maxSize()) in LogUtils.d()
227 + " + " + btk(sBitmapCache.maxSize())); in LogUtils.d() argument
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp1020 void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t maxSize, uint32_t currentSize, ui… in nativeNfcTag_doCheckNdefResult() argument
1059 sCheckNdefMaxSize = maxSize; in nativeNfcTag_doCheckNdefResult()

12