/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 77 public static BipPixel createResizableModified(int minWidth, int minHeight, int maxWidth, in createResizableModified() argument 79 return new BipPixel(TYPE_RESIZE_MODIFIED_ASPECT_RATIO, minWidth, minHeight, maxWidth, in createResizableModified() 86 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed() argument 87 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed() 88 return new BipPixel(TYPE_RESIZE_FIXED_ASPECT_RATIO, minWidth, minHeight, in createResizableFixed() 95 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() argument 96 if (isDimensionInvalid(minWidth) || isDimensionInvalid(maxWidth) in BipPixel() 102 mMinWidth = minWidth; in BipPixel() 113 int minWidth = -1; in BipPixel() local 125 minWidth = Integer.parseInt(m1.group(1)); in BipPixel() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 31 private void testParse(String input, int pixelType, int minWidth, int minHeight, int maxWidth, in testParse() argument 35 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testParse() 52 private void testResizableModified(int minWidth, int minHeight, int maxWidth, int maxHeight, in testResizableModified() argument 54 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified() 56 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testResizableModified() 63 private void testResizableFixed(int minWidth, int maxWidth, int maxHeight, in testResizableFixed() argument 65 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed() 66 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 68 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testResizableFixed()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | EllipsizeLayout.kt | 125 val minWidth = 0 in onMeasure() constant 126 if (maxWidth < minWidth) { in onMeasure() 127 maxWidth = minWidth in onMeasure()
|
D | EllipsizeLayout.java | 114 final int minWidth = 0; in onMeasure() local 115 if (maxWidth < minWidth) { in onMeasure() 116 maxWidth = minWidth; in onMeasure()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.kt | 37 val minWidth: Int = it.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH) in getScaleRatio() constant 38 if (minWidth == 0) { in getScaleRatio() 45 density * minWidth / res.getDimension(R.dimen.min_digital_widget_width) in getScaleRatio()
|
D | WidgetUtils.java | 42 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH); in getScaleRatio() local 43 if (minWidth == 0) { in getScaleRatio() 49 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 57 final int maxWidth, final int minWidth, final int maxRow, final Paint paint, in layout() argument 98 minWidth, calcurateMaxRowWidth(fromIndex, index)); in layout() 191 final int maxWidth, final int minWidth, final int maxRow, in layout() argument 197 final int count = mParams.layout(suggestedWords, fromIndex, maxWidth, minWidth, maxRow, in layout()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | PhotoActionPopup.java | 130 final int minWidth = context.getResources().getDimensionPixelSize( in createPopupMenu() local 132 if (anchorView.getWidth() < minWidth) { in createPopupMenu() 133 listPopupWindow.setWidth(minWidth); in createPopupMenu()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | ProximityInfo.java | 61 ProximityInfo(final int gridWidth, final int gridHeight, final int minWidth, final int height, in ProximityInfo() argument 68 mCellWidth = (minWidth + mGridWidth - 1) / mGridWidth; in ProximityInfo() 70 mKeyboardMinWidth = minWidth; in ProximityInfo() 76 if (minWidth == 0 || height == 0) { in ProximityInfo()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramItemView.java | 494 int minWidth = Math.min(width, mTextWidth + 2 * sItemPadding); in layoutVisibleArea() local 495 if (startPadding > 0 && width - startPadding < minWidth) { in layoutVisibleArea() 496 startPadding = Math.max(0, width - minWidth); in layoutVisibleArea() 498 if (endPadding > 0 && width - endPadding < minWidth) { in layoutVisibleArea() 499 endPadding = Math.max(0, width - minWidth); in layoutVisibleArea()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | VideoThumbnailView.java | 271 public void setMinimumWidth(final int minWidth) { in setMinimumWidth() argument 272 super.setMinimumWidth(minWidth); in setMinimumWidth() 274 mVideoView.setMinimumWidth(minWidth); in setMinimumWidth()
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | BaseWidgetProvider.java | 106 final int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH); in getWidgetSize() local 111 final int columns = getCellsForSize(minWidth); in getWidgetSize()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | Snackbar.java | 85 int minWidth = dragLayer.getWidth() - maxMarginLeftRight * 2 - insets.left - insets.right; in show() local 86 params.width = minWidth; in show()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAppWidgetProviderInfo.java | 74 (minWidth + widgetPadding.left + widgetPadding.right) / smallestCellWidth)); in initSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAppWidgetHostView.java | 95 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument
|