Home
last modified time | relevance | path

Searched refs:inset (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DInsetDrawableTest.java304 float inset = .1f; in testOnBoundsChange_fraction() local
317 assertEquals((int) (size * inset), bounds.left); in testOnBoundsChange_fraction()
318 assertEquals((int) (size * inset), bounds.top); in testOnBoundsChange_fraction()
319 assertEquals(size - (int) (size * inset), bounds.right); in testOnBoundsChange_fraction()
320 assertEquals(size - (int) (size * inset), bounds.bottom); in testOnBoundsChange_fraction()
325 float inset = .1f; in testIsBoundsAndIntrinsicSizeInverse() local
328 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, inset); in testIsBoundsAndIntrinsicSizeInverse()
330 assertEquals((int)(mPassDrawable.getIntrinsicWidth() / (1 - 2 * inset)), in testIsBoundsAndIntrinsicSizeInverse()
332 assertEquals((int)(mPassDrawable.getIntrinsicHeight() / (1 - 2 * inset)), in testIsBoundsAndIntrinsicSizeInverse()
340 assertEquals((int)(insetDrawable.getIntrinsicWidth() * inset), r.left); in testIsBoundsAndIntrinsicSizeInverse()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DInsetsTest.java102 Insets inset = Insets.of(1, 3, 5, 7); in testParcel() local
104 inset.writeToParcel(parcel, 0); in testParcel()
106 assertEquals(inset, Insets.CREATOR.createFromParcel(parcel)); in testParcel()
DRectTest.java435 mRect.inset(1, 1); in testInset()
442 mRect.inset(-1, -1); in testInset()
449 mRect.inset(Insets.of(1, 1, 2, 2)); in testInset()
456 mRect.inset(1, 1, 2, 2); in testInset()
DRectFTest.java352 mRectF.inset(1.0f, 1.0f); in testInset()
359 mRectF.inset(-1.0f, -1.0f); in testInset()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java122 int inset = 20; in testDrawDoubleRoundRect() local
124 RectF inner = new RectF(inset, in testDrawDoubleRoundRect()
125 inset, in testDrawDoubleRoundRect()
126 width - inset, in testDrawDoubleRoundRect()
127 height - inset); in testDrawDoubleRoundRect()
163 int inset = 30; in testDrawDoubleRoundRectWithRadii() local
165 RectF inner = new RectF(inset, in testDrawDoubleRoundRectWithRadii()
166 inset, in testDrawDoubleRoundRectWithRadii()
167 width - inset, in testDrawDoubleRoundRectWithRadii()
168 height - inset); in testDrawDoubleRoundRectWithRadii()
DRenderNodeTests.java609 unblurredBounds.inset(blurRadius, blurRadius); in testViewRenderNodeBlurEffect()
727 unblurredBounds.inset(blurRadius, blurRadius); in testBlurRenderEffectImplicitInput()
774 unblurredBounds.inset(blurRadius, blurRadius); in testBlurRenderEffect()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRoundRectShapeTest.java76 RectF inset = new RectF(6, 6, 6, 6); in testDraw() local
78 RoundRectShape roundRectShape = new RoundRectShape(outerR, inset, innerR); in testDraw()
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DBitmapPixelChecker.java90 mBoundToLog.inset(insets); in applyInsetsToLogBounds()
150 bounds.inset(insets); in getBounds()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java173 return inset(bounds, excludingInsets); in getBoundsExcludingInsetsTypes()
185 private static Rect inset(Rect original, Insets insets) { in inset() method in WindowMetricsTestHelper
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationCallbackTests.java165 return mOnStartBoundsOut = bounds.inset(Insets.of(1, 2, 3, 4)); in onStart()
174 return mOnProgressOut = insets.inset(1, 2, 3, 4); in onProgress()
DWindowInsetsAnimationTests.java248 return bounds.inset(before.getInsets(navigationBars())); in testAnimationCallbacks_childInsetting()
254 return insets.inset(insets.getInsets(navigationBars())); in testAnimationCallbacks_childInsetting()
DDisplayCutoutTests.java592 private int safeInset(int inset, boolean canIgnoreSmallCutout) { in safeInset() argument
593 return !canIgnoreSmallCutout || inset > mMaximumSizeForNoLetterbox ? inset : 0; in safeInset()
DWindowInsetsTest.java794 insets.inset(INSET_LEFT, INSET_TOP, INSET_RIGHT, INSET_BOTTOM); in testInset()
832 final WindowInsets insetInsets = insets.inset(10, 5, 10, 5); in testInset_boundingRects()
853 final WindowInsets insetInsets = insets.inset(1000, 1000, 1000, 1000); in testInset_clipsToZero()
/cts/tests/framework/base/windowmanager/testsdk29/
DAndroid.bp27 ":cts-wm-decor-inset-test-base",
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DDialogFrameTests.java287 return inset(parentFrame, getActivitySystemInsets()); in getParentFrameWithInsets()
313 private static Rect inset(Rect original, Insets insets) { in inset() method in DialogFrameTests
DManifestLayoutTests.java199 stableBounds.inset(maxWindowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in getStableBounds()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowPolicyTests.java188 expectedBounds.inset(insets); in testOptOutEdgeToEdgeAppBounds()
208 expectedBounds.inset(insets); in testOptOutEdgeToEdgeDisplayMetrics()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java153 bounds.inset(excludeInsets); in reduceScreenLayout()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java84 largerExpanded.inset(-BOUNDS_IN_SCREEN_TOLERANCE_PX, -BOUNDS_IN_SCREEN_TOLERANCE_PX); in fuzzyBoundsInScreenContains()
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css48 border: 0 inset #808080;
/cts/tests/framework/base/windowmanager/src/android/server/wm/taskfragment/
DTaskFragmentTrustedModeTest.java247 result.inset(50 /* left */, 50 /* top */, 50 /* right */, 50 /* bottom */); in partialOverlayRelativeBounds()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java1285 final WindowInsets[] inset = new WindowInsets[1];
1290 inset[0] = rootView[0].getRootWindowInsets();
1292 final int navBarHeight = inset[0].getStableInsetBottom();
1293 final int statusBarHeight = inset[0].getStableInsetTop();
/cts/tests/framework/base/windowmanager/
DAndroid.bp26 name: "cts-wm-decor-inset-test-base",
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DSurfaceEncodeTimestampTest.java545 r.inset(BORDER_WIDTH, BORDER_WIDTH); in generateSurfaceFrame()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java637 bounds.inset(metrics.getWindowInsets().getInsetsIgnoringVisibility(displayCutout())); in injectNavBarToHomeGestureEvents()

12