Home
last modified time | relevance | path

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

12345678910

/cts/tests/tests/text/src/android/text/cts/
DLayoutFillCharacterBoundsTest.java65 final int bottom = staticLayout.getLineBottom(0); in staticLayout_fillCharacterBounds_LTR() local
68 0.0f, top, 30.0f, bottom, in staticLayout_fillCharacterBounds_LTR()
69 30.0f, top, 60.0f, bottom, in staticLayout_fillCharacterBounds_LTR()
70 60.0f, top, 70.0f, bottom, in staticLayout_fillCharacterBounds_LTR()
71 70.0f, top, 80.0f, bottom}); in staticLayout_fillCharacterBounds_LTR()
99 final int bottom = staticLayout.getLineBottom(0); in staticLayout_fillCharacterBounds_RTL() local
102 190.0f, top, 200.0f, bottom, in staticLayout_fillCharacterBounds_RTL()
103 180.0f, top, 190.0f, bottom, in staticLayout_fillCharacterBounds_RTL()
104 150.0f, top, 180.0f, bottom, in staticLayout_fillCharacterBounds_RTL()
105 120.0f, top, 150.0f, bottom}); in staticLayout_fillCharacterBounds_RTL()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java68 assertEquals(23, mOutRect.bottom); in testApply()
73 assertEquals(28, mOutRect.bottom); in testApply()
78 assertEquals(23, mOutRect.bottom); in testApply()
83 assertEquals(23, mOutRect.bottom); in testApply()
89 assertEquals(40, mOutRect.bottom); in testApply()
94 assertEquals(35, mOutRect.bottom); in testApply()
99 assertEquals(40, mOutRect.bottom); in testApply()
104 assertEquals(40, mOutRect.bottom); in testApply()
110 assertEquals(35, mOutRect.bottom); in testApply()
115 assertEquals(40, mOutRect.bottom); in testApply()
[all …]
/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 …]
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 …]
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 …]
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()
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/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,
198 bottom = int((0.5+_BLOCK_R)*h)
201 center_luma = numpy.mean(img_y[top:bottom, left:right])
202 center_r_g = numpy.mean(img_r_g[top:bottom, left:right])
203 center_b_g = numpy.mean(img_b_g[top:bottom, left:right])
206 cv2.rectangle(img_lens_shading, (left, top), (right, bottom), _CV2_GREEN,
209 [left+text_offset, bottom-text_offset],
212 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN,
216 [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.java86 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin()
102 assertEquals(mDrawable.getIntrinsicHeight(), mDrawable.getBounds().bottom); in testDrawLeadingMargin()
132 assertEquals(0, fm.bottom); in testChooseHeight()
142 assertTrue(fm.bottom > 0); in testChooseHeight()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSpinnerTest.java208 Rect rcChild0 = new Rect(0, 0, 20, rc.bottom); in testPointToPosition()
209 Rect rcChild1 = new Rect(rcChild0.right, 0, 70, rc.bottom); in testPointToPosition()
210 Rect rcChild2 = new Rect(rcChild1.right, 0, rc.right, rc.bottom); in testPointToPosition()
211 absSpinner.layout(rc.left, rc.top, rc.right, rc.bottom); in testPointToPosition()
213 rcChild0.right, rcChild0.bottom); in testPointToPosition()
215 rcChild1.right, rcChild1.bottom); in testPointToPosition()
217 rcChild2.right, rcChild2.bottom); in testPointToPosition()
220 assertEquals(0, absSpinner.pointToPosition(rcChild0.left + 1, rc.bottom - 1)); in testPointToPosition()
221 assertEquals(1, absSpinner.pointToPosition(rcChild1.left + 1, rc.bottom - 1)); in testPointToPosition()
222 assertEquals(2, absSpinner.pointToPosition(rcChild2.left + 1, rc.bottom - 1)); in testPointToPosition()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java189 final int bottom = original.bottom - insets.bottom; in inset() local
190 return new Rect(left, top, right, bottom); in inset()
208 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument
211 mOnLayoutBoundsInScreen = new Rect(left, top, right, bottom); in onLayoutChange()
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/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/surfacecontrol/src/android/view/surfacecontrol/cts/
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()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeInsetsControllerTest.java152 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
158 lastInsets[0].getInsets(ime()).bottom + KEYBOARD_HEIGHT_INCREASE; in testChangeSizeWhileControlling()
165 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
182 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
216 .getInsetsIgnoringVisibility(navigationBars()).bottom;
/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()

12345678910