/packages/apps/Camera2/src/com/android/camera/data/ |
D | GlideFilmstripManager.java | 191 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/Camera2/src/com/android/camera/processing/memory/ |
D | LruPool.java | 116 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 1253 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/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_priority_queue.h | 48 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/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/services/Car/tests/carservice_unit_test/src/com/android/car/trust/ |
D | BLEMessagePayloadStreamTest.java | 84 int maxSize = TEST_SINGLE_MESSAGE_SIZE - 1; in testMessageContent_withMultipleMessages_shouldBeConsistent() local 86 OPERATION_TYPE, maxSize, IS_MESSAGE_ENCRYPTED); in testMessageContent_withMultipleMessages_shouldBeConsistent() 110 int maxSize = TEST_SINGLE_MESSAGE_SIZE - 1; in testMessageStreamComeToEnd_withMultipleMessages_streamCompleted() local 112 OPERATION_TYPE, maxSize, IS_MESSAGE_ENCRYPTED); in testMessageStreamComeToEnd_withMultipleMessages_streamCompleted()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | SendRequest.java | 99 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/ |
D | PendingAppWidgetHostView.java | 216 int maxSize = grid.iconSizePx; in updateDrawableBounds() local 217 int size = Math.min(maxSize, Math.min(availableWidth, availableHeight)); in updateDrawableBounds() 228 int maxSize = Math.max(availableWidth, availableHeight); in updateDrawableBounds() local 229 if (iconSize * settingIconScaleFactor > maxSize) { in updateDrawableBounds() 231 iconSize = maxSize / settingIconScaleFactor; in updateDrawableBounds()
|
/packages/apps/Car/Radio/src/com/android/car/radio/platform/ |
D | ImageMemoryCache.java | 52 public CacheMap(int maxSize) { in CacheMap() argument 53 if (maxSize < 0) throw new IllegalArgumentException("maxSize must not be negative"); in CacheMap() 54 mMaxSize = maxSize; in CacheMap()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ViewCache.java | 67 public CacheEntry(int maxSize) { in CacheEntry() argument 68 mMaxSize = maxSize; in CacheEntry() 69 mViews = new View[maxSize]; in CacheEntry()
|
D | ViewPool.java | 45 int layoutId, int maxSize, int initialSize) { in ViewPool() argument 49 mPool = new Object[maxSize]; in ViewPool()
|
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/ |
D | AutoResizeTextView.java | 202 private float computeTextSize(int minSize, int maxSize, RectF availableSpace) { in computeTextSize() argument 207 int size = binarySearchSizes(minSize, maxSize, availableSpace); in computeTextSize() 218 private int binarySearchSizes(int minSize, int maxSize, RectF availableSpace) { in binarySearchSizes() argument 221 int high = maxSize; in binarySearchSizes()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | LevelTrackingMediaRecorder.java | 92 final MediaRecorder.OnInfoListener infoListener, int maxSize) { in startRecording() argument 104 maxSize *= MAX_SIZE_RATIO; in startRecording() 111 mRecorder.setMaxFileSize(maxSize); in startRecording()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 374 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/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/UniversalMediaPlayer/java/com/android/pump/util/ |
D | BitmapCache.java | 48 private MemoryCache(int maxSize) { in MemoryCache() argument 49 super(maxSize); in MemoryCache()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | TimerCircleFrameLayout.java | 63 final int maxSize = getResources().getDimensionPixelSize(R.dimen.max_timer_circle_size); in onMeasure() local 64 final int size = Math.min(smallestDimension, maxSize); in onMeasure()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AttachmentTile.java | 181 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/Messaging/src/com/android/messaging/datamodel/ |
D | BitmapPool.java | 85 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/Messaging/src/com/android/messaging/datamodel/media/ |
D | MediaCache.java | 46 public MediaCache(final int maxSize, final int id, final String name) { in MediaCache() argument 47 super(maxSize); in MediaCache()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | NoBackupImageWallpaper.java | 944 int[] maxSize = new int[1]; in initGL() local 946 GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, maxSize, 0); in initGL() 952 if (frame.width() > maxSize[0] || frame.height() > maxSize[0]) { in initGL() 956 + " exceeds the support maximum of " + maxSize[0] + "x" + maxSize[0]); in initGL()
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
D | TrampolineActivity.java | 170 final Long maxSize = DownloadManager.getMaxBytesOverMobile(context); in onCreateDialog() local 171 if (maxSize != null && size > maxSize) { in onCreateDialog()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ExpirableCache.java | 132 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create() argument 133 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create()
|