/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | LineGestureStrokeHelper.java | 61 RectF bounds = new RectF(); in assertLineBoundingBox() local 62 linePath.computeBounds(bounds, true); in assertLineBoundingBox() 66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); in assertLineBoundingBox() 67 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox() 68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); in assertLineBoundingBox() 69 Assert.assertEquals(LINE_START_POINT, bounds.top); in assertLineBoundingBox() 77 void assertLineBoundingBox(RectF bounds) { in assertLineBoundingBox() argument 80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); in assertLineBoundingBox() 81 Assert.assertEquals(LINE_START_POINT, bounds.left); in assertLineBoundingBox() 82 Assert.assertEquals(LINE_END_POINT, bounds.right); in assertLineBoundingBox() [all …]
|
D | GestureStrokeTest.java | 94 RectF bounds = new RectF(); in testToPath_boundedLine() local 95 linePath.computeBounds(bounds, true); in testToPath_boundedLine() 98 assertEquals(LineGestureStrokeHelper.LINE_QUARTER_POINT, bounds.bottom); in testToPath_boundedLine() 99 assertEquals(LineGestureStrokeHelper.LINE_START_POINT, bounds.left); in testToPath_boundedLine() 100 assertEquals(LineGestureStrokeHelper.LINE_QUARTER_POINT, bounds.right); in testToPath_boundedLine() 101 assertEquals(LineGestureStrokeHelper.LINE_START_POINT, bounds.top); in testToPath_boundedLine()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | float16_gen.c | 122 void getErrorBar(unsigned short value, int tolerance, unsigned short bounds[2]) { in getErrorBar() 135 bounds[0] = value; in getErrorBar() 136 bounds[1] = value; in getErrorBar() 170 bounds[0] = *(unsigned short *) &lb; in getErrorBar() 171 bounds[1] = *(unsigned short *) &ub; in getErrorBar() 175 if (!isFloat16Negative(bounds[0]) && isFloat16SubNormal(bounds[0])) in getErrorBar() 176 bounds[0] = 0x0; in getErrorBar() 178 if (isFloat16Negative(bounds[1]) && isFloat16SubNormal(bounds[1])) in getErrorBar() 179 bounds[1] = 0x0 | SIGN_MASK; in getErrorBar()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ScaleDrawableTest.java | 349 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local 350 mockDrawable.setBounds(bounds); in testOnBoundsChange() 351 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange() 353 Gravity.apply(Gravity.LEFT, bounds.width() - (int) (bounds.width() * scaleWidth), in testOnBoundsChange() 354 bounds.height() - (int) (bounds.height() * scaleHeight), bounds, expected); in testOnBoundsChange() 365 mockDrawable.setBounds(bounds); in testOnBoundsChange() 367 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange() 369 bounds.width() - (int) (bounds.width() * scaleWidth * (10000 - level) / 10000), in testOnBoundsChange() 370 bounds.height() - (int) (bounds.height() * scaleHeight * (10000 - level) / 10000), in testOnBoundsChange() 371 bounds, expected); in testOnBoundsChange() [all …]
|
D | InsetDrawableTest.java | 287 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_dimension() local 288 assertEquals(0, bounds.left); in testOnBoundsChange_dimension() 289 assertEquals(0, bounds.top); in testOnBoundsChange_dimension() 290 assertEquals(0, bounds.right); in testOnBoundsChange_dimension() 291 assertEquals(0, bounds.bottom); in testOnBoundsChange_dimension() 296 assertEquals(5, bounds.left); in testOnBoundsChange_dimension() 297 assertEquals(5, bounds.top); in testOnBoundsChange_dimension() 298 assertEquals(-5, bounds.right); in testOnBoundsChange_dimension() 299 assertEquals(-5, bounds.bottom); in testOnBoundsChange_dimension() 308 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_fraction() local [all …]
|
D | DrawableWrapperTest.java | 345 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local 346 mockDrawable.setBounds(bounds); in testOnBoundsChange() 347 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange() 350 mockDrawable.setBounds(bounds); in testOnBoundsChange() 351 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange() 352 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange() 353 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange() 354 assertEquals(bounds.right, mockDrawable.getBounds().right); in testOnBoundsChange() 355 assertEquals(bounds.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange() 357 bounds = mockDrawable.getBounds(); in testOnBoundsChange() [all …]
|
D | AdaptiveIconMaskTest.java | 83 RectF bounds = new RectF(); in testDeviceConfigMask_bounds() local 84 mMask.computeBounds(bounds, true); in testDeviceConfigMask_bounds() 85 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); in testDeviceConfigMask_bounds() 86 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); in testDeviceConfigMask_bounds() 89 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); in testDeviceConfigMask_bounds() 92 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.right); in testDeviceConfigMask_bounds()
|
D | DrawableContainerTest.java | 267 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local 276 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds() 279 assertEquals(bounds, outRect); in testSetHotspotBounds() 286 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local 295 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds() 298 assertEquals(bounds, outRect); in testGetHotspotBounds() 864 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 865 super.onBoundsChange(bounds); in onBoundsChange() 952 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 953 super.onBoundsChange(bounds); in onBoundsChange()
|
D | LayerDrawableTest.java | 532 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local 538 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds() 541 assertTrue(bounds.equals(outRect)); in testSetHotspotBounds() 546 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local 552 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds() 555 assertTrue(bounds.equals(outRect)); in testGetHotspotBounds() 771 Rect bounds = new Rect(10, 20, 30, 40); in testSetBounds() local 772 layerDrawable.setBounds(bounds); in testSetBounds() 775 assertEquals(bounds.left + inset1.left, mockDrawable1.getBounds().left); in testSetBounds() 776 assertEquals(bounds.top + inset1.top, mockDrawable1.getBounds().top); in testSetBounds() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | SplashscreenTests.java | 52 private void assertColors(Bitmap img, Rect bounds, int primaryColor, in assertColors() argument 58 for (int x = bounds.left; x < bounds.right; x++) { in assertColors() 59 for (int y = bounds.top; y < bounds.bottom; y++) { in assertColors() 73 final int totalPixels = bounds.width() * bounds.height(); in assertColors()
|
D | WindowInputTests.java | 120 private void selectRandomLocationInWindow(Rect bounds, Point outLocation) { in selectRandomLocationInWindow() argument 121 int randomX = mRandom.nextInt(bounds.right - bounds.left) + bounds.left; in selectRandomLocationInWindow() 122 int randomY = mRandom.nextInt(bounds.bottom - bounds.top) + bounds.top; in selectRandomLocationInWindow()
|
D | ActivityViewTest.java | 146 Rect bounds = display.mFullConfiguration.windowConfiguration.getAppBounds(); in checkDisplaySize() local 147 if (bounds != null) { in checkDisplaySize() 148 avDisplayWidth = bounds.width(); in checkDisplaySize() 149 avDisplayHeight = bounds.height(); in checkDisplaySize()
|
D | CrossAppDragAndDropTests.java | 164 Rect bounds = sideTask.getBounds(); in getWindowCenter() local 165 if (bounds != null) { in getWindowCenter() 166 return new Point(bounds.centerX(), bounds.centerY()); in getWindowCenter()
|
D | PinnedStackTests.java | 402 Rect bounds = getPinnedStackBounds(); in testResizePipAspectRatio() local 403 assertFloatEquals((float) bounds.width() / bounds.height(), (float) num / denom); in testResizePipAspectRatio() 535 Rect bounds = getPinnedStackBounds(); in testAutoEnterPictureInPictureAspectRatio() local 536 assertFloatEquals((float) bounds.width() / bounds.height(), in testAutoEnterPictureInPictureAspectRatio() 1459 Rect bounds = state.getStandardStackByWindowingMode(WINDOWING_MODE_PINNED).getBounds(); in waitForValidAspectRatio() local 1460 return floatEquals((float) bounds.width() / bounds.height(), (float) num / denom); in waitForValidAspectRatio()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CompoundButtonTest.java | 281 Rect bounds; in testOnDraw() local 300 bounds = drawable.copyBounds(); in testOnDraw() 301 assertEquals(0, bounds.left); in testOnDraw() 302 assertEquals(drawableWidth, bounds.right); in testOnDraw() 303 assertEquals(0, bounds.top); in testOnDraw() 304 assertEquals(drawableHeight, bounds.bottom); in testOnDraw() 309 bounds = drawable.copyBounds(); in testOnDraw() 310 assertEquals(0, bounds.left); in testOnDraw() 311 assertEquals(drawableWidth, bounds.right); in testOnDraw() 312 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw() [all …]
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | SurfacePixelValidator2.java | 93 private static void getPixels(Image image, int[] dest, Rect bounds) { in getPixels() argument 97 swBitmap.getPixels(dest, 0, bounds.width(), in getPixels() 98 bounds.left, bounds.top, bounds.width(), bounds.height()); in getPixels()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PathTest.java | 207 RectF bounds = new RectF(); in testComputeBounds1() local 208 path.computeBounds(bounds, true); in testComputeBounds1() 209 assertEquals(expected.width(), bounds.width(), 0.0f); in testComputeBounds1() 210 assertEquals(expected.height(), bounds.height(), 0.0f); in testComputeBounds1() 211 path.computeBounds(bounds, false); in testComputeBounds1() 212 assertEquals(expected.width(), bounds.width(), 0.0f); in testComputeBounds1() 213 assertEquals(expected.height(), bounds.height(), 0.0f); in testComputeBounds1() 221 RectF bounds = new RectF(LEFT, TOP, RIGHT, BOTTOM); in testComputeBounds2() local 222 path.addRect(bounds, Path.Direction.CW); in testComputeBounds2() 223 path.computeBounds(bounds, true); in testComputeBounds2() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | LoginWithCustomHighlightActivityTest.java | 77 final Rect bounds = MyDrawable.getAutofilledBounds(); 78 assertThat(bounds).isNotNull(); 79 assertThat(bounds.right).isEqualTo(mActivity.getUsername().getWidth()); 80 assertThat(bounds.bottom).isEqualTo(mActivity.getUsername().getHeight());
|
D | VirtualContainerView.java | 168 line.bounds.set((int) x, (int) (y - mLineLength), in onDraw() 170 Log.d(TAG, "setBounds(" + x + ", " + y + "): " + line.bounds); in onDraw() 419 final Rect bounds = new Rect(); field in VirtualContainerView.Line 479 final Rect absBounds = new Rect(bounds.left + offset[0], in getAbsCoordinates() 480 bounds.top + offset[1], in getAbsCoordinates() 481 bounds.right + offset[0], bounds.bottom + offset[1]); in getAbsCoordinates() 482 Log.v(TAG, "getAbsCoordinates() for " + text.id + ": bounds=" + bounds in getAbsCoordinates()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 67 final Rect bounds = new Rect(); in launchActivityAndWaitForItToBeOnscreen() local 89 window.getBoundsInScreen(bounds); in launchActivityAndWaitForItToBeOnscreen() 91 if (bounds.isEmpty()) { in launchActivityAndWaitForItToBeOnscreen() 94 return (!bounds.isEmpty()) in launchActivityAndWaitForItToBeOnscreen() 95 && (bounds.left == location[0]) && (bounds.top == location[1]); in launchActivityAndWaitForItToBeOnscreen()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 92 final Rect bounds = region.getBounds(); in testSetScaleAndCenter() local 94 final float x = bounds.left + (bounds.width() / 4.0f); in testSetScaleAndCenter() 95 final float y = bounds.top + (bounds.height() / 4.0f); in testSetScaleAndCenter()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_ASurfaceTextureTest.cpp | 59 ARect bounds = {0, 0, 640, 480}; in basicTests() local 61 int err = ANativeWindow_lock(win, &outBuffer, &bounds); in basicTests()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 524 Rect bounds = new Rect(); in assertAccessibilityNodeInfoCleared() local 525 info.getBoundsInParent(bounds); in assertAccessibilityNodeInfoCleared() 526 assertTrue("boundsInParent not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared() 527 info.getBoundsInScreen(bounds); in assertAccessibilityNodeInfoCleared() 528 assertTrue("boundsInScreen not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 113 final RectF bounds = MANY_BOUNDS[i]; in testBuilder() local 115 builder.addCharacterBounds(i, bounds.left, bounds.top, bounds.right, bounds.bottom, in testBuilder()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 505 final Rect bounds = new Rect(); in touchAndCancelOnDisplayCenter() local 506 dm.getDisplay(displayId).getRectSize(bounds); in touchAndCancelOnDisplayCenter() 507 final int x = bounds.left + bounds.width() / 2; in touchAndCancelOnDisplayCenter() 508 final int y = bounds.top + bounds.height() / 2; in touchAndCancelOnDisplayCenter() 527 protected void tapOnCenter(Rect bounds, int displayId) { in tapOnCenter() argument 528 final int tapX = bounds.left + bounds.width() / 2; in tapOnCenter() 529 final int tapY = bounds.top + bounds.height() / 2; in tapOnCenter()
|