Searched refs:stack (Results 1 - 25 of 165) sorted by relevance

1234567

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/activity/
H A DMultiWindowStateChangedEvent.java30 public final TaskStack stack; field in class:MultiWindowStateChangedEvent
33 TaskStack stack) {
36 this.stack = stack;
32 MultiWindowStateChangedEvent(boolean inMultiWindow, boolean showDeferredAnimation, TaskStack stack) argument
H A DTaskStackUpdatedEvent.java28 * A new TaskStack instance representing the latest stack state.
30 public final TaskStack stack; field in class:TaskStackUpdatedEvent
33 public TaskStackUpdatedEvent(TaskStack stack, boolean inMultiWindow) { argument
34 this.stack = stack;
/frameworks/base/services/core/java/com/android/server/wm/
H A DDragResizeMode.java33 * Mode for resizing the docked (and adjacent) stack: Client surface is fullscreen, but window
38 static boolean isModeAllowedForStack(TaskStack stack, int mode) { argument
41 return stack.getWindowingMode() == WINDOWING_MODE_FREEFORM;
43 return stack.inSplitScreenWindowingMode();
H A DTaskWindowContainerController.java70 + " stack=" + stackController + " bounds=" + bounds);
72 final TaskStack stack = stackController.mContainer;
73 if (stack == null) {
74 throw new IllegalArgumentException("TaskWindowContainerController: invalid stack="
77 EventLog.writeEvent(WM_TASK_CREATED, taskId, stack.mStackId);
78 final Task task = createTask(taskId, stack, userId, resizeMode,
82 // top of its stack.
83 stack.addTask(task, position, showForAllUsers, toTop /* moveParents */);
88 Task createTask(int taskId, TaskStack stack, int userId, int resizeMode, argument
90 return new Task(taskId, stack, userI
[all...]
H A DDockedStackDividerController.java63 * Keeps information about the docked stack divider.
241 final TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility();
245 if (stack != null) {
246 if (stack.getDockSide() == DOCKED_LEFT) {
248 } else if (stack.getDockSide() == DOCKED_RIGHT) {
371 TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility();
373 // If the stack is invisible, we policy force hide it in WindowAnimator.shouldForceHide
374 final boolean visible = stack != null;
411 TaskStack stack = mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility();
412 if (stack
933 getMinimizeAmount(TaskStack stack, float t) argument
948 adjustMaximizeAmount(TaskStack stack, float t, float naturalAmount) argument
964 getClipRevealMeetFraction(TaskStack stack) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskStackTests.java48 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent);
49 final Task task1 = createTaskInStack(stack, 0 /* userId */);
50 final Task task2 = createTaskInStack(stack, 1 /* userId */);
53 stack.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */);
54 assertEquals(stack.mChildren.get(0), task2);
55 assertEquals(stack.mChildren.get(1), task1);
58 stack.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */);
59 assertEquals(stack.mChildren.get(0), task2);
60 assertEquals(stack.mChildren.get(1), task1);
65 final TaskStack stack
[all...]
H A DStackWindowControllerTests.java50 final TaskStack stack = stackController.mContainer;
52 assertNotNull(stack);
58 assertNull(stack.getDisplayContent());
70 final TaskStack stack = stackController.mContainer;
76 // For the case of deferred removal the stack controller will no longer be connected to the
78 // the stack window container is removed.
80 assertNull(stack.getController());
84 stack.removeImmediately();
91 // Create first stack on primary display.
100 // Create second display and put second stack o
[all...]
H A DRootWindowContainerTests.java28 // Add first stack we expect to be updated with configuration change.
29 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent);
30 stack.getOverrideConfiguration().windowConfiguration.setBounds(new Rect(0, 0, 5, 5));
47 // Ensure only first stack is returned.
49 assertTrue(results[0] == stack.mStackId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/dragndrop/
H A DDragEndCancelledEvent.java29 public final TaskStack stack; field in class:DragEndCancelledEvent
33 public DragEndCancelledEvent(TaskStack stack, Task task, TaskView taskView) { argument
34 this.stack = stack;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityDisplay.java72 * Counter for next free stack ID to use for dynamic activity stacks. Unique across displays.
82 * All of the stacks on this display. Order matters, topmost stack is in front of all other
92 /** All tokens used to put activities on this stack to sleep (including mOffToken) */
133 void addChild(ActivityStack stack, int position) { argument
139 if (DEBUG_STACK) Slog.v(TAG_STACK, "addChild: attaching " + stack
141 addStackReferenceIfNeeded(stack);
142 positionChildAt(stack, position);
146 void removeChild(ActivityStack stack) { argument
147 if (DEBUG_STACK) Slog.v(TAG_STACK, "removeChild: detaching " + stack
149 mStacks.remove(stack);
155 positionChildAtTop(ActivityStack stack) argument
159 positionChildAtBottom(ActivityStack stack) argument
163 positionChildAt(ActivityStack stack, int position) argument
174 getTopInsertPosition(ActivityStack stack, int candidatePosition) argument
365 onStackWindowingModeChanged(ActivityStack stack) argument
370 addStackReferenceIfNeeded(ActivityStack stack) argument
405 removeStackReferenceIfNeeded(ActivityStack stack) argument
577 isTopStack(ActivityStack stack) argument
581 isTopNotPinnedStack(ActivityStack stack) argument
601 getIndexOf(ActivityStack stack) argument
714 getStackAbove(ActivityStack stack) argument
723 moveStackBehindBottomMostVisibleStack(ActivityStack stack) argument
755 moveStackBehindStack(ActivityStack stack, ActivityStack behindStack) argument
[all...]
H A DActivityStackSupervisor.java228 // Used to indicate if an object (e.g. stack) that we are trying to get
236 // at the top of its container (e.g. stack).
249 /** True if the docked stack is currently being resized. */
279 // provided stack id
334 /** The stack containing the launcher app. Assumed to always be attached to
338 /** The stack currently receiving input or launching the next activity. */
341 /** If this is the same as mFocusedStack then the activity on the top of the focused stack has
342 * been resumed. If stacks are changing position this will hold the old stack until the new
343 * stack becomes resumed after which it will be set to mFocusedStack. */
383 /** The target stack bound
583 final ActivityStack stack; field in class:ActivityStackSupervisor.PendingActivityLaunch
702 isFocusedStack(ActivityStack stack) argument
2150 updateUserStackLocked(int userId, ActivityStack stack) argument
2547 isValidLaunchStack(ActivityStack stack, int displayId, ActivityRecord r) argument
2670 resizeStackLocked(ActivityStack stack, Rect bounds, Rect tempTaskBounds, Rect tempTaskInsetBounds, boolean preserveWindows, boolean allowResizeInDockedMode, boolean deferResume) argument
2994 removeStackInSurfaceTransaction(ActivityStack stack) argument
3028 removeStack(ActivityStack stack) argument
3242 getReparentTargetStack(TaskRecord task, ActivityStack stack, boolean toTop) argument
4409 getStackInfo(ActivityStack stack) argument
4743 findStackBehind(ActivityStack stack) argument
[all...]
H A DKeyguardController.java165 // Some stack visibility might change (e.g. docked stack)
270 final ActivityStack stack = display.getChildAt(stackNdx);
272 // Only the top activity of the focused stack on the default display may control
275 && mStackSupervisor.isFocusedStack(stack)) {
279 final ActivityRecord topDismissing = stack.getTopDismissingKeyguardActivity();
281 stack.topActivityOccludesKeyguard()
283 && stack.topRunningActivityLocked() == topDismissing
290 && stack.getTopDismissingKeyguardActivity() != null) {
291 mDismissingKeyguardActivity = stack
[all...]
/frameworks/base/tools/preload/
H A DProc.java46 /** Maps thread ID to operation stack. */
96 LinkedList<Operation> stack = stacks.get(threadId);
97 if (stack == null) {
98 stack = new LinkedList<Operation>();
99 stacks.put(threadId, stack);
102 if (!stack.isEmpty()) {
103 stack.getLast().subops.add(o);
106 stack.add(o);
118 LinkedList<Operation> stack = stacks.get(threadId);
120 if (stack
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DStackActivity.java36 setContentView(R.layout.stack);
38 StackView stack = findViewById(R.id.stack_view);
39 stack.setAdapter(new ArrayAdapter<Drawable>(this, android.R.layout.simple_list_item_1,
57 stack.setDisplayedChild(0);
/frameworks/base/cmds/statsd/src/matchers/
H A DCombinationLogMatchingTracker.cpp42 vector<bool>& stack) {
47 // mark this node as visited in the recursion stack.
48 stack[mIndex] = true;
73 if (stack[childIndex]) {
78 if (!allTrackers[childIndex]->init(allLogMatchers, allTrackers, matcherMap, stack)) {
90 // unmark this node in the recursion stack.
91 stack[mIndex] = false;
39 init(const vector<AtomMatcher>& allLogMatchers, const vector<sp<LogMatchingTracker>>& allTrackers, const unordered_map<int64_t, int>& matcherMap, vector<bool>& stack) argument
/frameworks/base/core/java/android/util/
H A DJsonWriter.java125 private final List<JsonScope> stack = new ArrayList<JsonScope>(); field in class:JsonWriter
127 stack.add(JsonScope.EMPTY_DOCUMENT);
240 stack.add(empty);
253 throw new IllegalStateException("Nesting problem: " + stack);
256 stack.remove(stack.size() - 1);
265 * Returns the value on the top of the stack.
268 return stack.get(stack.size() - 1);
272 * Replace the value on the top of the stack wit
[all...]
H A DJsonReader.java205 private final List<JsonScope> stack = new ArrayList<JsonScope>(); field in class:JsonReader
536 stack.clear();
537 stack.add(JsonScope.CLOSED);
567 return stack.get(stack.size() - 1);
571 return stack.remove(stack.size() - 1);
575 stack.add(newTop);
579 * Replace the value on the top of the stack with the given value.
582 stack
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DActivityStackSupervisorTests.java88 * stack supervisor is a test version so there will be no tasks present. We should expect
99 * This test ensures that an existing task in the pinned stack is moved to the fullscreen
100 * activity stack when a new task is added.
114 // Ensure full screen stack has both tasks.
117 // Move first activity to pinned stack.
128 // Move second activity to pinned stack.
140 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { argument
141 final ArrayList<TaskRecord> stackTasks = stack.getAllTasks();
201 final ActivityStack stack = mock(ActivityStack.class);
202 display.addChild(stack,
232 verifySleepTokenBehavior(ActivityDisplay display, KeyguardController keyguard, ActivityStack stack, boolean displaySleeping, boolean displayShouldSleep, boolean isFocusedStack, boolean keyguardShowing, boolean expectWakeFromSleep, boolean expectResumeTopActivity) argument
[all...]
/frameworks/compile/mclinker/include/mcld/Script/
H A DScriptScanner.h30 #include <stack>
56 std::stack<ScriptFile::Kind> m_StateStack;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiTestUtil.java28 * Walk up the stack and find the first method annotated with @Test
32 StackTraceElement[] stack = Thread.currentThread().getStackTrace();
33 for (StackTraceElement e : stack) {
41 throw new RuntimeException("Could not find class from stack", ex);
55 throw new RuntimeException("Could not find a test method in the stack");
/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp22 #include <stack>
43 std::stack<xml::Element*> node_stack;
65 static void FinishPendingText(Stack* stack) { argument
66 if (stack->last_text_node != nullptr) {
67 if (!stack->last_text_node->text.empty()) {
68 CHECK(!stack->node_stack.empty());
69 stack->node_stack.top()->AppendChild(std::move(stack->last_text_node));
73 stack->last_text_node = nullptr;
79 Stack* stack local
96 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); local
107 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); local
145 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); local
155 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); local
176 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); local
186 Stack stack; local
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphReader.java42 public void execute(CommandStack stack); argument
88 public void execute(CommandStack stack) { argument
90 stack.getFactory().addPackage(mPackageName);
105 public void execute(CommandStack stack) { argument
120 public void execute(CommandStack stack) { argument
123 filter = stack.getFactory().createFilterByClassName(mClassName,
125 stack.getContext());
129 stack.getBuilder().addFilter(filter);
143 public void execute(CommandStack stack) { argument
144 stack
158 execute(CommandStack stack) argument
173 execute(CommandStack stack) argument
190 execute(CommandStack stack) argument
217 execute(CommandStack stack) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DWatchdogDiagnostics.java47 * Print the annotated stack for the given thread. If the annotated stack cannot be retrieved,
52 AnnotatedStackTraceElement stack[] = VMStack.getAnnotatedThreadStackTrace(thread);
53 if (stack == null) {
56 out.println(thread.getName() + " annotated stack trace:");
57 for (AnnotatedStackTraceElement element : stack) {
80 // Fall back to "regular" stack trace, if necessary.
81 Slog.w(Watchdog.TAG, blockedThread.getName() + " stack trace:");
/frameworks/base/cmds/statsd/src/condition/
H A DCombinationConditionTracker.cpp45 vector<bool>& stack) {
51 // mark this node as visited in the recursion stack.
52 stack[mIndex] = true;
76 if (stack[childIndex]) {
83 conditionIdIndexMap, stack);
103 // unmark this node in the recursion stack.
104 stack[mIndex] = false;
42 init(const vector<Predicate>& allConditionConfig, const vector<sp<ConditionTracker>>& allConditionTrackers, const unordered_map<int64_t, int>& conditionIdIndexMap, vector<bool>& stack) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
H A DTaskViewFocusFrame.java97 // The frame only shows up in the grid layout. It shouldn't show up in the stack
126 final TaskStack stack = mSv.getStack();
127 final int taskCount = stack.getTaskCount();
128 final int k = stack.indexOfTask(mSv.getFocusedTask());

Completed in 311 milliseconds

1234567