Home
last modified time | relevance | path

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

12345

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
DFreeformTaskListener.java77 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
78 if (mTasks.get(taskInfo.taskId) != null) { in onTaskAppeared()
79 throw new IllegalStateException("Task appeared more than once: #" + taskInfo.taskId); in onTaskAppeared()
82 taskInfo.taskId); in onTaskAppeared()
84 state.mTaskInfo = taskInfo; in onTaskAppeared()
86 mTasks.put(taskInfo.taskId, state); in onTaskAppeared()
89 mWindowDecorationViewModel.onTaskOpening(taskInfo, leash, t, t); in onTaskAppeared()
95 repository.addOrMoveFreeformTaskToTop(taskInfo.taskId); in onTaskAppeared()
96 if (taskInfo.isVisible) { in onTaskAppeared()
97 if (repository.addActiveTask(taskInfo.taskId)) { in onTaskAppeared()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecorViewModel.java81 RunningTaskInfo taskInfo, in onTaskOpening() argument
85 if (!shouldShowWindowDecor(taskInfo)) return false; in onTaskOpening()
86 createWindowDecoration(taskInfo, taskSurface, startT, finishT); in onTaskOpening()
91 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
92 final CaptionWindowDecoration decoration = mWindowDecorByTaskId.get(taskInfo.taskId); in onTaskInfoChanged()
96 decoration.relayout(taskInfo); in onTaskInfoChanged()
97 setupCaptionColor(taskInfo, decoration); in onTaskInfoChanged()
102 RunningTaskInfo taskInfo, in onTaskChanging() argument
106 final CaptionWindowDecoration decoration = mWindowDecorByTaskId.get(taskInfo.taskId); in onTaskChanging()
108 if (!shouldShowWindowDecor(taskInfo)) { in onTaskChanging()
[all …]
DDesktopModeWindowDecorViewModel.java148 ActivityManager.RunningTaskInfo taskInfo, in onTaskOpening() argument
152 if (!shouldShowWindowDecor(taskInfo)) return false; in onTaskOpening()
153 createWindowDecoration(taskInfo, taskSurface, startT, finishT); in onTaskOpening()
158 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
159 final DesktopModeWindowDecoration decoration = mWindowDecorByTaskId.get(taskInfo.taskId); in onTaskInfoChanged()
163 if (taskInfo.displayId != oldTaskInfo.displayId) { in onTaskInfoChanged()
165 incrementEventReceiverTasks(taskInfo.displayId); in onTaskInfoChanged()
168 decoration.relayout(taskInfo); in onTaskInfoChanged()
169 setupCaptionColor(taskInfo, decoration); in onTaskInfoChanged()
174 RunningTaskInfo taskInfo, in onTaskChanging() argument
[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/splitscreen/
DStageTaskListener.java129 final ActivityManager.RunningTaskInfo taskInfo = getChildTaskInfo(t -> t.isVisible); in getTopVisibleChildTaskId() local
130 return taskInfo != null ? taskInfo.taskId : INVALID_TASK_ID; in getTopVisibleChildTaskId()
137 final ActivityManager.RunningTaskInfo taskInfo = in getTopChildTaskUid() local
139 return taskInfo != null ? taskInfo.topActivityInfo.applicationInfo.uid : 0; in getTopChildTaskUid()
159 final ActivityManager.RunningTaskInfo taskInfo = mChildrenTaskInfo.valueAt(i); in getChildTaskInfo() local
160 if (predicate.test(taskInfo)) { in getChildTaskInfo()
161 return taskInfo; in getChildTaskInfo()
169 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
172 mRootTaskInfo = taskInfo; in onTaskAppeared()
181 } else if (taskInfo.parentTaskId == mRootTaskInfo.taskId) { in onTaskAppeared()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIController.java190 public void onCompatInfoChanged(TaskInfo taskInfo, in onCompatInfoChanged() argument
192 if (taskInfo != null && !taskInfo.topActivityInSizeCompat) { in onCompatInfoChanged()
193 mSetOfTaskIdsShowingRestartDialog.remove(taskInfo.taskId); in onCompatInfoChanged()
195 if (taskInfo.configuration == null || taskListener == null) { in onCompatInfoChanged()
197 removeLayouts(taskInfo.taskId); in onCompatInfoChanged()
201 createOrUpdateCompatLayout(taskInfo, taskListener); in onCompatInfoChanged()
202 createOrUpdateLetterboxEduLayout(taskInfo, taskListener); in onCompatInfoChanged()
203 createOrUpdateRestartDialogLayout(taskInfo, taskListener); in onCompatInfoChanged()
204 if (mCompatUIConfiguration.getHasSeenLetterboxEducation(taskInfo.userId)) { in onCompatInfoChanged()
205 createOrUpdateReachabilityEduLayout(taskInfo, taskListener); in onCompatInfoChanged()
[all …]
DCompatUIConfiguration.java145 void setDontShowRestartDialogAgain(TaskInfo taskInfo) { in setDontShowRestartDialogAgain() argument
147 dontShowAgainRestartKey(taskInfo.userId, taskInfo.topActivity.getPackageName()), in setDontShowRestartDialogAgain()
151 boolean shouldShowRestartDialogAgain(TaskInfo taskInfo) { in shouldShowRestartDialogAgain() argument
152 return !mCompatUISharedPreferences.getBoolean(dontShowAgainRestartKey(taskInfo.userId, in shouldShowRestartDialogAgain()
153 taskInfo.topActivity.getPackageName()), /* default= */ false); in shouldShowRestartDialogAgain()
156 void setUserHasSeenHorizontalReachabilityEducation(TaskInfo taskInfo) { in setUserHasSeenHorizontalReachabilityEducation() argument
158 hasSeenHorizontalReachabilityEduKey(taskInfo.userId), true).apply(); in setUserHasSeenHorizontalReachabilityEducation()
161 void setUserHasSeenVerticalReachabilityEducation(TaskInfo taskInfo) { in setUserHasSeenVerticalReachabilityEducation() argument
163 hasSeenVerticalReachabilityEduKey(taskInfo.userId), true).apply(); in setUserHasSeenVerticalReachabilityEducation()
166 boolean hasSeenHorizontalReachabilityEducation(@NonNull TaskInfo taskInfo) { in hasSeenHorizontalReachabilityEducation() argument
[all …]
DReachabilityEduWindowManager.java88 ReachabilityEduWindowManager(Context context, TaskInfo taskInfo, in ReachabilityEduWindowManager() argument
92 super(context, taskInfo, syncQueue, taskListener, displayLayout); in ReachabilityEduWindowManager()
93 mTaskInfo = taskInfo; in ReachabilityEduWindowManager()
94 mIsActivityLetterboxed = taskInfo.isLetterboxDoubleTapEnabled; in ReachabilityEduWindowManager()
95 mLetterboxVerticalPosition = taskInfo.topActivityLetterboxVerticalPosition; in ReachabilityEduWindowManager()
96 mLetterboxHorizontalPosition = taskInfo.topActivityLetterboxHorizontalPosition; in ReachabilityEduWindowManager()
97 mTopActivityLetterboxWidth = taskInfo.topActivityLetterboxWidth; in ReachabilityEduWindowManager()
98 mTopActivityLetterboxHeight = taskInfo.topActivityLetterboxHeight; in ReachabilityEduWindowManager()
141 public boolean updateCompatInfo(TaskInfo taskInfo, ShellTaskOrganizer.TaskListener taskListener, in updateCompatInfo() argument
143 mTaskInfo = taskInfo; in updateCompatInfo()
[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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DCompatUIControllerTest.java129 CompatUIWindowManager createCompatUiWindowManager(Context context, TaskInfo taskInfo, in setUp()
136 TaskInfo taskInfo, ShellTaskOrganizer.TaskListener taskListener) { in setUp()
142 TaskInfo taskInfo, ShellTaskOrganizer.TaskListener taskListener) { in setUp()
168 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged() local
172 mController.onCompatInfoChanged(taskInfo, mMockTaskListener); in testOnCompatInfoChanged()
174 verify(mController).createCompatUiWindowManager(any(), eq(taskInfo), eq(mMockTaskListener)); in testOnCompatInfoChanged()
175 verify(mController).createLetterboxEduWindowManager(any(), eq(taskInfo), in testOnCompatInfoChanged()
177 verify(mController).createRestartDialogWindowManager(any(), eq(taskInfo), in testOnCompatInfoChanged()
183 taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged()
185 mController.onCompatInfoChanged(taskInfo, mMockTaskListener); in testOnCompatInfoChanged()
[all …]
DReachabilityEduWindowManagerTest.java82 private ReachabilityEduWindowManager createReachabilityEduWindowManager(TaskInfo taskInfo) { in createReachabilityEduWindowManager() argument
83 return new ReachabilityEduWindowManager(mContext, taskInfo, mSyncTransactionQueue, in createReachabilityEduWindowManager()
98 ActivityManager.RunningTaskInfo taskInfo = new ActivityManager.RunningTaskInfo(); in createTaskInfo() local
99 taskInfo.userId = userId; in createTaskInfo()
100 taskInfo.taskId = TASK_ID; in createTaskInfo()
101 taskInfo.isLetterboxDoubleTapEnabled = isLetterboxDoubleTapEnabled; in createTaskInfo()
102 taskInfo.topActivityLetterboxVerticalPosition = topActivityLetterboxVerticalPosition; in createTaskInfo()
103 taskInfo.topActivityLetterboxHorizontalPosition = topActivityLetterboxHorizontalPosition; in createTaskInfo()
104 taskInfo.topActivityLetterboxWidth = topActivityLetterboxWidth; in createTaskInfo()
105 taskInfo.topActivityLetterboxHeight = topActivityLetterboxHeight; in createTaskInfo()
[all …]
DCompatUIWindowManagerTest.java200 TaskInfo taskInfo = createTaskInfo(/* hasSizeCompat= */ true, CAMERA_COMPAT_CONTROL_HIDDEN); in testUpdateCompatInfo() local
201 assertTrue(mWindowManager.updateCompatInfo(taskInfo, mTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
211 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
219 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
221 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
230 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
232 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
241 taskInfo = createTaskInfo(/* hasSizeCompat= */ false, in testUpdateCompatInfo()
243 assertTrue(mWindowManager.updateCompatInfo(taskInfo, newTaskListener, /* canShow= */ true)); in testUpdateCompatInfo()
250 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DShellTaskOrganizer.java99 default void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) {} in onTaskAppeared() argument
100 default void onTaskInfoChanged(RunningTaskInfo taskInfo) {} in onTaskInfoChanged() argument
101 default void onTaskVanished(RunningTaskInfo taskInfo) {} in onTaskVanished() argument
102 default void onBackPressedOnTaskRoot(RunningTaskInfo taskInfo) {} in onBackPressedOnTaskRoot() argument
140 void onFocusTaskChanged(RunningTaskInfo taskInfo); in onFocusTaskChanged() argument
465 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
467 onTaskAppeared(new TaskAppearedInfo(taskInfo, leash)); in onTaskAppeared()
491 public void screenshotTask(RunningTaskInfo taskInfo, Rect crop, in screenshotTask() argument
493 final TaskAppearedInfo info = mTasks.get(taskInfo.taskId); in screenshotTask()
502 public void onTaskInfoChanged(RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
[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/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/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.java122 final ActivityManager.RunningTaskInfo taskInfo = in testDeleteCaptionOnChangeTransitionWhenNecessary() local
130 taskInfo, surfaceControl, startT, finishT); in testDeleteCaptionOnChangeTransitionWhenNecessary()
132 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_UNDEFINED); in testDeleteCaptionOnChangeTransitionWhenNecessary()
133 taskInfo.configuration.windowConfiguration.setActivityType(ACTIVITY_TYPE_UNDEFINED); in testDeleteCaptionOnChangeTransitionWhenNecessary()
135 taskInfo, surfaceControl, startT, finishT); in testDeleteCaptionOnChangeTransitionWhenNecessary()
142 taskInfo, in testDeleteCaptionOnChangeTransitionWhenNecessary()
153 final ActivityManager.RunningTaskInfo taskInfo = in testCreateCaptionOnChangeTransitionWhenNecessary() local
159 taskInfo.configuration.windowConfiguration.setActivityType(ACTIVITY_TYPE_UNDEFINED); in testCreateCaptionOnChangeTransitionWhenNecessary()
162 taskInfo, surfaceControl, startT, finishT); in testCreateCaptionOnChangeTransitionWhenNecessary()
164 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in testCreateCaptionOnChangeTransitionWhenNecessary()
[all …]
DWindowDecorationTests.java153 final ActivityManager.RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testLayoutResultCalculation_invisibleTask() local
160 taskInfo.isFocused = false; in testLayoutResultCalculation_invisibleTask()
163 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_invisibleTask()
171 final TestWindowDecoration windowDecor = createWindowDecoration(taskInfo, taskSurface); in testLayoutResultCalculation_invisibleTask()
173 windowDecor.relayout(taskInfo); in testLayoutResultCalculation_invisibleTask()
207 final ActivityManager.RunningTaskInfo taskInfo = new TestRunningTaskInfoBuilder() in testLayoutResultCalculation_visibleFocusedTask() local
214 taskInfo.isFocused = true; in testLayoutResultCalculation_visibleFocusedTask()
217 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTask()
224 final TestWindowDecoration windowDecor = createWindowDecoration(taskInfo, taskSurface); in testLayoutResultCalculation_visibleFocusedTask()
226 windowDecor.relayout(taskInfo); in testLayoutResultCalculation_visibleFocusedTask()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/
DFullscreenUnfoldTaskAnimator.java116 public void onTaskAppeared(TaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
118 taskInfo); in onTaskAppeared()
119 mAnimationContextByTaskId.put(taskInfo.taskId, animationContext); in onTaskAppeared()
123 public void onTaskChanged(TaskInfo taskInfo) { in onTaskChanged() argument
124 AnimationContext animationContext = mAnimationContextByTaskId.get(taskInfo.taskId); in onTaskChanged()
126 animationContext.update(mTaskbarInsetsSource, taskInfo); in onTaskChanged()
131 public void onTaskVanished(TaskInfo taskInfo) { in onTaskVanished() argument
132 mAnimationContextByTaskId.remove(taskInfo.taskId); in onTaskVanished()
141 public void resetSurface(TaskInfo taskInfo, Transaction transaction) { in resetSurface() argument
142 final AnimationContext context = mAnimationContextByTaskId.get(taskInfo.taskId); in resetSurface()
[all …]
DUnfoldTaskAnimator.java50 default boolean isApplicableTask(TaskInfo taskInfo) { in isApplicableTask() argument
61 default void onTaskAppeared(TaskInfo taskInfo, SurfaceControl leash) {} in onTaskAppeared() argument
67 default void onTaskChanged(TaskInfo taskInfo) {} in onTaskChanged() argument
73 default void onTaskVanished(TaskInfo taskInfo) {} in onTaskVanished() argument
110 default void resetSurface(TaskInfo taskInfo, Transaction transaction) {} in resetSurface() argument
/frameworks/base/core/java/android/app/
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); in onTaskProfileLocked() argument
153 void onBackPressedOnTaskRoot(in ActivityManager.RunningTaskInfo taskInfo); in onBackPressedOnTaskRoot() argument
211 void onTaskMovedToBack(in ActivityManager.RunningTaskInfo taskInfo); in onTaskMovedToBack() argument
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()
158 public void onTaskProfileLocked(RunningTaskInfo taskInfo) throws RemoteException { in onTaskProfileLocked() argument
171 public void onBackPressedOnTaskRoot(RunningTaskInfo taskInfo) in onBackPressedOnTaskRoot() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTaskStackChangeListener.java52 default void onActivityLaunchOnSecondaryDisplayFailed(RunningTaskInfo taskInfo) { in onActivityLaunchOnSecondaryDisplayFailed() argument
67 default void onActivityLaunchOnSecondaryDisplayRerouted(RunningTaskInfo taskInfo) { in onActivityLaunchOnSecondaryDisplayRerouted() argument
71 default void onTaskProfileLocked(RunningTaskInfo taskInfo) { } in onTaskProfileLocked() argument
76 default void onTaskMovedToFront(RunningTaskInfo taskInfo) { in onTaskMovedToFront() argument
77 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
87 default void onTaskDescriptionChanged(RunningTaskInfo taskInfo) { } in onTaskDescriptionChanged() argument
91 default void onBackPressedOnTaskRoot(RunningTaskInfo taskInfo) { } in onBackPressedOnTaskRoot() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTaskStackListenerCallback.java41 default void onTaskProfileLocked(RunningTaskInfo taskInfo) { } in onTaskProfileLocked() argument
51 default void onTaskMovedToFront(RunningTaskInfo taskInfo) { in onTaskMovedToFront() argument
52 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
55 default void onTaskDescriptionChanged(RunningTaskInfo taskInfo) { } in onTaskDescriptionChanged() argument
65 default void onBackPressedOnTaskRoot(RunningTaskInfo taskInfo) { } in onBackPressedOnTaskRoot() argument
80 default void onActivityLaunchOnSecondaryDisplayFailed(RunningTaskInfo taskInfo) { in onActivityLaunchOnSecondaryDisplayFailed() argument
86 default void onActivityLaunchOnSecondaryDisplayRerouted(RunningTaskInfo taskInfo) { in onActivityLaunchOnSecondaryDisplayRerouted() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
DRecentTasksController.java222 public void onTaskAdded(ActivityManager.RunningTaskInfo taskInfo) { in onTaskAdded() argument
223 notifyRunningTaskAppeared(taskInfo); in onTaskAdded()
226 public void onTaskRemoved(ActivityManager.RunningTaskInfo taskInfo) { in onTaskRemoved() argument
228 removeSplitPair(taskInfo.taskId); in onTaskRemoved()
230 notifyRunningTaskVanished(taskInfo); in onTaskRemoved()
233 public void onTaskWindowingModeChanged(TaskInfo taskInfo) { in onTaskWindowingModeChanged() argument
258 private void notifyRunningTaskAppeared(ActivityManager.RunningTaskInfo taskInfo) { in notifyRunningTaskAppeared() argument
259 if (mListener == null || !mIsDesktopMode || taskInfo.realActivity == null) { in notifyRunningTaskAppeared()
263 mListener.onRunningTaskAppeared(taskInfo); in notifyRunningTaskAppeared()
272 private void notifyRunningTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in notifyRunningTaskVanished() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitScreenUtils.java50 public static boolean isValidToSplit(ActivityManager.RunningTaskInfo taskInfo) { in isValidToSplit() argument
51 return taskInfo != null && taskInfo.supportsMultiWindow in isValidToSplit()
52 && ArrayUtils.contains(CONTROLLED_ACTIVITY_TYPES, taskInfo.getActivityType()) in isValidToSplit()
53 && ArrayUtils.contains(CONTROLLED_WINDOWING_MODES, taskInfo.getWindowingMode()); in isValidToSplit()
77 final ActivityManager.RunningTaskInfo taskInfo = taskOrganizer.getRunningTaskInfo(taskId); in getPackageName() local
78 return taskInfo != null ? getPackageName(taskInfo.baseIntent) : null; in getPackageName()

12345