Loading services/core/java/com/android/server/wm/ActivityStack.java +3 −3 Original line number Diff line number Diff line Loading @@ -542,7 +542,7 @@ class ActivityStack extends Task { null /*_lastDescription*/, System.currentTimeMillis(), true /*neverRelinquishIdentity*/, _taskDescription != null ? _taskDescription : new ActivityManager.TaskDescription(), id, INVALID_TASK_ID, INVALID_TASK_ID, 0 /*taskAffiliationColor*/, id, INVALID_TASK_ID, INVALID_TASK_ID, info.applicationInfo.uid, info.packageName, null, info.resizeMode, info.supportsPictureInPicture(), false /*_realActivitySuspended*/, false /*userSetupComplete*/, INVALID_MIN_SIZE, INVALID_MIN_SIZE, info, Loading @@ -555,7 +555,7 @@ class ActivityStack extends Task { boolean _autoRemoveRecents, boolean _askedCompatMode, int _userId, int _effectiveUid, String _lastDescription, long lastTimeMoved, boolean neverRelinquishIdentity, ActivityManager.TaskDescription _lastTaskDescription, int taskAffiliation, int prevTaskId, int nextTaskId, int taskAffiliationColor, int callingUid, int prevTaskId, int nextTaskId, int callingUid, String callingPackage, @Nullable String callingFeatureId, int resizeMode, boolean supportsPictureInPicture, boolean _realActivitySuspended, boolean userSetupComplete, int minWidth, int minHeight, Loading @@ -564,7 +564,7 @@ class ActivityStack extends Task { super(atmService, id, _intent, _affinityIntent, _affinity, _rootAffinity, _realActivity, _origActivity, _rootWasReset, _autoRemoveRecents, _askedCompatMode, _userId, _effectiveUid, _lastDescription, lastTimeMoved, neverRelinquishIdentity, _lastTaskDescription, taskAffiliation, prevTaskId, nextTaskId, taskAffiliationColor, _lastTaskDescription, taskAffiliation, prevTaskId, nextTaskId, callingUid, callingPackage, callingFeatureId, resizeMode, supportsPictureInPicture, _realActivitySuspended, userSetupComplete, minWidth, minHeight, info, _voiceSession, _voiceInteractor, stack); Loading services/core/java/com/android/server/wm/Task.java +3 −16 Original line number Diff line number Diff line Loading @@ -192,7 +192,6 @@ class Task extends WindowContainer<WindowContainer> { private static final String ATTR_TASK_AFFILIATION = "task_affiliation"; private static final String ATTR_PREV_AFFILIATION = "prev_affiliation"; private static final String ATTR_NEXT_AFFILIATION = "next_affiliation"; private static final String ATTR_TASK_AFFILIATION_COLOR = "task_affiliation_color"; private static final String ATTR_CALLING_UID = "calling_uid"; private static final String ATTR_CALLING_PACKAGE = "calling_package"; private static final String ATTR_CALLING_FEATURE_ID = "calling_feature_id"; Loading Loading @@ -297,7 +296,6 @@ class Task extends WindowContainer<WindowContainer> { CharSequence lastDescription; // Last description captured for this item. int mAffiliatedTaskId; // taskId of parent affiliation or self if no parent. int mAffiliatedTaskColor; // color of the parent task affiliation. Task mPrevAffiliate; // previous task in affiliated chain. int mPrevAffiliateTaskId = INVALID_TASK_ID; // previous id for persistence. Task mNextAffiliate; // next task in affiliated chain. Loading Loading @@ -511,7 +509,7 @@ class Task extends WindowContainer<WindowContainer> { null /*_lastDescription*/, System.currentTimeMillis(), true /*neverRelinquishIdentity*/, _taskDescription != null ? _taskDescription : new TaskDescription(), _taskId, INVALID_TASK_ID, INVALID_TASK_ID, 0 /*taskAffiliationColor*/, _taskId, INVALID_TASK_ID, INVALID_TASK_ID, info.applicationInfo.uid, info.packageName, null /* default featureId */, info.resizeMode, info.supportsPictureInPicture(), false /*_realActivitySuspended*/, false /*userSetupComplete*/, INVALID_MIN_SIZE, INVALID_MIN_SIZE, info, Loading @@ -525,7 +523,7 @@ class Task extends WindowContainer<WindowContainer> { boolean _askedCompatMode, int _userId, int _effectiveUid, String _lastDescription, long lastTimeMoved, boolean neverRelinquishIdentity, TaskDescription _lastTaskDescription, int taskAffiliation, int prevTaskId, int nextTaskId, int taskAffiliationColor, int callingUid, String callingPackage, int nextTaskId, int callingUid, String callingPackage, @Nullable String callingFeatureId, int resizeMode, boolean supportsPictureInPicture, boolean _realActivitySuspended, boolean userSetupComplete, int minWidth, int minHeight, ActivityInfo info, IVoiceInteractionSession _voiceSession, Loading Loading @@ -563,7 +561,6 @@ class Task extends WindowContainer<WindowContainer> { mLastTimeMoved = lastTimeMoved; mNeverRelinquishIdentity = neverRelinquishIdentity; mAffiliatedTaskId = taskAffiliation; mAffiliatedTaskColor = taskAffiliationColor; mPrevAffiliateTaskId = prevTaskId; mNextAffiliateTaskId = nextTaskId; mCallingUid = callingUid; Loading Loading @@ -1240,7 +1237,6 @@ class Task extends WindowContainer<WindowContainer> { void setTaskToAffiliateWith(Task taskToAffiliateWith) { closeRecentsChain(); mAffiliatedTaskId = taskToAffiliateWith.mAffiliatedTaskId; mAffiliatedTaskColor = taskToAffiliateWith.mAffiliatedTaskColor; // Find the end while (taskToAffiliateWith.mNextAffiliate != null) { final Task nextRecents = taskToAffiliateWith.mNextAffiliate; Loading Loading @@ -1729,10 +1725,6 @@ class Task extends WindowContainer<WindowContainer> { taskDescription.setMinWidth(mMinWidth); taskDescription.setMinHeight(mMinHeight); setTaskDescription(taskDescription); // Update the task affiliation color if we are the parent of the group if (mTaskId == mAffiliatedTaskId) { mAffiliatedTaskColor = taskDescription.getPrimaryColor(); } mAtmService.getTaskChangeNotificationController().notifyTaskDescriptionChanged( getTaskInfo()); Loading Loading @@ -3993,7 +3985,6 @@ class Task extends WindowContainer<WindowContainer> { if (getTaskDescription() != null) { getTaskDescription().saveToXml(out); } out.attribute(null, ATTR_TASK_AFFILIATION_COLOR, String.valueOf(mAffiliatedTaskColor)); out.attribute(null, ATTR_TASK_AFFILIATION, String.valueOf(mAffiliatedTaskId)); out.attribute(null, ATTR_PREV_AFFILIATION, String.valueOf(mPrevAffiliateTaskId)); out.attribute(null, ATTR_NEXT_AFFILIATION, String.valueOf(mNextAffiliateTaskId)); Loading Loading @@ -4080,7 +4071,6 @@ class Task extends WindowContainer<WindowContainer> { final int outerDepth = in.getDepth(); TaskDescription taskDescription = new TaskDescription(); int taskAffiliation = INVALID_TASK_ID; int taskAffiliationColor = 0; int prevTaskId = INVALID_TASK_ID; int nextTaskId = INVALID_TASK_ID; int callingUid = -1; Loading Loading @@ -4162,9 +4152,6 @@ class Task extends WindowContainer<WindowContainer> { case ATTR_NEXT_AFFILIATION: nextTaskId = Integer.parseInt(attrValue); break; case ATTR_TASK_AFFILIATION_COLOR: taskAffiliationColor = Integer.parseInt(attrValue); break; case ATTR_CALLING_UID: callingUid = Integer.parseInt(attrValue); break; Loading Loading @@ -4273,7 +4260,7 @@ class Task extends WindowContainer<WindowContainer> { affinityIntent, affinity, rootAffinity, realActivity, origActivity, rootHasReset, autoRemoveRecents, askedCompatMode, userId, effectiveUid, lastDescription, lastTimeOnTop, neverRelinquishIdentity, taskDescription, taskAffiliation, prevTaskId, nextTaskId, taskAffiliationColor, callingUid, callingPackage, prevTaskId, nextTaskId, callingUid, callingPackage, callingFeatureId, resizeMode, supportsPictureInPicture, realActivitySuspended, userSetupComplete, minWidth, minHeight, null /*ActivityInfo*/, null /*_voiceSession*/, null /*_voiceInteractor*/, null /* stack */); Loading services/tests/wmtests/src/com/android/server/wm/TaskRecordTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -1008,7 +1008,7 @@ public class TaskRecordTests extends ActivityTestsBase { private Task createTask(int taskId) { return new ActivityStack(mService, taskId, new Intent(), null, null, null, ActivityBuilder.getDefaultComponent(), null, false, false, false, 0, 10050, null, 0, false, null, 0, 0, 0, 0, 0, null, null, 0, false, false, false, 0, 0, false, null, 0, 0, 0, 0, null, null, 0, false, false, false, 0, 0, null /*ActivityInfo*/, null /*_voiceSession*/, null /*_voiceInteractor*/, null /*stack*/); } Loading Loading
services/core/java/com/android/server/wm/ActivityStack.java +3 −3 Original line number Diff line number Diff line Loading @@ -542,7 +542,7 @@ class ActivityStack extends Task { null /*_lastDescription*/, System.currentTimeMillis(), true /*neverRelinquishIdentity*/, _taskDescription != null ? _taskDescription : new ActivityManager.TaskDescription(), id, INVALID_TASK_ID, INVALID_TASK_ID, 0 /*taskAffiliationColor*/, id, INVALID_TASK_ID, INVALID_TASK_ID, info.applicationInfo.uid, info.packageName, null, info.resizeMode, info.supportsPictureInPicture(), false /*_realActivitySuspended*/, false /*userSetupComplete*/, INVALID_MIN_SIZE, INVALID_MIN_SIZE, info, Loading @@ -555,7 +555,7 @@ class ActivityStack extends Task { boolean _autoRemoveRecents, boolean _askedCompatMode, int _userId, int _effectiveUid, String _lastDescription, long lastTimeMoved, boolean neverRelinquishIdentity, ActivityManager.TaskDescription _lastTaskDescription, int taskAffiliation, int prevTaskId, int nextTaskId, int taskAffiliationColor, int callingUid, int prevTaskId, int nextTaskId, int callingUid, String callingPackage, @Nullable String callingFeatureId, int resizeMode, boolean supportsPictureInPicture, boolean _realActivitySuspended, boolean userSetupComplete, int minWidth, int minHeight, Loading @@ -564,7 +564,7 @@ class ActivityStack extends Task { super(atmService, id, _intent, _affinityIntent, _affinity, _rootAffinity, _realActivity, _origActivity, _rootWasReset, _autoRemoveRecents, _askedCompatMode, _userId, _effectiveUid, _lastDescription, lastTimeMoved, neverRelinquishIdentity, _lastTaskDescription, taskAffiliation, prevTaskId, nextTaskId, taskAffiliationColor, _lastTaskDescription, taskAffiliation, prevTaskId, nextTaskId, callingUid, callingPackage, callingFeatureId, resizeMode, supportsPictureInPicture, _realActivitySuspended, userSetupComplete, minWidth, minHeight, info, _voiceSession, _voiceInteractor, stack); Loading
services/core/java/com/android/server/wm/Task.java +3 −16 Original line number Diff line number Diff line Loading @@ -192,7 +192,6 @@ class Task extends WindowContainer<WindowContainer> { private static final String ATTR_TASK_AFFILIATION = "task_affiliation"; private static final String ATTR_PREV_AFFILIATION = "prev_affiliation"; private static final String ATTR_NEXT_AFFILIATION = "next_affiliation"; private static final String ATTR_TASK_AFFILIATION_COLOR = "task_affiliation_color"; private static final String ATTR_CALLING_UID = "calling_uid"; private static final String ATTR_CALLING_PACKAGE = "calling_package"; private static final String ATTR_CALLING_FEATURE_ID = "calling_feature_id"; Loading Loading @@ -297,7 +296,6 @@ class Task extends WindowContainer<WindowContainer> { CharSequence lastDescription; // Last description captured for this item. int mAffiliatedTaskId; // taskId of parent affiliation or self if no parent. int mAffiliatedTaskColor; // color of the parent task affiliation. Task mPrevAffiliate; // previous task in affiliated chain. int mPrevAffiliateTaskId = INVALID_TASK_ID; // previous id for persistence. Task mNextAffiliate; // next task in affiliated chain. Loading Loading @@ -511,7 +509,7 @@ class Task extends WindowContainer<WindowContainer> { null /*_lastDescription*/, System.currentTimeMillis(), true /*neverRelinquishIdentity*/, _taskDescription != null ? _taskDescription : new TaskDescription(), _taskId, INVALID_TASK_ID, INVALID_TASK_ID, 0 /*taskAffiliationColor*/, _taskId, INVALID_TASK_ID, INVALID_TASK_ID, info.applicationInfo.uid, info.packageName, null /* default featureId */, info.resizeMode, info.supportsPictureInPicture(), false /*_realActivitySuspended*/, false /*userSetupComplete*/, INVALID_MIN_SIZE, INVALID_MIN_SIZE, info, Loading @@ -525,7 +523,7 @@ class Task extends WindowContainer<WindowContainer> { boolean _askedCompatMode, int _userId, int _effectiveUid, String _lastDescription, long lastTimeMoved, boolean neverRelinquishIdentity, TaskDescription _lastTaskDescription, int taskAffiliation, int prevTaskId, int nextTaskId, int taskAffiliationColor, int callingUid, String callingPackage, int nextTaskId, int callingUid, String callingPackage, @Nullable String callingFeatureId, int resizeMode, boolean supportsPictureInPicture, boolean _realActivitySuspended, boolean userSetupComplete, int minWidth, int minHeight, ActivityInfo info, IVoiceInteractionSession _voiceSession, Loading Loading @@ -563,7 +561,6 @@ class Task extends WindowContainer<WindowContainer> { mLastTimeMoved = lastTimeMoved; mNeverRelinquishIdentity = neverRelinquishIdentity; mAffiliatedTaskId = taskAffiliation; mAffiliatedTaskColor = taskAffiliationColor; mPrevAffiliateTaskId = prevTaskId; mNextAffiliateTaskId = nextTaskId; mCallingUid = callingUid; Loading Loading @@ -1240,7 +1237,6 @@ class Task extends WindowContainer<WindowContainer> { void setTaskToAffiliateWith(Task taskToAffiliateWith) { closeRecentsChain(); mAffiliatedTaskId = taskToAffiliateWith.mAffiliatedTaskId; mAffiliatedTaskColor = taskToAffiliateWith.mAffiliatedTaskColor; // Find the end while (taskToAffiliateWith.mNextAffiliate != null) { final Task nextRecents = taskToAffiliateWith.mNextAffiliate; Loading Loading @@ -1729,10 +1725,6 @@ class Task extends WindowContainer<WindowContainer> { taskDescription.setMinWidth(mMinWidth); taskDescription.setMinHeight(mMinHeight); setTaskDescription(taskDescription); // Update the task affiliation color if we are the parent of the group if (mTaskId == mAffiliatedTaskId) { mAffiliatedTaskColor = taskDescription.getPrimaryColor(); } mAtmService.getTaskChangeNotificationController().notifyTaskDescriptionChanged( getTaskInfo()); Loading Loading @@ -3993,7 +3985,6 @@ class Task extends WindowContainer<WindowContainer> { if (getTaskDescription() != null) { getTaskDescription().saveToXml(out); } out.attribute(null, ATTR_TASK_AFFILIATION_COLOR, String.valueOf(mAffiliatedTaskColor)); out.attribute(null, ATTR_TASK_AFFILIATION, String.valueOf(mAffiliatedTaskId)); out.attribute(null, ATTR_PREV_AFFILIATION, String.valueOf(mPrevAffiliateTaskId)); out.attribute(null, ATTR_NEXT_AFFILIATION, String.valueOf(mNextAffiliateTaskId)); Loading Loading @@ -4080,7 +4071,6 @@ class Task extends WindowContainer<WindowContainer> { final int outerDepth = in.getDepth(); TaskDescription taskDescription = new TaskDescription(); int taskAffiliation = INVALID_TASK_ID; int taskAffiliationColor = 0; int prevTaskId = INVALID_TASK_ID; int nextTaskId = INVALID_TASK_ID; int callingUid = -1; Loading Loading @@ -4162,9 +4152,6 @@ class Task extends WindowContainer<WindowContainer> { case ATTR_NEXT_AFFILIATION: nextTaskId = Integer.parseInt(attrValue); break; case ATTR_TASK_AFFILIATION_COLOR: taskAffiliationColor = Integer.parseInt(attrValue); break; case ATTR_CALLING_UID: callingUid = Integer.parseInt(attrValue); break; Loading Loading @@ -4273,7 +4260,7 @@ class Task extends WindowContainer<WindowContainer> { affinityIntent, affinity, rootAffinity, realActivity, origActivity, rootHasReset, autoRemoveRecents, askedCompatMode, userId, effectiveUid, lastDescription, lastTimeOnTop, neverRelinquishIdentity, taskDescription, taskAffiliation, prevTaskId, nextTaskId, taskAffiliationColor, callingUid, callingPackage, prevTaskId, nextTaskId, callingUid, callingPackage, callingFeatureId, resizeMode, supportsPictureInPicture, realActivitySuspended, userSetupComplete, minWidth, minHeight, null /*ActivityInfo*/, null /*_voiceSession*/, null /*_voiceInteractor*/, null /* stack */); Loading
services/tests/wmtests/src/com/android/server/wm/TaskRecordTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -1008,7 +1008,7 @@ public class TaskRecordTests extends ActivityTestsBase { private Task createTask(int taskId) { return new ActivityStack(mService, taskId, new Intent(), null, null, null, ActivityBuilder.getDefaultComponent(), null, false, false, false, 0, 10050, null, 0, false, null, 0, 0, 0, 0, 0, null, null, 0, false, false, false, 0, 0, false, null, 0, 0, 0, 0, null, null, 0, false, false, false, 0, 0, null /*ActivityInfo*/, null /*_voiceSession*/, null /*_voiceInteractor*/, null /*stack*/); } Loading