Home
last modified time | relevance | path

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

123456

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java64 assertEquals(21, mOutRect.right); in testApply()
69 assertEquals(26, mOutRect.right); in testApply()
74 assertEquals(21, mOutRect.right); in testApply()
79 assertEquals(21, mOutRect.right); in testApply()
85 assertEquals(21, mOutRect.right); in testApply()
90 assertEquals(26, mOutRect.right); in testApply()
95 assertEquals(21, mOutRect.right); in testApply()
100 assertEquals(21, mOutRect.right); in testApply()
106 assertEquals(12, mOutRect.right); in testApply()
111 assertEquals(17, mOutRect.right); in testApply()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java56 assertEquals(5.0f, mRectF.right, 0.0f); in testSort()
62 assertEquals(10.0f, mRectF.right, 0.0f); in testSort()
72 assertEquals(3.0f, mRectF.right, 0.0f); in testSet1()
83 assertEquals(3.0f, mRectF.right, 0.0f); in testSet2()
94 assertEquals(3.0f, mRectF.right, 0.0f); in testSet3()
104 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersects1()
111 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersects1()
135 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect1()
142 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect1()
155 assertEquals(10.0f, mRectF.right, 0.0f); in testIntersect2()
[all …]
DRectTest.java54 assertEquals(3, mRect.right); in testSet1()
65 assertEquals(3, mRect.right); in testSet2()
75 assertEquals(10, mRect.right); in testIntersects1()
82 assertEquals(10, mRect.right); in testIntersects1()
112 assertEquals(6, mRect.right); in testOffsetTo()
126 assertEquals(10, mRect.right); in testSetIntersect()
134 assertEquals(10, mRect.right); in testSetIntersect()
147 assertEquals(2, mRect.right); in testUnion1()
157 assertEquals(2, mRect.right); in testUnion1()
167 assertEquals(1, mRect.right); in testUnion1()
[all …]
DRegionIteratorTest.java57 assertEquals(10, rect.right); in testNext()
63 assertEquals(1, rect.right); in testNext()
74 assertEquals(10, rect.right); in testNext()
79 assertEquals(15, rect.right); in testNext()
84 assertEquals(15, rect.right); in testNext()
90 assertEquals(1, rect.right); in testNext()
101 assertEquals(10, rect.right); in testNext()
106 assertEquals(5, rect.right); in testNext()
112 assertEquals(1, rect.right); in testNext()
123 assertEquals(10, rect.right); in testNext()
[all …]
DEmbossMaskFilterTest.java71 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT); in testEmbossMaskFilter() local
74 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); in testEmbossMaskFilter()
81 left.right = START_X; in testEmbossMaskFilter()
83 right.left = END_X; in testEmbossMaskFilter()
84 assertEquals(0, brightness(bitmap, right)); in testEmbossMaskFilter()
94 for (int x = rect.left; x < rect.right; x++) { in brightness()
DBlurMaskFilterTest.java71 int right = bitmap.getWidth() - 1; in verifyQuadrants() local
75 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants()
77 verifyColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in verifyQuadrants()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py97 right = int((0.5+spb_r)*w)
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,
108 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
144 right = int((spb_ctx+spb_r)*w)
151 block_y = numpy.mean(img_y[top:bottom, left:right])
152 block_r_g = numpy.mean(r_g[top:bottom, left:right])
153 block_b_g = numpy.mean(b_g[top:bottom, left:right])
[all …]
/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/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/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java321 int right = 30; in testSetLayerInset() local
323 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
324 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
332 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
338 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
452 assertEquals(0, rc.right); in testAccessPadding()
460 assertEquals(padding0.right, rc.right); in testAccessPadding()
468 assertEquals(padding0.right + padding1.right, rc.right); 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.java155 assertEquals(0, r.right); in testGetPadding_dimension()
162 assertEquals(3, r.right); in testGetPadding_dimension()
171 assertEquals(0, r.right); in testGetPadding_dimension()
178 assertEquals(0, r.right); in testGetPadding_dimension()
189 assertEquals(0, r.right); in testGetPadding_fraction()
196 assertEquals(3, r.right); in testGetPadding_fraction()
205 assertEquals(0, r.right); in testGetPadding_fraction()
212 assertEquals(0, r.right); in testGetPadding_fraction()
290 assertEquals(0, bounds.right); in testOnBoundsChange_dimension()
298 assertEquals(-5, bounds.right); in testOnBoundsChange_dimension()
[all …]
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java87 long right = widthB * (long) heightB; in compareSizes() local
88 if (left == right) { in compareSizes()
90 right = widthB; in compareSizes()
92 return (left < right) ? -1 : (left > right ? 1 : 0); in compareSizes()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java461 private static <T extends Comparable<? super T>> void verifyLessThan(T left, T right) { in verifyLessThan() argument
462 assertTrue("Expected (LR) left " + left + " to be less than right " + right, in verifyLessThan()
463 left.compareTo(right) < 0); in verifyLessThan()
464 assertTrue("Expected (RL) left " + left + " to be less than right " + right, in verifyLessThan()
465 right.compareTo(left) > 0); in verifyLessThan()
468 private static <T extends Comparable<? super T>> void verifyGreaterThan(T left, T right) { in verifyGreaterThan() argument
469 assertTrue("Expected (LR) left " + left + " to be greater than right " + right, in verifyGreaterThan()
470 left.compareTo(right) > 0); in verifyGreaterThan()
471 assertTrue("Expected (RL) left " + left + " to be greater than right " + right, in verifyGreaterThan()
472 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.java200 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()
215 absSpinner.pointToPosition(rc.right + 1, rc.bottom - 1)); in testPointToPosition()
/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/tests/framework/base/windowmanager/src/android/server/wm/
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()
DDisplayCutoutTests.java103 assertEquals(safeInsets.right, displayCutout.getSafeInsetRight()); in testConstructor()
204 assertCutoutIsConsistentWithInset("right", safeInsets.right, cutout.getBoundingRectRight()); in assertCutoutsAreConsistentWithInsets()
230 boundsWith(cutout, (r) -> r.right <= safeRect.left), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
234 boundsWith(cutout, (r) -> r.left >= safeRect.right), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge()
309 safeRect.right = getOnMainSync(() -> a.getDecorView().getWidth()) - safeRect.right; 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/apps/CtsVerifier/assets/report/
Dcompatibility_result.css28 margin-right: auto;
38 margin-right: auto;
58 margin-right: auto;
80 margin-right: auto;
119 margin-right: auto;
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java250 int right = insets.right; in getOperationArea() local
263 right = Math.max(right, cutout.getSafeInsetRight() + slack); in getOperationArea()
274 rect.right -= right; in getOperationArea()
/cts/tests/tests/text/src/android/text/style/cts/
DLineBackgroundSpan_StandardTest.java69 final int right = 200; 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()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java91 && midClip.right < redSquare.getRight() && midClip.right > newClip.right in isMiddleOfClipping()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java98 mDisplaySize.x - mSystemWindowInset.right, in getScreenRectWithoutSystemWindowInset()
126 mDisplaySize.x - mStableInset.right, in getScreenRectWithoutStableInset()
162 static ImeLayoutInfo fromLayoutListenerCallback(View v, int left, int top, int right, in fromLayoutListenerCallback() argument
164 final Rect newLayout = new Rect(left, top, right, bottom); in fromLayoutListenerCallback()
/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java428 private void checkSocketPair(GenericSocket left, GenericSocket right) throws Exception { in checkSocketPair() argument
430 assertArrayEquals(TEST_DATA, right.receive()); in checkSocketPair()
432 right.send(TEST_DATA); in checkSocketPair()
436 right.close(); in checkSocketPair()
440 GenericUdpSocket left, GenericUdpSocket right, InetAddress localAddr) throws Exception { in checkUnconnectedUdpSocketPair() argument
441 left.sendTo(TEST_DATA, localAddr, right.getPort()); in checkUnconnectedUdpSocketPair()
442 assertArrayEquals(TEST_DATA, right.receive()); in checkUnconnectedUdpSocketPair()
444 right.sendTo(TEST_DATA, localAddr, left.getPort()); in checkUnconnectedUdpSocketPair()
448 right.close(); in checkUnconnectedUdpSocketPair()

123456