Home
last modified time | relevance | path

Searched refs:maxSize (Results 1 – 25 of 44) 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/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java191 private static Size clampSize(Size original, double maxArea, Size maxSize) { in clampSize() argument
193 original.getWidth() < maxSize.getWidth() && in clampSize()
194 original.getHeight() < maxSize.getHeight()) { in clampSize()
208 if (width > maxSize.width() || height > maxSize.height()) { in clampSize()
209 return computeFitWithinSize(original, maxSize); in clampSize()
215 private static Size computeFitWithinSize(Size original, Size maxSize) { in computeFitWithinSize() argument
216 double widthRatio = (double) maxSize.width() / original.width(); in computeFitWithinSize()
217 double heightRatio = (double) maxSize.height() / original.height(); in computeFitWithinSize()
224 Math.min((int) Math.round(original.width() * ratio), maxSize.width()), in computeFitWithinSize()
225 Math.min((int) Math.round(original.height() * ratio), maxSize.height())); in computeFitWithinSize()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java1253 int maxSize = 0;
1261 maxSize = Math.max(maxSize, mOrientation == HORIZONTAL ? child.getMeasuredWidth() :
1269 left = left - maxSize;
1271 top = top - maxSize;
1277 h.mMaxSize = maxSize;
1281 child.layout(left + maxSize / 2 - child.getMeasuredWidth() / 2, top,
1282 left + maxSize / 2 + child.getMeasuredWidth() / 2,
1290 child.layout(left + maxSize - child.getMeasuredWidth(), top, left + maxSize,
1299 child.layout(left, top + maxSize / 2 - child.getMeasuredHeight() / 2,
1301 top + maxSize / 2 + child.getMeasuredHeight() / 2);
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruPool.java116 public LruPool(int maxSize) { in LruPool() argument
117 this(maxSize, new Configuration<TKey, TValue>()); in LruPool()
120 public LruPool(int maxSize, Configuration<TKey, TValue> configuration) { in LruPool() argument
121 Preconditions.checkArgument(maxSize > 0, "maxSize must be > 0."); in LruPool()
123 mMaxSize = maxSize; in LruPool()
/packages/apps/Launcher3/src/com/android/launcher3/
DPendingAppWidgetHostView.java213 int maxSize = grid.iconSizePx + 2 * outset; in updateDrawableBounds() local
214 int size = Math.min(maxSize, Math.min(availableWidth, availableHeight)); in updateDrawableBounds()
226 int maxSize = Math.max(availableWidth, availableHeight); in updateDrawableBounds() local
227 if (iconSize * settingIconScaleFactor > maxSize) { in updateDrawableBounds()
229 iconSize = maxSize / settingIconScaleFactor; in updateDrawableBounds()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_priority_queue.h48 AK_FORCE_INLINE void setMaxSize(const int maxSize) { in setMaxSize() argument
49 mMaxSize = maxSize; in setMaxSize()
56 AK_FORCE_INLINE void clearAndResize(const int maxSize) { in clearAndResize() argument
57 mMaxSize = maxSize; in clearAndResize()
/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/services/Telephony/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/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/services/Telephony/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/services/Telephony/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/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/Messaging/src/android/support/v7/mms/
DSendRequest.java99 final int maxSize) { in readPduFromContentUri() argument
111 final byte[] readBuf = new byte[maxSize+1]; in readPduFromContentUri()
112 final int bytesRead = inStream.read(readBuf, 0, maxSize+1); in readPduFromContentUri()
117 if (bytesRead > maxSize) { in readPduFromContentUri()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java168 int[] maxSize = new int[2]; in getPreviewSize() local
170 maxSize[0] = mPresetPreviewSize; in getPreviewSize()
171 maxSize[1] = mPresetPreviewSize; in getPreviewSize()
172 return maxSize; in getPreviewSize()
/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()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java374 Size maxSize = new Size(0, 0); in getLargestPictureSize() local
384 maxSize = size; in getLargestPictureSize()
401 maxSize = size; in getLargestPictureSize()
405 return maxSize; in getLargestPictureSize()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DLevelTrackingMediaRecorder.java92 final MediaRecorder.OnInfoListener infoListener, int maxSize) { in startRecording() argument
104 maxSize *= MAX_SIZE_RATIO; in startRecording()
111 mRecorder.setMaxFileSize(maxSize); in startRecording()
/packages/apps/Email/provider_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.java461 int maxSize = (currSize < 100) ? 100 : currSize; in getMaxPhoneBookSize() local
462 maxSize += maxSize / 2; in getMaxPhoneBookSize()
463 return roundUpToPowerOfTwo(maxSize); in getMaxPhoneBookSize()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBitmapPool.java85 BitmapPool(final int maxSize, @NonNull final String name) { in BitmapPool() argument
86 Assert.isTrue(maxSize > 0); in BitmapPool()
89 mMaxSize = maxSize; in BitmapPool()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java181 final int maxSize = getResources().getInteger(R.integer.attachment_preview_max_size); in setThumbnail() local
191 final boolean large = width >= maxSize || scaledWidth >= mIcon.getWidth() in setThumbnail()
192 || height >= maxSize || scaledHeight >= mIcon.getHeight(); in setThumbnail()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java308 final int maxSize = account.settings.getMaxAttachmentSize(); in addAttachment() local
311 if (attachment.size == -1 || attachment.size > maxSize) { in addAttachment()
315 + attachment.size) > maxSize) { in addAttachment()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageFooterView.java182 final int maxSize = attachments.size(); in renderAttachments() local
183 final List<Attachment> tiledAttachments = new ArrayList<Attachment>(maxSize); in renderAttachments()
184 final List<Attachment> barAttachments = new ArrayList<Attachment>(maxSize); in renderAttachments()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java357 private static int resolveSize(int desiredSize, int maxSize, int measureSpec) { in resolveSize() argument
362 return Math.min(desiredSize, maxSize); in resolveSize()
365 return Math.min(Math.min(desiredSize, specSize), maxSize); in resolveSize()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java786 public byte[] readPduFromContentUri(final Uri contentUri, final int maxSize) { in readPduFromContentUri() argument
798 byte[] tempBody = new byte[maxSize+1]; in readPduFromContentUri()
799 int bytesRead = inStream.read(tempBody, 0, maxSize+1); in readPduFromContentUri()
804 if (bytesRead <= maxSize) { in readPduFromContentUri()

12