Home
last modified time | relevance | path

Searched refs:extraSpace (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java259 int extraSpace = availableWidth - widthPerItem * numColumns; in initOptions() local
260 while (extraSpace < 0) { in initOptions()
262 extraSpace = availableWidth - widthPerItem * numColumns; in initOptions()
269 int containerSidePadding = (extraSpace / (numColumns + 1)) / 2; in initOptions()
275 int extraSpace = availableWidth - totalWidth; in initOptions() local
276 if (extraSpace >= 0) { in initOptions()
281 if (extraSpace > defaultTotalPadding) { in initOptions()
282 int spaceBetweenItems = extraSpace / (mAdapter.getItemCount() + 1); in initOptions()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/uxr/
DDrawableStateUtil.java50 public int[] onCreateDrawableState(int extraSpace, Function<Integer, int[]> callSuper) { in onCreateDrawableState() argument
53 result = callSuper.apply(extraSpace); in onCreateDrawableState()
56 callSuper.apply(extraSpace + mStateToAdd.length), mStateToAdd); in onCreateDrawableState()
DDrawableStateButton.java52 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
56 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateTextView.java52 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
56 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateFrameLayout.java53 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
57 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateRelativeLayout.java53 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
57 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateLinearLayout.java53 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
57 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateImageView.java52 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
56 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateConstraintLayout.java53 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
57 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
DDrawableStateSwitch.java57 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
61 return mUtil.onCreateDrawableState(extraSpace, space -> super.onCreateDrawableState(space)); in onCreateDrawableState()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java392 float extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; in cropImageAndSetWallpaper()
395 extraSpace = Math.min(extraSpace, maxExtraSpace); in cropImageAndSetWallpaper()
398 cropRect.right += extraSpace; in cropImageAndSetWallpaper()
400 cropRect.left -= extraSpace; in cropImageAndSetWallpaper()
DCheckableFrameLayout.java56 protected int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
57 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragOverTextView.java38 protected int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
39 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
DDropBadgeView.java63 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
65 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootItemView.java35 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
36 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DCheckableImageView.java41 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
42 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DPlayPauseStopImageView.java89 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
91 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DCorpusView.java87 protected int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
88 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/ui/
DCheckableLinearLayout.java86 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
87 int[] state = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DPlayPauseButton.java105 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
107 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUxrButton.java103 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
104 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DCheckableImageButton.java133 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
134 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttCheckableButton.java138 public int[] onCreateDrawableState(int extraSpace) { in onCreateDrawableState() argument
139 final int[] drawableState = super.onCreateDrawableState(extraSpace + 1); in onCreateDrawableState()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java121 final int extraSpace = super.getExtraLayoutSpace(state); in onCreateView()
123 return Math.max(getHeight(), extraSpace); in onCreateView()
125 return extraSpace; in onCreateView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java2390 int extraSpace = 0;
2392 extraSpace = (int) ((maxSelectedSize - maxSize) * progress);
2394 extraSpace = (int) ((maxSelectedSize - maxSize) * (1 - progress));
2396 if (extraSpace > 0) {
2399 maxHigh = maxHigh + extraSpace;
2400 totalExpandedSize = totalExpandedSize + extraSpace;
2403 lowExtraSpace = extraSpace / 2; // extraSpace added low and high
2406 lowExtraSpace = extraSpace; // extraSpace added on the low
2416 lowExtraSpace = extraSpace / 2;
2419 extraSpaceHigh += (extraSpace - lowExtraSpace);

12