/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 63 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 …]
|
D | SurfaceViewTest.java | 78 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()
|
D | View_LayoutPositionTest.java | 73 int right = left + vRect.width(); in testPositionInParent() local 78 assertEquals(right, view.getRight()); in testPositionInParent() 105 assertEquals(right + h_offset, nright); in testPositionInParent()
|
/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 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()
|
D | BaseRenderer.java | 131 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/tests/tests/graphics/src/android/graphics/cts/ |
D | RectFTest.java | 55 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 …]
|
D | RegionIteratorTest.java | 56 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 …]
|
D | RectTest.java | 53 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 …]
|
D | EmbossMaskFilterTest.java | 70 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()
|
D | BlurMaskFilterTest.java | 70 int right = bitmap.getWidth() - 1; in verifyQuadrants() local 74 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants() 76 verifyColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in verifyQuadrants()
|
/cts/apps/CameraITS/tests/scene5/ |
D | test_lens_shading_and_color_uniformity.py | 97 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/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 75 long right = widthB * (long) heightB; in compareSizes() local 76 if (left == right) { in compareSizes() 78 right = widthB; in compareSizes() 80 return (left < right) ? -1 : (left > right ? 1 : 0); in compareSizes()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
D | GLArrowSensorTestRenderer.java | 203 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/ |
D | LayerDrawableTest.java | 320 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 …]
|
D | InsetDrawableTest.java | 156 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/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | AssertHelpers.java | 61 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/util/src/android/util/cts/ |
D | RationalTest.java | 460 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/tests/widget/src/android/widget/cts/ |
D | AbsSpinnerTest.java | 199 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/apps/CtsVerifier/assets/report/ |
D | compatibility_result.css | 28 margin-right: auto; 38 margin-right: auto; 58 margin-right: auto; 80 margin-right: auto; 119 margin-right: auto;
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 90 && midClip.right < redSquare.getRight() && midClip.right > newClip.right in isMiddleOfClipping()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 153 + 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/tests/gesture/src/android/gesture/cts/ |
D | LineGestureStrokeHelper.java | 68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); in assertLineBoundingBox() 82 Assert.assertEquals(LINE_END_POINT, bounds.right); in assertLineBoundingBox()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeLayoutInfo.java | 97 mDisplaySize.x - mSystemWindowInset.right, in getScreenRectWithoutSystemWindowInset() 125 mDisplaySize.x - mStableInset.right, in getScreenRectWithoutStableInset() 161 static ImeLayoutInfo fromLayoutListenerCallback(View v, int left, int top, int right, in fromLayoutListenerCallback() argument 163 final Rect newLayout = new Rect(left, top, right, bottom); in fromLayoutListenerCallback()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DisplayCutoutTests.java | 179 boundsWith(cutout, (r) -> r.right <= safeRect.left), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge() 183 boundsWith(cutout, (r) -> r.left >= safeRect.right), hasSize(lessThanOrEqualTo(1))); in assertAtMostOneCutoutPerEdge() 236 safeRect.right = getOnMainSync(() -> a.getDecorView().getWidth()) - safeRect.right; in getSafeRect() 245 && actual.right <= max.right && actual.bottom <= max.bottom; in insetsLessThanOrEqualTo() 264 return Arrays.asList(actual.left, actual.top, actual.right, actual.bottom);
|
/cts/tests/tests/net/src/android/net/cts/ |
D | IpSecBaseTest.java | 401 private void checkSocketPair(GenericSocket left, GenericSocket right) throws Exception { in checkSocketPair() argument 403 assertArrayEquals(TEST_DATA, right.receive()); in checkSocketPair() 405 right.send(TEST_DATA); in checkSocketPair() 409 right.close(); in checkSocketPair() 413 GenericUdpSocket left, GenericUdpSocket right, InetAddress localAddr) throws Exception { in checkUnconnectedUdpSocketPair() argument 414 left.sendTo(TEST_DATA, localAddr, right.getPort()); in checkUnconnectedUdpSocketPair() 415 assertArrayEquals(TEST_DATA, right.receive()); in checkUnconnectedUdpSocketPair() 417 right.sendTo(TEST_DATA, localAddr, left.getPort()); in checkUnconnectedUdpSocketPair() 421 right.close(); in checkUnconnectedUdpSocketPair()
|