/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/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/graphics/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()
|
D | ColorFiltersMutateActivity.java | 200 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/ |
D | SurfaceViewRequestReceiver.java | 67 viewSize = new Size(surfaceControl.getWidth(), surfaceControl.getHeight()); in onReceive() 79 viewSize.getHeight(), in onReceive() 86 surfaceControl.getHeight() / (float) viewSize.getHeight()); in onReceive() 92 view.setTranslationY((surfaceControl.getHeight() - scale * viewSize.getHeight()) / 2); in onReceive()
|
/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/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 81 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(), in assertImageSimilar() 89 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar() 149 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar() 150 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar() 151 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar() 153 goldenImage.getWidth() + "x" + goldenImage.getHeight() + in assertImageSimilar() 154 "vs" + image.getWidth() + "x" + image.getHeight(); in assertImageSimilar()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupGetChildLocalHitRegionTest.java | 113 float y = viewBottom.getHeight() - 1; in testGetChildLocalHitRegion_topViewIsNotBlockedByBottomView() 117 Region actualRegion = new Region(0, 0, viewTop.getWidth(), viewTop.getHeight()); in testGetChildLocalHitRegion_topViewIsNotBlockedByBottomView() 127 Region expectRegion = new Region(0, 0, viewTop.getWidth(), viewTop.getHeight()); in testGetChildLocalHitRegion_topViewIsNotBlockedByBottomView() 137 float y = view.getHeight() / 2f; in injectMotionEvent() 176 Region actualRegion = new Region(0, 0, view.getWidth(), view.getHeight()); in assertGetChildLocalHitRegion() 186 Region expectRegion = new Region(0, 0, view.getWidth(), view.getHeight()); in assertGetChildLocalHitRegion() 217 Region actualRegion = new Region(0, 0, viewBottom.getWidth(), viewBottom.getHeight()); in assertGetChildLocalHitRegion() 226 Region expectRegion = new Region(0, 0, viewBottom.getWidth(), viewBottom.getHeight()); in assertGetChildLocalHitRegion() 227 expectRegion.op(0, 0, viewTop.getWidth(), viewTop.getHeight(), Region.Op.DIFFERENCE); in assertGetChildLocalHitRegion() 259 Region actualRegion = new Region(0, 0, viewBottom.getWidth(), viewBottom.getHeight()); in assertGetChildLocalHitRegionEmpty()
|
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/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/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LocalImageResolverTest.java | 103 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize() 119 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize() 134 assertThat(bd.getBitmap().getHeight()).isLessThan( in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize() 146 assertThat(bd.getBitmap().getHeight()).isLessThan(51); in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize() 158 assertThat(bd.getBitmap().getHeight()).isGreaterThan(51); in resolveImage_largeResourceIcon_negativeWidth_dontResize() 170 assertThat(bd.getBitmap().getHeight()).isGreaterThan(51); in resolveImage_largeResourceIcon_negativeHeight_dontResize() 183 assertThat(bd.getBitmap().getHeight()).isGreaterThan(51); in resolveImage_largeBitmapIcon_passedNegativeWidth_dontResize() 196 assertThat(bd.getBitmap().getHeight()).isGreaterThan(51); in resolveImage_largeBitmapIcon_passedNegativeHeight_dontResize() 207 assertThat(bd.getBitmap().getHeight()).isEqualTo(24); in resolveImage_smallBitmapIcon_passedSmallerSize_dontResize() 219 assertThat(bd.getBitmap().getHeight()).isLessThan(51); in resolveImage_largeBitmapIcon_passedSize_resizeToDefinedSize() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ImageUtils.java | 156 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy() 157 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy() 196 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) { in imageCopy() 197 if (row == effectivePlaneSize.getHeight() - 1) { in imageCopy() 292 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 294 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage() 298 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 300 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage() 318 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 326 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/ |
D | ClickAreaView.java | 56 canvas.drawLine(getWidth(), 0, getWidth(), getHeight(), mPaint); in onDraw() 57 canvas.drawLine(getWidth(), getHeight(), 0, getHeight(), mPaint); in onDraw() 58 canvas.drawLine(0, getHeight(), 0, 0, mPaint); in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/ |
D | MagnifierView.java | 138 -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/ |
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/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | TexturePool.cpp | 65 static_cast<int32_t>(texture->getBuffer()->getHeight()) != mSize.getHeight()) { in returnTexture() 68 texture->getBuffer()->getWidth(), texture->getBuffer()->getHeight(), mSize.getWidth(), in returnTexture() 69 mSize.getHeight()); in returnTexture() 89 static_cast<uint32_t>(mSize.getHeight()), in genTexture()
|
/frameworks/base/core/java/com/android/internal/widget/floatingtoolbar/ |
D | LocalFloatingToolbarPopup.java | 432 mPopupWindow.getWidth(), mPopupWindow.getHeight()); in updateCoordinates() 485 y = contentRectOnScreen.top - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 508 - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 574 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow() 576 final int startHeight = mContentContainer.getHeight(); in openOverflow() 608 startY - (mContentContainer.getHeight() - startHeight)); in openOverflow() 675 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow() 676 final int startHeight = mContentContainer.getHeight(); in closeOverflow() 677 final float bottom = mContentContainer.getY() + mContentContainer.getHeight(); in closeOverflow() 684 mContentContainer.setY(bottom - mContentContainer.getHeight()); in closeOverflow() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 281 final int bottomEdge = getHeight() - mPaddingBottom; in getBottomFadingEdgeStrength() 423 int childHeight = child.getHeight(); in canScroll() 424 return getHeight() < childHeight + mPaddingTop + mPaddingBottom; in canScroll() 863 consumed = Math.round(getHeight() in onTouchEvent() 864 * mEdgeGlowBottom.onPullDistance((float) deltaY / getHeight(), in onTouchEvent() 867 consumed = Math.round(-getHeight() in onTouchEvent() 868 * mEdgeGlowTop.onPullDistance((float) -deltaY / getHeight(), in onTouchEvent() 887 mEdgeGlowTop.onPullDistance((float) -deltaY / getHeight(), in onTouchEvent() 893 mEdgeGlowBottom.onPullDistance((float) deltaY / getHeight(), in onTouchEvent() 1001 mEdgeGlowTop.onPullDistance(-(float) newScrollY / getHeight(), 0.5f); in onGenericMotionEvent() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragResizeWindowGeometry.java | 238 if (y > mTaskSize.getHeight() - mTaskCornerRadius) { in calculateEdgeResizeCtrlType() 248 return (x < 0 || y < 0 || x >= mTaskSize.getWidth() || y >= mTaskSize.getHeight()) in calculateEdgeResizeCtrlType() 284 centerY = mTaskSize.getHeight() - mTaskCornerRadius; in calculateCenterForCornerRadius() 294 centerY = mTaskSize.getHeight() - mTaskCornerRadius; in calculateCenterForCornerRadius() 366 taskSize.getHeight() - cornerRadius, in TaskCorners() 368 taskSize.getHeight() + cornerRadius); in TaskCorners() 372 taskSize.getHeight() - cornerRadius, in TaskCorners() 374 taskSize.getHeight() + cornerRadius); in TaskCorners() 463 taskSize.getHeight()); in TaskEdges() 468 taskSize.getHeight()); in TaskEdges() [all …]
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | SnapshotDrawerUtilsTest.java | 113 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_fillHorizontally() 123 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillVertically() 133 when(mockCanvas.getHeight()).thenReturn(200); in fillEmptyBackground_fillBoth() 144 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_sameSize() 154 when(mockCanvas.getHeight()).thenReturn(100); in fillEmptyBackground_dontFill_bitmapLarger() 235 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground() 247 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nullFrame() 259 when(mockCanvas.getHeight()).thenReturn(100); in testDrawStatusBarBackground_nope() 272 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground() 285 when(mockCanvas.getHeight()).thenReturn(100); in testDrawNavigationBarBackground_left() [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()
|