Home
last modified time | relevance | path

Searched refs:availableSpace (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java167 private boolean suggestedSizeFitsInSpace(float suggestedSizeInPx, RectF availableSpace) { in suggestedSizeFitsInSpace() argument
173 return textPaint.getFontSpacing() <= availableSpace.bottom in suggestedSizeFitsInSpace()
174 && textPaint.measureText(text) <= availableSpace.right; in suggestedSizeFitsInSpace()
191 return layout.getHeight() <= availableSpace.bottom; in suggestedSizeFitsInSpace()
202 private float computeTextSize(int minSize, int maxSize, RectF availableSpace) { in computeTextSize() argument
207 int size = binarySearchSizes(minSize, maxSize, availableSpace); in computeTextSize()
218 private int binarySearchSizes(int minSize, int maxSize, RectF availableSpace) { in binarySearchSizes() argument
226 if (suggestedSizeFitsInSpace(dimension, availableSpace)) { in binarySearchSizes()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java24 public void init(int availableSpace, float intrinsicIconSize, boolean rtl) { in init() argument
25 mAvailableSpace = availableSpace; in init()
26 mRadius = ITEM_RADIUS_SCALE_FACTOR * availableSpace / 2f; in init()
29 mBaselineIconScale = availableSpace / (intrinsicIconSize * 1f); in init()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1517 void onScanFilterParamsConfigured(int action, int status, int clientIf, int availableSpace) { in onScanFilterParamsConfigured() argument
1521 + ", action=" + action + ", availableSpace=" + availableSpace); in onScanFilterParamsConfigured()
1527 int availableSpace) { in onScanFilterConfig() argument
1531 + availableSpace); in onScanFilterConfig()