Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java61 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 …]
DGestureStrokeTest.java94 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/framework/base/activitymanager/src/android/server/am/
DSplashscreenTests.java49 private void assertColors(Bitmap img, Rect bounds, int primaryColor, in assertColors() argument
55 for (int x = bounds.left; x < bounds.right; x++) { in assertColors()
56 for (int y = bounds.top; y < bounds.bottom; y++) { in assertColors()
70 final int totalPixels = bounds.width() * bounds.height(); in assertColors()
DActivityManagerPinnedStackTests.java380 Rect bounds = getPinnedStackBounds(); in testResizePipAspectRatio() local
381 assertFloatEquals((float) bounds.width() / bounds.height(), (float) num / denom); in testResizePipAspectRatio()
528 Rect bounds = getPinnedStackBounds(); in testAutoEnterPictureInPictureAspectRatio() local
529 assertFloatEquals((float) bounds.width() / bounds.height(), in testAutoEnterPictureInPictureAspectRatio()
1517 Rect bounds = state.getStandardStackByWindowingMode(WINDOWING_MODE_PINNED).getBounds(); in waitForValidAspectRatio() local
1518 return floatEquals((float) bounds.width() / bounds.height(), (float) num / denom); in waitForValidAspectRatio()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dfloat16_gen.c122 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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java46 final Rect bounds = new Rect(); in launchActivityAndWaitForItToBeOnscreen() local
67 window.getBoundsInScreen(bounds); in launchActivityAndWaitForItToBeOnscreen()
69 if (bounds.isEmpty()) { in launchActivityAndWaitForItToBeOnscreen()
72 return (!bounds.isEmpty()) in launchActivityAndWaitForItToBeOnscreen()
73 && (bounds.left == location[0]) && (bounds.top == location[1]); in launchActivityAndWaitForItToBeOnscreen()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DScaleDrawableTest.java348 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local
349 mockDrawable.setBounds(bounds); in testOnBoundsChange()
350 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange()
352 Gravity.apply(Gravity.LEFT, bounds.width() - (int) (bounds.width() * scaleWidth), in testOnBoundsChange()
353 bounds.height() - (int) (bounds.height() * scaleHeight), bounds, expected); in testOnBoundsChange()
364 mockDrawable.setBounds(bounds); in testOnBoundsChange()
366 mockScaleDrawable.onBoundsChange(bounds); in testOnBoundsChange()
368 bounds.width() - (int) (bounds.width() * scaleWidth * (10000 - level) / 10000), in testOnBoundsChange()
369 bounds.height() - (int) (bounds.height() * scaleHeight * (10000 - level) / 10000), in testOnBoundsChange()
370 bounds, expected); in testOnBoundsChange()
[all …]
DInsetDrawableTest.java288 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_dimension() local
289 assertEquals(0, bounds.left); in testOnBoundsChange_dimension()
290 assertEquals(0, bounds.top); in testOnBoundsChange_dimension()
291 assertEquals(0, bounds.right); in testOnBoundsChange_dimension()
292 assertEquals(0, bounds.bottom); in testOnBoundsChange_dimension()
297 assertEquals(5, bounds.left); in testOnBoundsChange_dimension()
298 assertEquals(5, bounds.top); in testOnBoundsChange_dimension()
299 assertEquals(-5, bounds.right); in testOnBoundsChange_dimension()
300 assertEquals(-5, bounds.bottom); in testOnBoundsChange_dimension()
309 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_fraction() local
[all …]
DDrawableWrapperTest.java333 Rect bounds = new Rect(2, 2, 26, 32); in testOnBoundsChange() local
334 mockDrawable.setBounds(bounds); in testOnBoundsChange()
335 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange()
338 mockDrawable.setBounds(bounds); in testOnBoundsChange()
339 mockDrawableWrapper.onBoundsChange(bounds); in testOnBoundsChange()
340 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
341 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
342 assertEquals(bounds.right, mockDrawable.getBounds().right); in testOnBoundsChange()
343 assertEquals(bounds.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
345 bounds = mockDrawable.getBounds(); in testOnBoundsChange()
[all …]
DAdaptiveIconMaskTest.java81 RectF bounds = new RectF(); in testDeviceConfigMask_bounds() local
82 mMask.computeBounds(bounds, true); in testDeviceConfigMask_bounds()
83 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); in testDeviceConfigMask_bounds()
84 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); in testDeviceConfigMask_bounds()
87 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); in testDeviceConfigMask_bounds()
90 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.right); in testDeviceConfigMask_bounds()
DDrawableContainerTest.java263 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local
272 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
275 assertEquals(bounds, outRect); in testSetHotspotBounds()
282 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local
291 mDrawableContainer.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
294 assertEquals(bounds, outRect); in testGetHotspotBounds()
836 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
837 super.onBoundsChange(bounds); in onBoundsChange()
900 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
901 super.onBoundsChange(bounds); in onBoundsChange()
DLayerDrawableTest.java531 Rect bounds = new Rect(10, 15, 100, 150); in testSetHotspotBounds() local
537 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testSetHotspotBounds()
540 assertTrue(bounds.equals(outRect)); in testSetHotspotBounds()
545 Rect bounds = new Rect(10, 15, 100, 150); in testGetHotspotBounds() local
551 layerDrawable.setHotspotBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in testGetHotspotBounds()
554 assertTrue(bounds.equals(outRect)); in testGetHotspotBounds()
770 Rect bounds = new Rect(10, 20, 30, 40); in testSetBounds() local
771 layerDrawable.setBounds(bounds); in testSetBounds()
774 assertEquals(bounds.left + inset1.left, mockDrawable1.getBounds().left); in testSetBounds()
775 assertEquals(bounds.top + inset1.top, mockDrawable1.getBounds().top); in testSetBounds()
[all …]
DClipDrawableTest.java394 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
395 super.onBoundsChange(bounds); in onBoundsChange()
/cts/hostsidetests/api/src/com/android/cts/api/
DApprovedApis.java167 List<TypeInfo> bounds = typeParameterType.extendsBounds(); in definedMethodFrom() local
168 if (bounds == null || bounds.size() == 0) { in definedMethodFrom()
171 typeName = bounds.get(0).qualifiedTypeName() + type.dimension(); in definedMethodFrom()
187 List<TypeInfo> bounds = typeParameterType.extendsBounds(); in definedMethodFrom() local
188 if (bounds == null || bounds.size() != 1) { in definedMethodFrom()
191 sb.append(bounds.get(0).qualifiedTypeName() + type.dimension()); in definedMethodFrom()
211 List<TypeInfo> bounds = typeParameterType.extendsBounds(); in definedFieldFrom() local
212 if (bounds == null || bounds.size() != 1) { in definedFieldFrom()
215 sb.append(bounds.get(0).qualifiedTypeName() + type.dimension()); in definedFieldFrom()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DLoginWithCustomHighlightActivityTest.java77 final Rect bounds = MyDrawable.getAutofilledBounds(); in testAutofillCustomHighligth() local
78 assertThat(bounds).isNotNull(); in testAutofillCustomHighligth()
79 assertThat(bounds.right).isEqualTo(mActivity.getUsername().getWidth()); in testAutofillCustomHighligth()
80 assertThat(bounds.bottom).isEqualTo(mActivity.getUsername().getHeight()); in testAutofillCustomHighligth()
DVirtualContainerView.java168 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()
DVirtualContainerActivity.java75 getAutofillManager().requestAutofill(mCustomView, line.text.id, line.bounds); in requestAutofill()
/cts/tests/tests/widget/src/android/widget/cts/
DCompoundButtonTest.java279 Rect bounds; in testOnDraw() local
298 bounds = drawable.copyBounds(); in testOnDraw()
299 assertEquals(0, bounds.left); in testOnDraw()
300 assertEquals(drawableWidth, bounds.right); in testOnDraw()
301 assertEquals(0, bounds.top); in testOnDraw()
302 assertEquals(drawableHeight, bounds.bottom); in testOnDraw()
307 bounds = drawable.copyBounds(); in testOnDraw()
308 assertEquals(0, bounds.left); in testOnDraw()
309 assertEquals(drawableWidth, bounds.right); in testOnDraw()
310 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathTest.java206 RectF bounds = new RectF(); in testComputeBounds1() local
207 path.computeBounds(bounds, true); in testComputeBounds1()
208 assertEquals(expected.width(), bounds.width(), 0.0f); in testComputeBounds1()
209 assertEquals(expected.height(), bounds.height(), 0.0f); in testComputeBounds1()
210 path.computeBounds(bounds, false); in testComputeBounds1()
211 assertEquals(expected.width(), bounds.width(), 0.0f); in testComputeBounds1()
212 assertEquals(expected.height(), bounds.height(), 0.0f); in testComputeBounds1()
220 RectF bounds = new RectF(LEFT, TOP, RIGHT, BOTTOM); in testComputeBounds2() local
221 path.addRect(bounds, Path.Direction.CW); in testComputeBounds2()
222 path.computeBounds(bounds, true); in testComputeBounds2()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ASurfaceTextureTest.cpp59 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/
DAccessibilityNodeInfoTest.java476 Rect bounds = new Rect(); in assertAccessibilityNodeInfoCleared() local
477 info.getBoundsInParent(bounds); in assertAccessibilityNodeInfoCleared()
478 assertTrue("boundsInParent not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared()
479 info.getBoundsInScreen(bounds); in assertAccessibilityNodeInfoCleared()
480 assertTrue("boundsInScreen not properly recycled", bounds.isEmpty()); in assertAccessibilityNodeInfoCleared()
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DPipActivity.java269 static void launchActivityIntoPinnedStack(Activity caller, Rect bounds) { in launchActivityIntoPinnedStack() argument
275 options.setLaunchBounds(bounds); in launchActivityIntoPinnedStack()
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerState.java274 mBounds = extract(proto.bounds); in ActivityStack()
319 mBounds = extract(proto.bounds); in ActivityTask()
DWindowManagerState.java320 mBounds = extract(proto.bounds); in WindowStack()
350 mBounds = extract(proto.bounds); in WindowTask()
/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DActivityManagerState.java573 mBounds = extract(proto.bounds); in ActivityStack()
642 mBounds = extract(proto.bounds); in ActivityTask()

12