Home
last modified time | relevance | path

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

123456789

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java63 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 …]
DView_LayoutPositionTest.java72 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()
DPixelCopyViewProducerActivity.java91 mContentBounds.set(offset.x - mOutsets.left, offset.y - mOutsets.top, in onDraw()
92 offset.x - mOutsets.left + mContent.getWidth(), in onDraw()
143 inOut.left = (int) (inOut.left * sx); in normalizedToSurface()
147 inOut.offset(mContentBounds.left, mContentBounds.top); in normalizedToSurface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java54 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 …]
DRectTest.java53 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 …]
DRegionIteratorTest.java55 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 …]
DPaint_TextBoundsTest.java76 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()
DEmbossMaskFilterTest.java70 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/
DRobustnessRenderer.java86 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()
DBaseRenderer.java130 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/
Dtest_lens_shading_and_color_uniformity.py89 top, bottom, left, right = block['position']
92 left, right, block['val'], block['thresh_l'], ls_thresh_h)
189 left = 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,
199 [left+text_offset, bottom-text_offset],
202 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN,
206 [left+text_offset, bottom-text_offset*2],
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDialogFrameTests.java116 parentFrame.left + (parentFrame.width() - explicitDimension) / 2, in testExplicitSizeDefaultGravity()
118 parentFrame.left + (parentFrame.width() + explicitDimension) / 2, in testExplicitSizeDefaultGravity()
129 parentFrame.left, in testExplicitSizeTopLeftGravity()
131 parentFrame.left + explicitDimension, in testExplicitSizeTopLeftGravity()
142 parentFrame.left + parentFrame.width() - explicitDimension, in testExplicitSizeBottomRightGravity()
144 parentFrame.left + parentFrame.width(), in testExplicitSizeBottomRightGravity()
173 Rect expectedFrame = new Rect(parentFrame.left, parentFrame.top, in testOversizedDimensionsNoLimits()
174 parentFrame.left + oversizedDimension, in testOversizedDimensionsNoLimits()
226 (int) (horizontalMargin * frame.width() + frame.left), in testMarginsArePercentagesOfContentFrame()
228 (int) (horizontalMargin * frame.width() + frame.left) + explicitDimension, in testMarginsArePercentagesOfContentFrame()
[all …]
DWindowMetricsTestHelper.java158 final int left = original.left + insets.left; 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()
/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/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java82 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/
Dcompatibility_result.css27 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/
DNativeSystemFontHelper.java69 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/
DLayerDrawableTest.java319 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 …]
DInsetDrawableTest.java153 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/
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.java461 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/
DOverlayActivity.kt25 val left = intent.getIntExtra(DIALOG_LEFT, params.x) in onCreate() constant
29 params.x = left in onCreate()
31 params.width = right - left in onCreate()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DExtensionUtils.java58 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/
DLineBackgroundSpan_StandardTest.java68 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/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()

123456789