/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutFillCharacterBoundsTest.java | 64 final int top = staticLayout.getLineTop(0); in staticLayout_fillCharacterBounds_LTR() local 68 0.0f, top, 30.0f, bottom, in staticLayout_fillCharacterBounds_LTR() 69 30.0f, top, 60.0f, bottom, in staticLayout_fillCharacterBounds_LTR() 70 60.0f, top, 70.0f, bottom, in staticLayout_fillCharacterBounds_LTR() 71 70.0f, top, 80.0f, bottom}); in staticLayout_fillCharacterBounds_LTR() 98 final int top = staticLayout.getLineTop(0); in staticLayout_fillCharacterBounds_RTL() local 102 190.0f, top, 200.0f, bottom, in staticLayout_fillCharacterBounds_RTL() 103 180.0f, top, 190.0f, bottom, in staticLayout_fillCharacterBounds_RTL() 104 150.0f, top, 180.0f, bottom, in staticLayout_fillCharacterBounds_RTL() 105 120.0f, top, 150.0f, bottom}); in staticLayout_fillCharacterBounds_RTL() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 67 assertEquals(20, mOutRect.top); in testApply() 72 assertEquals(25, mOutRect.top); in testApply() 77 assertEquals(20, mOutRect.top); in testApply() 82 assertEquals(20, mOutRect.top); in testApply() 88 assertEquals(37, mOutRect.top); in testApply() 93 assertEquals(32, mOutRect.top); in testApply() 98 assertEquals(37, mOutRect.top); in testApply() 103 assertEquals(37, mOutRect.top); in testApply() 109 assertEquals(25, mOutRect.top); in testApply() 114 assertEquals(30, mOutRect.top); in testApply() [all …]
|
D | ViewGroupTest.java | 237 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 241 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 1352 assertEquals(2, rect.top); in testOffsetDescendantRectToMyCoords() 1375 assertEquals(4, rect.top); in testOffsetRectIntoDescendantCoords() 1457 final int top = 2; in testOnLayout() local 1460 mMockViewGroup.layout(left, top, right, bottom); in testOnLayout() 1462 assertEquals(top, mMockViewGroup.top); in testOnLayout() 1698 public MockViewGroup top = new MockViewGroup(mContext); field in ViewGroupTest.TestClusterHier 1716 for (MockViewGroup mvg : new MockViewGroup[]{top, cluster1, cluster2, nestedGroup}) { in TestClusterHier() 1719 top.setIsRootNamespace(true); in TestClusterHier() [all …]
|
D | View_LayoutPositionTest.java | 84 int top = vLocation[1] - pLocation[1]; in testPositionInParent() local 86 int bottom = top + vRect.height(); in testPositionInParent() 89 assertEquals(top, view.getTop()); in testPositionInParent() 116 assertEquals(top + v_offset, ntop); in testPositionInParent()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RectFTest.java | 55 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 …]
|
D | RegionIteratorTest.java | 56 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 …]
|
D | RectTest.java | 54 assertEquals(2, mRect.top); in testSet1() 65 assertEquals(2, mRect.top); in testSet2() 75 assertEquals(0, mRect.top); in testIntersects1() 82 assertEquals(0, mRect.top); in testIntersects1() 112 assertEquals(1, mRect.top); in testOffsetTo() 126 assertEquals(5, mRect.top); in testSetIntersect() 134 assertEquals(5, mRect.top); in testSetIntersect() 146 assertEquals(0, mRect.top); in testUnion1() 156 assertEquals(1, mRect.top); in testUnion1() 166 assertEquals(0, mRect.top); in testUnion1() [all …]
|
D | Paint_TextBoundsTest.java | 77 assertThat(r.top).isEqualTo(-100); in testSingleChar_1em() 88 assertThat(r.top).isEqualTo(-200); in testSingleChar_2em() 99 assertThat(r.top).isEqualTo(-200); in testSingleChar_2em_with_lsb() 110 assertThat(r.top).isEqualTo(-200); in testSingleChar_1em_with_y1em_origin() 121 assertThat(r.top).isEqualTo(-100); in testMultiChar_1em_1em() 132 assertThat(r.top).isEqualTo(-200); in testMultiChar_1em_2em() 143 assertThat(r.top).isEqualTo(-300); in testMultiChar_3em_2em_with_lsb() 154 assertThat(r.top).isEqualTo(-200); in testMultiChar_1em_with_y1em() 169 assertThat(r.top).isEqualTo(-100); in testMultiChar_1em_5times()
|
D | EmbossMaskFilterTest.java | 68 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()
|
D | Paint_FontMetricsIntTest.java | 41 int top = 1; in testToString() local 48 fontMetricsInt.top = top; in testToString()
|
/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() 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()
|
D | BaseRenderer.java | 133 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/ |
D | test_lens_shading_and_color_uniformity.py | 89 top, bottom, left, right = block['position'] 91 'avg Y value: %.3f; valid range: %.3f ~ %.3f', top, bottom, 197 top = int((0.5-_BLOCK_R)*h) 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, 212 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN, 234 top = int((block_center_y-_BLOCK_R)*h) 240 block_y = numpy.mean(img_y[top:bottom, left:right]) [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | DialogFrameTests.java | 131 parentFrame.top in testExplicitSizeDefaultGravity() 135 parentFrame.top in testExplicitSizeDefaultGravity() 150 parentFrame.top, in testExplicitSizeTopLeftGravity() 152 parentFrame.top + explicitDimension); in testExplicitSizeTopLeftGravity() 166 parentFrame.top + parentFrame.height() - explicitDimension, in testExplicitSizeBottomRightGravity() 168 parentFrame.top + parentFrame.height()); in testExplicitSizeBottomRightGravity() 203 parentFrame.top, in testOversizedDimensionsNoLimits() 205 parentFrame.top + oversizedDimension); in testOversizedDimensionsNoLimits() 263 (int) (verticalMargin * frame.height() + frame.top), in testMarginsArePercentagesOfContentFrame() 266 (int) (verticalMargin * frame.height() + frame.top) in testMarginsArePercentagesOfContentFrame() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DynamicDrawableSpanTest.java | 68 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()
|
D | LineBackgroundSpan_StandardTest.java | 70 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()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LayerDrawableTest.java | 320 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 …]
|
D | InsetDrawableTest.java | 154 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/apps/CtsVerifier/assets/report/ |
D | compatibility_result.css | 51 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/tests/mediapc/requirements/ |
D | requirements.go | 34 top := Top{ReqList: reqList} 39 err = tmpl.Execute(w, top)
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 187 final int top = original.top + insets.top; in inset() local 190 return new Rect(left, top, right, bottom); in inset() 208 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument 211 mOnLayoutBoundsInScreen = new Rect(left, top, right, bottom); in onLayoutChange()
|
D | WindowInsetsAnimationUtils.java | 39 (int) (startValue.top + fraction * (endValue.top - startValue.top)),
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 90 && midClip.top > 0 && midClip.top < newClip.top in isMiddleOfClipping()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 154 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/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceViewTest.java | 77 final int top = 30; in testSurfaceView() local 101 region.set(left, top, right, bottom); in testSurfaceView() 120 final int top = 30; in testOnSizeChanged() local 129 mMockSurfaceView.layout(left, top, right, bottom); in testOnSizeChanged() 134 assertEquals(bottom - top, mMockSurfaceView.getHeight()); in testOnSizeChanged()
|