/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
D | ShadowOverlayContainerTest.java | 43 assertTrue(textView.getHeight() > 0); in testWrapContent() 44 assertTrue(textView.getHeight() < 500); in testWrapContent() 46 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent() 54 assertTrue(textView.getHeight() == 123); in testWrapContent() 56 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent() 72 assertTrue(textView.getHeight() > 0); 73 assertTrue(textView.getHeight() < 500); 75 assertEquals(container.getHeight(), textView.getHeight()); 83 assertTrue(textView.getHeight() == 123); 85 assertEquals(container.getHeight(), textView.getHeight()); [all …]
|
/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/tools/layoutlib/bridge/src/android/view/ |
D | ShadowPainter.java | 81 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/ |
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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | HorizontalGridView.java | 284 || mTempBitmapLow.getHeight() != getHeight()) { in getTempBitmapLow() 285 mTempBitmapLow = Bitmap.createBitmap(mLowFadeShaderLength, getHeight(), in getTempBitmapLow() 294 || mTempBitmapHigh.getHeight() != getHeight()) { in getTempBitmapHigh() 298 && mTempBitmapLow.getHeight() == getHeight()) { in getTempBitmapHigh() 302 mTempBitmapHigh = Bitmap.createBitmap(mHighFadeShaderLength, getHeight(), in getTempBitmapHigh() 331 highEdge - (mFadingHighEdge ? mHighFadeShaderLength : 0), getHeight()); in draw() 337 mTempRect.bottom = getHeight(); in draw() 344 tmpCanvas.clipRect(0, 0, mLowFadeShaderLength, getHeight()); in draw() 350 tmpCanvas.drawRect(0, 0, mLowFadeShaderLength, getHeight(), mTempPaint); in draw() 364 tmpCanvas.clipRect(0, 0, mHighFadeShaderLength, getHeight()); in draw() [all …]
|
/frameworks/support/percent/tests/java/android/support/percent/ |
D | PercentDynamicLayoutTest.java | 116 final int containerHeight = percentFrameLayout.getHeight(); 129 availableHeight, child1.getHeight()); 133 availableHeight, child2.getHeight()); 146 final int containerHeight = percentFrameLayout.getHeight(); 159 0.5f * availableHeight, child1.getHeight()); 163 0.5f* availableHeight, child2.getHeight()); 176 final int containerHeight = percentRelativeLayout.getHeight(); 189 availableHeight, child1.getHeight()); 193 availableHeight, child2.getHeight()); 206 final int containerHeight = percentRelativeLayout.getHeight(); [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | AppBarWithAnchoredFabMarginsTest.java | 59 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabBottomMargin() 60 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabBottomMargin() 86 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabTopMargin() 87 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabTopMargin() 111 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabLeftMargin() 112 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabLeftMargin() 137 assertEquals(appbarOnScreenXY[1] + mAppBar.getHeight(), in testFabRightMargin() 138 fabOnScreenXY[1] + fab.getHeight() / 2, 1); in testFabRightMargin()
|
D | AppBarWithCollapsingToolbarTest.java | 49 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testPinnedToolbar() 52 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbar() 53 final int appbarHeight = mAppBar.getHeight(); in testPinnedToolbar() 151 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbar() 154 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbar() 155 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbar() 255 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testPinnedToolbarAndAnchoredFab() 258 final int appbarHeight = mAppBar.getHeight(); in testPinnedToolbarAndAnchoredFab() 327 final int appbarHeight = mAppBar.getHeight(); in testPinnedToolbarAndParallaxImage() 328 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbarAndParallaxImage() [all …]
|
D | AppBarWithToolbarAndTabsTest.java | 58 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbarAndScrollingTabs() 61 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndScrollingTabs() 62 final int tabsHeight = mTabLayout.getHeight(); in testScrollingToolbarAndScrollingTabs() 63 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbarAndScrollingTabs() 151 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testScrollingToolbarAndPinnedTabs() 154 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndPinnedTabs() 155 final int tabsHeight = mTabLayout.getHeight(); in testScrollingToolbarAndPinnedTabs() 156 final int appbarHeight = mAppBar.getHeight(); in testScrollingToolbarAndPinnedTabs() 245 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight(); in testSnappingToolbarAndSnappingTabs() 248 final int toolbarHeight = mToolbar.getHeight(); in testSnappingToolbarAndSnappingTabs() [all …]
|
/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 | 110 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/ |
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/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | ImageUtils.java | 63 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/base/core/java/com/android/internal/widget/ |
D | FloatingToolbar.java | 589 mPopupWindow.getWidth(), mPopupWindow.getHeight()); in updateCoordinates() 640 y = contentRectOnScreen.top - mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 663 mPopupWindow.getHeight(); in refreshCoordinatesAndOverflowDirection() 729 final int targetHeight = mOverflowPanelSize.getHeight(); in openOverflow() 731 final int startHeight = mContentContainer.getHeight(); in openOverflow() 763 startY - (mContentContainer.getHeight() - startHeight)); in openOverflow() 831 final int targetHeight = mMainPanelSize.getHeight(); in closeOverflow() 832 final int startHeight = mContentContainer.getHeight(); in closeOverflow() 833 final float bottom = mContentContainer.getY() + mContentContainer.getHeight(); in closeOverflow() 840 mContentContainer.setY(bottom - mContentContainer.getHeight()); in closeOverflow() [all …]
|
/frameworks/base/libs/hwui/ |
D | LayerCache.cpp | 76 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(), in deleteLayer() 78 mSize -= layer->getWidth() * layer->getHeight() * 4; in deleteLayer() 103 mSize -= layer->getWidth() * layer->getHeight() * 4; in get() 105 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight()); in get() 133 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; in put() 143 victim->layer.getHeight()); in put()
|
D | Layer.cpp | 33 getWidth(), getHeight()) 103 if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) { in resize() 117 uint32_t oldHeight = getHeight(); in resize() 211 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight()); in allocateTexture() 214 texture.updateSize(getWidth(), getHeight(), GL_RGBA); in allocateTexture() 215 glTexImage2D(renderTarget, 0, GL_RGBA, getWidth(), getHeight(), 0, in allocateTexture() 225 const float height = layer.getHeight(); in defer() 258 renderer->prepareDirty(layer.getWidth(), layer.getHeight(), in flush() 276 renderer->prepareDirty(layer.getWidth(), layer.getHeight(), in render()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSContainer.java | 146 return getHeight(); in getDesiredHeight() 175 return mQSCustomizer.isCustomizing() ? mQSCustomizer.getHeight() in calculateContainerHeight() 249 setTranslationY(mKeyguardShowing ? (translationScaleY * mHeader.getHeight()) in setQsExpansion() 253 mQSPanel.setTranslationY(translationScaleY * mQSPanel.getHeight()); in setQsExpansion() 259 mQsBounds.top = (int) (mQSPanel.getHeight() * (1 - expansion)); in setQsExpansion() 261 mQsBounds.bottom = mQSPanel.getHeight(); in setQsExpansion() 279 animate().y(-mHeader.getHeight()) in animateHeaderSlidingOut() 306 setY(-mHeader.getHeight()); 321 return mHeader.getHeight(); in getQsMinExpansionHeight() 326 setY(-mHeader.getHeight()); in hideImmediately()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListItemsExpandOnSelectionTest.java | 44 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/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | IconTest.java | 119 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithBitmapResource() 146 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithFile() 179 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testAsync() 206 originalbits.getWidth() * originalbits.getHeight() * 2); // guess 50% compression in testParcel() 252 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testParcel() 292 final int h = a.getHeight(); in printBits() 297 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) return false; in equalBitmaps() 300 final int h = a.getHeight(); in equalBitmaps() 311 if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) { in findBitmapDifferences() 313 a.getWidth(), a.getHeight(), b.getWidth(), b.getHeight()); in findBitmapDifferences() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationContentView.java | 274 previousHeight = mExpandedChild.getHeight(); in onLayout() 277 if (previousHeight != 0 && mExpandedChild.getHeight() != previousHeight) { in onLayout() 423 mContentHeight = Math.max(Math.min(contentHeight, getHeight()), getMinHeight()); in setContentHeight() 462 return Math.min(mHeadsUpChild.getHeight(), mExpandedChild.getHeight()); in getMinContentHeightHint() 469 return Math.min(mContentHeightAtAnimationStart, mExpandedChild.getHeight()); in getMinContentHeightHint() 474 hint = mHeadsUpChild.getHeight(); in getMinContentHeightHint() 476 hint = mExpandedChild.getHeight(); in getMinContentHeightHint() 478 hint = mContractedChild.getHeight() + mContext.getResources().getDimensionPixelSize( in getMinContentHeightHint() 483 hint = Math.min(hint, mExpandedChild.getHeight()); in getMinContentHeightHint() 549 int startHeight = getViewForVisibleType(mTransformationStartVisibleType).getHeight(); in calculateTransformationAmount() [all …]
|