Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 268) sorted by relevance

1234567891011

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackTests.java50 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt() local
51 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testStackPositionChildAt()
52 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testStackPositionChildAt()
55 stack.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */); in testStackPositionChildAt()
56 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
57 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt()
60 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testStackPositionChildAt()
61 assertEquals(stack.mChildren.get(0), task2); in testStackPositionChildAt()
62 assertEquals(stack.mChildren.get(1), task1); in testStackPositionChildAt()
67 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testClosingAppDifferentStackOrientation() local
[all …]
DWindowTestUtils.java40 static Task createTaskInStack(WindowManagerService service, TaskStack stack, in createTaskInStack() argument
43 final Task newTask = new Task(sNextTaskId++, stack, userId, service, 0, false, in createTaskInStack()
45 stack.addTask(newTask, POSITION_TOP); in createTaskInStack()
136 TestTask(int taskId, TaskStack stack, int userId, WindowManagerService service, in TestTask() argument
139 super(taskId, stack, userId, service, resizeMode, supportsPictureInPicture, in TestTask()
141 stack.addTask(this, POSITION_TOP); in TestTask()
168 static TestTask createTestTask(TaskStack stack) { in createTestTask() argument
169 return new TestTask(sNextTaskId++, stack, 0, stack.mWmService, RESIZE_MODE_UNRESIZEABLE, in createTestTask()
DRootActivityContainerTests.java148 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { in ensureStackPlacement() argument
149 final ArrayList<TaskRecord> stackTasks = stack.getAllTasks(); in ensureStackPlacement()
166 final ActivityStack stack = mock(ActivityStack.class); in testApplySleepTokens() local
167 display.addChild(stack, 0 /* position */); in testApplySleepTokens()
171 verifySleepTokenBehavior(display, keyguard, stack, true /*displaySleeping*/, in testApplySleepTokens()
178 verifySleepTokenBehavior(display, keyguard, stack, true /*displaySleeping*/, in testApplySleepTokens()
185 verifySleepTokenBehavior(display, keyguard, stack, true /*displaySleeping*/, in testApplySleepTokens()
191 verifySleepTokenBehavior(display, keyguard, stack, false /*displaySleeping*/, in testApplySleepTokens()
198 ActivityStack stack, boolean displaySleeping, boolean displayShouldSleep, in verifySleepTokenBehavior() argument
201 reset(stack); in verifySleepTokenBehavior()
[all …]
DActivityDisplayTests.java70 final ActivityStack stack = in testLastFocusedStackIsUpdatedWhenMovingStack() local
74 stack.moveToFront("moveStackToFront"); in testLastFocusedStackIsUpdatedWhenMovingStack()
76 assertTrue(stack.isFocusedStackOnDisplay()); in testLastFocusedStackIsUpdatedWhenMovingStack()
79 stack.moveToBack("moveStackToBack", null /* task */); in testLastFocusedStackIsUpdatedWhenMovingStack()
81 assertEquals(stack, display.getLastFocusedStack()); in testLastFocusedStackIsUpdatedWhenMovingStack()
159 final ActivityStack stack = createFullscreenStackWithSimpleActivityAt(display); in testNotResumeHomeStackOnRemovingDisplay() local
160 stack.topRunningActivityLocked().makeFinishingLocked(); in testNotResumeHomeStackOnRemovingDisplay()
185 final ActivityStack stack = new StackBuilder(mRootActivityContainer).build(); in testTopRunningActivity() local
186 final ActivityRecord activity = stack.getTopActivity(); in testTopRunningActivity()
201 stack.moveToFront("testStackToFront"); in testTopRunningActivity()
[all …]
DTaskRecordTests.java181 ActivityStack stack = display.createStack(WINDOWING_MODE_FREEFORM, ACTIVITY_TYPE_STANDARD, in testFitWithinBounds() local
183 TaskRecord task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds()
184 final Configuration parentConfig = stack.getConfiguration(); in testFitWithinBounds()
219 ActivityStack stack = new StackBuilder(mRootActivityContainer).setDisplay(display) in testBoundsOnModeChangeFreeformToFullscreen() local
221 TaskRecord task = stack.getChildAt(0); in testBoundsOnModeChangeFreeformToFullscreen()
234 stack.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testBoundsOnModeChangeFreeformToFullscreen()
239 stack.setWindowingMode(WINDOWING_MODE_FREEFORM); in testBoundsOnModeChangeFreeformToFullscreen()
274 ActivityStack stack = new StackBuilder(mRootActivityContainer) in testFullscreenBoundsForcedOrientation() local
276 TaskRecord task = stack.getChildAt(0); in testFullscreenBoundsForcedOrientation()
290 ActivityRecord top = new ActivityBuilder(mService).setTask(task).setStack(stack).build(); in testFullscreenBoundsForcedOrientation()
[all …]
DRunningTasksTest.java64 final ActivityStack stack = in testCollectTasksByLastActiveTime() local
66 display.addChild(stack, POSITION_BOTTOM); in testCollectTasksByLastActiveTime()
100 private TaskRecord createTask(ActivityStack stack, String className, int taskId, in createTask() argument
105 .setStack(stack) in createTask()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityDisplay.java204 void addChild(ActivityStack stack, int position) { in addChild() argument
210 if (DEBUG_STACK) Slog.v(TAG_STACK, "addChild: attaching " + stack in addChild()
212 addStackReferenceIfNeeded(stack); in addChild()
213 positionChildAt(stack, position); in addChild()
217 void removeChild(ActivityStack stack) { in removeChild() argument
218 if (DEBUG_STACK) Slog.v(TAG_STACK, "removeChild: detaching " + stack in removeChild()
220 mStacks.remove(stack); in removeChild()
221 if (mPreferredTopFocusableStack == stack) { in removeChild()
224 removeStackReferenceIfNeeded(stack); in removeChild()
227 onStackOrderChanged(stack); in removeChild()
[all …]
DRootActivityContainer.java675 final ActivityStack stack = display.getChildAt(j); in getTopVisibleActivities() local
677 if (stack.shouldBeVisible(null /* starting */)) { in getTopVisibleActivities()
678 final ActivityRecord top = stack.getTopActivity(); in getTopVisibleActivities()
680 if (stack == topFocusedStack) { in getTopVisibleActivities()
731 boolean isTopDisplayFocusedStack(ActivityStack stack) { in isTopDisplayFocusedStack() argument
732 return stack != null && stack == getTopDisplayFocusedStack(); in isTopDisplayFocusedStack()
746 final ActivityStack stack = display.getChildAt(stackNdx); in updatePreviousProcess() local
747 if (isTopDisplayFocusedStack(stack)) { in updatePreviousProcess()
748 final ActivityRecord resumedActivity = stack.getResumedActivity(); in updatePreviousProcess()
751 } else if (stack.mPausingActivity != null) { in updatePreviousProcess()
[all …]
DDockedStackDividerController.java375 TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); in reevaluateVisibility() local
378 final boolean visible = stack != null; in reevaluateVisibility()
419 TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); in positionDockedStackedDivider() local
420 if (stack == null) { in positionDockedStackedDivider()
429 stack.getDimBounds(mTmpRect); in positionDockedStackedDivider()
431 int side = stack.getDockSide(); in positionDockedStackedDivider()
527 final TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility(); in notifyDockedStackExistsChanged() local
528 mOriginalDockedSide = stack.getDockSideForDisplay(mDisplayContent); in notifyDockedStackExistsChanged()
562 final TaskStack stack = in notifyDockedStackMinimizedChanged() local
569 mMaximizeMeetFraction = getClipRevealMeetFraction(stack); in notifyDockedStackMinimizedChanged()
[all …]
DKeyguardController.java400 final ActivityStack stack = in dismissDockedStackIfNeeded() local
402 if (stack == null) { in dismissDockedStackIfNeeded()
405 mStackSupervisor.moveTasksToFullscreenStackLocked(stack, in dismissDockedStackIfNeeded()
406 stack.isFocusedStackOnDisplay()); in dismissDockedStackIfNeeded()
483 final ActivityStack stack = getStackForControllingOccluding(display); in visibilitiesUpdated() local
484 if (stack != null) { in visibilitiesUpdated()
485 final ActivityRecord topDismissing = stack.getTopDismissingKeyguardActivity(); in visibilitiesUpdated()
486 mOccluded = stack.topActivityOccludesKeyguard() || (topDismissing != null in visibilitiesUpdated()
487 && stack.topRunningActivityLocked() == topDismissing in visibilitiesUpdated()
491 if (stack.getTopDismissingKeyguardActivity() != null) { in visibilitiesUpdated()
[all …]
DActivityStackSupervisor.java404 final ActivityStack stack; field in ActivityStackSupervisor.PendingActivityLaunch
412 stack = _stack; in PendingActivityLaunch()
719 final ActivityStack stack = task.getStack(); in realStartActivityLocked() local
877 stack.requestFinishActivityLocked(r.appToken, Activity.RESULT_CANCELED, null, in realStartActivityLocked()
893 if (stack.updateLRUListLocked(r)) { in realStartActivityLocked()
902 stack.minimalResumeActivityLocked(r); in realStartActivityLocked()
919 if (mRootActivityContainer.isTopDisplayFocusedStack(stack)) { in realStartActivityLocked()
1336 final ActivityStack stack = r.getActivityStack(); in activityIdleInternalLocked() local
1337 if (stack != null) { in activityIdleInternalLocked()
1339 stack.finishCurrentActivityLocked(r, ActivityStack.FINISH_IMMEDIATELY, false, in activityIdleInternalLocked()
[all …]
DDragResizeMode.java38 static boolean isModeAllowedForStack(TaskStack stack, int mode) { in isModeAllowedForStack() argument
41 return stack.getWindowingMode() == WINDOWING_MODE_FREEFORM; in isModeAllowedForStack()
43 return stack.inSplitScreenWindowingMode(); in isModeAllowedForStack()
DDisplayContent.java614 final TaskStack stack = w.getStack();
615 if (stack != null) {
616 stack.setAnimationBackground(winAnimator, color);
1990 TaskStack stack = mTaskStackContainers.getSplitScreenPrimaryStack(); in getSplitScreenPrimaryStack() local
1991 return (stack != null && stack.isVisible()) ? stack : null; in getSplitScreenPrimaryStack()
2044 void onStackWindowingModeChanged(TaskStack stack) { in onStackWindowingModeChanged() argument
2045 mTaskStackContainers.onStackWindowingModeChanged(stack); in onStackWindowingModeChanged()
2382 void setStackOnDisplay(int stackId, boolean onTop, TaskStack stack) { in setStackOnDisplay() argument
2387 mTaskStackContainers.addStackToDisplay(stack, onTop); in setStackOnDisplay()
2390 void moveStackToDisplay(TaskStack stack, boolean onTop) { in moveStackToDisplay() argument
[all …]
/frameworks/base/tools/preload/
DProc.java96 LinkedList<Operation> stack = stacks.get(threadId); in startOperation() local
97 if (stack == null) { in startOperation()
98 stack = new LinkedList<Operation>(); in startOperation()
99 stacks.put(threadId, stack); in startOperation()
102 if (!stack.isEmpty()) { in startOperation()
103 stack.getLast().subops.add(o); in startOperation()
106 stack.add(o); in startOperation()
118 LinkedList<Operation> stack = stacks.get(threadId); in endOperation() local
120 if (stack == null || stack.isEmpty()) { in endOperation()
125 Operation o = stack.getLast(); in endOperation()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp44 std::stack<xml::Element*> node_stack;
66 static void FinishPendingText(Stack* stack) { in FinishPendingText() argument
67 if (stack->last_text_node != nullptr) { in FinishPendingText()
68 if (!stack->last_text_node->text.empty()) { in FinishPendingText()
69 CHECK(!stack->node_stack.empty()); in FinishPendingText()
70 stack->node_stack.top()->AppendChild(std::move(stack->last_text_node)); in FinishPendingText()
74 stack->last_text_node = nullptr; in FinishPendingText()
80 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); in StartNamespaceHandler() local
81 FinishPendingText(stack); in StartNamespaceHandler()
89 if (stack->pending_element == nullptr) { in StartNamespaceHandler()
[all …]
/frameworks/base/core/java/android/util/
DJsonWriter.java125 private final List<JsonScope> stack = new ArrayList<JsonScope>(); field in JsonWriter
127 stack.add(JsonScope.EMPTY_DOCUMENT);
240 stack.add(empty); in open()
253 throw new IllegalStateException("Nesting problem: " + stack); in close()
256 stack.remove(stack.size() - 1); in close()
268 return stack.get(stack.size() - 1); in peek()
275 stack.set(stack.size() - 1, topOfStack); in replaceTop()
467 for (int i = 1; i < stack.size(); i++) { in newline()
481 throw new IllegalStateException("Nesting problem: " + stack); in beforeName()
525 throw new IllegalStateException("Nesting problem: " + stack); in beforeValue()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java42 public void execute(CommandStack stack); in execute() argument
88 public void execute(CommandStack stack) { in execute() argument
90 stack.getFactory().addPackage(mPackageName); in execute()
105 public void execute(CommandStack stack) { in execute() argument
120 public void execute(CommandStack stack) { in execute() argument
123 filter = stack.getFactory().createFilterByClassName(mClassName, in execute()
125 stack.getContext()); in execute()
129 stack.getBuilder().addFilter(filter); in execute()
143 public void execute(CommandStack stack) { in execute() argument
144 stack.getBuilder().addFrameSlotSource(mName, mSlotName); in execute()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/activity/
DTaskStackUpdatedEvent.java30 public final TaskStack stack; field in TaskStackUpdatedEvent
33 public TaskStackUpdatedEvent(TaskStack stack, boolean inMultiWindow) { in TaskStackUpdatedEvent() argument
34 this.stack = stack; in TaskStackUpdatedEvent()
DMultiWindowStateChangedEvent.java30 public final TaskStack stack; field in MultiWindowStateChangedEvent
33 TaskStack stack) { in MultiWindowStateChangedEvent() argument
36 this.stack = stack; in MultiWindowStateChangedEvent()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/ui/dragndrop/
DDragEndCancelledEvent.java29 public final TaskStack stack; field in DragEndCancelledEvent
33 public DragEndCancelledEvent(TaskStack stack, Task task, TaskView taskView) { in DragEndCancelledEvent() argument
34 this.stack = stack; in DragEndCancelledEvent()
/frameworks/base/media/apex/java/android/media/
DCloseGuard.java231 Throwable stack = new Throwable(message); in open() local
232 closerNameOrAllocationInfo = stack; in open()
235 tracker.open(stack); in open()
273 Throwable stack = (Throwable) closerNameOrAllocationInfo; in warnIfOpen() local
274 reporter.report(message, stack); in warnIfOpen()
/frameworks/base/cmds/statsd/src/matchers/
DCombinationLogMatchingTracker.cpp42 vector<bool>& stack) { in init() argument
48 stack[mIndex] = true; in init()
73 if (stack[childIndex]) { in init()
78 if (!allTrackers[childIndex]->init(allLogMatchers, allTrackers, matcherMap, stack)) { in init()
91 stack[mIndex] = false; in init()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DStackActivity.java36 setContentView(R.layout.stack); in onCreate()
38 StackView stack = findViewById(R.id.stack_view); in onCreate() local
39 stack.setAdapter(new ArrayAdapter<Drawable>(this, android.R.layout.simple_list_item_1, in onCreate()
57 stack.setDisplayedChild(0); in onCreate()
/frameworks/base/cmds/statsd/src/condition/
DCombinationConditionTracker.cpp45 vector<bool>& stack) { in init() argument
52 stack[mIndex] = true; in init()
76 if (stack[childIndex]) { in init()
83 conditionIdIndexMap, stack); in init()
104 stack[mIndex] = false; in init()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsImpl.java157 TaskStack stack = plan.getTaskStack(); in onTaskStackChangedBackground() local
165 updateDummyStackViewLayout(mBackgroundLayoutAlgorithm, stack, windowRect); in onTaskStackChangedBackground()
174 stack.getTasks()); in onTaskStackChangedBackground()
521 TaskStack stack = sInstanceLoadPlan.getTaskStack();
522 if (stack.getTaskCount() > 0) {
531 updateHeaderBarLayout(stack, null /* window rect override*/);
746 TaskStack stack, Rect windowRect) { in updateDummyStackViewLayout() argument
767 if (stack != null) { in updateDummyStackViewLayout()
790 private void updateHeaderBarLayout(TaskStack stack, Rect windowRectOverride) { in updateHeaderBarLayout() argument
794 updateDummyStackViewLayout(mDummyStackView.getStackAlgorithm(), stack, windowRect); in updateHeaderBarLayout() local
[all …]

1234567891011