Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 183) sorted by relevance

12345678

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java65 assertEquals(20, mOutRect.top); in testApply()
70 assertEquals(25, mOutRect.top); in testApply()
75 assertEquals(20, mOutRect.top); in testApply()
80 assertEquals(20, mOutRect.top); in testApply()
86 assertEquals(37, mOutRect.top); in testApply()
91 assertEquals(32, mOutRect.top); in testApply()
96 assertEquals(37, mOutRect.top); in testApply()
101 assertEquals(37, mOutRect.top); in testApply()
107 assertEquals(25, mOutRect.top); in testApply()
112 assertEquals(30, mOutRect.top); in testApply()
[all …]
DViewGroupTest.java229 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters()
233 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters()
1340 assertEquals(2, rect.top); in testOffsetDescendantRectToMyCoords()
1363 assertEquals(4, rect.top); in testOffsetRectIntoDescendantCoords()
1445 final int top = 2; in testOnLayout() local
1448 mMockViewGroup.layout(left, top, right, bottom); in testOnLayout()
1450 assertEquals(top, mMockViewGroup.top); in testOnLayout()
1686 public MockViewGroup top = new MockViewGroup(mContext); field in ViewGroupTest.TestClusterHier
1702 for (MockViewGroup mvg : new MockViewGroup[]{top, cluster1, cluster2, nestedGroup}) { in TestClusterHier()
1705 top.setIsRootNamespace(true); in TestClusterHier()
[all …]
DView_LayoutPositionTest.java73 int top = vLocation[1] - pLocation[1]; in testPositionInParent() local
75 int bottom = top + vRect.height(); in testPositionInParent()
78 assertEquals(top, view.getTop()); in testPositionInParent()
105 assertEquals(top + v_offset, ntop); in testPositionInParent()
DPixelCopyViewProducerActivity.java89 mContentBounds.set(offset.x - mOutsets.left, offset.y - mOutsets.top, in onDraw()
91 offset.y - mOutsets.top + mContent.getHeight()); in onDraw()
141 inOut.top = (int) (inOut.top * sy); in normalizedToSurface()
144 inOut.offset(mContentBounds.left, mContentBounds.top); in normalizedToSurface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRectFTest.java55 assertEquals(10.0f, mRectF.top, 0.0f); in testSort()
61 assertEquals(5.0f, mRectF.top, 0.0f); in testSort()
71 assertEquals(2.0f, mRectF.top, 0.0f); in testSet1()
82 assertEquals(2.0f, mRectF.top, 0.0f); in testSet2()
93 assertEquals(2.0f, mRectF.top, 0.0f); in testSet3()
103 assertEquals(0.0f, mRectF.top, 0.0f); in testIntersects1()
110 assertEquals(0.0f, mRectF.top, 0.0f); in testIntersects1()
134 assertEquals(5.0f, mRectF.top, 0.0f); in testIntersect1()
141 assertEquals(0.0f, mRectF.top, 0.0f); in testIntersect1()
154 assertEquals(5.0f, mRectF.top, 0.0f); in testIntersect2()
[all …]
DRectTest.java53 assertEquals(2, mRect.top); in testSet1()
64 assertEquals(2, mRect.top); in testSet2()
74 assertEquals(0, mRect.top); in testIntersects1()
81 assertEquals(0, mRect.top); in testIntersects1()
111 assertEquals(1, mRect.top); in testOffsetTo()
125 assertEquals(5, mRect.top); in testSetIntersect()
133 assertEquals(5, mRect.top); in testSetIntersect()
145 assertEquals(0, mRect.top); in testUnion1()
155 assertEquals(1, mRect.top); in testUnion1()
165 assertEquals(0, mRect.top); in testUnion1()
[all …]
DRegionIteratorTest.java56 assertEquals(1, rect.top); in testNext()
62 assertEquals(1, rect.top); in testNext()
73 assertEquals(1, rect.top); in testNext()
78 assertEquals(5, rect.top); in testNext()
83 assertEquals(10, rect.top); in testNext()
89 assertEquals(1, rect.top); in testNext()
100 assertEquals(1, rect.top); in testNext()
105 assertEquals(5, rect.top); in testNext()
111 assertEquals(1, rect.top); in testNext()
122 assertEquals(5, rect.top); in testNext()
[all …]
DEmbossMaskFilterTest.java68 Rect top = new Rect(0, 0, BITMAP_WIDTH, CENTER_Y); in testEmbossMaskFilter() local
73 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); in testEmbossMaskFilter()
77 top.bottom = CENTER_Y - STROKE_WIDTH / 2; in testEmbossMaskFilter()
78 assertEquals(0, brightness(bitmap, top)); in testEmbossMaskFilter()
79 bottom.top = CENTER_Y + STROKE_WIDTH / 2; in testEmbossMaskFilter()
93 for (int y = rect.top; y < rect.bottom; y++) { in brightness()
DPaint_FontMetricsIntTest.java41 int top = 1; in testToString() local
48 fontMetricsInt.top = top; in testToString()
/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()
96 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
98 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
99 2 * left, 2 * top, 0.0f, in getCameraCoordinates()
103 2 * left, 2 * top, 0.0f, in getCameraCoordinates()
105 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
108 2 * right, 2 * top, 0.0f, in getCameraCoordinates()
DBaseRenderer.java133 float top = 1.0f; in onSurfaceChanged() local
149 top = ratio; 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()
212 right, top, 0.0f, in getCameraCoordinates()
215 right, top, 0.0f, in getCameraCoordinates()
223 top, right, 0.0f, in getCameraCoordinates()
[all …]
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py94 top = int((0.5-spb_r)*h)
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,
108 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
141 top = int((spb_cty-spb_r)*h)
151 block_y = numpy.mean(img_y[top:bottom, left:right])
152 block_r_g = numpy.mean(r_g[top:bottom, left:right])
153 block_b_g = numpy.mean(b_g[top:bottom, left:right])
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDialogFrameTests.java117 parentFrame.top + (parentFrame.height() - explicitDimension) / 2, in testExplicitSizeDefaultGravity()
119 parentFrame.top + (parentFrame.height() + explicitDimension) / 2); in testExplicitSizeDefaultGravity()
130 parentFrame.top, in testExplicitSizeTopLeftGravity()
132 parentFrame.top + explicitDimension); in testExplicitSizeTopLeftGravity()
143 parentFrame.top + parentFrame.height() - explicitDimension, in testExplicitSizeBottomRightGravity()
145 parentFrame.top + parentFrame.height()); in testExplicitSizeBottomRightGravity()
173 Rect expectedFrame = new Rect(parentFrame.left, parentFrame.top, in testOversizedDimensionsNoLimits()
175 parentFrame.top + oversizedDimension); in testOversizedDimensionsNoLimits()
227 (int) (verticalMargin * frame.height() + frame.top), in testMarginsArePercentagesOfContentFrame()
229 (int) (verticalMargin * frame.height() + frame.top) + explicitDimension); in testMarginsArePercentagesOfContentFrame()
[all …]
DWindowMetricsTests.java117 final int top = original.top + insets.top; in inset() local
120 return new Rect(left, top, right, bottom); in inset()
142 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument
DSurfaceViewTest.java79 final int top = 30; in testSurfaceView() local
103 region.set(left, top, right, bottom); in testSurfaceView()
122 final int top = 30; in testOnSizeChanged() local
131 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged()
136 assertEquals(bottom - top, mMockSurfaceView.getHeight()); in testOnSizeChanged()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java320 int top = 20; in testSetLayerInset() local
323 layerDrawable.setLayerInset(0, left, top, right, bottom); in testSetLayerInset()
326 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
334 assertEquals(layerDrawable.getDrawable(0).getIntrinsicHeight() + top + bottom, in testSetLayerInset()
338 layerDrawable.setLayerInset(-1, left, top, right, bottom); in testSetLayerInset()
451 assertEquals(0, rc.top); in testAccessPadding()
459 assertEquals(padding0.top, rc.top); in testAccessPadding()
467 assertEquals(padding0.top + padding1.top, rc.top); 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.java154 assertEquals(0, r.top); in testGetPadding_dimension()
161 assertEquals(2, r.top); in testGetPadding_dimension()
170 assertEquals(0, r.top); in testGetPadding_dimension()
177 assertEquals(0, r.top); in testGetPadding_dimension()
188 assertEquals(0, r.top); in testGetPadding_fraction()
195 assertEquals(2, r.top); in testGetPadding_fraction()
204 assertEquals(0, r.top); in testGetPadding_fraction()
211 assertEquals(0, r.top); in testGetPadding_fraction()
289 assertEquals(0, bounds.top); in testOnBoundsChange_dimension()
297 assertEquals(5, bounds.top); in testOnBoundsChange_dimension()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DDynamicDrawableSpanTest.java68 assertEquals(0, fm.top); in testGetSize()
77 assertEquals(-rect.bottom, fm.top); in testGetSize()
103 final int top = 10; in testCenterAligned() local
104 final int bottom = top + DRAWABLE_SIZE + padding; in testCenterAligned()
110 top, 0 /* y */, bottom, null /* paint */); in testCenterAligned()
113 for (int i = 0; i < top + padding / 2; i++) { in testCenterAligned()
118 assertThat(bitmap.getColor(0, top + i + padding / 2).toArgb()).isNotEqualTo(Color.RED); in testCenterAligned()
122 assertThat(bitmap.getColor(0, top + i + DRAWABLE_SIZE + padding / 2).toArgb()) in testCenterAligned()
DLineBackgroundSpan_StandardTest.java70 final int top = 20; 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()
DDrawableMarginSpanTest.java78 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
94 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
128 assertEquals(0, fm.top); in testChooseHeight()
138 assertEquals(0, fm.top); in testChooseHeight()
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css51 vertical-align: top;
81 vertical-align: top;
96 vertical-align: top;
110 vertical-align: top;
126 vertical-align: top;
134 vertical-align: top;
143 vertical-align: top;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java154 maxHeight += getPaddingTop() + mForegroundPadding.top in onMeasure()
183 int ptwf = getPaddingTop() + mForegroundPadding.top; 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()
249 final int parentTop = getPaddingTop() + mForegroundPadding.top; in layoutBoxChildren()
250 final int parentBottom = bottom - top - getPaddingBottom() - mForegroundPadding.bottom; in layoutBoxChildren()
344 childTop = bottom - top - height; in layoutBoxChildren()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationUtils.java39 (int) (startValue.top + fraction * (endValue.top - startValue.top)),
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java249 int top = insets.top; in getOperationArea() local
260 top = Math.max(top, cutout.getSafeInsetTop() + slack); in getOperationArea()
273 rect.top += top; in getOperationArea()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java90 && midClip.top > 0 && midClip.top < newClip.top in isMiddleOfClipping()

12345678