Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 900) sorted by relevance

12345678910>>...36

/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DShadowOverlayContainerTest.java60 assertTrue(textView.getHeight() > 0); in testWrapContent()
61 assertTrue(textView.getHeight() < 500); in testWrapContent()
63 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent()
71 assertTrue(textView.getHeight() == 123); in testWrapContent()
73 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent()
90 assertTrue(textView.getHeight() > 0);
91 assertTrue(textView.getHeight() < 500);
93 assertEquals(container.getHeight(), textView.getHeight());
101 assertTrue(textView.getHeight() == 123);
103 assertEquals(container.getHeight(), textView.getHeight());
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisibleTest.java88 mTopBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
92 mBottomBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
114 mScrollView.getHeight() in testScrollToOffScreenRectangleFromTop()
115 - mChildToScrollTo.getHeight() in testScrollToOffScreenRectangleFromTop()
172 mScrollView.getHeight() - mBottomBlob.getHeight() in testScrollToPartiallyOffScreenRectFromBottom()
208 int bottom = xy[1] + view.getHeight(); in assertOnBottomEdgeOfScreen()
209 int bottomOfRoot = xyRoot[1] + origin.getHeight(); in assertOnBottomEdgeOfScreen()
229 int bottom = xy[1] + view.getHeight(); in assertOnTopEdgeOfScreen()
230 int bottomOfRoot = xyRoot[1] + origin.getHeight(); in assertOnTopEdgeOfScreen()
DRequestRectangleVisible.java50 int screenHeight = getWindowManager().getDefaultDisplay().getHeight(); in onCreate()
61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate()
69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); in onCreate()
77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate()
85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight()); in onCreate()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DShadowPainter.java81 int height = source.getHeight(); in createDropShadow()
89 int dstHeight = image.getHeight(); in createDropShadow()
190 int height = source.getHeight(); in createRectangularDropShadow()
217 int height = source.getHeight(); in createSmallRectangularDropShadow()
298 assert ShadowBottomRight.getHeight(null) == SHADOW_SIZE; in drawRectangleShadow()
301 int trHeight = ShadowTopRight.getHeight(null); in drawRectangleShadow()
314 x, y + height, x + width, y + height + ShadowBottom.getHeight(null), in drawRectangleShadow()
315 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null); in drawRectangleShadow()
317 … x + width, y + ShadowTopRight.getHeight(null), x + width + ShadowRight.getWidth(null), y + height, in drawRectangleShadow()
318 0, 0, ShadowRight.getWidth(null), ShadowRight.getHeight(null), null); in drawRectangleShadow()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DMultiPageTextWithPaddingTest.java51 mTextView.getHeight() > mScrollView.getHeight()); in testPreconditions()
58 (mTextView.getHeight() - mScrollView.getHeight())) in testScrollDownToBottom()
66 getActivity().getLinearLayout().getHeight() in testScrollDownToBottom()
67 - (mScrollView.getHeight() - mScrollView.getPaddingTop() - mScrollView in testScrollDownToBottom()
DShortButtonsTest.java47 getActivity().getButtonAt(0).getHeight() in testPreconditions()
48 < mScrollView.getHeight()); in testPreconditions()
51 getActivity().getLinearLayout().getHeight() in testPreconditions()
52 > getActivity().getScrollView().getHeight()); in testPreconditions()
68 getActivity().getLinearLayout().getHeight() - mScrollView.getHeight(), in testScrollDownToBottomThroughButtons()
106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight()); in isButtonOnScreen()
DButtonsWithTallTextViewInBetweenTest.java69 mTopButton.getHeight() < in testPreconditions()
95 final int screenBottom = mScrollView.getScrollY() + mScrollView.getHeight(); in testScrollDownToBottomButton()
106 getActivity().getLinearLayout().getHeight() - mScrollView.getHeight(), in testScrollDownToBottomButton()
121 final int maxScroll = getActivity().getLinearLayout().getHeight() in testPanBottomButtonOffScreenLosesFocus()
122 - mScrollView.getHeight(); in testPanBottomButtonOffScreenLosesFocus()
135 … getTopWithinScrollView(mBottomButton) > mScrollView.getScrollY() + mScrollView.getHeight()); in testPanBottomButtonOffScreenLosesFocus()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DHorizontalGridView.java283 || mTempBitmapLow.getHeight() != getHeight()) { in getTempBitmapLow()
284 mTempBitmapLow = Bitmap.createBitmap(mLowFadeShaderLength, getHeight(), in getTempBitmapLow()
293 || mTempBitmapHigh.getHeight() != getHeight()) { in getTempBitmapHigh()
297 && mTempBitmapLow.getHeight() == getHeight()) { in getTempBitmapHigh()
301 mTempBitmapHigh = Bitmap.createBitmap(mHighFadeShaderLength, getHeight(), in getTempBitmapHigh()
330 highEdge - (mFadingHighEdge ? mHighFadeShaderLength : 0), getHeight()); in draw()
336 mTempRect.bottom = getHeight(); in draw()
343 tmpCanvas.clipRect(0, 0, mLowFadeShaderLength, getHeight()); in draw()
349 tmpCanvas.drawRect(0, 0, mLowFadeShaderLength, getHeight(), mTempPaint); in draw()
363 tmpCanvas.clipRect(0, 0, mHighFadeShaderLength, getHeight()); in draw()
[all …]
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarWithAnchoredFabMarginsTest.java60 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabBottomMargin()
61 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabBottomMargin()
87 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabTopMargin()
88 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabTopMargin()
112 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabLeftMargin()
113 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabLeftMargin()
138 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabRightMargin()
139 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabRightMargin()
DAppBarWithCollapsingToolbarTest.java50 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testPinnedToolbar()
53 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbar()
54 final int appbarHeight = mAppBar.getHeight(); in testPinnedToolbar()
157 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbar()
160 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbar()
161 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbar()
262 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbarEnterAlways()
265 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarEnterAlways()
266 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbarEnterAlways()
372 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testPinnedToolbarAndAnchoredFab()
[all …]
DAppBarWithToolbarAndTabsTest.java62 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbarAndScrollingTabs()
65 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndScrollingTabs()
66 final int tabsHeight = mTabLayout.getHeight(); in testScrollingToolbarAndScrollingTabs()
67 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbarAndScrollingTabs()
155 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbarAndPinnedTabs()
158 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndPinnedTabs()
159 final int tabsHeight = mTabLayout.getHeight(); in testScrollingToolbarAndPinnedTabs()
160 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbarAndPinnedTabs()
251 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testSnappingToolbarAndSnappingTabs()
254 final int toolbarHeight = mToolbar.getHeight(); in testSnappingToolbarAndSnappingTabs()
[all …]
/frameworks/support/percent/tests/java/android/support/percent/
DPercentDynamicLayoutTest.java114 final int containerHeight = percentFrameLayout.getHeight();
127 availableHeight, child1.getHeight());
131 availableHeight, child2.getHeight());
144 final int containerHeight = percentFrameLayout.getHeight();
157 0.5f * availableHeight, child1.getHeight());
161 0.5f* availableHeight, child2.getHeight());
174 final int containerHeight = percentRelativeLayout.getHeight();
187 availableHeight, child1.getHeight());
191 availableHeight, child2.getHeight());
204 final int containerHeight = percentRelativeLayout.getHeight();
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlpha8BitmapActivity.java50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), in BitmapsView()
60 final float height = texture.getHeight() / 3.0f; in BitmapsView()
83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); in onDraw()
86 Rect src = new Rect(0, 0, mBitmap1.getWidth() / 2, mBitmap1.getHeight() / 2); in onDraw()
87 Rect dst = new Rect(0, mBitmap1.getHeight() * 3, mBitmap1.getWidth(), in onDraw()
88 mBitmap1.getHeight() * 4); in onDraw()
91 canvas.translate(0.0f, mBitmap1.getHeight() * 4); in onDraw()
DAssetsAtlasActivity.java56 final Rect src = new Rect(0, 0, mBitmap.getWidth() / 2, mBitmap.getHeight() / 2); in onDraw()
57 final Rect dst = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in onDraw()
60 canvas.translate(0.0f, mBitmap.getHeight()); in onDraw()
62 canvas.translate(0.0f, mBitmap.getHeight()); in onDraw()
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DWearableDrawerLayout.java373 mTopDrawerView, 0 /* finalLeft */, -mTopDrawerView.getHeight()); in closeDrawer()
377 .smoothSlideViewTo(mBottomDrawerView, 0 /* finalLeft */, getHeight()); in closeDrawer()
431 getHeight() - mBottomDrawerView.getHeight()); in openDrawer()
585 final int height = v.getHeight(); in onLayoutChange()
591 final int height = v.getHeight(); in onLayoutChange()
592 final int childTop = (int) (getHeight() - height * openedPercent); in onLayoutChange()
791 drawerView, 0 /* finalLeft */, getHeight() - peekView.getHeight()); in maybePeekDrawer()
795 -(drawerView.getHeight() - peekView.getHeight())); in maybePeekDrawer()
812 offset = mTopDrawerView.getHeight(); in openDrawerWithoutAnimation()
814 offset = -mBottomDrawerView.getHeight(); in openDrawerWithoutAnimation()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java81 bitmap.getHeight()); in testFaceSquareFilter()
87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE; in testFaceSquareFilter()
88 int bottom = (faceRect.bottom+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE; in testFaceSquareFilter()
94 } else if (top > bitmap.getHeight()) { in testFaceSquareFilter()
95 top = bitmap.getHeight(); in testFaceSquareFilter()
102 if (bottom > bitmap.getHeight()) { in testFaceSquareFilter()
103 bottom = bitmap.getHeight(); in testFaceSquareFilter()
137 if (top < bitmap.getHeight()) { in testFaceSquareFilter()
147 if (bottom < bitmap.getHeight()) { in testFaceSquareFilter()
160 outputBitmap.getWidth(), outputBitmap.getHeight()); in testFaceSquareFilter()
/frameworks/base/media/java/android/media/
DImageUtils.java110 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy()
111 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy()
150 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) { in imageCopy()
151 if (row == effectivePlaneSize.getHeight() - 1) { in imageCopy()
235 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
237 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
241 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
243 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
256 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameImage2D.java137 if (bitmap.getWidth() != dimensions[0] || bitmap.getHeight() != dimensions[1]) { in validateBitmapSize()
139 + "x" + bitmap.getHeight() + " to frame of size " + dimensions[0] + "x" in validateBitmapSize()
161 (int) srcRect.top * srcImage.getHeight(), in cpuImageCopy()
163 (int) srcRect.bottom * srcImage.getHeight()); in cpuImageCopy()
165 (int) dstRect.top * srcImage.getHeight(), in cpuImageCopy()
167 (int) dstRect.bottom * srcImage.getHeight()); in cpuImageCopy()
171 Bitmap dstBitmap = Bitmap.createBitmap(dstImage.getWidth(), dstImage.getHeight(), config); in cpuImageCopy()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskSnapshotSurfaceTest.java79 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_fillHorizontally()
89 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillVertically()
99 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillBoth()
110 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_sameSize()
120 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_bitmapLarger()
174 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground()
187 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nullFrame()
200 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nope()
214 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground()
227 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground_left()
[all …]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java63 int maxDimension = Math.max(image.getWidth(), image.getHeight()); in requireSimilar()
92 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(), in assertImageSimilar()
100 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar()
160 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar()
161 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar()
162 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar()
164 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar()
165 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar()
209 int sourceHeight = source.getHeight(); in scale()
/frameworks/support/wear/src/android/support/wear/widget/
DCurvingLayoutCallback.java63 || mParentView.getHeight() != parent.getHeight()))) { in onLayoutFinished()
66 mLayoutHeight = mParentView.getHeight(); in onLayoutFinished()
71 mAnchorOffsetXY[1] = child.getHeight() / 2.0f; in onLayoutFinished()
73 float minCenter = -(float) child.getHeight() / 2; in onLayoutFinished()
74 float maxCenter = mLayoutHeight + (float) child.getHeight() / 2; in onLayoutFinished()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemsExpandOnSelectionTest.java44 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom(); in setUp()
45 mExpandedHeight = mListView.getChildAt(0).getHeight(); in setUp()
46 mNormalHeight = mListView.getChildAt(1).getHeight(); in setUp()
93 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight()); in testMoveSelectionDownRequiringScroll()
116 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight()); in testMoveSelectionUpRequiringScroll()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java622 mPopupWindow.getWidth(), mPopupWindow.getHeight()); in updateCoordinates()
673 y = contentRectOnScreen.top - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection()
696 mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection()
762 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow()
764 final int startHeight = mContentContainer.getHeight(); in openOverflow()
796 startY - (mContentContainer.getHeight() - startHeight)); in openOverflow()
864 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow()
865 final int startHeight = mContentContainer.getHeight(); in closeOverflow()
866 final float bottom = mContentContainer.getY() + mContentContainer.getHeight(); in closeOverflow()
873 mContentContainer.setY(bottom - mContentContainer.getHeight()); in closeOverflow()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationContentView.java336 previousHeight = mExpandedChild.getHeight(); in onLayout()
339 if (previousHeight != 0 && mExpandedChild.getHeight() != previousHeight) { in onLayout()
511 mContentHeight = Math.max(Math.min(contentHeight, getHeight()), getMinHeight()); in setContentHeight()
550 return Math.min(mHeadsUpChild.getHeight(), mExpandedChild.getHeight()); in getMinContentHeightHint()
557 return Math.min(mContentHeightAtAnimationStart, mExpandedChild.getHeight()); in getMinContentHeightHint()
562 hint = mAmbientChild.getHeight(); in getMinContentHeightHint()
565 hint = mAmbientSingleLineChild.getHeight(); in getMinContentHeightHint()
567 hint = mHeadsUpChild.getHeight(); in getMinContentHeightHint()
569 hint = mExpandedChild.getHeight(); in getMinContentHeightHint()
571 hint = mContractedChild.getHeight() + mContext.getResources().getDimensionPixelSize( in getMinContentHeightHint()
[all …]
/frameworks/base/core/java/android/app/
DVr2dDisplayProperties.java48 result = 31 * result + getHeight(); in hashCode()
70 if (getHeight() != that.getHeight()) return false; in equals()
116 public int getHeight() { in getHeight() method in Vr2dDisplayProperties

12345678910>>...36