Home
last modified time | relevance | path

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

1234567

/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 …]
DViewGroup_ScrollCaptureTest.java385 MockView(Context context, int left, int top, int right, int bottom) { in MockView() argument
386 this(context, left, top, right, bottom, View.VISIBLE); in MockView()
389 MockView(Context context, int left, int top, int right, int bottom, int visibility) { in MockView() argument
392 setLeftTopRightBottom(left, top, right, bottom); in MockView()
471 MockViewGroup(Context context, int left, int top, int right, int bottom) { in MockViewGroup() argument
472 this(context, left, top, right, bottom, View.SCROLL_CAPTURE_HINT_AUTO); in MockViewGroup()
475 MockViewGroup(Context context, int left, int top, int right, int bottom, in MockViewGroup() argument
479 setLeftTopRightBottom(left, top, right, bottom); in MockViewGroup()
/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.java56 assertEquals(4, mRect.bottom); in testSet1()
67 assertEquals(4, mRect.bottom); in testSet2()
77 assertEquals(10, mRect.bottom); in testIntersects1()
84 assertEquals(10, mRect.bottom); in testIntersects1()
114 assertEquals(6, mRect.bottom); in testOffsetTo()
128 assertEquals(10, mRect.bottom); in testSetIntersect()
136 assertEquals(10, mRect.bottom); in testSetIntersect()
149 assertEquals(2, mRect.bottom); in testUnion1()
159 assertEquals(2, mRect.bottom); in testUnion1()
169 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 …]
DPaint_TextBoundsTest.java79 assertThat(r.bottom).isEqualTo(0); in testSingleChar_1em()
90 assertThat(r.bottom).isEqualTo(0); in testSingleChar_2em()
101 assertThat(r.bottom).isEqualTo(0); in testSingleChar_2em_with_lsb()
112 assertThat(r.bottom).isEqualTo(-100); in testSingleChar_1em_with_y1em_origin()
123 assertThat(r.bottom).isEqualTo(0); in testMultiChar_1em_1em()
134 assertThat(r.bottom).isEqualTo(0); in testMultiChar_1em_2em()
145 assertThat(r.bottom).isEqualTo(0); in testMultiChar_3em_2em_with_lsb()
156 assertThat(r.bottom).isEqualTo(0); in testMultiChar_1em_with_y1em()
171 assertThat(r.bottom).isEqualTo(0); in testMultiChar_1em_5times()
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()
/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/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py89 top, bottom, left, right = block['position']
91 'avg Y value: %.3f; valid range: %.3f ~ %.3f', top, bottom,
188 bottom = int((0.5+_BLOCK_R)*h)
191 center_luma = numpy.mean(img_y[top:bottom, left:right])
192 center_r_g = numpy.mean(img_r_g[top:bottom, left:right])
193 center_b_g = numpy.mean(img_b_g[top:bottom, left:right])
196 cv2.rectangle(img_lens_shading, (left, top), (right, bottom), _CV2_GREEN,
199 [left+text_offset, bottom-text_offset],
202 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN,
206 [left+text_offset, bottom-text_offset*2],
[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()
104 final int bottom = top + DRAWABLE_SIZE + padding; in testCenterAligned() local
106 final Bitmap bitmap = Bitmap.createBitmap(DRAWABLE_SIZE, bottom, Bitmap.Config.ARGB_8888); in testCenterAligned()
110 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/tests/framework/base/windowmanager/src/android/server/wm/
DWindowMetricsTestHelper.java161 final int bottom = original.bottom - insets.bottom; in inset() local
162 return new Rect(left, top, right, bottom); in inset()
172 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument
175 mOnLayoutBoundsInScreen = new Rect(left, top, right, bottom); in onLayoutChange()
DSurfaceViewTest.java81 final int bottom = 240; in testSurfaceView() local
103 region.set(left, top, right, bottom); in testSurfaceView()
124 final int bottom = 240; in testOnSizeChanged() local
131 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged()
136 assertEquals(bottom - top, mMockSurfaceView.getHeight()); in testOnSizeChanged()
DDisplayCutoutTests.java140 assertEquals(safeInsets.bottom, displayCutout.getSafeInsetBottom()); in testConstructor()
166 assertEquals(safeInsets.bottom, displayCutout.getSafeInsetBottom()); in testConstructor_waterfall()
202 expected = Insets.of(0, displaySafeInsets.top, 0, displaySafeInsets.bottom); in testDisplayCutout_shortEdges()
253 intersected.addRect(cutoutRect.left, cutoutRect.top, cutoutRect.right, cutoutRect.bottom, in assertCutoutPath()
370 boundsWith(cutout, (r) -> r.bottom <= safeRect.top), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
374 boundsWith(cutout, (r) -> r.top >= safeRect.bottom), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
437 waterfallSize = cutout.getWaterfallInsets().bottom; in hasBound()
466 safeRect.bottom = getOnMainSync(() -> a.getDecorView().getHeight()) - safeRect.bottom; in getSafeRect()
475 appBounds.bottom = a.getDecorView().getHeight(); in getAppBounds()
485 && actual.right <= max.right && actual.bottom <= max.bottom; in insetsLessThanOrEqualTo()
[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/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationUtils.java41 (int) (startValue.bottom + fraction * (endValue.bottom - startValue.bottom)));
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java92 && midClip.bottom < redSquare.getBottom() && midClip.bottom > newClip.bottom; in isMiddleOfClipping()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java286 int bottom = insets.bottom; in calculateBoundsWithInsets() local
301 bottom = Math.max(bottom, cutout.getSafeInsetBottom() + slack); in calculateBoundsWithInsets()
309 rect.bottom -= bottom; in calculateBoundsWithInsets()
/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()

1234567