/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | RequestRectangleVisibleTest.java | 88 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()
|
D | RequestRectangleVisible.java | 50 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/ |
D | ShadowPainter.java | 83 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/ |
D | MultiPageTextWithPaddingTest.java | 51 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()
|
D | ShortButtonsTest.java | 47 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()
|
D | ButtonsWithTallTextViewInBetweenTest.java | 69 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/ |
D | Alpha8BitmapActivity.java | 50 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()
|
D | AssetsAtlasActivity.java | 56 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 81 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/ |
D | ImageUtils.java | 117 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy() 118 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy() 157 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) { in imageCopy() 158 if (row == effectivePlaneSize.getHeight() - 1) { in imageCopy() 245 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 247 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage() 251 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 253 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage() 268 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
|
D | ThumbnailUtils.java | 112 final int heightSample = info.getSize().getHeight() / size.getHeight(); in onHeaderDecoded() 276 size.getWidth() * size.getHeight()); in createImageThumbnail() 305 final int height = bitmap.getHeight(); in createImageThumbnail() 366 if (size.getWidth() > width && size.getHeight() > height) { in createVideoThumbnail() 372 size.getWidth(), size.getHeight())); in createVideoThumbnail() 406 if (source.getWidth() < source.getHeight()) { in extractThumbnail() 409 scale = height / (float) source.getHeight(); in extractThumbnail() 463 int deltaY = source.getHeight() - targetHeight; in transform() 481 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 497 float bitmapHeightF = source.getHeight(); in transform() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 70 mFrameSize.getHeight() - insetTop - insetBottom); in inset() 88 final int insetBottom = mFrameSize.getHeight() - frame.bottom; in calculateRelativeTo() 115 if (displaySize.getWidth() < displaySize.getHeight()) { in computeSafeInsets() 117 new Rect(0, displaySize.getHeight() / 2, 0, displaySize.getHeight() / 2)) in computeSafeInsets() 122 } else if (displaySize.getWidth() > displaySize.getHeight()) { in computeSafeInsets() 147 if (boundingRect.bottom == display.getHeight()) { in findInsetForSide() 148 inset = Math.max(inset, display.getHeight() - boundingRect.top); in findInsetForSide()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameImage2D.java | 137 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/ |
D | ImageUtils.java | 63 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/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotSurfaceTest.java | 95 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_fillHorizontally() 105 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillVertically() 115 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillBoth() 126 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_sameSize() 136 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_bitmapLarger() 190 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground() 203 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nullFrame() 216 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nope() 230 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground() 243 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground_left() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListItemsExpandOnSelectionTest.java | 45 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/core/java/com/android/internal/widget/ |
D | FloatingToolbar.java | 667 mPopupWindow.getWidth(), mPopupWindow.getHeight()); in updateCoordinates() 718 y = contentRectOnScreen.top - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 741 mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 807 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow() 809 final int startHeight = mContentContainer.getHeight(); in openOverflow() 841 startY - (mContentContainer.getHeight() - startHeight)); in openOverflow() 909 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow() 910 final int startHeight = mContentContainer.getHeight(); in closeOverflow() 911 final float bottom = mContentContainer.getY() + mContentContainer.getHeight(); in closeOverflow() 918 mContentContainer.setY(bottom - mContentContainer.getHeight()); in closeOverflow() [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 120 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/ |
D | ZeroSizedTest.java | 63 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/tests/coretests/src/android/content/ |
D | ContentResolverTest.java | 91 final int after = (100 * bitmap.getWidth()) / bitmap.getHeight(); in assertImageAspectAndContents() 96 final int halfY = bitmap.getHeight() / 2; in assertImageAspectAndContents() 113 assertEquals(960, res.getHeight()); in testLoadThumbnail_Normal() 128 assertTrue(res.getHeight() <= 480); in testLoadThumbnail_Scaling() 143 assertTrue(res.getHeight() <= 480); in testLoadThumbnail_Aspect() 158 assertEquals(24, res.getHeight()); in testLoadThumbnail_Tiny()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2RecordingTest.java | 401 videoSz.getHeight() > maxPreviewSize.getHeight())) { in basicRecordingTestByCamera() 558 videoSz.getHeight() > maxPreviewSize.getHeight())) { in videoSnapshotTestByCamera() 586 candidateSize.getHeight() <= videoSz.getHeight()) { in videoSnapshotTestByCamera() 594 candidateSize.getHeight() <= videoSz.getHeight() && in videoSnapshotTestByCamera() 611 videoSz.getHeight() <= maxPreviewSize.getHeight()) { in videoSnapshotTestByCamera() 630 if (videoSnapshotSz.getWidth() * videoSnapshotSz.getHeight() > FRAME_SIZE_15M) in videoSnapshotTestByCamera() 782 videoSize.getHeight() > maxPreviewSize.getHeight()) { in updatePreviewSurfaceWithVideo() 793 s.getHeight() <= videoSize.getHeight()) { in updatePreviewSurfaceWithVideo() 847 mMediaRecorder.setVideoSize(sz.getWidth(), sz.getHeight()); in prepareRecording() 996 CameraTestUtils.validateImage(image, size.getWidth(), size.getHeight(), [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchStackFromBottomTest.java | 66 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()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 134 Bitmap bitmap = Bitmap.createBitmap(optimalSize.getWidth(), optimalSize.getHeight(), in fromDrawable() 137 drawable.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight()); in fromDrawable() 159 final int bitmapArea = bitmap.getWidth() * bitmap.getHeight(); in fromBitmap() 163 Size optimalSize = calculateOptimalSize(bitmap.getWidth(), bitmap.getHeight()); in fromBitmap() 165 optimalSize.getHeight(), true /* filter */); in fromBitmap() 178 final float minColorArea = bitmap.getWidth() * bitmap.getHeight() * MIN_COLOR_OCCURRENCE; in fromBitmap() 379 int[] pixels = new int[source.getWidth() * source.getHeight()]; in calculateDarkHints() 384 source.getWidth(), source.getHeight()); in calculateDarkHints() 418 source.getHeight()); in calculateDarkHints()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 258 final int bottomEdge = getHeight() - mPaddingBottom; in getBottomFadingEdgeStrength() 401 int childHeight = child.getHeight(); in canScroll() 402 return getHeight() < childHeight + mPaddingTop + mPaddingBottom; in canScroll() 813 mEdgeGlowTop.onPull((float) deltaY / getHeight(), in onTouchEvent() 819 mEdgeGlowBottom.onPull((float) deltaY / getHeight(), in onTouchEvent() 961 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; in performAccessibilityActionInternal() 970 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; in performAccessibilityActionInternal() 1024 child.getHeight() - (getHeight() - mPaddingBottom - mPaddingTop)); in getScrollRange() 1126 int height = getHeight(); in pageScroll() 1162 int height = getHeight(); in fullScroll() [all …]
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowBitmapGenerator.java | 43 mTriangle.setSize(config.getWidth(), config.getHeight(), 0); in SpotShadowBitmapGenerator() 81 (shadowBounds[3] - shadowBounds[1]) > mShadowConfig.getHeight()) { in populateShadow() 99 } else if (shadowBounds[3] > mShadowConfig.getHeight()) { in populateShadow() 100 mTranslateY = shadowBounds[3] - mShadowConfig.getHeight(); in populateShadow()
|