Home
last modified time | relevance | path

Searched refs:minHeight (Results 1 – 12 of 12) 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/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfoTest.java62 info.minHeight = 20; in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne()
75 info.minHeight = 80; in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans()
89 info.minHeight = 20; in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns()
102 info.minHeight = 50 * (NUM_OF_ROWS + 1); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
126 info.minHeight = 100; in initSpans_minResizeWidthSmallerThanCellWidth_shouldInitializeMinSpansToOne()
141 info.minHeight = 100; in initSpans_minResizeWidthLargerThanCellWidth_shouldInitializeMinSpans()
165 info.minHeight = CELL_SIZE * 3; in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans()
187 info.minHeight = CELL_SIZE * 3; in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
202 info.minHeight = 20; in initSpans_minResizeWidthHeightLargerThanMinWidth_shouldUseMinWidthHeightAsMinSpans()
217 info.minHeight = 80; in isMinSizeFulfilled_minWidthAndHeightWithinGridSize_shouldReturnTrue()
[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()
/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/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c731 unsigned int minHeight, in addRollSupportedSizes() argument
738 && SupportedMediaSizes[i].HeightInMicrometers / 10 >= minHeight in addRollSupportedSizes()
765 int minHeight = 0, maxHeight = 0; in parse_getMediaSupported() local
779 minHeight = ippGetRange(attrptr3, 0, &maxHeight); in parse_getMediaSupported()
780 mediaReadySet.y_dimension = minHeight; in parse_getMediaSupported()
792 if (minHeight > 0 && maxHeight > 0 in parse_getMediaSupported()
795 addRollSupportedSizes(mediaReadySet.x_dimension, minHeight, maxHeight, in parse_getMediaSupported()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfo.java146 getSpanY(localPadding, minHeight, dp.cellLayoutBorderSpacingPx, cellSize.y)); in initSpans()
DPendingAppWidgetHostView.java110 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java683 int minHeight = folderChildIconSizePx + iconDrawablePaddingPx * 2 + textHeight; in updateFolderCellSize() local
686 folderCellHeightPx = (int) Math.max(minHeight, cellHeightPx * scale); in updateFolderCellSize()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java2047 int minHeight = screenHeight; in getMinHeightPerItemToFitScreen() local
2050 minHeight = screenHeight / i; in getMinHeightPerItemToFitScreen()
2054 return minHeight; in getMinHeightPerItemToFitScreen()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java1013 .append(widgetProviderInfo.minHeight) in logWidgetInfo()