/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 66 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 …]
|
D | View_LayoutPositionTest.java | 75 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/ |
D | RectFTest.java | 57 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 …]
|
D | RectTest.java | 55 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 …]
|
D | RegionIteratorTest.java | 58 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 …]
|
D | EmbossMaskFilterTest.java | 69 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()
|
D | Paint_FontMetricsIntTest.java | 44 int bottom = 4; in testToString() local 51 fontMetricsInt.bottom = bottom; in testToString()
|
D | BlurMaskFilterTest.java | 72 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/ |
D | test_lens_shading_and_color_uniformity.py | 95 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/ |
D | RobustnessRenderer.java | 86 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()
|
D | BaseRenderer.java | 132 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/ |
D | LayerDrawableTest.java | 322 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 …]
|
D | InsetDrawableTest.java | 156 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/ |
D | DynamicDrawableSpanTest.java | 65 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()
|
D | LineBackgroundSpan_StandardTest.java | 72 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()
|
D | DrawableMarginSpanTest.java | 79 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/ |
D | AbsSpinnerTest.java | 199 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/ |
D | BoxInsetLayout.java | 155 + 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/src/android/server/wm/ |
D | SurfaceViewTest.java | 79 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()
|
D | DisplayCutoutTests.java | 104 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/ |
D | ChangeClipBoundsTest.java | 92 && midClip.bottom < redSquare.getBottom() && midClip.bottom > newClip.bottom; in isMiddleOfClipping()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsActivity.java | 256 int bottom = insets.bottom; in getOperationArea() local 271 bottom = Math.max(bottom, cutout.getSafeInsetBottom() + slack); in getOperationArea() 280 rect.bottom -= bottom; in getOperationArea()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeLayoutInfo.java | 99 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/gesture/src/android/gesture/cts/ |
D | LineGestureStrokeHelper.java | 66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); in assertLineBoundingBox() 80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); in assertLineBoundingBox()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | RectShapeTest.java | 101 assertEquals(0.0f, rect.bottom, 0.0f); in testRect() 108 assertEquals((float) TEST_HEIGHT, rect.bottom, 0.0f); in testRect() 132 assertEquals(100, rect.bottom); in testGetOutline()
|