Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHeaderInfoLayout.kt87 val availableSpace = MeasureSpec.getSize(width) - separatorWidth in onMeasure() constant
88 if (alarmWidth < availableSpace / 2) { in onMeasure()
92 Math.min(ringerWidth, availableSpace - alarmWidth), in onMeasure()
95 } else if (ringerWidth < availableSpace / 2) { in onMeasure()
98 Math.min(alarmWidth, availableSpace - ringerWidth), in onMeasure()
104 MeasureSpec.makeMeasureSpec(availableSpace / 2, MeasureSpec.AT_MOST), in onMeasure()
108 MeasureSpec.makeMeasureSpec(availableSpace / 2, MeasureSpec.AT_MOST), in onMeasure()
/frameworks/base/core/java/com/android/internal/util/
DTraceBuffer.java178 long availableSpace = getAvailableSpace(); in discardOldest() local
180 while (availableSpace < protoLength) { in discardOldest()
187 availableSpace = getAvailableSpace(); in discardOldest()
/frameworks/base/core/java/com/android/internal/policy/
DDividerSnapAlgorithm.java157 int availableSpace = size - navBarSize - statusBarSize - mDividerSize; in isSplitScreenFeasible() local
158 return availableSpace / 2 >= mMinimalSizeResizableTask; in isSplitScreenFeasible()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconContainer.java468 float availableSpace = getLayoutEnd() - getActualPaddingStart(); in calculateIconTranslations()
469 float delta = (availableSpace - contentWidth) / 2; in calculateIconTranslations()
DNotificationPanelViewController.java859 availableSpace = in computeMaxKeyguardNotifications() local
870 availableSpace -= child.getMinHeight(true /* ignoreTemporaryStates */); in computeMaxKeyguardNotifications()
871 availableSpace -= count == 0 ? 0 : notificationPadding; in computeMaxKeyguardNotifications()
872 availableSpace -= mNotificationStackScroller.calculateGapHeight(previousView, child, in computeMaxKeyguardNotifications()
875 if (availableSpace >= 0 && count < maximum) { in computeMaxKeyguardNotifications()
877 } else if (availableSpace > -shelfSize) { in computeMaxKeyguardNotifications()
/frameworks/base/core/java/android/widget/
DGallery.java970 int availableSpace = myHeight - mSpinnerPadding.bottom in calculateTop() local
972 childTop = mSpinnerPadding.top + (availableSpace / 2); in calculateTop()
DGridView.java983 private boolean determineColumns(int availableSpace) { in determineColumns() argument
992 mNumColumns = (availableSpace + requestedHorizontalSpacing) / in determineColumns()
1015 int spaceLeftOver = availableSpace - (mNumColumns * requestedColumnWidth) in determineColumns()
DTextView.java9505 private int findLargestTextSizeWhichFits(RectF availableSpace) { in findLargestTextSizeWhichFits() argument
9517 if (suggestedSizeFitsInSpace(mAutoSizeTextSizesInPx[sizeToTryIndex], availableSpace)) { in findLargestTextSizeWhichFits()
9529 private boolean suggestedSizeFitsInSpace(int suggestedSizeInPx, RectF availableSpace) { in suggestedSizeFitsInSpace() argument
9543 text, 0, text.length(), mTempTextPaint, Math.round(availableSpace.right)); in suggestedSizeFitsInSpace()
9563 if (layout.getHeight() > availableSpace.bottom) { in suggestedSizeFitsInSpace()