Loading core/proto/android/server/activitymanagerservice.proto +5 −6 Original line number Diff line number Diff line Loading @@ -69,12 +69,11 @@ message TaskRecordProto { optional string real_activity = 6; optional string orig_activity = 7; optional int32 activity_type = 8; optional int32 return_to_type = 9; optional int32 resize_mode = 10; optional bool fullscreen = 11; optional .android.graphics.RectProto bounds = 12; optional int32 min_width = 13; optional int32 min_height = 14; optional int32 resize_mode = 9; optional bool fullscreen = 10; optional .android.graphics.RectProto bounds = 11; optional int32 min_width = 12; optional int32 min_height = 13; } message ActivityRecordProto { Loading services/core/java/com/android/server/am/ActivityManagerService.java +2 −6 Original line number Diff line number Diff line Loading @@ -8083,7 +8083,7 @@ public class ActivityManagerService extends IActivityManager.Stub // Adjust the source bounds by the insets for the transition down final Rect sourceBounds = new Rect(r.pictureInPictureArgs.getSourceRectHint()); mStackSupervisor.moveActivityToPinnedStackLocked(r, sourceBounds, aspectRatio, true /* moveHomeStackToFront */, "enterPictureInPictureMode"); "enterPictureInPictureMode"); final PinnedActivityStack stack = r.getStack(); stack.setPictureInPictureAspectRatio(aspectRatio); stack.setPictureInPictureActions(actions); Loading Loading @@ -10231,11 +10231,7 @@ public class ActivityManagerService extends IActivityManager.Stub Slog.e(TAG, "moveTaskToFront: Attempt to violate Lock Task Mode"); return; } final ActivityRecord prev = mStackSupervisor.topRunningActivityLocked(); if (prev != null) { task.setTaskToReturnTo(prev); } mStackSupervisor.findTaskToMoveToFrontLocked(task, flags, options, "moveTaskToFront", mStackSupervisor.findTaskToMoveToFront(task, flags, options, "moveTaskToFront", false /* forceNonResizable */); final ActivityRecord topActivity = task.getTopActivity(); services/core/java/com/android/server/am/ActivityRecord.java +1 −0 Original line number Diff line number Diff line Loading @@ -277,6 +277,7 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo ActivityState state; // current state we are in Bundle icicle; // last saved activity state PersistableBundle persistentState; // last persistently saved activity state // TODO: See if this is still needed. boolean frontOfTask; // is this the root activity of its task? boolean launchFailed; // set if a launched failed, to abort on 2nd try boolean haveState; // have we gotten the last activity state? Loading Loading
core/proto/android/server/activitymanagerservice.proto +5 −6 Original line number Diff line number Diff line Loading @@ -69,12 +69,11 @@ message TaskRecordProto { optional string real_activity = 6; optional string orig_activity = 7; optional int32 activity_type = 8; optional int32 return_to_type = 9; optional int32 resize_mode = 10; optional bool fullscreen = 11; optional .android.graphics.RectProto bounds = 12; optional int32 min_width = 13; optional int32 min_height = 14; optional int32 resize_mode = 9; optional bool fullscreen = 10; optional .android.graphics.RectProto bounds = 11; optional int32 min_width = 12; optional int32 min_height = 13; } message ActivityRecordProto { Loading
services/core/java/com/android/server/am/ActivityManagerService.java +2 −6 Original line number Diff line number Diff line Loading @@ -8083,7 +8083,7 @@ public class ActivityManagerService extends IActivityManager.Stub // Adjust the source bounds by the insets for the transition down final Rect sourceBounds = new Rect(r.pictureInPictureArgs.getSourceRectHint()); mStackSupervisor.moveActivityToPinnedStackLocked(r, sourceBounds, aspectRatio, true /* moveHomeStackToFront */, "enterPictureInPictureMode"); "enterPictureInPictureMode"); final PinnedActivityStack stack = r.getStack(); stack.setPictureInPictureAspectRatio(aspectRatio); stack.setPictureInPictureActions(actions); Loading Loading @@ -10231,11 +10231,7 @@ public class ActivityManagerService extends IActivityManager.Stub Slog.e(TAG, "moveTaskToFront: Attempt to violate Lock Task Mode"); return; } final ActivityRecord prev = mStackSupervisor.topRunningActivityLocked(); if (prev != null) { task.setTaskToReturnTo(prev); } mStackSupervisor.findTaskToMoveToFrontLocked(task, flags, options, "moveTaskToFront", mStackSupervisor.findTaskToMoveToFront(task, flags, options, "moveTaskToFront", false /* forceNonResizable */); final ActivityRecord topActivity = task.getTopActivity();
services/core/java/com/android/server/am/ActivityRecord.java +1 −0 Original line number Diff line number Diff line Loading @@ -277,6 +277,7 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo ActivityState state; // current state we are in Bundle icicle; // last saved activity state PersistableBundle persistentState; // last persistently saved activity state // TODO: See if this is still needed. boolean frontOfTask; // is this the root activity of its task? boolean launchFailed; // set if a launched failed, to abort on 2nd try boolean haveState; // have we gotten the last activity state? Loading