/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AspectRatioTests.java | 56 (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()
|
D | CrossAppDragAndDropTests.java | 155 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()
|
D | AspectRatioTestsBase.java | 44 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
|
D | WindowMetricsTestHelper.java | 123 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()
|
D | DisplayCutoutTests.java | 532 final Point displaySize = new Point(); 533 activity.getDisplay().getRealSize(displaySize); 536 return (appBounds.width() > appBounds.height()) == (displaySize.x > displaySize.y);
|
D | MultiDisplayTestBase.java | 707 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/ |
D | CVE_2021_0523.java | 33 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/ |
D | ImeLayoutInfo.java | 131 @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/ |
D | AccessibilityFocusAndInputFocusSyncTest.java | 391 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()
|
D | AccessibilityTakeScreenshotTest.java | 240 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/ |
D | AspectRatioSdk25Tests.java | 51 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioPreOActivity()
|
/cts/tests/framework/base/windowmanager/testsdk28/src/android/server/wm/ |
D | AspectRatioSdk28Tests.java | 65 (actual, displayId, activitySize, displaySize) -> in testMinAspectRatioPreQActivityOnWatch()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | NavigationBarInfo.java | 102 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/ |
D | UiDumpUtils.java | 138 Point displaySize = new Point(); 142 .getRealSize(displaySize); 143 sScreenArea = displaySize.x * displaySize.y;
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CommandSession.java | 1150 final Point displaySize = new Point(); 1151 display.getSize(displaySize); 1152 displayWidth = displaySize.x; 1153 displayHeight = displaySize.y;
|