/cts/tests/tests/keystore/src/android/server/am/ |
D | ActivityAndWindowManagersState.java | 151 void waitForFocusedStack(int stackId) { in waitForFocusedStack() argument 152 waitForWithAmState(state -> state.getFocusedStackId() == stackId, in waitForFocusedStack() 237 final int stackId = state.stackId; in shouldWaitForActivities() local 254 if (stackId != INVALID_STACK_ID && ws.getStackId() != stackId) { in shouldWaitForActivities() 322 final int stackId = aStack.mStackId; in assertSanity() local 324 assertEquals("Stack can only contain its own tasks", stackId, aTask.mStackId); in assertSanity() 334 void assertFocusedStack(String msg, int stackId) { in assertFocusedStack() argument 335 assertEquals(msg, stackId, mAmState.getFocusedStackId()); in assertFocusedStack() 351 final int stackId = aStack.mStackId; in taskListsInAmAndWmAreEqual() local 352 final WindowStack wStack = mWmState.getStack(stackId); in taskListsInAmAndWmAreEqual() [all …]
|
D | WaitForValidActivityState.java | 42 public final int stackId; field in WaitForValidActivityState 53 this.stackId = INVALID_STACK_ID; in WaitForValidActivityState() 61 this.stackId = builder.mStackId; in WaitForValidActivityState() 81 if (stackId != INVALID_STACK_ID) { in toString() 82 sb.append(" stack=").append(stackId); in toString()
|
D | WindowManagerState.java | 279 WindowStack getStack(int stackId) { in getStack() argument 281 if (stackId == stack.mStackId) { in getStack() 506 mStackId = proto.stackId; in WindowState()
|
D | ActivityManagerState.java | 312 mStackId = proto.stackId; in ActivityTask()
|
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
D | ActivityAndWindowManagersState.java | 283 void waitForFocusedStack(int stackId) { in waitForFocusedStack() argument 284 waitForWithAmState(state -> state.getFocusedStackId() == stackId, in waitForFocusedStack() 387 final int stackId = state.stackId; in shouldWaitForActivities() local 405 if (stackId != INVALID_STACK_ID && ws.getStackId() != stackId) { in shouldWaitForActivities() 500 final int stackId = aStack.mStackId; in assertSanity() local 502 assertEquals("Stack can only contain its own tasks", stackId, aTask.mStackId); in assertSanity() 521 void assertFrontStack(String msg, int stackId) { in assertFrontStack() argument 522 assertEquals(msg, stackId, mAmState.getFrontStackId(DEFAULT_DISPLAY)); in assertFrontStack() 523 assertEquals(msg, stackId, mWmState.getFrontStackId(DEFAULT_DISPLAY)); in assertFrontStack() 542 void assertFocusedStack(String msg, int stackId) { in assertFocusedStack() argument [all …]
|
D | WaitForValidActivityState.java | 42 public final int stackId; field in WaitForValidActivityState 53 this.stackId = INVALID_STACK_ID; in WaitForValidActivityState() 61 this.stackId = builder.mStackId; in WaitForValidActivityState() 81 if (stackId != INVALID_STACK_ID) { in toString() 82 sb.append(" stack=").append(stackId); in toString() 133 public Builder setStackId(int stackId) { in setStackId() argument 134 mStackId = stackId; in setStackId()
|
D | ActivityManagerState.java | 237 boolean containsStack(int stackId) { in containsStack() argument 238 return getStackById(stackId) != null; in containsStack() 256 ActivityStack getStackById(int stackId) { in getStackById() argument 258 if (stackId == stack.mStackId) { in getStackById() 635 mStackId = proto.stackId; in ActivityTask()
|
D | WindowManagerState.java | 419 boolean containsStack(int stackId) { in containsStack() argument 421 if (stackId == stack.mStackId) { in containsStack() 484 WindowStack getStack(int stackId) { in getStack() argument 486 if (stackId == stack.mStackId) { in getStack() 789 mStackId = proto.stackId; in WindowState()
|
D | ActivityManagerTestBase.java | 220 protected static String getMoveToPinnedStackCommand(int stackId) { in getMoveToPinnedStackCommand() argument 221 return String.format(AM_MOVE_TOP_ACTIVITY_TO_PINNED_STACK_COMMAND_FORMAT, stackId); in getMoveToPinnedStackCommand() 439 protected void moveActivityToStack(ComponentName activityName, int stackId) { in moveActivityToStack() argument 442 final String cmd = AM_MOVE_TASK + taskId + " " + stackId + " true"; in moveActivityToStack() 446 .setStackId(stackId) in moveActivityToStack() 466 protected void resizeStack(int stackId, int stackLeft, int stackTop, int stackWidth, in resizeStack() argument 468 executeShellCommand(AM_RESIZE_STACK + String.format("%d %d %d %d %d", stackId, stackLeft, in resizeStack()
|
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerActivityVisibilityTests.java | 89 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testTranslucentActivityOnTopOfPinnedStack() local 92 assertNotEquals(stackId, INVALID_STACK_ID); in testTranslucentActivityOnTopOfPinnedStack() 93 executeShellCommand(getMoveToPinnedStackCommand(stackId)); in testTranslucentActivityOnTopOfPinnedStack() 140 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testHomeVisibleOnActivityTaskPinned() local 143 assertNotEquals(stackId, INVALID_STACK_ID); in testHomeVisibleOnActivityTaskPinned() 144 executeShellCommand(getMoveToPinnedStackCommand(stackId)); in testHomeVisibleOnActivityTaskPinned()
|
D | ActivityManagerPinnedStackTests.java | 275 final int stackId = getPinnedStack().mStackId; in testPinnedStackOutOfBoundsInsetsNonNegative() local 278 resizeStack(stackId, left, top, left + 500, top + 500); in testPinnedStackOutOfBoundsInsetsNonNegative() 812 int stackId = launchActivityInNewDynamicStack(RESUME_WHILE_PAUSING_ACTIVITY); in testEnterPipWithResumeWhilePausingActivityNoStop() local 813 resizeStack(stackId, 0, 0, 500, 500); in testEnterPipWithResumeWhilePausingActivityNoStop() 1049 int stackId = stack.mStackId; in testNoResumeAfterTaskOverlayFinishes() local 1058 executeShellCommand("am stack resize-animated " + stackId + " 20 20 500 500"); in testNoResumeAfterTaskOverlayFinishes() 1617 final int stackId = mAmWmState.getAmState().getStackIdByActivity(topActivityName); in pinnedStackTester() local 1619 assertNotEquals(stackId, INVALID_STACK_ID); in pinnedStackTester() 1620 executeShellCommand(getMoveToPinnedStackCommand(stackId)); in pinnedStackTester()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | CrossAppDragAndDropTests.java | 169 private String getMoveTaskCommand(int taskId, int stackId) { in getMoveTaskCommand() argument 170 return AM_MOVE_TASK + taskId + " " + stackId + " true"; in getMoveTaskCommand()
|