Home
last modified time | relevance | path

Searched refs:bottom (Results 1 – 25 of 136) sorted by relevance

123456

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java66 assertEquals(23, mOutRect.bottom); in testApply()
71 assertEquals(28, mOutRect.bottom); in testApply()
76 assertEquals(23, mOutRect.bottom); in testApply()
81 assertEquals(23, mOutRect.bottom); in testApply()
87 assertEquals(40, mOutRect.bottom); in testApply()
92 assertEquals(35, mOutRect.bottom); in testApply()
97 assertEquals(40, mOutRect.bottom); in testApply()
102 assertEquals(40, mOutRect.bottom); in testApply()
108 assertEquals(35, mOutRect.bottom); in testApply()
113 assertEquals(40, mOutRect.bottom); in testApply()
[all …]
DView_LayoutPositionTest.java75 int bottom = top + vRect.height(); in testPositionInParent() local
80 assertEquals(bottom, view.getBottom()); in testPositionInParent()
107 assertEquals(bottom + v_offset, nbottom); in testPositionInParent()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java57 assertEquals(5.0f, mRectF.bottom, 0.0f); in testSort()
63 assertEquals(10.0f, mRectF.bottom, 0.0f); in testSort()
73 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet1()
84 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet2()
95 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet3()
105 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersects1()
112 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersects1()
136 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect1()
143 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect1()
156 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect2()
[all …]
DRectTest.java55 assertEquals(4, mRect.bottom); in testSet1()
66 assertEquals(4, mRect.bottom); in testSet2()
76 assertEquals(10, mRect.bottom); in testIntersects1()
83 assertEquals(10, mRect.bottom); in testIntersects1()
113 assertEquals(6, mRect.bottom); in testOffsetTo()
127 assertEquals(10, mRect.bottom); in testSetIntersect()
135 assertEquals(10, mRect.bottom); in testSetIntersect()
148 assertEquals(2, mRect.bottom); in testUnion1()
158 assertEquals(2, mRect.bottom); in testUnion1()
168 assertEquals(1, mRect.bottom); in testUnion1()
[all …]
DRegionIteratorTest.java58 assertEquals(10, rect.bottom); in testNext()
64 assertEquals(1, rect.bottom); in testNext()
75 assertEquals(5, rect.bottom); in testNext()
80 assertEquals(10, rect.bottom); in testNext()
85 assertEquals(15, rect.bottom); in testNext()
91 assertEquals(1, rect.bottom); in testNext()
102 assertEquals(5, rect.bottom); in testNext()
107 assertEquals(10, rect.bottom); in testNext()
113 assertEquals(1, rect.bottom); in testNext()
124 assertEquals(10, rect.bottom); in testNext()
[all …]
DEmbossMaskFilterTest.java69 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter() local
73 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); in testEmbossMaskFilter()
77 top.bottom = CENTER_Y - STROKE_WIDTH / 2; in testEmbossMaskFilter()
79 bottom.top = CENTER_Y + STROKE_WIDTH / 2; in testEmbossMaskFilter()
80 assertEquals(0, brightness(bitmap, bottom)); in testEmbossMaskFilter()
93 for (int y = rect.top; y < rect.bottom; y++) { in brightness()
DPaint_FontMetricsIntTest.java44 int bottom = 4; in testToString() local
51 fontMetricsInt.bottom = bottom; in testToString()
DBlurMaskFilterTest.java72 int bottom = bitmap.getHeight() - 1; in verifyQuadrants() local
76 verifyColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in verifyQuadrants()
77 verifyColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in verifyQuadrants()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py95 bottom = int((0.5+spb_r)*h)
98 center_y = numpy.mean(img_y[top:bottom, left:right])
99 center_r_g = numpy.mean(r_g[top:bottom, left:right])
100 center_b_g = numpy.mean(b_g[top:bottom, left:right])
102 cv2.rectangle(img_legend_ls, (left, top), (right, bottom), GREEN,
105 [left+text_offset, bottom-text_offset],
108 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
113 [left+text_offset, bottom-text_offset*2],
142 bottom = int((spb_cty+spb_r)*h)
151 block_y = numpy.mean(img_y[top:bottom, left:right])
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/
DRobustnessRenderer.java86 protected float[] getCameraCoordinates(float left, float right, float bottom, float top) { in getCameraCoordinates() argument
90 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates()
92 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates()
93 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
95 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
104 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates()
106 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates()
107 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
DBaseRenderer.java132 float bottom = -1.0f; in onSurfaceChanged() local
148 bottom = -ratio; in onSurfaceChanged()
158 mCameraCoordinates = getCameraCoordinates(left, right, bottom, top); in onSurfaceChanged()
163 Matrix.orthoM(mOrthogonalProjectionMatrix, 0, left, right, bottom, top, near, far); in onSurfaceChanged()
164 Matrix.frustumM(mFrustrumProjectionMatrix, 0, left, right, bottom, top, near, far); in onSurfaceChanged()
203 protected float[] getCameraCoordinates(float left, float right, float bottom, float top) { in getCameraCoordinates() argument
211 left, bottom, 0.0f, in getCameraCoordinates()
213 left, bottom, 0.0f, in getCameraCoordinates()
214 right, bottom, 0.0f, in getCameraCoordinates()
221 bottom, right, 0.0f, in getCameraCoordinates()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java322 int bottom = 40; in testSetLayerInset() local
323 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
326 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
334 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
338 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
453 assertEquals(0, rc.bottom); in testAccessPadding()
461 assertEquals(padding0.bottom, rc.bottom); in testAccessPadding()
469 assertEquals(padding0.bottom + padding1.bottom, rc.bottom); in testAccessPadding()
538 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
552 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
[all …]
DInsetDrawableTest.java156 assertEquals(0, r.bottom); in testGetPadding_dimension()
163 assertEquals(4, r.bottom); in testGetPadding_dimension()
172 assertEquals(0, r.bottom); in testGetPadding_dimension()
179 assertEquals(0, r.bottom); in testGetPadding_dimension()
190 assertEquals(0, r.bottom); in testGetPadding_fraction()
197 assertEquals(4, r.bottom); in testGetPadding_fraction()
206 assertEquals(0, r.bottom); in testGetPadding_fraction()
213 assertEquals(0, r.bottom); in testGetPadding_fraction()
291 assertEquals(0, bounds.bottom); in testOnBoundsChange_dimension()
299 assertEquals(-5, bounds.bottom); in testOnBoundsChange_dimension()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DDynamicDrawableSpanTest.java65 assertEquals(0, fm.bottom); in testGetSize()
73 assertEquals(-rect.bottom, fm.ascent); in testGetSize()
74 assertEquals(0, fm.bottom); in testGetSize()
77 assertEquals(-rect.bottom, fm.top); in testGetSize()
103 final int bottom = DRAWABLE_SIZE + padding; in testCenterAligned() local
105 final Bitmap bitmap = Bitmap.createBitmap(DRAWABLE_SIZE, bottom, Bitmap.Config.ARGB_8888); in testCenterAligned()
109 0 /* top */, 0 /* y */, bottom, null /* paint */); in testCenterAligned()
DLineBackgroundSpan_StandardTest.java72 final int bottom = 50; in testDrawBackground() local
75 span.drawBackground(canvas, paint, left, right, top, baseline, bottom, in testDrawBackground()
77 verify(canvas).drawRect(left, top, right, bottom, paint); in testDrawBackground()
DDrawableMarginSpanTest.java79 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin()
95 assertEquals(mDrawable.getIntrinsicHeight(), mDrawable.getBounds().bottom); in testDrawLeadingMargin()
125 assertEquals(0, fm.bottom); in testChooseHeight()
135 assertTrue(fm.bottom > 0); in testChooseHeight()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSpinnerTest.java199 Rect rcChild0 = new Rect(0, 0, 20, rc.bottom); in testPointToPosition()
200 Rect rcChild1 = new Rect(rcChild0.right, 0, 70, rc.bottom); in testPointToPosition()
201 Rect rcChild2 = new Rect(rcChild1.right, 0, rc.right, rc.bottom); in testPointToPosition()
202 absSpinner.layout(rc.left, rc.top, rc.right, rc.bottom); in testPointToPosition()
204 rcChild0.right, rcChild0.bottom); in testPointToPosition()
206 rcChild1.right, rcChild1.bottom); in testPointToPosition()
208 rcChild2.right, rcChild2.bottom); in testPointToPosition()
211 assertEquals(0, absSpinner.pointToPosition(rcChild0.left + 1, rc.bottom - 1)); in testPointToPosition()
212 assertEquals(1, absSpinner.pointToPosition(rcChild1.left + 1, rc.bottom - 1)); in testPointToPosition()
213 assertEquals(2, absSpinner.pointToPosition(rcChild2.left + 1, rc.bottom - 1)); in testPointToPosition()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java155 + getPaddingBottom() + mForegroundPadding.bottom; in onMeasure()
184 int pbwf = getPaddingBottom() + mForegroundPadding.bottom; in onMeasure()
237 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
238 layoutBoxChildren(left, top, right, bottom, false /* no force left gravity */); in onLayout()
241 private void layoutBoxChildren(int left, int top, int right, int bottom, in layoutBoxChildren() argument
244 int boxInset = (int)(FACTOR * Math.max(right - left, bottom - top)); in layoutBoxChildren()
250 final int parentBottom = bottom - top - getPaddingBottom() - mForegroundPadding.bottom; in layoutBoxChildren()
344 childTop = bottom - top - height; in layoutBoxChildren()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java374 final int theBottomestLine = viewBoundary.bottom - 1; in swipeBigX()
417 final int theBottomestLine = viewBoundary.bottom - 1; in clickAllOfSamplePoints()
432 final int theBottomestLine = viewBoundary.bottom - 1; in swipeAllOfHorizontalLinesFromLeftToRight()
458 final int theBottomestLine = viewBoundary.bottom - 1; in swipeAllOfHorizontalLinesFromRightToLeft()
517 final int theBottomestLine = viewBoundary.bottom - 1; in swipeAllOfVerticalLinesFromBottomToTop()
572 while (nextTop >= rect.bottom) { in splitBoundsAccordingToExclusionLimit()
574 int bottom = top + exclusionHeightLimit; in splitBoundsAccordingToExclusionLimit() local
575 if (bottom > rect.bottom) { in splitBoundsAccordingToExclusionLimit()
576 bottom = rect.bottom; in splitBoundsAccordingToExclusionLimit()
579 bounds.add(new Rect(rect.left, top, rect.right, bottom)); in splitBoundsAccordingToExclusionLimit()
[all …]
DWindowInsetsActivity.java251 int bottom = insets.bottom; in getOperationArea() local
266 bottom = Math.max(bottom, cutout.getSafeInsetBottom() + slack); in getOperationArea()
275 rect.bottom -= bottom; in getOperationArea()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceViewTest.java79 final int bottom = 240; in testSurfaceView() local
101 region.set(left, top, right, bottom); in testSurfaceView()
122 final int bottom = 240; in testOnSizeChanged() local
129 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged()
134 assertEquals(bottom - top, mMockSurfaceView.getHeight()); in testOnSizeChanged()
DDisplayCutoutTests.java104 assertEquals(safeInsets.bottom, displayCutout.getSafeInsetBottom()); in testConstructor()
201 assertCutoutIsConsistentWithInset("bottom", safeInsets.bottom, in assertCutoutsAreConsistentWithInsets()
232 boundsWith(cutout, (r) -> r.bottom <= safeRect.top), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
236 boundsWith(cutout, (r) -> r.top >= safeRect.bottom), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
308 safeRect.bottom = getOnMainSync(() -> a.getDecorView().getHeight()) - safeRect.bottom; in getSafeRect()
318 && actual.right <= max.right && actual.bottom <= max.bottom; in insetsLessThanOrEqualTo()
337 return Arrays.asList(actual.left, actual.top, actual.right, actual.bottom);
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java92 && midClip.bottom < redSquare.getBottom() && midClip.bottom > newClip.bottom; in isMiddleOfClipping()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java99 mDisplaySize.y - mSystemWindowInset.bottom); in getScreenRectWithoutSystemWindowInset()
127 mDisplaySize.y - mStableInset.bottom); in getScreenRectWithoutStableInset()
163 int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { in fromLayoutListenerCallback() argument
164 final Rect newLayout = new Rect(left, top, right, bottom); in fromLayoutListenerCallback()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java218 assertEquals(start.bottom, result.bottom, 001f); in rectEvaluatorTestImpl()
224 assertEquals(200, result.bottom, EPSILON); in rectEvaluatorTestImpl()
230 assertEquals(end.bottom, result.bottom, EPSILON); in rectEvaluatorTestImpl()

123456