/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 63 assertEquals(19, mOutRect.left); in testApply() 68 assertEquals(24, mOutRect.left); in testApply() 73 assertEquals(19, mOutRect.left); in testApply() 78 assertEquals(19, mOutRect.left); in testApply() 84 assertEquals(19, mOutRect.left); in testApply() 89 assertEquals(24, mOutRect.left); in testApply() 94 assertEquals(19, mOutRect.left); in testApply() 99 assertEquals(19, mOutRect.left); in testApply() 105 assertEquals(10, mOutRect.left); in testApply() 110 assertEquals(15, mOutRect.left); in testApply() [all …]
|
D | View_LayoutPositionTest.java | 72 int left = vLocation[0] - pLocation[0]; in testPositionInParent() local 74 int right = left + vRect.width(); in testPositionInParent() 77 assertEquals(left, view.getLeft()); in testPositionInParent() 104 assertEquals(left + h_offset , nleft); in testPositionInParent()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RectFTest.java | 54 assertEquals(10.0f, mRectF.left, 0.0f); in testSort() 60 assertEquals(5.0f, mRectF.left, 0.0f); in testSort() 70 assertEquals(1.0f, mRectF.left, 0.0f); in testSet1() 81 assertEquals(1.0f, mRectF.left, 0.0f); in testSet2() 92 assertEquals(1.0f, mRectF.left, 0.0f); in testSet3() 102 assertEquals(0.0f, mRectF.left, 0.0f); in testIntersects1() 109 assertEquals(0.0f, mRectF.left, 0.0f); in testIntersects1() 133 assertEquals(5.0f, mRectF.left, 0.0f); in testIntersect1() 140 assertEquals(0.0f, mRectF.left, 0.0f); in testIntersect1() 153 assertEquals(5.0f, mRectF.left, 0.0f); in testIntersect2() [all …]
|
D | RegionIteratorTest.java | 55 assertEquals(1, rect.left); in testNext() 61 assertEquals(1, rect.left); in testNext() 72 assertEquals(1, rect.left); in testNext() 77 assertEquals(1, rect.left); in testNext() 82 assertEquals(5, rect.left); in testNext() 88 assertEquals(1, rect.left); in testNext() 99 assertEquals(1, rect.left); in testNext() 104 assertEquals(1, rect.left); in testNext() 110 assertEquals(1, rect.left); in testNext() 121 assertEquals(5, rect.left); in testNext() [all …]
|
D | RectTest.java | 53 assertEquals(1, mRect.left); in testSet1() 64 assertEquals(1, mRect.left); in testSet2() 74 assertEquals(0, mRect.left); in testIntersects1() 81 assertEquals(0, mRect.left); in testIntersects1() 111 assertEquals(1, mRect.left); in testOffsetTo() 125 assertEquals(5, mRect.left); in testSetIntersect() 133 assertEquals(5, mRect.left); in testSetIntersect() 147 assertEquals(0, mRect.left); in testUnion1() 157 assertEquals(1, mRect.left); in testUnion1() 167 assertEquals(0, mRect.left); in testUnion1() [all …]
|
D | Paint_TextBoundsTest.java | 76 assertThat(r.left).isEqualTo(0); in testSingleChar_1em() 87 assertThat(r.left).isEqualTo(0); in testSingleChar_2em() 98 assertThat(r.left).isEqualTo(100); in testSingleChar_2em_with_lsb() 109 assertThat(r.left).isEqualTo(0); in testSingleChar_1em_with_y1em_origin() 120 assertThat(r.left).isEqualTo(0); in testMultiChar_1em_1em() 131 assertThat(r.left).isEqualTo(0); in testMultiChar_1em_2em() 142 assertThat(r.left).isEqualTo(0); in testMultiChar_3em_2em_with_lsb() 153 assertThat(r.left).isEqualTo(0); in testMultiChar_1em_with_y1em() 168 assertThat(r.left).isEqualTo(0); in testMultiChar_1em_5times()
|
D | EmbossMaskFilterTest.java | 70 Rect left = new Rect(0, 0, CENTER_X, BITMAP_HEIGHT); in testEmbossMaskFilter() local 74 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); in testEmbossMaskFilter() 81 left.right = START_X; in testEmbossMaskFilter() 82 assertEquals(0, brightness(bitmap, left)); in testEmbossMaskFilter() 83 right.left = END_X; 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 89 2 * left, 2 * top, 0.0f, in getCameraCoordinates() 90 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates() 92 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates() 99 2 * left, 2 * top, 0.0f, in getCameraCoordinates() 103 2 * left, 2 * top, 0.0f, in getCameraCoordinates() 104 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates() 106 2 * left, 2 * bottom, 0.0f, in getCameraCoordinates()
|
D | BaseRenderer.java | 130 float left = -ratio; in onSurfaceChanged() local 150 left = -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 210 left, top, 0.0f, in getCameraCoordinates() 211 left, bottom, 0.0f, in getCameraCoordinates() 213 left, bottom, 0.0f, in getCameraCoordinates() 222 bottom, left, 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) 199 left = int((0.5-_BLOCK_R)*w) 201 center_luma = numpy.mean(img_y[top:bottom, left:right]) 202 center_r_g = numpy.mean(img_r_g[top:bottom, left:right]) 203 center_b_g = numpy.mean(img_b_g[top:bottom, left:right]) 206 cv2.rectangle(img_lens_shading, (left, top), (right, bottom), _CV2_GREEN, 209 [left+text_offset, bottom-text_offset], 212 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN, 216 [left+text_offset, bottom-text_offset*2], [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 117 parentFrame.left + (parentFrame.width() - explicitDimension) / 2, in testExplicitSizeDefaultGravity() 119 parentFrame.left + (parentFrame.width() + explicitDimension) / 2, in testExplicitSizeDefaultGravity() 130 parentFrame.left, in testExplicitSizeTopLeftGravity() 132 parentFrame.left + explicitDimension, in testExplicitSizeTopLeftGravity() 143 parentFrame.left + parentFrame.width() - explicitDimension, in testExplicitSizeBottomRightGravity() 145 parentFrame.left + parentFrame.width(), in testExplicitSizeBottomRightGravity() 174 Rect expectedFrame = new Rect(parentFrame.left, parentFrame.top, in testOversizedDimensionsNoLimits() 175 parentFrame.left + oversizedDimension, in testOversizedDimensionsNoLimits() 227 (int) (horizontalMargin * frame.width() + frame.left), in testMarginsArePercentagesOfContentFrame() 229 (int) (horizontalMargin * frame.width() + frame.left) + explicitDimension, in testMarginsArePercentagesOfContentFrame() [all …]
|
D | WindowMetricsTestHelper.java | 174 final int left = original.left + insets.left; in inset() local 178 return new Rect(left, top, right, bottom); in inset() 188 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument 191 mOnLayoutBoundsInScreen = new Rect(left, top, right, bottom); in onLayoutChange()
|
D | SurfaceViewTest.java | 79 final int left = 40; in testSurfaceView() local 104 region.set(left, top, right, bottom); in testSurfaceView() 122 final int left = 40; in testOnSizeChanged() local 132 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged() 136 assertEquals(right - left, mMockSurfaceView.getWidth()); in testOnSizeChanged()
|
/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() 87 for (int i = 0; i < left.length; i++) { 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/apps/CtsVerifier/assets/report/ |
D | compatibility_result.css | 27 margin-left: auto; 37 margin-left: auto; 57 margin-left: auto; 79 margin-left: auto; 95 text-align: left; 114 text-align: left; 118 margin-left: auto; 133 text-align: left; 142 text-align: left;
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | NativeSystemFontHelper.java | 69 public boolean localeEquals(Locale left, Locale right) { in localeEquals() argument 70 ULocale ulocLeft = ULocale.addLikelySubtags(ULocale.forLocale(left)); 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() 86 for (int i = 0; i < left.size(); ++i) { in localeListEquals() 87 if (!localeEquals(left.get(i), right.get(i))) { in localeListEquals()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LayerDrawableTest.java | 319 int left = 10; 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() 450 assertEquals(0, rc.left); in testAccessPadding() 458 assertEquals(padding0.left, rc.left); in testAccessPadding() 466 assertEquals(padding0.left + padding1.left, rc.left); 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 | 153 assertEquals(0, r.left); in testGetPadding_dimension() 160 assertEquals(1, r.left); in testGetPadding_dimension() 169 assertEquals(0, r.left); in testGetPadding_dimension() 176 assertEquals(0, r.left); in testGetPadding_dimension() 187 assertEquals(0, r.left); in testGetPadding_fraction() 194 assertEquals(1, r.left); in testGetPadding_fraction() 203 assertEquals(0, r.left); in testGetPadding_fraction() 210 assertEquals(0, r.left); in testGetPadding_fraction() 288 assertEquals(0, bounds.left); in testOnBoundsChange_dimension() 296 assertEquals(5, bounds.left); 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() 64 String leftString = Arrays.toString(left); in assertArrayNotGreater() 67 for (int i = 0; i < left.length; ++i) { 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 | 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/tests/permission3/UsePermissionAppWithOverlay/src/android/permission3/cts/usepermission/ |
D | OverlayActivity.kt | 26 val left = intent.getIntExtra(OVERLAY_LEFT, params.x) in onCreate() constant 30 params.x = left in onCreate() 32 params.width = right - left in onCreate()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | LineBackgroundSpan_StandardTest.java | 68 final int left = 10; 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/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationUtils.java | 38 (int) (startValue.left + fraction * (endValue.left - startValue.left)),
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 89 return midClip.left > 0 && midClip.left < newClip.left in isMiddleOfClipping()
|