Home
last modified time | relevance | path

Searched refs:minHeight (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixel.java77 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()
87 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed() local
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
97 || isDimensionInvalid(minHeight) || isDimensionInvalid(maxHeight)) { in BipPixel()
103 mMinHeight = minHeight; in BipPixel()
114 int minHeight = -1; in BipPixel() local
127 minHeight = Integer.parseInt(m1.group(2)); in BipPixel()
138 minHeight = Integer.parseInt(m2.group(2)); in BipPixel()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixelTest.java31 private void testParse(String input, int pixelType, int minWidth, int minHeight, int maxWidth, in testParse() argument
36 Assert.assertEquals(minHeight, pixel.getMinHeight()); 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()
57 Assert.assertEquals(minHeight, pixel.getMinHeight()); in testResizableModified()
65 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed() local
69 Assert.assertEquals(minHeight, pixel.getMinHeight()); in testResizableFixed()
/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.kt66 val minHeight: Int = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT) in getHeightScaleRatio() constant
67 if (minHeight == 0) { in getHeightScaleRatio()
73 val ratio: Float = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height) in getHeightScaleRatio()
DWidgetUtils.java80 int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT); in getHeightScaleRatio() local
81 if (minHeight == 0) { in getHeightScaleRatio()
87 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height); in getHeightScaleRatio()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java279 public void setMinimumHeight(final int minHeight) { in setMinimumHeight() argument
280 super.setMinimumHeight(minHeight); in setMinimumHeight()
282 mVideoView.setMinimumHeight(minHeight); in setMinimumHeight()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetProvider.java107 final int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT); in getWidgetSize() local
110 final int rows = getCellsForSize(minHeight); in getWidgetSize()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DBenefitsAnimation.java159 int minHeight = mActivity.getResources().getDimensionPixelSize( in adjustToScreenSize() local
163 if (targetHeight >= minHeight) { in adjustToScreenSize()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppWidgetProviderInfo.java76 (minHeight + widgetPadding.top + widgetPadding.bottom) / smallestCellHeight)); in initSpans()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java95 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument