/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 | PixelCopyViewProducerActivity.java | 89 mContentBounds.set(offset.x - mOutsets.left, offset.y - mOutsets.top, in onDraw() 90 offset.x - mOutsets.left + mContent.getWidth(), in onDraw() 140 inOut.left = (int) (inOut.left * sx); in normalizedToSurface() 144 inOut.offset(mContentBounds.left, mContentBounds.top); in normalizedToSurface()
|
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 | RectTest.java | 52 assertEquals(1, mRect.left); in testSet1() 63 assertEquals(1, mRect.left); in testSet2() 73 assertEquals(0, mRect.left); in testIntersects1() 80 assertEquals(0, mRect.left); in testIntersects1() 110 assertEquals(1, mRect.left); in testOffsetTo() 124 assertEquals(5, mRect.left); in testSetIntersect() 132 assertEquals(5, mRect.left); in testSetIntersect() 146 assertEquals(0, mRect.left); in testUnion1() 156 assertEquals(1, mRect.left); in testUnion1() 166 assertEquals(0, mRect.left); in testUnion1() [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 | 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/CameraITS/tests/scene5/ |
D | test_lens_shading_and_color_uniformity.py | 96 left = 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, 105 [left+text_offset, bottom-text_offset], 108 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN, 113 [left+text_offset, bottom-text_offset*2], 143 left = int((spb_ctx-spb_r)*w) 151 block_y = numpy.mean(img_y[top:bottom, left:right]) [all …]
|
/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/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/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/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/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 128 contentFrame.left + (contentFrame.width() - explicitDimension) / 2, in testExplicitSizeDefaultGravity() 130 contentFrame.left + (contentFrame.width() + explicitDimension) / 2, in testExplicitSizeDefaultGravity() 141 contentFrame.left, in testExplicitSizeTopLeftGravity() 143 contentFrame.left + explicitDimension, in testExplicitSizeTopLeftGravity() 154 contentFrame.left + contentFrame.width() - explicitDimension, in testExplicitSizeBottomRightGravity() 156 contentFrame.left + contentFrame.width(), in testExplicitSizeBottomRightGravity() 185 Rect expectedFrame = new Rect(contentFrame.left, contentFrame.top, in testOversizedDimensionsNoLimits() 186 contentFrame.left + oversizedDimension, in testOversizedDimensionsNoLimits() 238 (int) (horizontalMargin * frame.width() + frame.left), in testMarginsArePercentagesOfContentFrame() 240 (int) (horizontalMargin * frame.width() + frame.left) + explicitDimension, in testMarginsArePercentagesOfContentFrame()
|
D | SurfaceViewTest.java | 76 final int left = 40; in testSurfaceView() local 101 region.set(left, top, right, bottom); in testSurfaceView() 119 final int left = 40; in testOnSizeChanged() local 129 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged() 133 assertEquals(right - left, mMockSurfaceView.getWidth()); in testOnSizeChanged()
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 86 long left = widthA * (long) heightA; in compareSizes() local 88 if (left == right) { in compareSizes() 89 left = widthA; in compareSizes() 92 return (left < right) ? -1 : (left > right ? 1 : 0); in compareSizes()
|
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 152 maxWidth += getPaddingLeft() + mForegroundPadding.left in onMeasure() 181 int plwf = getPaddingLeft() + mForegroundPadding.left; 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() 246 final int parentLeft = getPaddingLeft() + mForegroundPadding.left; in layoutBoxChildren() 247 final int parentRight = right - left - getPaddingRight() - mForegroundPadding.right; in layoutBoxChildren() 299 childLeft = right - left - width; in layoutBoxChildren()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsSpinnerTest.java | 202 absSpinner.layout(rc.left, rc.top, rc.right, rc.bottom); in testPointToPosition() 203 absSpinner.getChildAt(0).layout(rcChild0.left, rcChild0.top, in testPointToPosition() 205 absSpinner.getChildAt(1).layout(rcChild1.left, rcChild1.top, in testPointToPosition() 207 absSpinner.getChildAt(2).layout(rcChild2.left, rcChild2.top, in testPointToPosition() 211 assertEquals(0, absSpinner.pointToPosition(rcChild0.left + 1, rc.bottom - 1)); in testPointToPosition() 212 assertEquals(1, absSpinner.pointToPosition(rcChild1.left + 1, rc.bottom - 1)); in testPointToPosition() 213 assertEquals(2, absSpinner.pointToPosition(rcChild2.left + 1, rc.bottom - 1)); in testPointToPosition()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsActivity.java | 248 int left = insets.left; in getOperationArea() local 257 left = Math.max(left, cutout.getSafeInsetLeft() + slack); in getOperationArea() 272 rect.left += left; in getOperationArea()
|
/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/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 89 return midClip.left > 0 && midClip.left < newClip.left in isMiddleOfClipping()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeLayoutInfo.java | 97 return new Rect(mSystemWindowInset.left, mSystemWindowInset.top, in getScreenRectWithoutSystemWindowInset() 125 return new Rect(mStableInset.left, mStableInset.top, 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()
|