/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 74 int minWidth, int minHeight, int maxWidth, int maxHeight) { in createResizableModified() argument 76 TYPE_RESIZE_MODIFIED_ASPECT_RATIO, minWidth, minHeight, maxWidth, maxHeight); in createResizableModified() 80 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed() argument 81 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed() 83 TYPE_RESIZE_FIXED_ASPECT_RATIO, minWidth, minHeight, maxWidth, maxHeight); in createResizableFixed() 89 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() argument 90 if (isDimensionInvalid(minWidth) in BipPixel() 98 mMinWidth = minWidth; in BipPixel() 107 int minWidth = -1; in BipPixel() local 119 minWidth = Integer.parseInt(m1.group(1)); in BipPixel() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 65 info.minWidth = 20; in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 78 info.minWidth = 80; in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 92 info.minWidth = CELL_SIZE * (NUM_OF_COLS + 1); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 105 info.minWidth = 20; in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows() 129 info.minWidth = 100; in initSpans_minResizeWidthSmallerThanCellWidth_shouldInitializeMinSpansToOne() 144 info.minWidth = 100; in initSpans_minResizeWidthLargerThanCellWidth_shouldInitializeMinSpans() 167 info.minWidth = CELL_SIZE * 3; in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 188 info.minWidth = CELL_SIZE * 3; in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() 203 info.minWidth = 20; in initSpans_minResizeWidthHeightLargerThanMinWidth_shouldUseMinWidthHeightAsMinSpans() 218 info.minWidth = 80; in isMinSizeFulfilled_minWidthAndHeightWithinGridSize_shouldReturnTrue() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 32 int minWidth, in testParse() argument 39 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testParse() 57 int minWidth, int minHeight, int maxWidth, int maxHeight, String pixelStr) { in testResizableModified() argument 58 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified() 60 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testResizableModified() 67 private void testResizableFixed(int minWidth, int maxWidth, int maxHeight, String pixelStr) { in testResizableFixed() argument 68 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed() 69 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 71 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()
|
/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()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | WidgetPickerActivity.java | 295 && info.maxResizeWidth >= info.minWidth 304 final int minWidth = Math.min(info.minResizeWidth, info.minWidth); 305 if (minWidth > mDesiredWidgetWidth) { 309 info.minWidth,
|
/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/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/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 | 114 int minWidth = Math.min( in show() local 117 params.width = minWidth; in show()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/ |
D | PreviewFeatureTest.kt | 322 Column(modifier = Modifier.defaultMinSize(minHeight = 100.dp, minWidth = 100.dp)) { in testNavigateToPreviewImage() 399 Column(modifier = Modifier.defaultMinSize(minHeight = 100.dp, minWidth = 100.dp)) { in testPreviewMediaToggleSelection() 449 Column(modifier = Modifier.defaultMinSize(minHeight = 100.dp, minWidth = 100.dp)) { in testNavigateToPreviewSelection() 483 Column(modifier = Modifier.defaultMinSize(minHeight = 100.dp, minWidth = 100.dp)) { in testPreviewSelectionActions() 545 Column(modifier = Modifier.defaultMinSize(minHeight = 100.dp, minWidth = 100.dp)) { in testPreviewEmitsMediaSelectionConfirmedEvent()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/glide/ |
D | LoadMedia.kt | 65 modifier = modifier.defaultMinSize(minWidth = 1.dp, minHeight = 1.dp), in loadMedia()
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 991 unsigned int minWidth, in addRollSupportedSizes() argument 999 if (SupportedMediaSizes[i].WidthInMicrometers / 10 >= minWidth in addRollSupportedSizes() 1030 int minWidth = 0, maxWidth = 0; in parse_getMediaSupported() local 1042 minWidth = ippGetRange(attrptr3, 0, &maxWidth); in parse_getMediaSupported() 1043 mediaReadySet.x_dimension = minWidth; in parse_getMediaSupported() 1067 addRollSupportedSizes(minWidth, maxWidth, minHeight, maxHeight, in parse_getMediaSupported()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfo.java | 131 getSpanX(widgetPadding, minWidth, dp.cellLayoutBorderSpacePx.x, in initSpans()
|
D | PendingAppWidgetHostView.java | 258 public void updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, in updateAppWidgetSize() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WorkspaceItemProcessor.kt | 581 .append(widgetProviderInfo.minWidth) in logWidgetInfo()
|