Home
last modified time | relevance | path

Searched refs:getDisplay (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTestsBase.java51 getDisplay(activity).getDisplayId(), in runAspectRatioTest()
81 return getAspectRatio(getDisplay(activity)); in getActivityAspectRatio()
86 getDisplay(activity).getSize(size); in getActivitySize()
90 private static Display getDisplay(Activity activity) { in getDisplay() method in AspectRatioTestsBase
91 return activity.getWindow().peekDecorView().getDisplay(); in getDisplay()
DVirtualDisplayHelper.java81 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId() /* default */, in createAndWaitForDisplay()
85 return mVirtualDisplay.getDisplay().getDisplayId(); in createAndWaitForDisplay()
91 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId() /* displayId */, in turnDisplayOff()
99 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId() /* displayId */, in turnDisplayOn()
109 waitForDisplayCondition(mVirtualDisplay.getDisplay().getDisplayId() /* displayId */, in releaseDisplay()
DMultiDisplayActivityLaunchTests.java549 final int stackNum = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch()
552 .getDisplay(newDisplay.mId).mStacks.size(); in testMoveToDisplayOnLaunch()
570 final int stackNumFinal = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch()
575 .getDisplay(newDisplay.mId).mStacks.size(); in testMoveToDisplayOnLaunch()
597 final int stackNum = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY).mStacks.size(); in testMoveToEmptyDisplayOnLaunch()
613 final int stackNumFinal = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY) in testMoveToEmptyDisplayOnLaunch()
781 mAmWmState.getAmState().getDisplay(newDisplay.mId).mStacks.size()); in testNewTaskSameDisplay()
DFreeformWindowingModeTests.java103 assertEquals(mAmWmState.getWmState().getDisplay(stack.mDisplayId).getDisplayRect(), in testNonResizeableActivityHasFullDisplayBounds()
123 mAmWmState.getWmState().getDisplay(displayId).getDpi(); in testActivityLifeCycleOnResizeFreeformTask()
DMultiDisplayPolicyTests.java807 final WindowManagerState.Display display = mAmWmState.getWmState().getDisplay(displayId); in assertTopTaskSameSurfaceSizeWithDisplay()
839 mAmWmState.getWmState().getDisplay(DEFAULT_DISPLAY).getLastTransition()); in testAppTransitionForActivityOnDifferentDisplay()
850 mAmWmState.getWmState().getDisplay(DEFAULT_DISPLAY).getLastTransition()); in testAppTransitionForActivityOnDifferentDisplay()
852 mAmWmState.getWmState().getDisplay(newDisplay.mId).getLastTransition()); in testAppTransitionForActivityOnDifferentDisplay()
868 .getDisplay(newDisplay.mId).getLastTransition(); in testNoTransitionWhenMovingActivityToDisplay()
881 mAmWmState.getWmState().getDisplay(newDisplay.mId).getLastTransition()); in testNoTransitionWhenMovingActivityToDisplay()
DAnimationBackgroundTests.java84 final Display display = mAmWmState.getWmState().getDisplay(displayId); in assumeActivityNotInFreeformDisplay()
DMultiDisplayClientTests.java124 assertEquals(message, newDisplay.mId, activity.getDisplay().getDisplayId()); in testDisplayIdUpdateOnMove()
213 .getDisplay(newDisplay.mId); in testInputMethodManagerDisplayId()
DWindowFocusTests.java107 .getDisplay(displayId) in tapOnCenterOfDisplay()
366 mDisplayId = getWindow().getDecorView().getDisplay().getDisplayId(); in onAttachedToWindow()
511 return mVirtualDisplay.getDisplay(); in createDisplay()
DDisplayCutoutTests.java138 a.getDisplay().getCutout(), equalTo(displayCutout)); in testDisplayCutout_shortEdges_portrait()
249 runOnMainSync(() -> activity.getDecorView().getDisplay().getRealSize(displaySize)); in assertOnlyShortEdgeHasInsets()
269 runOnMainSync(() -> activity.getDecorView().getDisplay().getRealSize(displaySize)); in assertOnlyShortEdgeHasBounds()
DWindowInputTests.java79 mActivity.getDisplay().getSize(displaySize); in testMoveWindowAndTap()
DDisplaySizeTest.java126 final Display targetDisplay = virtualDisplay.getDisplay(); in testSizeRangesAfterSettingDisplaySize()
DDisplayTests.java191 final Display display = displayManager.getDisplay(activityDisplay.mId); in getDisplayResourcesConfiguration()
DManifestLayoutTests.java183 mDisplay = mAmWmState.getWmState().getDisplay(mWindowState.getDisplayId()); in getDisplayAndWindowState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionService.java53 return new CubePresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
56 return new WidgetPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
59 return new ListPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
62 return new VideoPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
65 return new TouchPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
68 return new OffscreenPresentation(ProjectionService.this, mDisplay.getDisplay()); in createPresentation()
/cts/tests/app/src/android/app/cts/
DDisplayTest.java58 final Display origDisplay = mActivity.getDisplay(); in testRotation()
80 final Display updatedDisplay = mActivity.getDisplay(); in testRotation()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerState.java199 ActivityDisplay getDisplay(int displayId) { in getDisplay() method in ActivityManagerState
209 return getDisplay(displayId).mStacks.get(0).mStackId; in getFrontStackId()
213 return getDisplay(displayId).mStacks.get(0).getActivityType(); in getFrontStackActivityType()
217 return getDisplay(displayId).mStacks.get(0).getWindowingMode(); in getFrontStackWindowingMode()
221 if (!getDisplay(displayId).mStacks.isEmpty()) { in getTopActivityName()
222 final ActivityStack topStack = getDisplay(displayId).mStacks.get(0); in getTopActivityName()
271 return getDisplay(displayId).mResumedActivity; in getResumedActivityOnDisplay()
DActivityAndWindowManagersState.java345 state.getDisplay(displayId).getAppTransitionState()), in waitForAppTransitionIdleOnDisplay()
619 assertEquals(msg, activityComponentName, mWmState.getDisplay(displayId).getFocusedApp()); in assertFocusedAppOnDisplay()
690 final Display display = getWmState().getDisplay(DEFAULT_DISPLAY); in assertDeviceDefaultDisplaySize()
980 final Rect displayRect = mWmState.getDisplay(displayId).getDisplayRect(); in isScreenPortrait()
989 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
993 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
DWindowManagerState.java396 Display getDisplay(int displayId) { in getDisplay() method in WindowManagerState
425 return getDisplay(DEFAULT_DISPLAY).getLastTransition(); in getDefaultDisplayLastTransition()
429 return getDisplay(DEFAULT_DISPLAY).getAppTransitionState(); in getDefaultDisplayAppTransitionState()
552 return getDisplay(DEFAULT_DISPLAY).mStableBounds; in getStableBounds()
/cts/tests/app/app/src/android/app/stubs/
DDisplayTestActivity.java44 public Display getDisplay() { in getDisplay() method in DisplayTestActivity
/cts/tests/tests/widget/src/android/widget/cts/
DListPopupWindowTest.java194 int height = getDisplay().getHeight() / 2; in testAccessHeight()
198 height = getDisplay().getHeight(); in testAccessHeight()
205 height = getDisplay().getHeight() * 2; in testAccessHeight()
209 height = -getDisplay().getHeight() / 2; in testAccessHeight()
223 private Display getDisplay() { in getDisplay() method in ListPopupWindowTest
236 int width = getDisplay().getWidth() / 2; in testAccessWidth()
240 width = getDisplay().getWidth(); in testAccessWidth()
247 width = getDisplay().getWidth() * 2; in testAccessWidth()
251 width = - getDisplay().getWidth() / 2; in testAccessWidth()
282 getDisplay().getWidth() - mPopupWindow.getWidth() + listViewInWindowXY[0]; in verifyAnchoring()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java124 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay()
149 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay()
173 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplayWithDynamicSurface()
/cts/tests/tests/keystore/src/android/server/am/
DActivityAndWindowManagersState.java547 final Rect displayRect = mWmState.getDisplay(displayId).getDisplayRect(); in isScreenPortrait()
556 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
560 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java95 getDisplay().getRealMetrics(mDisplayMetrics); in onCreate()
217 Display display = getDisplay(); in showInfoInTextView()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java169 final Display display = v.getDisplay(); in fromLayoutListenerCallback()
/cts/tests/tests/media/src/android/media/cts/
DRemoteVirtualDisplayService.java148 mVirtualDisplay.getDisplay()); in createPresentation()

123