Searched refs:getHeight (Results 26 - 50 of 785) sorted by relevance

1234567891011>>

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipRegion2Activity.java72 mRegion.set(0, 0, getWidth(), getHeight());
73 mRegion.op(getWidth() / 4, getHeight() / 4, 3 * getWidth() / 4, 3 * getHeight() / 4,
H A DColorFiltersActivity.java78 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight());
81 canvas.translate(0.0f, 50.0f + mBitmap1.getHeight());
89 canvas.translate(0.0f, 50.0f + mBitmap2.getHeight());
92 canvas.translate(0.0f, 50.0f + mBitmap2.getHeight());
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DVerticalSeekBar.java54 c.translate(-getHeight(), 0);
69 setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));
70 onSizeChanged(getWidth(), getHeight(), 0, 0);
/frameworks/support/percent/tests/java/android/support/percent/
H A DPercentDynamicLayoutTest.java116 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/v17/leanback/src/android/support/v17/leanback/widget/
H A DMediaRowFocusView.java51 mRoundRectRadius = getHeight() / 2;
53 int drawOffset = (drawHeight - getHeight()) / 2;
54 mRoundRectF.set(0, -drawOffset, getWidth(), getHeight() + drawOffset);
H A DHorizontalGridView.java284 || mTempBitmapLow.getHeight() != getHeight()) {
285 mTempBitmapLow = Bitmap.createBitmap(mLowFadeShaderLength, getHeight(),
294 || mTempBitmapHigh.getHeight() != getHeight()) {
298 && mTempBitmapLow.getHeight() == getHeight()) {
302 mTempBitmapHigh = Bitmap.createBitmap(mHighFadeShaderLength, getHeight(),
331 highEdge - (mFadingHighEdge ? mHighFadeShaderLength : 0), getHeight());
337 mTempRect.bottom = getHeight();
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListItemsExpandOnSelectionTest.java44 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom();
45 mExpandedHeight = mListView.getChildAt(0).getHeight();
46 mNormalHeight = mListView.getChildAt(1).getHeight();
93 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight());
116 assertEquals("expanded height", mExpandedHeight, mListView.getSelectedView().getHeight());
H A DListOfShortTallShortTest.java42 mListView.getChildAt(1).getHeight() > mListView.getHeight());
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DShadowPainter.java81 int height = source.getHeight();
89 int dstHeight = image.getHeight();
190 int height = source.getHeight();
217 int height = source.getHeight();
298 assert ShadowBottomRight.getHeight(null) == SHADOW_SIZE;
301 int trHeight = ShadowTopRight.getHeight(null);
314 x, y + height, x + width, y + height + ShadowBottom.getHeight(null),
315 0, 0, ShadowBottom.getWidth(null), ShadowBottom.getHeight(null), null);
317 x + width, y + ShadowTopRight.getHeight(null), x + width + ShadowRight.getWidth(null), y + height,
318 0, 0, ShadowRight.getWidth(null), ShadowRight.getHeight(nul
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameImage2D.java137 if (bitmap.getWidth() != dimensions[0] || bitmap.getHeight() != dimensions[1]) {
139 + "x" + bitmap.getHeight() + " to frame of size " + dimensions[0] + "x"
161 (int) srcRect.top * srcImage.getHeight(),
163 (int) srcRect.bottom * srcImage.getHeight());
165 (int) dstRect.top * srcImage.getHeight(),
167 (int) dstRect.bottom * srcImage.getHeight());
171 Bitmap dstBitmap = Bitmap.createBitmap(dstImage.getWidth(), dstImage.getHeight(), config);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java81 bitmap.getHeight());
87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE;
88 int bottom = (faceRect.bottom+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE;
94 } else if (top > bitmap.getHeight()) {
95 top = bitmap.getHeight();
102 if (bottom > bitmap.getHeight()) {
103 bottom = bitmap.getHeight();
137 if (top < bitmap.getHeight()) {
147 if (bottom < bitmap.getHeight()) {
160 outputBitmap.getWidth(), outputBitmap.getHeight());
[all...]
/frameworks/base/libs/hwui/
H A DLayerCache.cpp76 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(),
78 mSize -= layer->getWidth() * layer->getHeight() * 4;
103 mSize -= layer->getWidth() * layer->getHeight() * 4;
105 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight());
133 const uint32_t size = layer->getWidth() * layer->getHeight() * 4;
143 victim->layer.getHeight());
H A DLayer.cpp33 getWidth(), getHeight())
103 if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) {
117 uint32_t oldHeight = getHeight();
211 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight());
214 texture.updateSize(getWidth(), getHeight(), GL_RGBA);
215 glTexImage2D(renderTarget, 0, GL_RGBA, getWidth(), getHeight(), 0,
225 const float height = layer.getHeight();
258 renderer->prepareDirty(layer.getWidth(), layer.getHeight(),
276 renderer->prepareDirty(layer.getWidth(), layer.getHeight(),
/frameworks/support/design/tests/src/android/support/design/widget/
H A DAppBarWithToolbarAndTabsTest.java58 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
61 final int toolbarHeight = mToolbar.getHeight();
62 final int tabsHeight = mTabLayout.getHeight();
63 final int appbarHeight = mAppBar.getHeight();
151 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
154 final int toolbarHeight = mToolbar.getHeight();
155 final int tabsHeight = mTabLayout.getHeight();
156 final int appbarHeight = mAppBar.getHeight();
245 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
248 final int toolbarHeight = mToolbar.getHeight();
[all...]
H A DAppBarWithCollapsingToolbarTest.java49 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
52 final int toolbarHeight = mToolbar.getHeight();
53 final int appbarHeight = mAppBar.getHeight();
151 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
154 final int toolbarHeight = mToolbar.getHeight();
155 final int appbarHeight = mAppBar.getHeight();
255 final int originalAppbarBottom = appbarOnScreenXY[1] + mAppBar.getHeight();
258 final int appbarHeight = mAppBar.getHeight();
327 final int appbarHeight = mAppBar.getHeight();
328 final int toolbarHeight = mToolbar.getHeight();
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineButtonsTest.java74 assertEquals("Layout incorrect height", pauseHeight, mLayout.getHeight());
75 assertEquals("Pause incorrect height", pauseHeight, mPause.getHeight());
76 assertEquals("Prev incorrect height", prevHeight, mPrev.getHeight());
77 assertEquals("Next incorrect height", nextHeight, mNext.getHeight());
/frameworks/base/media/java/android/media/
H A DImageUtils.java110 Size srcSize = new Size(src.getWidth(), src.getHeight());
111 Size dstSize = new Size(dst.getWidth(), dst.getHeight());
150 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) {
151 if (row == effectivePlaneSize.getHeight() - 1) {
235 return new Size(image.getWidth(), image.getHeight());
237 return new Size(image.getWidth() / 2, image.getHeight() / 2);
241 return new Size(image.getWidth(), image.getHeight());
243 return new Size(image.getWidth(), image.getHeight() / 2);
256 return new Size(image.getWidth(), image.getHeight());
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DAutoScrollView.java35 int height = getHeight();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DExposureFilter.java63 inputImage.getHeight(),
66 inputImage.getHeight(),
76 underOutFrame.setValue(underExposedPixels*inputImage.getWidth()*inputImage.getHeight());
91 overOutFrame.setValue(overExposedPixels*inputImage.getWidth()*inputImage.getHeight());
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFloatRect.h39 inline float getHeight() const { return bottom - top; } function in class:android::FloatRect
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DRGBZ.java93 public int getHeight() { method in class:RGBZ
94 return bitmap.getHeight();
106 y < 0 || y > depthBitmap.getHeight()) {
128 int h = orig.getHeight();
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java63 int maxDimension = Math.max(image.getWidth(), image.getHeight());
92 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(),
100 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight());
160 goldenImage.getWidth() + "x" + goldenImage.getHeight() +
161 "vs" + image.getWidth() + "x" + image.getHeight();
162 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) {
164 goldenImage.getWidth() + "x" + goldenImage.getHeight() +
165 "vs" + image.getWidth() + "x" + image.getHeight();
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java59 assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max);
67 assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max);
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListTouchBottomGravityTest.java72 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom());
91 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom());
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisibleWithInternalScrollTest.java78 mScrollView.getHeight()
79 - mTextBlob.getHeight()

Completed in 2479 milliseconds

1234567891011>>