Home
last modified time | relevance | path

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

12345678910>>...37

/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/layoutlib/bridge/src/android/view/
DShadowPainter.java83 int height = source.getHeight(); in createDropShadow()
91 int dstHeight = image.getHeight(); in createDropShadow()
192 int height = source.getHeight(); in createRectangularDropShadow()
219 int height = source.getHeight(); in createSmallRectangularDropShadow()
300 assert ShadowBottomRight.getHeight(null) == SHADOW_SIZE; in drawRectangleShadow()
303 int trHeight = ShadowTopRight.getHeight(null); in drawRectangleShadow()
316 x, y + height, x + width, y + height + ShadowBottom.getHeight(null), in drawRectangleShadow()
317 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null); in drawRectangleShadow()
319 … x + width, y + ShadowTopRight.getHeight(null), x + width + ShadowRight.getWidth(null), y + height, in drawRectangleShadow()
320 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/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()
DColorFiltersMutateActivity.java200 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
203 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
206 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight()); in onDraw()
207 canvas.drawRect(0.0f, 0.0f, mBitmap1.getWidth(), mBitmap1.getHeight(), in onDraw()
215 canvas.translate(0.0f, 50.0f + mBitmap2.getHeight()); in onDraw()
218 canvas.translate(0.0f, 50.0f + mBitmap2.getHeight()); in onDraw()
221 canvas.translate(0.0f, 50.0f + mBitmap2.getHeight()); in onDraw()
222 canvas.drawRoundRect(0.0f, 0.0f, mBitmap2.getWidth(), mBitmap2.getHeight(), 20, 20, in onDraw()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestReceiver.java67 viewSize = new Size(surfaceControl.getWidth(), surfaceControl.getHeight()); in onReceive()
82 viewSize.getHeight(), in onReceive()
89 surfaceControl.getHeight() / (float) viewSize.getHeight()); in onReceive()
95 view.setTranslationY((surfaceControl.getHeight() - scale * viewSize.getHeight()) / 2); in onReceive()
/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/native/services/surfaceflinger/CompositionEngine/src/planner/
DTexturePool.cpp51 static_cast<int32_t>(texture->getBuffer()->getHeight()) != mSize.getHeight()) { in returnTexture()
54 texture->getBuffer()->getWidth(), texture->getBuffer()->getHeight(), mSize.getWidth(), in returnTexture()
55 mSize.getHeight()); in returnTexture()
73 make(mSize.getWidth(), mSize.getHeight(), in genTexture()
/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/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java63 int maxDimension = Math.max(image.getWidth(), image.getHeight()); in requireSimilar()
90 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(), in assertImageSimilar()
98 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar()
158 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar()
159 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar()
160 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar()
162 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar()
163 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar()
206 int sourceHeight = source.getHeight(); in scale()
/frameworks/base/media/java/android/media/
DImageUtils.java123 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy()
124 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy()
163 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) { in imageCopy()
164 if (row == effectivePlaneSize.getHeight() - 1) { in imageCopy()
254 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
256 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
260 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
262 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
278 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DMagnifierView.java138 -mDrawable.getBounds().height() * mLastCropPosition + getHeight() / 2); in onDraw()
143 Rect scrimRect = new Rect(0, 0, getWidth(), getHeight() / 2); in onDraw()
145 scrimRect.offset(0, getHeight() / 2); in onDraw()
149 canvas.drawLine(0, getHeight() / 2, getWidth(), getHeight() / 2, mHandlePaint); in onDraw()
160 setTranslationY(boundaryPositionPx - getHeight() / 2); in onCropDragStarted()
162 setPivotY(getHeight() / 2); in onCropDragStarted()
190 setTranslationY(boundaryPositionPx - getHeight() / 2); in onCropDragMoved()
203 int checkerHeight = (int) Math.ceil(getHeight() / mCheckerboardBoxSize);
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemsExpandOnSelectionTest.java45 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom(); in setUp()
46 mExpandedHeight = mListView.getChildAt(0).getHeight(); in setUp()
47 mNormalHeight = mListView.getChildAt(1).getHeight(); in setUp()
94 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight()); in testMoveSelectionDownRequiringScroll()
117 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight()); in testMoveSelectionUpRequiringScroll()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipBoundsAlgorithm.java93 dpToPx(screenEdgeInsetsDp.getHeight(), res.getDisplayMetrics())); in reloadResources()
253 final int top = (int) (stackBounds.centerY() - size.getHeight() / 2f); in transformBoundsToAspectRatio()
254 stackBounds.set(left, top, left + size.getWidth(), top + size.getHeight()); in transformBoundsToAspectRatio()
260 final float sizeAspectRatio = size.getWidth() / (float) size.getHeight(); in adjustSizeToAspectRatio()
266 return new Size((int) (size.getHeight() * aspectRatio), size.getHeight()); in adjustSizeToAspectRatio()
278 defaultBounds.set(0, 0, size.getWidth(), size.getHeight()); in getDefaultBounds()
303 defaultBounds.set(0, 0, defaultSize.getWidth(), defaultSize.getHeight()); in getDefaultBounds()
307 Gravity.apply(mDefaultStackGravity, defaultSize.getWidth(), defaultSize.getHeight(), in getDefaultBounds()
440 final int smallestSize = Math.min(size.getWidth(), size.getHeight()); in getSizeForAspectRatio()
466 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java71 if (size.getWidth() > size.getHeight()) { in resolveImage()
73 final int targetHeight = size.getHeight() * maxWidth / size.getWidth(); in resolveImage()
77 if (size.getHeight() > maxHeight) { in resolveImage()
78 final int targetWidth = size.getWidth() * maxHeight / size.getHeight(); in resolveImage()
93 final int originalSize = Math.max(size.getHeight(), size.getWidth()); in onHeaderDecoded()
DFloatingToolbar.java675 mPopupWindow.getWidth(), mPopupWindow.getHeight()); in updateCoordinates()
726 y = contentRectOnScreen.top - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection()
749 mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection()
815 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow()
817 final int startHeight = mContentContainer.getHeight(); in openOverflow()
849 startY - (mContentContainer.getHeight() - startHeight)); in openOverflow()
917 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow()
918 final int startHeight = mContentContainer.getHeight(); in closeOverflow()
919 final float bottom = mContentContainer.getY() + mContentContainer.getHeight(); in closeOverflow()
926 mContentContainer.setY(bottom - mContentContainer.getHeight()); in closeOverflow()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindowTest.java117 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_fillHorizontally()
127 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillVertically()
137 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillBoth()
148 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_sameSize()
158 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_bitmapLarger()
227 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground()
239 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nullFrame()
251 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nope()
264 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground()
277 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground_left()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java120 assertThat(bm.getHeight()).isEqualTo(78); in testScaleDownIfNecessary()
123 assertThat(ic.getBitmap().getHeight()).isLessThan(21); in testScaleDownIfNecessary()
169 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithBitmapResource()
196 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithFile()
229 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testAsync()
256 originalbits.getWidth() * originalbits.getHeight() * 2); // guess 50% compression in testParcel()
302 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testParcel()
342 final int h = a.getHeight(); in printBits()
351 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) return false; in equalBitmaps()
354 final int h = a.getHeight(); in equalBitmaps()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DZeroSizedTest.java63 assertTrue(mWithDimension.getHeight() > 0); in testDrawingCacheWithDimension()
70 assertTrue(mWithNoWdith.getHeight() > 0); in testDrawingCacheWithNoWidth()
77 assertTrue(mWithNoHeight.getHeight() == 0); in testDrawingCacheWithNoHeight()
84 assertTrue(mWithNoDimension.getHeight() == 0); in testDrawingCacheWithNoDimension()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java70 int height = bitmap.getHeight(); in isGrayscale()
177 if (currentSize.getHeight() > requestedSize.getHeight() in calculateSampleSize()
179 final int halfHeight = currentSize.getHeight() / 2; in calculateSampleSize()
184 while ((halfHeight / inSampleSize) >= requestedSize.getHeight() in calculateSampleSize()
205 new Point(size.getWidth(), size.getHeight())); in loadThumbnail()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java66 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPushUp()
83 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPullDown()
100 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPushUpFast()
117 mGridView.getHeight() - mGridView.getListPaddingBottom(), lastChild.getBottom()); in testPullDownFast()

12345678910>>...37