/cts/tools/dasm/src/dasm/ |
D | parser.java | 813 int top) in do_action() argument 817 return action_obj.CUP$do_action(act_num, parser, stack, top); in do_action() 897 int CUP$top) in CUP$do_action() argument 918 …*i*/(int_token)CUP$stack.elementAt(CUP$top-3)).int_val, (/*off*/(relative_number_token)CUP$stack.e… in CUP$do_action() 926 …Data((/*i*/(int_token)CUP$stack.elementAt(CUP$top-3)).int_val, (/*w*/(str_token)CUP$stack.elementA… in CUP$do_action() 950 dAsm.newSparseSwitch((/*r*/(str_token)CUP$stack.elementAt(CUP$top-1)).str_val); in CUP$do_action() 974 …sm.addPackedSwitchData((/*target*/(relative_number_token)CUP$stack.elementAt(CUP$top-1)).int_val); in CUP$do_action() 982 … dAsm.addPackedSwitchData((/*target*/(str_token)CUP$stack.elementAt(CUP$top-1)).str_val); in CUP$do_action() 1006 …itch((/*r*/(str_token)CUP$stack.elementAt(CUP$top-2)).str_val, (/*k*/(int_token)CUP$stack.elementA… in CUP$do_action() 1030 … dAsm.addFillArrayData(new Integer((/*data*/(int_token)CUP$stack.elementAt(CUP$top-1)).int_val)); in CUP$do_action() [all …]
|
/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 | 228 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 232 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters() 1339 assertEquals(2, rect.top); in testOffsetDescendantRectToMyCoords() 1362 assertEquals(4, rect.top); in testOffsetRectIntoDescendantCoords() 1444 final int top = 2; in testOnLayout() local 1447 mMockViewGroup.layout(left, top, right, bottom); in testOnLayout() 1449 assertEquals(top, mMockViewGroup.top); in testOnLayout() 1685 public MockViewGroup top = new MockViewGroup(mContext); field in ViewGroupTest.TestClusterHier 1701 for (MockViewGroup mvg : new MockViewGroup[]{top, cluster1, cluster2, nestedGroup}) { in TestClusterHier() 1704 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 | 89 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/ |
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 | RectTest.java | 53 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 …]
|
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 | 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/tools/dasm/src/java_cup/ |
D | parser.java | 304 int top) in do_action() argument 308 return action_obj.CUP$do_action(act_num, parser, stack, top); in do_action() 431 int CUP$top) in CUP$do_action() argument 452 …$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; in CUP$do_action() 460 …$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; in CUP$do_action() 468 …$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; in CUP$do_action() 478 …if (symbols.get((/*non_term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_va… in CUP$do_action() 481 …"Symbol \"" + (/*non_term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val + in CUP$do_action() 488 …new non_terminal((/*non_term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_v… in CUP$do_action() 491 …non_terms.put((/*non_term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val,… in CUP$do_action() [all …]
|
/cts/apps/CameraITS/tests/scene5/ |
D | test_lens_shading_and_color_uniformity.py | 94 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/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/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 129 contentFrame.top + (contentFrame.height() - explicitDimension) / 2, in testExplicitSizeDefaultGravity() 131 contentFrame.top + (contentFrame.height() + explicitDimension) / 2); in testExplicitSizeDefaultGravity() 142 contentFrame.top, in testExplicitSizeTopLeftGravity() 144 contentFrame.top + explicitDimension); in testExplicitSizeTopLeftGravity() 155 contentFrame.top + contentFrame.height() - explicitDimension, in testExplicitSizeBottomRightGravity() 157 contentFrame.top + contentFrame.height()); in testExplicitSizeBottomRightGravity() 185 Rect expectedFrame = new Rect(contentFrame.left, contentFrame.top, in testOversizedDimensionsNoLimits() 187 contentFrame.top + oversizedDimension); in testOversizedDimensionsNoLimits() 239 (int) (verticalMargin * frame.height() + frame.top), in testMarginsArePercentagesOfContentFrame() 241 (int) (verticalMargin * frame.height() + frame.top) + explicitDimension); in testMarginsArePercentagesOfContentFrame()
|
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()
|
/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/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/tests/text/src/android/text/style/cts/ |
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()
|
D | DrawableMarginSpanTest.java | 78 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/tests/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 90 && midClip.top > 0 && midClip.top < newClip.top in isMiddleOfClipping()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsActivity.java | 254 int top = insets.top; in getOperationArea() local 265 top = Math.max(top, cutout.getSafeInsetTop() + slack); in getOperationArea() 278 rect.top += top; in getOperationArea()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeLayoutInfo.java | 97 return new Rect(mSystemWindowInset.left, mSystemWindowInset.top, in getScreenRectWithoutSystemWindowInset() 125 return new Rect(mStableInset.left, mStableInset.top, in getScreenRectWithoutStableInset() 162 static ImeLayoutInfo fromLayoutListenerCallback(View v, int left, int top, int right, in fromLayoutListenerCallback() argument 164 final Rect newLayout = new Rect(left, top, right, bottom); in fromLayoutListenerCallback()
|