/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 64 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/ |
D | RectFTest.java | 56 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 …]
|
D | RectTest.java | 55 assertEquals(3, mRect.right); in testSet1() 66 assertEquals(3, mRect.right); in testSet2() 76 assertEquals(10, mRect.right); in testIntersects1() 83 assertEquals(10, mRect.right); in testIntersects1() 113 assertEquals(6, mRect.right); in testOffsetTo() 127 assertEquals(10, mRect.right); in testSetIntersect() 135 assertEquals(10, mRect.right); in testSetIntersect() 148 assertEquals(2, mRect.right); in testUnion1() 158 assertEquals(2, mRect.right); in testUnion1() 168 assertEquals(1, mRect.right); in testUnion1() [all …]
|
D | RegionIteratorTest.java | 57 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 …]
|
D | Paint_TextBoundsTest.java | 78 assertThat(r.right).isEqualTo(100); in testSingleChar_1em() 89 assertThat(r.right).isEqualTo(200); in testSingleChar_2em() 100 assertThat(r.right).isEqualTo(300); in testSingleChar_2em_with_lsb() 111 assertThat(r.right).isEqualTo(100); in testSingleChar_1em_with_y1em_origin() 122 assertThat(r.right).isEqualTo(200); in testMultiChar_1em_1em() 133 assertThat(r.right).isEqualTo(300); in testMultiChar_1em_2em() 144 assertThat(r.right).isEqualTo(600); in testMultiChar_3em_2em_with_lsb() 155 assertThat(r.right).isEqualTo(200); in testMultiChar_1em_with_y1em() 170 assertThat(r.right).isEqualTo(500); in testMultiChar_1em_5times()
|
D | EmbossMaskFilterTest.java | 71 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()
|
/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/apps/CameraITS/tests/scene5/ |
D | test_lens_shading_and_color_uniformity.py | 89 top, bottom, left, right = block['position'] 92 left, right, block['val'], block['thresh_l'], ls_thresh_h) 190 right = int((0.5+_BLOCK_R)*w) 191 center_luma = numpy.mean(img_y[top:bottom, left:right]) 192 center_r_g = numpy.mean(img_r_g[top:bottom, left:right]) 193 center_b_g = numpy.mean(img_b_g[top:bottom, left:right]) 196 cv2.rectangle(img_lens_shading, (left, top), (right, bottom), _CV2_GREEN, 202 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN, 227 right = int((block_center_x+_BLOCK_R)*w) 230 block_y = numpy.mean(img_y[top:bottom, left:right]) [all …]
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | HotplugTestActivity.java | 82 private boolean modesAreEqual(Display.Mode[] left, Display.Mode[] right) { in modesAreEqual() argument 83 if (left.length != right.length) { in modesAreEqual() 88 if (!modesAreEqual(left[i], right[i])) { in modesAreEqual() 96 private boolean modesAreEqual(Display.Mode left, Display.Mode right) { in modesAreEqual() argument 98 return left.getPhysicalHeight() == right.getPhysicalHeight() in modesAreEqual() 99 && left.getPhysicalWidth() == right.getPhysicalWidth() in modesAreEqual() 100 && Math.abs(left.getRefreshRate() - right.getRefreshRate()) in modesAreEqual() 103 left.getAlternativeRefreshRates(), right.getAlternativeRefreshRates()); in modesAreEqual()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LayerDrawableTest.java | 321 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 …]
|
D | InsetDrawableTest.java | 155 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/tests/graphics/src/android/graphics/fonts/ |
D | NativeSystemFontHelper.java | 69 public boolean localeEquals(Locale left, Locale right) { in localeEquals() argument 71 ULocale ulocRight = ULocale.addLikelySubtags(ULocale.forLocale(right)); in localeEquals() 75 public boolean localeListEquals(LocaleList left, LocaleList right) { in localeListEquals() argument 76 if (left == right) { in localeListEquals() 79 if (left == null || right == null) { in localeListEquals() 83 if (left.size() != right.size()) { in localeListEquals() 87 if (!localeEquals(left.get(i), right.get(i))) { in localeListEquals()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | RationalTest.java | 461 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/framework/base/windowmanager/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 160 final int right = original.right - insets.right; in inset() local 162 return new Rect(left, top, right, bottom); in inset() 172 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument 175 mOnLayoutBoundsInScreen = new Rect(left, top, right, bottom); in onLayoutChange()
|
D | SurfaceViewTest.java | 80 final int right = 320; in testSurfaceView() local 103 region.set(left, top, right, bottom); in testSurfaceView() 123 final int right = 320; in testOnSizeChanged() local 131 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged() 135 assertEquals(right - left, mMockSurfaceView.getWidth()); in testOnSizeChanged()
|
/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/widget/src/android/widget/cts/ |
D | AbsSpinnerTest.java | 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() 215 absSpinner.pointToPosition(rc.right + 1, rc.bottom - 1)); in testPointToPosition()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ExtensionUtils.java | 58 public static void assertEqualsState(TestDeviceState left, TestDeviceState right) { in assertEqualsState() argument 59 if (left instanceof TestSidecarDeviceState && right instanceof TestSidecarDeviceState) { in assertEqualsState() 60 assertThat(left.getPosture()).isEqualTo(right.getPosture()); in assertEqualsState() 62 assertThat(left).isEqualTo(right); in assertEqualsState()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | LineBackgroundSpan_StandardTest.java | 69 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/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/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/ |
D | DisplayCutoutTestActivity.java | 105 lp.rightMargin = safeInsets.right + mButtonSize; in updateButtons() 112 lp.rightMargin = safeInsets.right; in updateButtons() 120 lp.rightMargin = safeInsets.right + mButtonSize; in updateButtons() 128 lp.rightMargin = safeInsets.right + mButtonSize * 2; in updateButtons() 134 lp.rightMargin = safeInsets.right + mButtonSize * 2; in updateButtons()
|
/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/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationUtils.java | 40 (int) (startValue.right + fraction * (endValue.right - startValue.right)),
|