Home
last modified time | relevance | path

Searched refs:topTask (Results 1 – 9 of 9) sorted by relevance

/aosp12/packages/services/Car/service/src/com/android/car/pm/
H A DCarPackageManagerService.java1303 for (TopTaskInfoContainer topTask : topTasks) { in blockTopActivitiesIfNecessary()
1304 if (topTask == null) { in blockTopActivitiesIfNecessary()
1308 blockTopActivityIfNecessary(topTask); in blockTopActivitiesIfNecessary()
1316 && !topTask.topActivity.equals( in blockTopActivityIfNecessary()
1323 doBlockTopActivityIfNotAllowed(topTask); in blockTopActivityIfNecessary()
1328 if (topTask.topActivity == null) { in doBlockTopActivityIfNotAllowed()
1331 boolean allowed = isActivityAllowed(topTask); in doBlockTopActivityIfNotAllowed()
1354 if (topTask.taskInfo.childTaskIds[i] == topTask.taskId) { in doBlockTopActivityIfNotAllowed()
1372 topTask.topActivity.flattenToShortString(), topTask.taskId, taskRootActivity, in doBlockTopActivityIfNotAllowed()
1694 if (topTask == null) { in onActivityLaunch()
[all …]
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DSystemActivityMonitoringServiceTest.java229 public void onActivityLaunch(TopTaskInfoContainer topTask) { in onActivityLaunch() argument
231 if (!getTestContext().getPackageName().equals(topTask.topActivity.getPackageName())) { in onActivityLaunch()
233 + topTask.topActivity.getClassName()); in onActivityLaunch()
236 if (!topTask.topActivity.equals(mDesiredComponent)) { in onActivityLaunch()
238 topTask.topActivity.getClassName(), mDesiredComponent)); in onActivityLaunch()
242 mTopTask = topTask; in onActivityLaunch()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DSystemActivityMonitoringService.java101 void onActivityLaunch(TopTaskInfoContainer topTask); in onActivityLaunch() argument
193 TopTaskInfoContainer topTask = mTopTasks.valueAt(i); in getTopTasks() local
194 if (topTask == null) { in getTopTasks()
199 tasks.add(topTask); in getTopTasks()
328 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
331 mTopTasks.put(displayId, topTask); in updateTasks()
336 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
339 Slog.i(CarLog.TAG_AM, "Notifying about top task: " + topTask.toString()); in updateTasks()
341 listener.onActivityLaunch(topTask); in updateTasks()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DRecentTasks.java224 final Task topTask = stack != null ? stack.getTopMostTask() : null;
225 resetFreezeTaskListReordering(topTask);
301 void resetFreezeTaskListReordering(Task topTask) { in resetFreezeTaskListReordering() argument
311 if (topTask != null) { in resetFreezeTaskListReordering()
312 mTasks.remove(topTask); in resetFreezeTaskListReordering()
313 mTasks.add(0, topTask); in resetFreezeTaskListReordering()
332 final Task topTask = focusedStack != null ? focusedStack.getTopMostTask() : null; in resetFreezeTaskListReorderingOnTimeout() local
333 resetFreezeTaskListReordering(topTask); in resetFreezeTaskListReorderingOnTimeout()
H A DTask.java1381 final Task topTask = getTopMostTask(); in getBaseIntent()
1382 return (topTask != this && topTask != null) ? topTask.getBaseIntent() : null; in getBaseIntent()
1730 final Task topTask = getTopMostTask(); in supportsSplitScreenWindowingModeInDisplayArea() local
1732 && (topTask == null || topTask.supportsSplitScreenWindowingModeInner(tda)); in supportsSplitScreenWindowingModeInDisplayArea()
4524 final Task topTask = getTopMostTask();
4532 topTask, getActivityType())) {
4587 topTask.mTaskId, FORCED_RESIZEABLE_REASON_SPLIT_SCREEN, packageName);
H A DActivityStarter.java2674 final Task topTask = curTop != null ? curTop.getTask() : null; in setTargetRootTaskIfNeeded() local
2675 differentTopTask = topTask != intentTask in setTargetRootTaskIfNeeded()
2676 || (focusRootTask != null && topTask != focusRootTask.getTopMostTask()); in setTargetRootTaskIfNeeded()
H A DWindowState.java1820 final WindowContainer topTask = rootSecondary.getTopChild(); in getVisibleBounds() local
1821 if (topTask.isVisible()) { in getVisibleBounds()
1822 cutRect(mTmpRect, topTask.getBounds()); in getVisibleBounds()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DActivityStarterTests.java859 final Task topTask = new TaskBuilder(mSupervisor).setParentTaskFragment(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay() local
860 new ActivityBuilder(mAtm).setTask(topTask).build(); in testBringTaskToFrontOnSecondaryDisplay()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
H A DRecentsView.java3322 TaskView topTask = getTaskViewFromTaskViewId(topRowIdArray.get(i)); in getHighestVisibleTaskIndex() local
3324 if (isTaskViewVisible(topTask)) { in getHighestVisibleTaskIndex()
3326 lastVisibleIndex = Math.max(indexOfChild(topTask), indexOfChild(bottomTask)); in getHighestVisibleTaskIndex()