Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 103) sorted by relevance

12345

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java52 assertEquals(19, mOutRect.left); in testApply()
57 assertEquals(24, mOutRect.left); in testApply()
62 assertEquals(19, mOutRect.left); in testApply()
67 assertEquals(19, mOutRect.left); in testApply()
73 assertEquals(19, mOutRect.left); in testApply()
78 assertEquals(24, mOutRect.left); in testApply()
83 assertEquals(19, mOutRect.left); in testApply()
88 assertEquals(19, mOutRect.left); in testApply()
94 assertEquals(10, mOutRect.left); in testApply()
99 assertEquals(15, mOutRect.left); in testApply()
[all …]
DSurfaceViewTest.java66 final int left = 40; in testSurfaceView() local
91 region.set(left, top, right, bottom); in testSurfaceView()
108 final int left = 40; in testOnSizeChanged() local
118 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged()
122 assertEquals(right - left, mMockSurfaceView.getWidth()); in testOnSizeChanged()
DView_LayoutPositionTest.java66 int left = vLocation[0] - pLocation[0]; in testPositionInParent() local
68 int right = left + vRect.width(); in testPositionInParent()
71 assertEquals(left, view.getLeft()); in testPositionInParent()
98 assertEquals(left + h_offset , nleft); in testPositionInParent()
DActionModeCallback2Test.java42 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithView()
53 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithoutView()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java60 assertEquals(10.0f, mRectF.left); in testSort()
66 assertEquals(5.0f, mRectF.left); in testSort()
77 assertEquals(1.0f, mRectF.left); in testSet1()
89 assertEquals(1.0f, mRectF.left); in testSet2()
101 assertEquals(1.0f, mRectF.left); in testSet3()
112 assertEquals(0.0f, mRectF.left); in testIntersects1()
119 assertEquals(0.0f, mRectF.left); in testIntersects1()
145 assertEquals(5.0f, mRectF.left); in testIntersect1()
152 assertEquals(0.0f, mRectF.left); in testIntersect1()
166 assertEquals(5.0f, mRectF.left); in testIntersect2()
[all …]
DRegionIteratorTest.java42 assertEquals(1, rect.left); in testNext()
48 assertEquals(1, rect.left); in testNext()
59 assertEquals(1, rect.left); in testNext()
64 assertEquals(1, rect.left); in testNext()
69 assertEquals(5, rect.left); in testNext()
75 assertEquals(1, rect.left); in testNext()
86 assertEquals(1, rect.left); in testNext()
91 assertEquals(1, rect.left); in testNext()
97 assertEquals(1, rect.left); in testNext()
108 assertEquals(5, rect.left); in testNext()
[all …]
DRectTest.java53 assertEquals(1, mRect.left); in testSet1()
65 assertEquals(1, mRect.left); in testSet2()
75 assertEquals(0, mRect.left); in testIntersects1()
82 assertEquals(0, mRect.left); in testIntersects1()
113 assertEquals(1, mRect.left); in testOffsetTo()
128 assertEquals(5, mRect.left); in testSetIntersect()
136 assertEquals(5, mRect.left); in testSetIntersect()
151 assertEquals(0, mRect.left); in testUnion1()
161 assertEquals(1, mRect.left); in testUnion1()
171 assertEquals(0, mRect.left); in testUnion1()
[all …]
DEmbossMaskFilterTest.java61 Rect left = new Rect(0, 0, CENTER_X, BITMAP_HEIGHT); in testEmbossMaskFilter() local
65 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); in testEmbossMaskFilter()
72 left.right = START_X; in testEmbossMaskFilter()
73 assertEquals(0, brightness(bitmap, left)); in testEmbossMaskFilter()
74 right.left = END_X; in testEmbossMaskFilter()
85 for (int x = rect.left; x < rect.right; x++) { in brightness()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py93 left = int((0.5-spb_r)*w)
95 center_y = numpy.mean(img_y[top:bottom, left:right])
96 center_r_g = numpy.mean(r_g[top:bottom, left:right])
97 center_b_g = numpy.mean(b_g[top:bottom, left:right])
99 cv2.rectangle(img_legend_ls, (left, top), (right, bottom), GREEN,
102 [left+text_offset, bottom-text_offset],
105 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
110 [left+text_offset, bottom-text_offset*2],
140 left = int((spb_ctx-spb_r)*w)
148 block_y = numpy.mean(img_y[top:bottom, left:right])
[all …]
/cts/tests/camera/src/android/hardware/cts/helpers/
DCameraUtils.java55 long left = widthA * (long) heightA; in compareSizes() local
57 if (left == right) { in compareSizes()
58 left = widthA; in compareSizes()
61 return (left < right) ? -1 : (left > right ? 1 : 0); in compareSizes()
/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/tools/tradefed-host/res/report/
Dcts_result.css29 margin-left:auto;
38 margin-left:auto;
60 margin-left:auto;
81 margin-left:auto;
101 text-align: left;
121 text-align: left;
126 margin-left:auto;
140 text-align: left;
150 text-align: left;
161 text-align: left;
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java59 assertTrue(midClip.left > 0 && midClip.left < newClip.left); in testChangeClipBounds()
92 assertTrue(midClip.left > 0 && midClip.left < newClip.left); in testChangeClipBounds()
/cts/common/host-side/tradefed/res/report/
Dcompatibility_result.css29 margin-left:auto;
38 margin-left:auto;
60 margin-left:auto;
81 margin-left:auto;
101 text-align: left;
121 text-align: left;
126 margin-left:auto;
140 text-align: left;
150 text-align: left;
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java272 int left = 10; in testSetLayerInset() local
276 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
277 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
285 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, in testSetLayerInset()
291 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
452 assertEquals(0, rc.left); in testAccessPadding()
460 assertEquals(padding0.left, rc.left); in testAccessPadding()
468 assertEquals(padding0.left + padding1.left, rc.left); in testAccessPadding()
537 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
550 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
[all …]
DShapeDrawableTest.java138 assertEquals(0, padding.left); in testAccessPadding()
145 assertEquals(10, padding.left); in testAccessPadding()
152 assertEquals(0, padding.left); in testAccessPadding()
159 assertEquals(5, padding.left); in testAccessPadding()
166 assertEquals(0, padding.left); in testAccessPadding()
230 assertEquals(1, padding.left); in testInflate()
/cts/tests/camera/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()
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/
DRationalTest.java420 private static <T extends Comparable<? super T>> void assertLessThan(T left, T right) { in assertLessThan() argument
421 assertTrue("Expected (LR) left " + left + " to be less than right " + right, in assertLessThan()
422 left.compareTo(right) < 0); in assertLessThan()
423 assertTrue("Expected (RL) left " + left + " to be less than right " + right, in assertLessThan()
424 right.compareTo(left) > 0); in assertLessThan()
427 private static <T extends Comparable<? super T>> void assertGreaterThan(T left, T right) { in assertGreaterThan() argument
428 assertTrue("Expected (LR) left " + left + " to be greater than right " + right, in assertGreaterThan()
429 left.compareTo(right) > 0); in assertGreaterThan()
430 assertTrue("Expected (RL) left " + left + " to be greater than right " + right, in assertGreaterThan()
431 right.compareTo(left) < 0); in assertGreaterThan()
[all …]
DRangeTest.java163 Range<T> left, Range<T> right) { in assertHashCodeEquals() argument
164 assertEquals("Left hash code for " + left + in assertHashCodeEquals()
166 left.hashCode(), right.hashCode()); in assertHashCodeEquals()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java152 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/
DAbsSpinnerTest.java193 absSpinner.layout(rc.left, rc.top, rc.right, rc.bottom); in testPointToPosition()
194 absSpinner.getChildAt(0).layout(rcChild0.left, rcChild0.top, in testPointToPosition()
196 absSpinner.getChildAt(1).layout(rcChild1.left, rcChild1.top, in testPointToPosition()
198 absSpinner.getChildAt(2).layout(rcChild2.left, rcChild2.top, in testPointToPosition()
202 assertEquals(0, absSpinner.pointToPosition(rcChild0.left + 1, rc.bottom - 1)); in testPointToPosition()
203 assertEquals(1, absSpinner.pointToPosition(rcChild1.left + 1, rc.bottom - 1)); in testPointToPosition()
204 assertEquals(2, absSpinner.pointToPosition(rcChild2.left + 1, rc.bottom - 1)); in testPointToPosition()
/cts/tests/tests/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java67 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox()
81 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java158 assertEquals(start.left, result.left, .001f); in testRectEvaluator()
164 assertEquals(50, result.left, .001f); in testRectEvaluator()
170 assertEquals(end.left, result.left, .001f); in testRectEvaluator()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRectShapeTest.java87 assertEquals(0.0f, rect.left); in testRect()
94 assertEquals(0.0f, rect.left); in testRect()
118 assertEquals(0, rect.left); in testGetOutline()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java89 private static void assertLessThan(long left, long right) { in assertLessThan() argument
90 if (left >= right) { in assertLessThan()
91 throw new AssertionFailedError("Expected " + left + " to be less than " + right); in assertLessThan()
95 private static void assertLessThanOrEqual(long left, long right) { in assertLessThanOrEqual() argument
96 if (left > right) { in assertLessThanOrEqual()
97 … throw new AssertionFailedError("Expected " + left + " to be less than or equal to " + right); in assertLessThanOrEqual()

12345