Home
last modified time | relevance | path

Searched refs:displayId (Results 1 – 16 of 16) sorted by relevance

/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DActivityLauncher.java128 final int displayId = extras.getInt(KEY_DISPLAY_ID, -1); in launchActivityFromExtras() local
129 if (displayId != -1) { in launchActivityFromExtras()
131 options.setLaunchDisplayId(displayId); in launchActivityFromExtras()
DActivityManagerState.java186 ActivityDisplay getDisplay(int displayId) { in getDisplay() argument
188 if (display.mId == displayId) { in getDisplay()
195 int getFrontStackId(int displayId) { in getFrontStackId() argument
196 return getDisplay(displayId).mStacks.get(0).mStackId; in getFrontStackId()
199 int getFrontStackActivityType(int displayId) { in getFrontStackActivityType() argument
200 return getDisplay(displayId).mStacks.get(0).getActivityType(); in getFrontStackActivityType()
203 int getFrontStackWindowingMode(int displayId) { in getFrontStackWindowingMode() argument
204 return getDisplay(displayId).mStacks.get(0).getWindowingMode(); in getFrontStackWindowingMode()
572 mDisplayId = proto.displayId; in ActivityStack()
DWindowManagerState.java367 Display getDisplay(int displayId) { in getDisplay() argument
369 if (displayId == display.getDisplayId()) { in getDisplay()
403 int getFrontStackId(int displayId) { in getFrontStackId() argument
404 return mDisplayStacks.get(displayId).get(0).mStackId; in getFrontStackId()
407 int getFrontStackActivityType(int displayId) { in getFrontStackActivityType() argument
408 return mDisplayStacks.get(displayId).get(0).getActivityType(); in getFrontStackActivityType()
507 for (Integer displayId : mDisplayStacks.keySet()) { in getStackIndexByActivityType()
508 List<WindowStack> stacks = mDisplayStacks.get(displayId); in getStackIndexByActivityType()
788 mDisplayId = proto.displayId; in WindowState()
DActivityAndWindowManagersState.java863 final int displayId = mAmState.getStandardStackByWindowingMode( in isScreenPortrait() local
865 return isScreenPortrait(displayId); in isScreenPortrait()
868 boolean isScreenPortrait(int displayId) { in isScreenPortrait() argument
869 final Rect displayRect = mWmState.getDisplay(displayId).getDisplayRect(); in isScreenPortrait()
877 private int defaultMinimalTaskSize(int displayId) { in defaultMinimalTaskSize() argument
878 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
881 private int defaultMinimalPinnedTaskSize(int displayId) { in defaultMinimalPinnedTaskSize() argument
882 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
DActivityManagerTestBase.java195 protected static String getAmStartCmd(final ComponentName activityName, final int displayId, in getAmStartCmd() argument
197 return getAmStartCmdInternal(getActivityName(activityName), displayId, keyValuePair); in getAmStartCmd()
200 private static String getAmStartCmdInternal(final String activityName, final int displayId, in getAmStartCmdInternal() argument
208 .append(displayId), in getAmStartCmdInternal()
343 protected void launchActivityOnDisplay(ComponentName activityName, int displayId, in launchActivityOnDisplay() argument
345 launchActivityOnDisplayNoWait(activityName, displayId, keyValuePairs); in launchActivityOnDisplay()
349 protected void launchActivityOnDisplayNoWait(ComponentName activityName, int displayId, in launchActivityOnDisplayNoWait() argument
351 executeShellCommand(getAmStartCmd(activityName, displayId, keyValuePairs)); in launchActivityOnDisplayNoWait()
768 protected int getDeviceRotation(int displayId) {
771 "(mDisplayId=" + displayId + ")([\\s\\S]*)(mOverrideDisplayInfo)(.*)"
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DVirtualDisplayActivity.java201 final int displayId = virtualDisplay.getDisplay().getDisplayId(); in surfaceCreated() local
203 + getActivityName(targetActivity) + ", displayId=" + displayId); in surfaceCreated()
204 launchActivity(targetActivity, displayId); in surfaceCreated()
234 private void launchActivity(ComponentName activityName, int displayId) { in launchActivity() argument
238 extras.putInt(KEY_DISPLAY_ID, displayId); in launchActivity()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerFreeformStackTests.java108 final int displayId = mAmWmState.getAmState().getStandardStackByWindowingMode( in testActivityLifeCycleOnResizeFreeformTask() local
111 mAmWmState.getWmState().getDisplay(displayId).getDpi(); in testActivityLifeCycleOnResizeFreeformTask()
DActivityManagerAppConfigurationTests.java217 final int displayId = mAmWmState.getAmState().getStackById(task.mStackId).mDisplayId; in rotateAndCheckSizes() local
219 final int newDeviceRotation = getDeviceRotation(displayId); in rotateAndCheckSizes()
603 final int displayId = mAmWmState.getAmState().getDisplayByActivity(RESIZEABLE_ACTIVITY); in testAppOrientationWhenRotating() local
617 final int newDeviceRotation = getDeviceRotation(displayId); in testAppOrientationWhenRotating()
653 final int displayId = mAmWmState.getAmState() in testFixedOrientationWhenRotating() local
664 final int newDeviceRotation = getDeviceRotation(displayId); in testFixedOrientationWhenRotating()
DActivityManagerConfigChangeTests.java102 final int displayId = mAmWmState.getAmState().getStackById(actualStackId).mDisplayId; in testRotation() local
103 final int newDeviceRotation = getDeviceRotation(displayId); in testRotation()
DActivityManagerDisplayTestBase.java71 ActivityDisplay getDisplayState(List<ActivityDisplay> displays, int displayId) { in getDisplayState() argument
73 if (display.mId == displayId) { in getDisplayState()
DActivityManagerMultiDisplayTests.java1706 ComponentName activityName, int displayId, String message) throws Exception { in waitAndAssertActivityResumed() argument
1711 final int frontStackId = mAmWmState.getAmState().getFrontStackId(displayId); in waitAndAssertActivityResumed()
/cts/tests/tests/keystore/src/android/server/am/
DActivityAndWindowManagersState.java545 boolean isScreenPortrait(int displayId) { in isScreenPortrait() argument
546 final Rect displayRect = mWmState.getDisplay(displayId).getDisplayRect(); in isScreenPortrait()
554 private int defaultMinimalTaskSize(int displayId) { in defaultMinimalTaskSize() argument
555 return dpToPx(DEFAULT_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalTaskSize()
558 private int defaultMinimalPinnedTaskSize(int displayId) { in defaultMinimalPinnedTaskSize() argument
559 return dpToPx(DEFAULT_PIP_RESIZABLE_TASK_SIZE_DP, mWmState.getDisplay(displayId).getDpi()); in defaultMinimalPinnedTaskSize()
DWindowManagerState.java233 Display getDisplay(int displayId) { in getDisplay() argument
235 if (displayId == display.getDisplayId()) { in getDisplay()
505 mDisplayId = proto.displayId; in WindowState()
DActivityManagerState.java273 mDisplayId = proto.displayId; in ActivityStack()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java336 public void onDisplayAdded(int displayId) {}
339 public void onDisplayChanged(int displayId) {
340 if (displayId == display.getDisplayId()) {
346 public void onDisplayRemoved(int displayId) {}
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java314 int displayId = getActivity().getWindow().getDecorView().getDisplay().getDisplayId(); in testClickWhenMagnified_matchesActualTouch() local
315 if (displayId != Display.DEFAULT_DISPLAY) { in testClickWhenMagnified_matchesActualTouch()