Home
last modified time | relevance | path

Searched refs:availableHeight (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java121 int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mPaddingTop - mPaddingBottom; in onMeasure() local
122 if (getLayout() != null && getLayout().getHeight() != availableHeight) { in onMeasure()
130 if (layout.getHeight() > availableHeight) { in onMeasure()
134 while (maxLines > 1 && layout.getLineBottom(maxLines - 1) > availableHeight) { in onMeasure()
/frameworks/base/core/java/android/widget/
DAnalogClock.java193 int availableHeight = mBottom - mTop; in onDraw() local
196 int y = availableHeight / 2; in onDraw()
204 if (availableWidth < w || availableHeight < h) { in onDraw()
207 (float) availableHeight / (float) h); in onDraw()
DTextView.java9450 final int availableHeight = getMeasuredHeight() - getExtendedPaddingBottom() in autoSizeText() local
9453 if (availableWidth <= 0 || availableHeight <= 0) { in autoSizeText()
9460 TEMP_RECTF.bottom = availableHeight; in autoSizeText()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java183 final int availableHeight = getHeight() - mPaddingTop - mPaddingBottom; in getRowHeight() local
184 final int desiredRowHeight = availableHeight / mNumRows; in getRowHeight()
188 final int residualHeight = availableHeight % mNumRows; in getRowHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java198 final int availableHeight = mMaxShadeBottom - mMinTopMargin; in getExpandedClockPosition() local
199 final int containerCenter = mMinTopMargin + availableHeight / 2; in getExpandedClockPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileLayout.java140 final int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mCellMarginTop in updateMaxRows() local
143 mRows = availableHeight / (mCellHeight + mCellMarginVertical); in updateMaxRows()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java429 final int availableHeight = mPreviewArea.getHeight(); in updatePreviewAreaPageSizeAndEmptyState() local
453 availableHeight - 2 * (mPreviewListPadding + mPreviewPageMargin) - mFooterHeight); in updatePreviewAreaPageSizeAndEmptyState()
468 + 2 * mPreviewPageMargin > availableHeight) { in updatePreviewAreaPageSizeAndEmptyState()
470 (availableHeight - mPageContentHeight - mFooterHeight) / 2 in updatePreviewAreaPageSizeAndEmptyState()
474 (availableHeight - totalContentHeight) / 2); in updatePreviewAreaPageSizeAndEmptyState()