Home
last modified time | relevance | path

Searched refs:displaySize (Results 1 – 15 of 15) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTests.java56 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatio()
65 (actual, displayId, activitySize, displaySize) -> { in testMetaDataMaxAspectRatio()
74 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioResizeableActivity()
89 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioUnsetActivity()
102 (actual, displayId, activitySize, displaySize) -> { in testMinAspectRatio()
112 (actual, displayId, activitySize, displaySize) -> { in testMinAspectRatioUnsetActivity()
125 (actual, displayId, activitySize, displaySize) -> { in testMinAspectLandscapeActivity()
131 int maxAspectRatioForDisplay = displaySize.x in testMinAspectLandscapeActivity()
144 (actual, displayId, activitySize, displaySize) -> { in testMinAspectPortraitActivity()
150 int maxAspectRatioForDisplay = displaySize.y in testMinAspectPortraitActivity()
DCrossAppDragAndDropTests.java155 String logtag, Point displaySize, boolean leftSide) throws Exception { in launchFreeformActivity() argument
158 Point topLeft = new Point(leftSide ? 0 : displaySize.x / 2, 0); in launchFreeformActivity()
159 Point bottomRight = new Point(leftSide ? displaySize.x / 2 : displaySize.x, displaySize.y); in launchFreeformActivity()
170 final Point displaySize = new Point(); in getDisplaySize() local
171 mDm.getDisplay(Display.DEFAULT_DISPLAY).getRealSize(displaySize); in getDisplaySize()
172 return displaySize; in getDisplaySize()
207 Point displaySize = getDisplaySize(); in assertDragAndDropResults() local
209 displaySize, true /* leftSide */); in assertDragAndDropResults()
211 displaySize, false /* leftSide */); in assertDragAndDropResults()
DAspectRatioTestsBase.java44 void assertAspectRatio(float actual, int displayId, Point activitySize, Point displaySize); in assertAspectRatio() argument
71 final Point displaySize = new Point(); in runAspectRatioTest() local
72 getDisplay(activity).getSize(displaySize); in runAspectRatioTest()
76 displaySize); in runAspectRatioTest() local
DWindowMetricsTestHelper.java123 final Point displaySize = new Point(); in assertBoundsMatchDisplay() local
124 display.getSize(displaySize); in assertBoundsMatchDisplay()
126 displaySize.x, currentBounds.width()); in assertBoundsMatchDisplay()
128 displaySize.y, currentBounds.height()); in assertBoundsMatchDisplay()
DDisplayCutoutTests.java532 final Point displaySize = new Point();
533 activity.getDisplay().getRealSize(displaySize);
536 return (appBounds.width() > appBounds.height()) == (displaySize.x > displaySize.y);
DMultiDisplayTestBase.java707 void createDisplays(Size displaySize, int densityDpi, boolean ownContentOnly, in createDisplays() argument
711 String displaySettingsEntry = displaySize + "/" + densityDpi; in createDisplays()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_0523.java33 private static void extractInt(String str, int[] displaySize) { in extractInt() argument
40 displaySize[i] = Integer.parseInt(s[i]); in extractInt()
81 int[] displaySize = new int[2]; in testPocCVE_2021_0523() local
82 extractInt(AdbUtils.runCommandLine("wm size", device), displaySize); in testPocCVE_2021_0523()
83 int width = displaySize[0]; in testPocCVE_2021_0523()
84 int height = displaySize[1]; in testPocCVE_2021_0523()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java131 @NonNull Point viewOriginOnScreen, @Nullable Point displaySize, in ImeLayoutInfo() argument
136 mDisplaySize = new Point(displaySize); in ImeLayoutInfo()
154 final Point displaySize = bundle.getParcelable(DISPLAY_SIZE_KEY); in readFromBundle() local
158 return new ImeLayoutInfo(newLayout, oldLayout, viewOrigin, displaySize, systemWindowInset, in readFromBundle()
170 final Point displaySize; in fromLayoutListenerCallback() local
172 displaySize = new Point(); in fromLayoutListenerCallback()
173 display.getRealSize(displaySize); in fromLayoutListenerCallback()
175 displaySize = null; in fromLayoutListenerCallback()
195 return new ImeLayoutInfo(newLayout, oldLayout, viewOrigin, displaySize, systemWindowInset, in fromLayoutListenerCallback()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityFocusAndInputFocusSyncTest.java391 final Point displaySize = new Point(); in isBitmapDifferent() local
392 display.getRealSize(displaySize); in isBitmapDifferent()
394 final int[] pixelsOne = new int[displaySize.x * displaySize.y]; in isBitmapDifferent()
396 bitmapOne.getPixels(pixelsOne, 0, displaySize.x, 0, 0, displaySize.x, in isBitmapDifferent()
397 displaySize.y); in isBitmapDifferent()
399 final int[] pixelsTwo = new int[displaySize.x * displaySize.y]; in isBitmapDifferent()
401 bitmapTwo.getPixels(pixelsTwo, 0, displaySize.x, 0, 0, displaySize.x, in isBitmapDifferent()
402 displaySize.y); in isBitmapDifferent()
DAccessibilityTakeScreenshotTest.java240 final Point displaySize = new Point(); in doesBitmapDisplaySecureContent() local
241 display.getRealSize(displaySize); in doesBitmapDisplaySecureContent()
243 final int[] pixels = new int[displaySize.x * displaySize.y]; in doesBitmapDisplaySecureContent()
245 bitmap.getPixels(pixels, 0, displaySize.x, 0, 0, displaySize.x, in doesBitmapDisplaySecureContent()
246 displaySize.y); in doesBitmapDisplaySecureContent()
/cts/tests/framework/base/windowmanager/testsdk25/src/android/server/wm/
DAspectRatioSdk25Tests.java51 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioPreOActivity()
/cts/tests/framework/base/windowmanager/testsdk28/src/android/server/wm/
DAspectRatioSdk28Tests.java65 (actual, displayId, activitySize, displaySize) -> in testMinAspectRatioPreQActivityOnWatch()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java102 final Size displaySize = getOnMainSync(() -> { in getInstance() local
115 actualBottomInset = displaySize.getHeight() - viewBoundsOnScreen.bottom; in getInstance()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUiDumpUtils.java138 Point displaySize = new Point();
142 .getRealSize(displaySize);
143 sScreenArea = displaySize.x * displaySize.y;
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java1150 final Point displaySize = new Point();
1151 display.getSize(displaySize);
1152 displayWidth = displaySize.x;
1153 displayHeight = displaySize.y;