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

1234567891011>>

/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/support/v17/leanback/src/android/support/v17/leanback/widget/
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/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.cpp83 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(),
85 mSize -= layer->getWidth() * layer->getHeight() * 4;
111 mSize -= layer->getWidth() * layer->getHeight() * 4;
113 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight());
144 const uint32_t size = layer->getWidth() * layer->getHeight() * 4;
158 victim->layer.getHeight());
H A DLayer.cpp35 getWidth(), getHeight())
105 if (desiredWidth <= getWidth() && desiredHeight <= getHeight()) {
119 uint32_t oldHeight = getHeight();
215 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight());
219 glTexImage2D(renderTarget, 0, GL_RGBA, getWidth(), getHeight(), 0,
229 const float height = layer.getHeight();
263 renderer->setViewport(layer.getWidth(), layer.getHeight());
282 renderer->setViewport(layer.getWidth(), layer.getHeight());
H A DRenderBufferCache.cpp95 buffer->getWidth(), buffer->getHeight());
158 buffer->getWidth(), buffer->getHeight());
164 buffer->getWidth(), buffer->getHeight(), size, mMaxSize);
/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/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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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/base/media/java/android/media/
H A DImageUtils.java102 Size srcSize = new Size(src.getWidth(), src.getHeight());
103 Size dstSize = new Size(dst.getWidth(), dst.getHeight());
142 for (int row = 0; row < effectivePlaneSize.getHeight(); row++) {
143 if (row == effectivePlaneSize.getHeight() - 1) {
225 return new Size(image.getWidth(), image.getHeight());
227 return new Size(image.getWidth() / 2, image.getHeight() / 2);
231 return new Size(image.getWidth(), image.getHeight());
233 return new Size(image.getWidth(), image.getHeight() / 2);
245 return new Size(image.getWidth(), image.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());
88 BufferedImage temp = new BufferedImage(goldenImage.getWidth(), goldenImage.getHeight(),
96 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight());
156 goldenImage.getWidth() + "x" + goldenImage.getHeight() +
157 "vs" + image.getWidth() + "x" + image.getHeight();
158 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) {
160 goldenImage.getWidth() + "x" + goldenImage.getHeight() +
161 "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/arrowscroll/
H A DListOfShortTallShortTest.java42 mListView.getChildAt(1).getHeight() > mListView.getHeight());
H A DListItemFocusablesCloseTest.java40 mListBottom = mListView.getHeight() - mListView.getListPaddingBottom();
57 first.getHeight() < mListView.getHeight());
H A DListOfThinItemsTest.java44 mListView.getSelectedView().getHeight() < mListView.getVerticalFadingEdgeLength());
52 final int listBottom = mListView.getHeight() - mListView.getListPaddingBottom();
88 final int listBottom = mListView.getHeight() - mListView.getListPaddingBottom();
/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()
H A DScrollViewButtonsAndLabelsTest.java52 mScreenBottom = origin[1] + mScrollView.getHeight();
84 int buttonBottom = buttonLoc[1] + firstButtonOffScreen.getHeight();
103 mLinearLayout.getHeight(), lastButton.getBottom());
114 int buttonBottom = buttonLoc[1] + lastButton.getHeight();
180 int screenHeight = mScrollView.getHeight();
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
H A DTallTextAboveButtonTest.java48 mTopText.getHeight() > mScrollView.getHeight());
/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
67 public int getHeight() { method in class:LargeBitmap
68 checkRecycled("getHeight called on recycled large bitmap");
75 * getWidth() or getHeight() is called.
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp122 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE);
151 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE);
183 mPixelBuffer = PixelBuffer::create(mFormat, getWidth(), getHeight());
192 glTexImage2D(GL_TEXTURE_2D, 0, mFormat, getWidth(), getHeight(), 0,
210 uint32_t height = dirtyRect.getHeight();
258 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) {
295 if (getHeight() - glyphH >= glyphH) {
298 roundedUpW, getHeight() - glyphH - TEXTURE_BORDER_SIZE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardPreviewContainer.java38 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DBitmapView.java59 float fraction = (float) getBottom() / (mListView.getHeight() + getHeight());
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
H A DHelloComputeNDK.java42 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(),
52 mBitmapIn.getWidth(), mBitmapIn.getHeight(),

Completed in 552 milliseconds

1234567891011>>