Home
last modified time | relevance | path

Searched refs:taskInfo (Results 1 – 25 of 173) sorted by relevance

1234567

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
DFreeformTaskListener.java83 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
84 if (mTasks.get(taskInfo.taskId) != null) { in onTaskAppeared()
85 throw new IllegalStateException("Task appeared more than once: #" + taskInfo.taskId); in onTaskAppeared()
88 taskInfo.taskId); in onTaskAppeared()
90 state.mTaskInfo = taskInfo; in onTaskAppeared()
92 mTasks.put(taskInfo.taskId, state); in onTaskAppeared()
95 mWindowDecorationViewModel.onTaskOpening(taskInfo, leash, t, t); in onTaskAppeared()
101 repository.addOrMoveFreeformTaskToTop(taskInfo.displayId, taskInfo.taskId); in onTaskAppeared()
102 repository.unminimizeTask(taskInfo.displayId, taskInfo.taskId); in onTaskAppeared()
103 if (taskInfo.isVisible) { in onTaskAppeared()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIController.java245 public void onCompatInfoChanged(@NonNull TaskInfo taskInfo, in onCompatInfoChanged() argument
247 if (taskInfo != null && !taskInfo.appCompatTaskInfo.topActivityInSizeCompat) { in onCompatInfoChanged()
248 mSetOfTaskIdsShowingRestartDialog.remove(taskInfo.taskId); in onCompatInfoChanged()
251 if (taskInfo != null && taskListener != null) { in onCompatInfoChanged()
252 updateActiveTaskInfo(taskInfo); in onCompatInfoChanged()
255 if (taskInfo.configuration == null || taskListener == null) { in onCompatInfoChanged()
257 removeLayouts(taskInfo.taskId); in onCompatInfoChanged()
265 if (!taskInfo.appCompatTaskInfo.isFromLetterboxDoubleTap in onCompatInfoChanged()
266 && !taskInfo.appCompatTaskInfo.topActivityInSizeCompat) { in onCompatInfoChanged()
271 if (taskInfo.appCompatTaskInfo.topActivityBoundsLetterboxed) { in onCompatInfoChanged()
[all …]
DCompatUIConfiguration.java156 void setDontShowRestartDialogAgain(TaskInfo taskInfo) { in setDontShowRestartDialogAgain() argument
158 dontShowAgainRestartKey(taskInfo.userId, taskInfo.topActivity.getPackageName()), in setDontShowRestartDialogAgain()
162 boolean shouldShowRestartDialogAgain(TaskInfo taskInfo) { in shouldShowRestartDialogAgain() argument
163 return !mCompatUISharedPreferences.getBoolean(dontShowAgainRestartKey(taskInfo.userId, in shouldShowRestartDialogAgain()
164 taskInfo.topActivity.getPackageName()), /* default= */ false); in shouldShowRestartDialogAgain()
167 void setUserHasSeenHorizontalReachabilityEducation(TaskInfo taskInfo) { in setUserHasSeenHorizontalReachabilityEducation() argument
169 hasSeenHorizontalReachabilityEduKey(taskInfo.userId), true).apply(); in setUserHasSeenHorizontalReachabilityEducation()
172 void setUserHasSeenVerticalReachabilityEducation(TaskInfo taskInfo) { in setUserHasSeenVerticalReachabilityEducation() argument
174 hasSeenVerticalReachabilityEduKey(taskInfo.userId), true).apply(); in setUserHasSeenVerticalReachabilityEducation()
177 boolean hasSeenHorizontalReachabilityEducation(@NonNull TaskInfo taskInfo) { in hasSeenHorizontalReachabilityEducation() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DStageTaskListener.java87 void onNoLongerSupportMultiWindow(ActivityManager.RunningTaskInfo taskInfo); in onNoLongerSupportMultiWindow() argument
138 final ActivityManager.RunningTaskInfo taskInfo = getChildTaskInfo(t -> t.isVisible in getTopVisibleChildTaskId() local
140 return taskInfo != null ? taskInfo.taskId : INVALID_TASK_ID; in getTopVisibleChildTaskId()
147 final ActivityManager.RunningTaskInfo taskInfo = in getTopChildTaskUid() local
149 return taskInfo != null ? taskInfo.topActivityInfo.applicationInfo.uid : 0; in getTopChildTaskUid()
169 final ActivityManager.RunningTaskInfo taskInfo = mChildrenTaskInfo.valueAt(i); in getChildTaskInfo() local
170 if (predicate.test(taskInfo)) { in getChildTaskInfo()
171 return taskInfo; in getChildTaskInfo()
179 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
182 taskInfo.taskId, taskInfo.parentTaskId, in onTaskAppeared()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorationTests.java187 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(false /* visible */); in testMenusClosedWhenTaskIsInvisible() local
189 spy(createWindowDecoration(taskInfo)); in testMenusClosedWhenTaskIsInvisible()
191 spyWindowDecor.relayout(taskInfo); in testMenusClosedWhenTaskIsInvisible()
201 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_noSysPropFlagsSet_windowShadowsAreEnabled() local
205 relayoutParams, mContext, taskInfo, /* applyStartTransactionOnDraw= */ true, in updateRelayoutParams_noSysPropFlagsSet_windowShadowsAreEnabled()
213 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_noSysPropFlagsSet_roundedCornersAreEnabled() local
220 taskInfo, in updateRelayoutParams_noSysPropFlagsSet_roundedCornersAreEnabled()
233 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_appHeader_usesTaskDensity() local
234 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in updateRelayoutParams_appHeader_usesTaskDensity()
235 taskInfo.configuration.densityDpi = customTaskDensity; in updateRelayoutParams_appHeader_usesTaskDensity()
[all …]
DWindowDecorationTests.java185 final ActivityManager.RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testLayoutResultCalculation_invisibleTask() local
192 taskInfo.isFocused = false; in testLayoutResultCalculation_invisibleTask()
194 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_invisibleTask()
196 final TestWindowDecoration windowDecor = createWindowDecoration(taskInfo); in testLayoutResultCalculation_invisibleTask()
198 windowDecor.relayout(taskInfo); in testLayoutResultCalculation_invisibleTask()
225 final ActivityManager.RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testLayoutResultCalculation_visibleFocusedTask() local
232 taskInfo.isFocused = true; in testLayoutResultCalculation_visibleFocusedTask()
234 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTask()
235 final TestWindowDecoration windowDecor = createWindowDecoration(taskInfo); in testLayoutResultCalculation_visibleFocusedTask()
237 windowDecor.relayout(taskInfo); in testLayoutResultCalculation_visibleFocusedTask()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/unfold/
DUnfoldAnimationControllerTest.java111 RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testAppearedMatchingTask_appliesUnfoldProgress() local
114 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedMatchingTask_appliesUnfoldProgress()
140 RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testAppearedNonMatchingTask_doesNotApplyUnfoldProgress() local
143 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedNonMatchingTask_doesNotApplyUnfoldProgress()
152 RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testAppearedAndChangedToNonMatchingTask_doesNotApplyUnfoldProgress() local
155 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedAndChangedToNonMatchingTask_doesNotApplyUnfoldProgress()
156 taskInfo.configuration.windowConfiguration.setWindowingMode(0); in testAppearedAndChangedToNonMatchingTask_doesNotApplyUnfoldProgress()
157 mUnfoldAnimationController.onTaskInfoChanged(taskInfo); in testAppearedAndChangedToNonMatchingTask_doesNotApplyUnfoldProgress()
166 RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testAppearedAndChangedToNonMatchingTaskAndBack_appliesUnfoldProgress() local
169 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedAndChangedToNonMatchingTaskAndBack_appliesUnfoldProgress()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecorViewModel.java102 RunningTaskInfo taskInfo, in onTaskOpening() argument
106 if (!shouldShowWindowDecor(taskInfo)) return false; in onTaskOpening()
107 createWindowDecoration(taskInfo, taskSurface, startT, finishT); in onTaskOpening()
112 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
113 final CaptionWindowDecoration decoration = mWindowDecorByTaskId.get(taskInfo.taskId); in onTaskInfoChanged()
117 decoration.relayout(taskInfo); in onTaskInfoChanged()
118 setupCaptionColor(taskInfo, decoration); in onTaskInfoChanged()
122 public void onTaskVanished(RunningTaskInfo taskInfo) { in onTaskVanished() argument
126 final boolean closed = mTaskOrganizer.getRunningTaskInfo(taskInfo.taskId) == null; in onTaskVanished()
132 destroyWindowDecoration(taskInfo); in onTaskVanished()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DCompatUIControllerTest.java149 CompatUIWindowManager createCompatUiWindowManager(Context context, TaskInfo taskInfo, in setUp()
156 TaskInfo taskInfo, ShellTaskOrganizer.TaskListener taskListener) { in setUp()
162 TaskInfo taskInfo, ShellTaskOrganizer.TaskListener taskListener) { in setUp()
188 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged() local
192 mController.onCompatInfoChanged(taskInfo, mMockTaskListener); in testOnCompatInfoChanged()
194 verify(mController).createCompatUiWindowManager(any(), eq(taskInfo), eq(mMockTaskListener)); in testOnCompatInfoChanged()
195 verify(mController).createLetterboxEduWindowManager(any(), eq(taskInfo), in testOnCompatInfoChanged()
197 verify(mController).createRestartDialogWindowManager(any(), eq(taskInfo), in testOnCompatInfoChanged()
203 taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged()
205 mController.onCompatInfoChanged(taskInfo, mMockTaskListener); in testOnCompatInfoChanged()
[all …]
DCompatUIWindowManagerTest.java233 TaskInfo taskInfo = createTaskInfo(/* hasSizeCompat= */ true, CAMERA_COMPAT_CONTROL_HIDDEN); in testUpdateCompatInfo() local
235 assertTrue(mWindowManager.updateCompatInfo(taskInfo, mTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
245 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
253 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
255 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
264 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
266 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
275 taskInfo = createTaskInfo(/* hasSizeCompat= */ false, in testUpdateCompatInfo()
277 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
284 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
[all …]
DUserAspectRatioSettingsWindowManagerTest.java199 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo() local
201 assertTrue(mWindowManager.updateCompatInfo(taskInfo, mTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
212 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
220 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
223 mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
228 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
230 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
237 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
240 mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
254 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfoLayoutNotInflatedYet() local
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
DUnfoldAnimationController.java101 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
102 mTaskSurfaces.put(taskInfo.taskId, leash); in onTaskAppeared()
107 if (animator.isApplicableTask(taskInfo)) { in onTaskAppeared()
108 mAnimatorsByTaskId.put(taskInfo.taskId, animator); in onTaskAppeared()
109 animator.onTaskAppeared(taskInfo, leash); in onTaskAppeared()
119 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
120 final UnfoldTaskAnimator animator = mAnimatorsByTaskId.get(taskInfo.taskId); in onTaskInfoChanged()
124 final boolean isApplicable = animator.isApplicableTask(taskInfo); in onTaskInfoChanged()
127 animator.onTaskChanged(taskInfo); in onTaskInfoChanged()
130 maybeResetTask(animator, taskInfo); in onTaskInfoChanged()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/camera/
DCameraServiceProxyTest.java44 CameraServiceProxy.TaskInfo taskInfo = new CameraServiceProxy.TaskInfo(); in testGetCropRotateScale() local
45 taskInfo.isResizeable = true; in testGetCropRotateScale()
46 taskInfo.displayId = Display.DEFAULT_DISPLAY; in testGetCropRotateScale()
47 taskInfo.isFixedOrientationLandscape = false; in testGetCropRotateScale()
48 taskInfo.isFixedOrientationPortrait = true; in testGetCropRotateScale()
50 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
55 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
59 taskInfo.isResizeable = false; in testGetCropRotateScale()
61 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
66 assertThat(CameraServiceProxy.getCropRotateScale(ctx, ctx.getPackageName(), taskInfo, in testGetCropRotateScale()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeUtils.kt45 taskInfo: RunningTaskInfo, in calculateInitialBounds()
49 val appAspectRatio = calculateAspectRatio(taskInfo) in calculateInitialBounds()
54 taskInfo.topActivityInfo ?: return positionInScreen(idealSize, screenBounds) in calculateInitialBounds()
57 when (taskInfo.configuration.orientation) { in calculateInitialBounds()
59 if (taskInfo.isResizeable) { in calculateInitialBounds()
62 Size(taskInfo.appCompatTaskInfo.topActivityLetterboxWidth, idealSize.height) in calculateInitialBounds()
67 maximumSizeMaintainingAspectRatio(taskInfo, idealSize, appAspectRatio) in calculateInitialBounds()
73 if (taskInfo.isResizeable) { in calculateInitialBounds()
78 taskInfo.appCompatTaskInfo.topActivityLetterboxHeight in calculateInitialBounds()
87 taskInfo, in calculateInitialBounds()
[all …]
DDesktopTasksController.kt220 private fun isSystemUIApplication(taskInfo: RunningTaskInfo): Boolean { in <lambda>()
221 return taskInfo.baseActivity?.packageName == sysUIPackageName in <lambda>()
265 shellTaskOrganizer.getRunningTasks(displayId).filter { taskInfo -> in <lambda>() method
266 taskInfo.isFocused && in <lambda>()
267 (taskInfo.windowingMode == WINDOWING_MODE_FULLSCREEN || in <lambda>()
268 taskInfo.windowingMode == WINDOWING_MODE_MULTI_WINDOW) && in <lambda>()
269 taskInfo.activityType != ACTIVITY_TYPE_HOME in <lambda>()
391 taskInfo: RunningTaskInfo, in <lambda>()
397 taskInfo.taskId in <lambda>()
400 taskInfo.taskId, in <lambda>()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/fullscreen/
DFullscreenTaskListener.java88 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
89 if (mTasks.get(taskInfo.taskId) != null) { in onTaskAppeared()
90 throw new IllegalStateException("Task appeared more than once: #" + taskInfo.taskId); in onTaskAppeared()
93 taskInfo.taskId); in onTaskAppeared()
94 final Point positionInParent = taskInfo.positionInParent; in onTaskAppeared()
97 state.mTaskInfo = taskInfo; in onTaskAppeared()
98 mTasks.put(taskInfo.taskId, state); in onTaskAppeared()
101 updateRecentsForVisibleFullscreenTask(taskInfo); in onTaskAppeared()
106 .onTaskOpening(taskInfo, leash, t, t); in onTaskAppeared()
121 if (taskInfo.isVisible) { in onTaskAppeared()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DShellTaskOrganizer.java103 default void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) {} in onTaskAppeared() argument
104 default void onTaskInfoChanged(RunningTaskInfo taskInfo) {} in onTaskInfoChanged() argument
105 default void onTaskVanished(RunningTaskInfo taskInfo) {} in onTaskVanished() argument
106 default void onBackPressedOnTaskRoot(RunningTaskInfo taskInfo) {} in onBackPressedOnTaskRoot() argument
144 void onFocusTaskChanged(RunningTaskInfo taskInfo); in onFocusTaskChanged() argument
485 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
490 onTaskAppeared(new TaskAppearedInfo(taskInfo, leash)); in onTaskAppeared()
523 public void screenshotTask(RunningTaskInfo taskInfo, Rect crop, in screenshotTask() argument
525 final TaskAppearedInfo info = mTasks.get(taskInfo.taskId); in screenshotTask()
534 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitScreenUtils.java56 public static boolean isValidToSplit(ActivityManager.RunningTaskInfo taskInfo) { in isValidToSplit() argument
57 return taskInfo != null && taskInfo.supportsMultiWindow in isValidToSplit()
58 && ArrayUtils.contains(CONTROLLED_ACTIVITY_TYPES, taskInfo.getActivityType()) in isValidToSplit()
59 && ArrayUtils.contains(CONTROLLED_WINDOWING_MODES, taskInfo.getWindowingMode()); in isValidToSplit()
83 final ActivityManager.RunningTaskInfo taskInfo = taskOrganizer.getRunningTaskInfo(taskId); in getPackageName() local
84 return taskInfo != null ? getPackageName(taskInfo.baseIntent) : null; in getPackageName()
89 final ActivityManager.RunningTaskInfo taskInfo = taskOrganizer.getRunningTaskInfo(taskId); in getUserId() local
90 return taskInfo != null ? taskInfo.userId : -1; in getUserId()
133 public static Color getResizingBackgroundColor(ActivityManager.RunningTaskInfo taskInfo) { in getResizingBackgroundColor() argument
134 final int taskBgColor = taskInfo.taskDescription.getBackgroundColor(); in getResizingBackgroundColor()
/frameworks/base/core/java/android/app/
DTaskStackListener.java80 public void onActivityLaunchOnSecondaryDisplayFailed(RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayFailed() argument
96 public void onActivityLaunchOnSecondaryDisplayRerouted(RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayRerouted() argument
110 public void onTaskMovedToFront(RunningTaskInfo taskInfo) in onTaskMovedToFront() argument
112 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
124 public void onTaskRemovalStarted(RunningTaskInfo taskInfo) in onTaskRemovalStarted() argument
126 onTaskRemovalStarted(taskInfo.taskId); in onTaskRemovalStarted()
137 public void onTaskDescriptionChanged(RunningTaskInfo taskInfo) in onTaskDescriptionChanged() argument
139 onTaskDescriptionChanged(taskInfo.taskId, taskInfo.taskDescription); in onTaskDescriptionChanged()
157 public void onTaskProfileLocked(RunningTaskInfo taskInfo, int userId) in onTaskProfileLocked() argument
159 onTaskProfileLocked(taskInfo); in onTaskProfileLocked()
[all …]
DITaskStackListener.aidl74 void onActivityLaunchOnSecondaryDisplayFailed(in ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayFailed() argument
84 void onActivityLaunchOnSecondaryDisplayRerouted(in ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayRerouted() argument
107 void onTaskMovedToFront(in ActivityManager.RunningTaskInfo taskInfo); in onTaskMovedToFront() argument
115 void onTaskDescriptionChanged(in ActivityManager.RunningTaskInfo taskInfo); in onTaskDescriptionChanged() argument
133 void onTaskRemovalStarted(in ActivityManager.RunningTaskInfo taskInfo); in onTaskRemovalStarted() argument
140 void onTaskProfileLocked(in ActivityManager.RunningTaskInfo taskInfo, int userId); in onTaskProfileLocked() argument
158 void onBackPressedOnTaskRoot(in ActivityManager.RunningTaskInfo taskInfo); in onBackPressedOnTaskRoot() argument
216 void onTaskMovedToBack(in ActivityManager.RunningTaskInfo taskInfo); in onTaskMovedToBack() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
DRecentTasksController.java256 public void onTaskAdded(ActivityManager.RunningTaskInfo taskInfo) { in onTaskAdded() argument
257 notifyRunningTaskAppeared(taskInfo); in onTaskAdded()
260 public void onTaskRemoved(ActivityManager.RunningTaskInfo taskInfo) { in onTaskRemoved() argument
262 removeSplitPair(taskInfo.taskId); in onTaskRemoved()
264 notifyRunningTaskVanished(taskInfo); in onTaskRemoved()
272 public void onTaskRunningInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { in onTaskRunningInfoChanged() argument
274 notifyRunningTaskChanged(taskInfo); in onTaskRunningInfoChanged()
304 private void notifyRunningTaskAppeared(ActivityManager.RunningTaskInfo taskInfo) { in notifyRunningTaskAppeared() argument
307 || taskInfo.realActivity == null) { in notifyRunningTaskAppeared()
311 mListener.onRunningTaskAppeared(taskInfo); in notifyRunningTaskAppeared()
[all …]
DTaskStackTransitionObserver.kt74 val taskInfo = change.taskInfo in <lambda>() constant
75 if (taskInfo == null || taskInfo.taskId == -1) { in <lambda>()
80 change.taskInfo?.let { taskInfoList.add(it) } in <lambda>()
104 for ((index, taskInfo) in taskInfoList.withIndex()) { in <lambda>() constant
107 taskInfo.windowingMode == WINDOWING_MODE_FREEFORM in <lambda>()
109 notifyTaskStackTransitionObserverListeners(taskInfo) in <lambda>()
127 private fun notifyTaskStackTransitionObserverListeners(taskInfo: RunningTaskInfo) { in <lambda>()
129 executor.execute { listener.onTaskMovedToFrontThroughTransition(taskInfo) } in <lambda>()
136 fun onTaskMovedToFrontThroughTransition(taskInfo: RunningTaskInfo) {} in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DHomeTransitionObserverTest.java102 ActivityManager.RunningTaskInfo taskInfo = mock(ActivityManager.RunningTaskInfo.class); in testHomeActivityWithOpenModeNotifiesHomeIsVisible() local
103 when(change.getTaskInfo()).thenReturn(taskInfo); in testHomeActivityWithOpenModeNotifiesHomeIsVisible()
106 setupTransitionInfo(taskInfo, change, ACTIVITY_TYPE_HOME, TRANSIT_OPEN, true); in testHomeActivityWithOpenModeNotifiesHomeIsVisible()
120 ActivityManager.RunningTaskInfo taskInfo = mock(ActivityManager.RunningTaskInfo.class); in testHomeActivityWithCloseModeNotifiesHomeIsNotVisible() local
121 when(change.getTaskInfo()).thenReturn(taskInfo); in testHomeActivityWithCloseModeNotifiesHomeIsNotVisible()
124 setupTransitionInfo(taskInfo, change, ACTIVITY_TYPE_HOME, TRANSIT_TO_BACK, true); in testHomeActivityWithCloseModeNotifiesHomeIsNotVisible()
138 ActivityManager.RunningTaskInfo taskInfo = mock(ActivityManager.RunningTaskInfo.class); in testNonHomeActivityDoesNotTriggerCallback() local
139 when(change.getTaskInfo()).thenReturn(taskInfo); in testNonHomeActivityDoesNotTriggerCallback()
142 setupTransitionInfo(taskInfo, change, ACTIVITY_TYPE_UNDEFINED, TRANSIT_TO_BACK, true); in testNonHomeActivityDoesNotTriggerCallback()
156 ActivityManager.RunningTaskInfo taskInfo = mock(ActivityManager.RunningTaskInfo.class); in testNonRunningHomeActivityDoesNotTriggerCallback() local
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/
DFullscreenUnfoldTaskAnimator.java125 public void onTaskAppeared(TaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
127 leash, mExpandedTaskbarInsetsSource, taskInfo); in onTaskAppeared()
128 mAnimationContextByTaskId.put(taskInfo.taskId, animationContext); in onTaskAppeared()
132 public void onTaskChanged(TaskInfo taskInfo) { in onTaskChanged() argument
133 AnimationContext animationContext = mAnimationContextByTaskId.get(taskInfo.taskId); in onTaskChanged()
135 animationContext.update(mExpandedTaskbarInsetsSource, taskInfo); in onTaskChanged()
140 public void onTaskVanished(TaskInfo taskInfo) { in onTaskVanished() argument
141 mAnimationContextByTaskId.remove(taskInfo.taskId); in onTaskVanished()
150 public void resetSurface(TaskInfo taskInfo, Transaction transaction) { in resetSurface() argument
151 final AnimationContext context = mAnimationContextByTaskId.get(taskInfo.taskId); in resetSurface()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTask.kt37 taskInfo: RecentTaskInfo,
42 taskInfo.taskId,
43 taskInfo.displayId,
44 taskInfo.userId,
45 taskInfo.topActivity,
46 taskInfo.baseIntent?.component,
47 taskInfo.taskDescription?.backgroundColor,

1234567