Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 108) sorted by relevance

12345

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java63 assertEquals(21, mOutRect.right); in testApply()
68 assertEquals(26, mOutRect.right); in testApply()
73 assertEquals(21, mOutRect.right); in testApply()
78 assertEquals(21, mOutRect.right); in testApply()
84 assertEquals(21, mOutRect.right); in testApply()
89 assertEquals(26, mOutRect.right); in testApply()
94 assertEquals(21, mOutRect.right); in testApply()
99 assertEquals(21, mOutRect.right); in testApply()
105 assertEquals(12, mOutRect.right); in testApply()
110 assertEquals(17, mOutRect.right); in testApply()
[all …]
DSurfaceViewTest.java78 final int right = 320; in testSurfaceView() local
101 region.set(left, top, right, bottom); in testSurfaceView()
121 final int right = 320; in testOnSizeChanged() local
129 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged()
133 assertEquals(right - left, mMockSurfaceView.getWidth()); in testOnSizeChanged()
DView_LayoutPositionTest.java73 int right = left + vRect.width(); in testPositionInParent() local
78 assertEquals(right, view.getRight()); in testPositionInParent()
105 assertEquals(right + h_offset, nright); in testPositionInParent()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java55 assertEquals(5.0f, mRectF.right, 0.0f); in testSort()
61 assertEquals(10.0f, mRectF.right, 0.0f); in testSort()
71 assertEquals(3.0f, mRectF.right, 0.0f); in testSet1()
82 assertEquals(3.0f, mRectF.right, 0.0f); in testSet2()
93 assertEquals(3.0f, mRectF.right, 0.0f); in testSet3()
103 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersects1()
110 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersects1()
134 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect1()
141 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect1()
154 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect2()
[all …]
DRegionIteratorTest.java56 assertEquals(10, rect.right); in testNext()
62 assertEquals(1, rect.right); in testNext()
73 assertEquals(10, rect.right); in testNext()
78 assertEquals(15, rect.right); in testNext()
83 assertEquals(15, rect.right); in testNext()
89 assertEquals(1, rect.right); in testNext()
100 assertEquals(10, rect.right); in testNext()
105 assertEquals(5, rect.right); in testNext()
111 assertEquals(1, rect.right); in testNext()
122 assertEquals(10, rect.right); in testNext()
[all …]
DRectTest.java53 assertEquals(3, mRect.right); in testSet1()
64 assertEquals(3, mRect.right); in testSet2()
74 assertEquals(10, mRect.right); in testIntersects1()
81 assertEquals(10, mRect.right); in testIntersects1()
111 assertEquals(6, mRect.right); in testOffsetTo()
125 assertEquals(10, mRect.right); in testSetIntersect()
133 assertEquals(10, mRect.right); in testSetIntersect()
146 assertEquals(2, mRect.right); in testUnion1()
156 assertEquals(2, mRect.right); in testUnion1()
166 assertEquals(1, mRect.right); in testUnion1()
[all …]
DEmbossMaskFilterTest.java70 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter() local
73 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); in testEmbossMaskFilter()
80 left.right = START_X; in testEmbossMaskFilter()
82 right.left = END_X; in testEmbossMaskFilter()
83 assertEquals(0, brightness(bitmap, right)); in testEmbossMaskFilter()
93 for (int x = rect.left; x < rect.right; x++) { in brightness()
DBlurMaskFilterTest.java69 int right = bitmap.getWidth() - 1; in verifyQuadrants() local
73 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants()
75 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
93 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
95 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
96 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
98 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
105 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
107 2 * right, 2 * bottom, 0.0f, in getCameraCoordinates()
108 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
DBaseRenderer.java131 float right = ratio; in onSurfaceChanged() local
151 right = 1.0f; 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
212 right, top, 0.0f, in getCameraCoordinates()
214 right, bottom, 0.0f, in getCameraCoordinates()
215 right, top, 0.0f, in getCameraCoordinates()
221 bottom, right, 0.0f, in getCameraCoordinates()
[all …]
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py95 right = int((0.5+spb_r)*w)
96 center_y = numpy.mean(img_y[top:bottom, left:right])
97 center_r_g = numpy.mean(r_g[top:bottom, left:right])
98 center_b_g = numpy.mean(b_g[top:bottom, left:right])
100 cv2.rectangle(img_legend_ls, (left, top), (right, bottom), GREEN,
106 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
142 right = int((spb_ctx+spb_r)*w)
149 block_y = numpy.mean(img_y[top:bottom, left:right])
150 block_r_g = numpy.mean(r_g[top:bottom, left:right])
151 block_b_g = numpy.mean(b_g[top:bottom, left:right])
[all …]
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java56 long right = widthB * (long) heightB; in compareSizes() local
57 if (left == right) { in compareSizes()
59 right = widthB; in compareSizes()
61 return (left < right) ? -1 : (left > right ? 1 : 0); in compareSizes()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
DGLArrowSensorTestRenderer.java203 public static void crossProduct(float[] left, float[] right, float[] out) { in crossProduct() argument
204 out[0] = left[1] * right[2] - left[2] * right[1]; in crossProduct()
205 out[1] = left[2] * right[0] - left[0] * right[2]; in crossProduct()
206 out[2] = left[0] * right[1] - left[1] * right[0]; in crossProduct()
216 public static float dotProduct(float[] left, float[] right) { in dotProduct() argument
217 return left[0] * right[0] + left[1] * right[1] + left[2] * right[2]; in dotProduct()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java68 assertTrue(midClip.right < redSquare.getRight() && midClip.right > newClip.right); in testChangeClipBounds()
92 assertTrue(midClip.right < redSquare.getRight() && midClip.right > newClip.right); in testChangeClipBounds()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java320 int right = 30; in testSetLayerInset() local
322 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
323 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
331 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
337 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
451 assertEquals(0, rc.right); in testAccessPadding()
459 assertEquals(padding0.right, rc.right); in testAccessPadding()
467 assertEquals(padding0.right + padding1.right, rc.right); 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.java156 assertEquals(0, r.right); in testGetPadding_dimension()
163 assertEquals(3, r.right); in testGetPadding_dimension()
172 assertEquals(0, r.right); in testGetPadding_dimension()
179 assertEquals(0, r.right); in testGetPadding_dimension()
190 assertEquals(0, r.right); in testGetPadding_fraction()
197 assertEquals(3, r.right); in testGetPadding_fraction()
206 assertEquals(0, r.right); in testGetPadding_fraction()
213 assertEquals(0, r.right); in testGetPadding_fraction()
291 assertEquals(0, bounds.right); in testOnBoundsChange_dimension()
299 assertEquals(-5, bounds.right); in testOnBoundsChange_dimension()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java460 private static <T extends Comparable<? super T>> void verifyLessThan(T left, T right) { in verifyLessThan() argument
461 assertTrue("Expected (LR) left " + left + " to be less than right " + right, in verifyLessThan()
462 left.compareTo(right) < 0); in verifyLessThan()
463 assertTrue("Expected (RL) left " + left + " to be less than right " + right, in verifyLessThan()
464 right.compareTo(left) > 0); in verifyLessThan()
467 private static <T extends Comparable<? super T>> void verifyGreaterThan(T left, T right) { in verifyGreaterThan() argument
468 assertTrue("Expected (LR) left " + left + " to be greater than right " + right, in verifyGreaterThan()
469 left.compareTo(right) > 0); in verifyGreaterThan()
470 assertTrue("Expected (RL) left " + left + " to be greater than right " + right, in verifyGreaterThan()
471 right.compareTo(left) < 0); in verifyGreaterThan()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DAssertHelpers.java61 public static void assertArrayNotGreater(String message, float[] left, float[] right) { in assertArrayNotGreater() argument
62 assertEquals("Array lengths did not match", left.length, right.length); in assertArrayNotGreater()
65 String rightString = Arrays.toString(right); in assertArrayNotGreater()
71 message, left[i], right[i], i, leftString, rightString); in assertArrayNotGreater()
73 assertTrue(msg, left[i] <= right[i]); in assertArrayNotGreater()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSpinnerTest.java199 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()
214 absSpinner.pointToPosition(rc.right + 1, rc.bottom - 1)); in testPointToPosition()
/cts/common/host-side/tradefed/res/report/
Dcompatibility_result.css30 margin-right:auto;
39 margin-right:auto;
61 margin-right:auto;
82 margin-right:auto;
116 margin-right:auto;
146 margin-right:auto;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java153 + getPaddingRight() + mForegroundPadding.right; in onMeasure()
182 int prwf = getPaddingRight() + mForegroundPadding.right; 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()
247 final int parentRight = right - left - getPaddingRight() - mForegroundPadding.right; in layoutBoxChildren()
299 childLeft = right - left - width; in layoutBoxChildren()
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css30 margin-right:auto;
39 margin-right:auto;
61 margin-right:auto;
82 margin-right:auto;
127 margin-right:auto;
/cts/tests/tests/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); in assertLineBoundingBox()
82 Assert.assertEquals(LINE_END_POINT, bounds.right); in assertLineBoundingBox()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java88 private static void assertLessThan(long left, long right) { in assertLessThan() argument
89 if (left >= right) { in assertLessThan()
90 throw new AssertionFailedError("Expected " + left + " to be less than " + right); in assertLessThan()
94 private static void assertLessThanOrEqual(long left, long right) { in assertLessThanOrEqual() argument
95 if (left > right) { in assertLessThanOrEqual()
97 + right); in assertLessThanOrEqual()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRectShapeTest.java99 assertEquals(0.0f, rect.right, 0.0f); in testRect()
106 assertEquals((float) TEST_WIDTH, rect.right, 0.0f); in testRect()
130 assertEquals(100, rect.right); in testGetOutline()

12345