Home
last modified time | relevance | path

Searched refs:stackId (Results 1 – 7 of 7) sorted by relevance

/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DActivityAndWindowManagersState.java156 void waitForValidState(ITestDevice device, String waitForActivityVisible, int stackId) in waitForValidState() argument
158 waitForValidState(device, new String[]{waitForActivityVisible}, new int[]{stackId}, in waitForValidState()
257 void waitForFocusedStack(ITestDevice device, int stackId) throws Exception { in waitForFocusedStack() argument
258 waitForWithAmState(device, state -> state.getFocusedStackId() == stackId, in waitForFocusedStack()
446 final int stackId = aStack.mStackId; in assertSanity() local
448 assertEquals("Stack can only contain its own tasks", stackId, aTask.mStackId); in assertSanity()
457 void assertContainsStack(String msg, int stackId) throws Exception { in assertContainsStack() argument
458 assertTrue(msg, mAmState.containsStack(stackId)); in assertContainsStack()
459 assertTrue(msg, mWmState.containsStack(stackId)); in assertContainsStack()
462 void assertDoesNotContainStack(String msg, int stackId) throws Exception { in assertDoesNotContainStack() argument
[all …]
DActivityManagerState.java167 final String stackId = matcher.group(2); in parseSysDump() local
168 log(stackId); in parseSysDump()
169 mFocusedStackId = Integer.parseInt(stackId); in parseSysDump()
225 boolean containsStack(int stackId) { in containsStack() argument
226 return getStackById(stackId) != null; in containsStack()
229 ActivityStack getStackById(int stackId) { in getStackById() argument
231 if (stackId == stack.mStackId) { in getStackById()
238 int getStackPosition(int stackId) { in getStackPosition() argument
240 if (stackId == mStacks.get(i).mStackId) { in getStackPosition()
367 ActivityTask getTaskByActivityName(String activityName, int stackId) { in getTaskByActivityName() argument
[all …]
DActivityManagerTestBase.java291 for (Integer stackId : stackIds) { in removeStacks()
292 executeShellCommand(AM_REMOVE_STACK + stackId); in removeStacks()
426 protected void launchActivityInStack(String activityName, int stackId, in launchActivityInStack() argument
428 executeShellCommand(getAmStartCmd(activityName, keyValuePairs) + " --stack " + stackId); in launchActivityInStack()
430 mAmWmState.waitForValidState(mDevice, activityName, stackId); in launchActivityInStack()
460 protected void moveActivityToStack(String activityName, int stackId) throws Exception { in moveActivityToStack() argument
462 final String cmd = AM_MOVE_TASK + taskId + " " + stackId + " true"; in moveActivityToStack()
465 mAmWmState.waitForValidState(mDevice, activityName, stackId); in moveActivityToStack()
484 protected void resizeStack(int stackId, int stackLeft, int stackTop, int stackWidth, in resizeStack() argument
486 executeShellCommand(AM_RESIZE_STACK + String.format("%d %d %d %d %d", stackId, stackLeft, in resizeStack()
DWindowManagerState.java475 boolean containsStack(int stackId) { in containsStack() argument
477 if (stackId == stack.mStackId) { in containsStack()
521 WindowStack getStack(int stackId) { in getStack() argument
523 if (stackId == stack.mStackId) { in getStack()
531 int getStackPosition(int stackId) { in getStackPosition() argument
533 if (stackId == mStacks.get(i).mStackId) { in getStackPosition()
611 final String stackId = matcher.group(1); in create() local
612 log(stackId); in create()
613 stack.mStackId = Integer.parseInt(stackId); in create()
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
DActivityManagerManifestLayoutTests.java92 private void testMinimalSize(int stackId) throws Exception { in testMinimalSize() argument
97 if (stackId == FREEFORM_WORKSPACE_STACK_ID) { in testMinimalSize()
98 launchActivityInStack(activityName, stackId); in testMinimalSize()
DActivityManagerPinnedStackTests.java730 int stackId = launchActivityInNewDynamicStack(RESUME_WHILE_PAUSING_ACTIVITY); in testEnterPipWithResumeWhilePausingActivityNoStop() local
731 resizeStack(stackId, 0, 0, 500, 500); in testEnterPipWithResumeWhilePausingActivityNoStop()
1219 private void launchActivityAsTaskOverlay(String activityName, int taskId, int stackId) in launchActivityAsTaskOverlay() argument
1223 mAmWmState.waitForValidState(mDevice, activityName, stackId); in launchActivityAsTaskOverlay()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/
DCrossAppDragAndDropTests.java154 private String getMoveTaskCommand(int taskId, int stackId) throws Exception { in getMoveTaskCommand() argument
155 return AM_MOVE_TASK + taskId + " " + stackId + " true"; in getMoveTaskCommand()