Home
last modified time | relevance | path

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

12345

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java65 assertEquals(23, mOutRect.bottom); in testApply()
70 assertEquals(28, mOutRect.bottom); in testApply()
75 assertEquals(23, mOutRect.bottom); in testApply()
80 assertEquals(23, mOutRect.bottom); in testApply()
86 assertEquals(40, mOutRect.bottom); in testApply()
91 assertEquals(35, mOutRect.bottom); in testApply()
96 assertEquals(40, mOutRect.bottom); in testApply()
101 assertEquals(40, mOutRect.bottom); in testApply()
107 assertEquals(35, mOutRect.bottom); in testApply()
112 assertEquals(40, mOutRect.bottom); in testApply()
[all …]
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()
DView_LayoutPositionTest.java74 int bottom = top + vRect.height(); in testPositionInParent() local
79 assertEquals(bottom, view.getBottom()); in testPositionInParent()
106 assertEquals(bottom + v_offset, nbottom); in testPositionInParent()
DActionModeCallback2Test.java62 assertEquals(VIEW_HEIGHT, outRect.bottom); in testCallbackOnGetContentRectDefaultWithView()
74 assertEquals(0, outRect.bottom); in testCallbackOnGetContentRectDefaultWithoutView()
/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/cts/
DRectFTest.java56 assertEquals(5.0f, mRectF.bottom, 0.0f); in testSort()
62 assertEquals(10.0f, mRectF.bottom, 0.0f); in testSort()
72 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet1()
83 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet2()
94 assertEquals(4.0f, mRectF.bottom, 0.0f); in testSet3()
104 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersects1()
111 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersects1()
135 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect1()
142 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect1()
155 assertEquals(10.0f, mRectF.bottom, 0.0f); in testIntersect2()
[all …]
DRegionIteratorTest.java57 assertEquals(10, rect.bottom); in testNext()
63 assertEquals(1, rect.bottom); in testNext()
74 assertEquals(5, rect.bottom); in testNext()
79 assertEquals(10, rect.bottom); in testNext()
84 assertEquals(15, rect.bottom); in testNext()
90 assertEquals(1, rect.bottom); in testNext()
101 assertEquals(5, rect.bottom); in testNext()
106 assertEquals(10, rect.bottom); in testNext()
112 assertEquals(1, rect.bottom); in testNext()
123 assertEquals(10, rect.bottom); in testNext()
[all …]
DRectTest.java54 assertEquals(4, mRect.bottom); in testSet1()
65 assertEquals(4, mRect.bottom); in testSet2()
75 assertEquals(10, mRect.bottom); in testIntersects1()
82 assertEquals(10, mRect.bottom); in testIntersects1()
112 assertEquals(6, mRect.bottom); in testOffsetTo()
126 assertEquals(10, mRect.bottom); in testSetIntersect()
134 assertEquals(10, mRect.bottom); in testSetIntersect()
147 assertEquals(2, mRect.bottom); in testUnion1()
157 assertEquals(2, mRect.bottom); in testUnion1()
167 assertEquals(1, mRect.bottom); in testUnion1()
[all …]
DPaint_FontMetricsIntTest.java43 int bottom = 4; in testToString() local
50 fontMetricsInt.bottom = bottom; in testToString()
DEmbossMaskFilterTest.java68 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter() local
72 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); in testEmbossMaskFilter()
76 top.bottom = CENTER_Y - STROKE_WIDTH / 2; in testEmbossMaskFilter()
78 bottom.top = CENTER_Y + STROKE_WIDTH / 2; in testEmbossMaskFilter()
79 assertEquals(0, brightness(bitmap, bottom)); in testEmbossMaskFilter()
92 for (int y = rect.top; y < rect.bottom; y++) { in brightness()
DBlurMaskFilterTest.java71 int bottom = bitmap.getHeight() - 1; in verifyQuadrants() local
75 verifyColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in verifyQuadrants()
76 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/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java321 int bottom = 40; in testSetLayerInset() local
322 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
325 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
333 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
337 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
452 assertEquals(0, rc.bottom); in testAccessPadding()
460 assertEquals(padding0.bottom, rc.bottom); in testAccessPadding()
468 assertEquals(padding0.bottom + padding1.bottom, rc.bottom); in testAccessPadding()
537 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
551 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
[all …]
DInsetDrawableTest.java157 assertEquals(0, r.bottom); in testGetPadding_dimension()
164 assertEquals(4, r.bottom); in testGetPadding_dimension()
173 assertEquals(0, r.bottom); in testGetPadding_dimension()
180 assertEquals(0, r.bottom); in testGetPadding_dimension()
191 assertEquals(0, r.bottom); in testGetPadding_fraction()
198 assertEquals(4, r.bottom); in testGetPadding_fraction()
207 assertEquals(0, r.bottom); in testGetPadding_fraction()
214 assertEquals(0, r.bottom); in testGetPadding_fraction()
292 assertEquals(0, bounds.bottom); in testOnBoundsChange_dimension()
300 assertEquals(-5, bounds.bottom); in testOnBoundsChange_dimension()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSpinnerTest.java198 Rect rcChild0 = new Rect(0, 0, 20, rc.bottom); in testPointToPosition()
199 Rect rcChild1 = new Rect(rcChild0.right, 0, 70, rc.bottom); in testPointToPosition()
200 Rect rcChild2 = new Rect(rcChild1.right, 0, rc.right, rc.bottom); in testPointToPosition()
201 absSpinner.layout(rc.left, rc.top, rc.right, rc.bottom); in testPointToPosition()
203 rcChild0.right, rcChild0.bottom); in testPointToPosition()
205 rcChild1.right, rcChild1.bottom); in testPointToPosition()
207 rcChild2.right, rcChild2.bottom); in testPointToPosition()
210 assertEquals(0, absSpinner.pointToPosition(rcChild0.left + 1, rc.bottom - 1)); in testPointToPosition()
211 assertEquals(1, absSpinner.pointToPosition(rcChild1.left + 1, rc.bottom - 1)); in testPointToPosition()
212 assertEquals(2, absSpinner.pointToPosition(rcChild2.left + 1, rc.bottom - 1)); in testPointToPosition()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DDynamicDrawableSpanTest.java55 assertEquals(0, fm.bottom); in testGetSize()
63 assertEquals(-rect.bottom, fm.ascent); in testGetSize()
64 assertEquals(0, fm.bottom); in testGetSize()
67 assertEquals(-rect.bottom, fm.top); in testGetSize()
DDrawableMarginSpanTest.java78 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin()
94 assertEquals(mDrawable.getIntrinsicHeight(), mDrawable.getBounds().bottom); in testDrawLeadingMargin()
124 assertEquals(0, fm.bottom); in testChooseHeight()
134 assertTrue(fm.bottom > 0); in testChooseHeight()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java91 && midClip.bottom < redSquare.getBottom() && midClip.bottom > newClip.bottom; in isMiddleOfClipping()
/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/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); in assertLineBoundingBox()
80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); in assertLineBoundingBox()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java98 mDisplaySize.y - mSystemWindowInset.bottom); in getScreenRectWithoutSystemWindowInset()
126 mDisplaySize.y - mStableInset.bottom); in getScreenRectWithoutStableInset()
162 int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { in fromLayoutListenerCallback() argument
163 final Rect newLayout = new Rect(left, top, right, bottom); in fromLayoutListenerCallback()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayCutoutTests.java181 boundsWith(cutout, (r) -> r.bottom <= safeRect.top), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
185 boundsWith(cutout, (r) -> r.top >= safeRect.bottom), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
235 safeRect.bottom = getOnMainSync(() -> a.getDecorView().getHeight()) - safeRect.bottom; in getSafeRect()
245 && actual.right <= max.right && actual.bottom <= max.bottom; in insetsLessThanOrEqualTo()
264 return Arrays.asList(actual.left, actual.top, actual.right, actual.bottom);
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRectShapeTest.java100 assertEquals(0.0f, rect.bottom, 0.0f); in testRect()
107 assertEquals((float) TEST_HEIGHT, rect.bottom, 0.0f); in testRect()
131 assertEquals(100, rect.bottom); in testGetOutline()
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp137 float bottom = -1.0f; in setUp() local
142 mProjectionMatrix = Matrix::newFrustum(left, right, bottom, top, near, far); in setUp()

12345