/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 65 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 …]
|
D | ViewGroupTest.java | 229 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 233 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 1343 assertEquals(2, rect.top); in testOffsetDescendantRectToMyCoords() 1366 assertEquals(4, rect.top); in testOffsetRectIntoDescendantCoords() 1448 final int top = 2; in testOnLayout() local 1451 mMockViewGroup.layout(left, top, right, bottom); in testOnLayout() 1453 assertEquals(top, mMockViewGroup.top); in testOnLayout() 1689 public MockViewGroup top = new MockViewGroup(mContext); field in ViewGroupTest.TestClusterHier 1705 for (MockViewGroup mvg : new MockViewGroup[]{top, cluster1, cluster2, nestedGroup}) { in TestClusterHier() 1708 top.setIsRootNamespace(true); in TestClusterHier() [all …]
|
D | View_LayoutPositionTest.java | 73 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()
|
D | PixelCopyViewProducerActivity.java | 91 mContentBounds.set(offset.x - mOutsets.left, offset.y - mOutsets.top, in onDraw() 93 offset.y - mOutsets.top + mContent.getHeight()); in onDraw() 144 inOut.top = (int) (inOut.top * sy); in normalizedToSurface() 147 inOut.offset(mContentBounds.left, mContentBounds.top); in normalizedToSurface()
|
/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, 187 top = int((0.5-_BLOCK_R)*h) 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, 202 cv2.rectangle(img_uniformity, (left, top), (right, bottom), _CV2_GREEN, 224 top = int((block_center_y-_BLOCK_R)*h) 230 block_y = numpy.mean(img_y[top:bottom, left:right]) [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 118 parentFrame.top + (parentFrame.height() - explicitDimension) / 2, in testExplicitSizeDefaultGravity() 120 parentFrame.top + (parentFrame.height() + explicitDimension) / 2); in testExplicitSizeDefaultGravity() 131 parentFrame.top, in testExplicitSizeTopLeftGravity() 133 parentFrame.top + explicitDimension); in testExplicitSizeTopLeftGravity() 144 parentFrame.top + parentFrame.height() - explicitDimension, in testExplicitSizeBottomRightGravity() 146 parentFrame.top + parentFrame.height()); in testExplicitSizeBottomRightGravity() 174 Rect expectedFrame = new Rect(parentFrame.left, parentFrame.top, in testOversizedDimensionsNoLimits() 176 parentFrame.top + oversizedDimension); in testOversizedDimensionsNoLimits() 228 (int) (verticalMargin * frame.height() + frame.top), in testMarginsArePercentagesOfContentFrame() 230 (int) (verticalMargin * frame.height() + frame.top) + explicitDimension); in testMarginsArePercentagesOfContentFrame() [all …]
|
D | WindowMetricsTestHelper.java | 159 final int top = original.top + insets.top; 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()
|
D | SurfaceViewTest.java | 79 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/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/tests/tests/permission3/UsePermissionAppWithOverlay/src/android/permission3/cts/usepermission/ |
D | OverlayActivity.kt | 26 val top = intent.getIntExtra(DIALOG_TOP, params.y) in onCreate() constant 28 val bottom = intent.getIntExtra(MESSAGE_BOTTOM, top + 1) in onCreate() 30 params.y = top in onCreate() 32 params.height = bottom - top in onCreate()
|
/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/framework/base/windowmanager/util/src/android/server/wm/ |
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()
|