Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/
DRunningTasks.java77 final Task focusedTask = dc.mFocusedApp != null ? dc.mFocusedApp.getTask() : null; in getTasks()
78 if (focusedTask != null) { in getTasks()
79 mTmpFocusedTasks.add(focusedTask); in getTasks()
85 final Task focusedTask = dc != null in getTasks() local
89 final boolean rootContainsFocusedTask = focusedTask != null in getTasks()
90 && focusedTask.isDescendantOf(root); in getTasks()
92 mTmpFocusedTasks.add(focusedTask); in getTasks()
99 final Task focusedTask = mTmpFocusedTasks.get(i); in getTasks() local
100 final boolean containsFocusedTask = mTmpVisibleTasks.remove(focusedTask); in getTasks()
103 mTmpSortedTasks.add(focusedTask); in getTasks()
DActivityMetricsLogger.java578 final Task focusedTask = mSupervisor.mRootWindowContainer.getTopDisplayFocusedRootTask(); in logWindowState() local
579 if (focusedTask == null) return; in logWindowState()
580 if (focusedTask.isActivityTypeAssistant()) { in logWindowState()
585 @WindowingMode final int windowingMode = focusedTask.getWindowingMode(); in logWindowState()
598 Slog.wtf(TAG, "Unknown windowing mode for task=" + focusedTask in logWindowState()
DTask.java4518 final Task focusedTask = mDisplayContent.mFocusedApp.getTask();
4519 return focusedTask == this || (focusedTask != null && focusedTask.getParent() == this);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DInstantAppNotifier.java155 final RootTaskInfo focusedTask = in updateForegroundInstantApps() local
157 if (focusedTask != null) { in updateForegroundInstantApps()
159 focusedTask.configuration.windowConfiguration in updateForegroundInstantApps()
164 checkAndPostForStack(focusedTask, notifs, noMan, pm); in updateForegroundInstantApps()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRunningTasksTest.java135 final Task focusedTask = tasks.get(numTasks - 1); in testGetTasksSortByFocusAndVisibility() local
136 doReturn(true).when(focusedTask).isVisible(); in testGetTasksSortByFocusAndVisibility()
137 display.mFocusedApp = focusedTask.getTopNonFinishingActivity(); in testGetTasksSortByFocusAndVisibility()
DWindowManagerServiceTests.java193 Task focusedTask = createTaskInRootTask(focusedRootTask, 0 /* userId */); in testTaskFocusChange_rootTaskNotHomeType_focusChanges() local
194 WindowState focusedWindow = createAppWindow(focusedTask, TYPE_APPLICATION, "App Window"); in testTaskFocusChange_rootTaskNotHomeType_focusChanges()
214 Task focusedTask = createTaskInRootTask(focusedRootTask, 0 /* userId */); in testTaskFocusChange_rootTaskHomeTypeWithSameTaskDisplayArea_focusDoesNotChange() local
215 WindowState focusedWindow = createAppWindow(focusedTask, TYPE_APPLICATION, "App Window"); in testTaskFocusChange_rootTaskHomeTypeWithSameTaskDisplayArea_focusDoesNotChange()
237 Task focusedTask = createTaskInRootTask(focusedRootTask, 0 /* userId */); in testTaskFocusChange_rootTaskHomeTypeWithDifferentTaskDisplayArea_focusChanges() local
238 WindowState focusedWindow = createAppWindow(focusedTask, TYPE_APPLICATION, "App Window"); in testTaskFocusChange_rootTaskHomeTypeWithDifferentTaskDisplayArea_focusChanges()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java399 final RootTaskInfo focusedTask = mInjector.getFocusedStack(); in handleBrightnessChanged() local
400 if (focusedTask != null && focusedTask.topActivity != null) { in handleBrightnessChanged()
401 builder.setUserId(focusedTask.userId); in handleBrightnessChanged()
402 builder.setPackageName(focusedTask.topActivity.getPackageName()); in handleBrightnessChanged()