Loading api/current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3834,7 +3834,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int); api/system-current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3957,7 +3957,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int); api/test-current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3834,7 +3834,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int); core/java/android/app/ActivityOptions.java +19 −18 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.app; import static android.app.ActivityManager.DOCKED_STACK_CREATE_MODE_TOP_OR_LEFT; import static android.app.ActivityManager.StackId.INVALID_STACK_ID; import android.annotation.Nullable; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; Loading Loading @@ -203,7 +204,6 @@ public class ActivityOptions { public static final int ANIM_CLIP_REVEAL = 11; private String mPackageName; private boolean mHasLaunchBounds; private Rect mLaunchBounds; private int mAnimationType = ANIM_NONE; private int mCustomEnterResId; Loading Loading @@ -716,10 +716,7 @@ public class ActivityOptions { } catch (RuntimeException e) { Slog.w(TAG, e); } mHasLaunchBounds = opts.containsKey(KEY_LAUNCH_BOUNDS); if (mHasLaunchBounds) { mLaunchBounds = opts.getParcelable(KEY_LAUNCH_BOUNDS); } mAnimationType = opts.getInt(KEY_ANIM_TYPE); switch (mAnimationType) { case ANIM_CUSTOM: Loading Loading @@ -779,14 +776,16 @@ public class ActivityOptions { } /** * Sets the bounds (window size) that the activity should be launched in. Set to null explicitly * for full screen. * NOTE: This value is ignored on devices that don't have * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} enabled. * Sets the bounds (window size) that the activity should be launched in. * Set to null explicitly for fullscreen. * <p> * <strong>NOTE:<strong/> This value is ignored on devices that don't have * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} or * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * @param launchBounds Launch bounds to use for the activity or null for fullscreen. */ public ActivityOptions setLaunchBounds(Rect launchBounds) { mHasLaunchBounds = true; mLaunchBounds = launchBounds; public ActivityOptions setLaunchBounds(@Nullable Rect launchBounds) { mLaunchBounds = launchBounds != null ? new Rect(launchBounds) : null; return this; } Loading @@ -795,10 +794,12 @@ public class ActivityOptions { return mPackageName; } public boolean hasLaunchBounds() { return mHasLaunchBounds; } /** * Returns the bounds that should be used to launch the activity. * @see #setLaunchBounds(Rect) * @return Bounds used to launch the activity. */ @Nullable public Rect getLaunchBounds() { return mLaunchBounds; } Loading Loading @@ -1024,7 +1025,7 @@ public class ActivityOptions { if (mPackageName != null) { b.putString(KEY_PACKAGE_NAME, mPackageName); } if (mHasLaunchBounds) { if (mLaunchBounds != null) { b.putParcelable(KEY_LAUNCH_BOUNDS, mLaunchBounds); } b.putInt(KEY_ANIM_TYPE, mAnimationType); Loading services/core/java/com/android/server/am/ActivityStackSupervisor.java +1 −1 Original line number Diff line number Diff line Loading @@ -1754,7 +1754,7 @@ public final class ActivityStackSupervisor implements DisplayListener { boolean canUseActivityOptionsLaunchBounds(ActivityOptions options, int launchStackId) { // We use the launch bounds in the activity options is the device supports freeform // window management or is launching into the pinned stack. if (!options.hasLaunchBounds()) { if (options.getLaunchBounds() == null) { return false; } return (mService.mSupportsPictureInPicture && launchStackId == PINNED_STACK_ID) Loading Loading
api/current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3834,7 +3834,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int);
api/system-current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3957,7 +3957,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int);
api/test-current.txt +0 −1 Original line number Diff line number Diff line Loading @@ -3834,7 +3834,6 @@ package android.app { public class ActivityOptions { method public android.graphics.Rect getLaunchBounds(); method public boolean hasLaunchBounds(); method public static android.app.ActivityOptions makeBasic(); method public static android.app.ActivityOptions makeClipRevealAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int);
core/java/android/app/ActivityOptions.java +19 −18 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.app; import static android.app.ActivityManager.DOCKED_STACK_CREATE_MODE_TOP_OR_LEFT; import static android.app.ActivityManager.StackId.INVALID_STACK_ID; import android.annotation.Nullable; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; Loading Loading @@ -203,7 +204,6 @@ public class ActivityOptions { public static final int ANIM_CLIP_REVEAL = 11; private String mPackageName; private boolean mHasLaunchBounds; private Rect mLaunchBounds; private int mAnimationType = ANIM_NONE; private int mCustomEnterResId; Loading Loading @@ -716,10 +716,7 @@ public class ActivityOptions { } catch (RuntimeException e) { Slog.w(TAG, e); } mHasLaunchBounds = opts.containsKey(KEY_LAUNCH_BOUNDS); if (mHasLaunchBounds) { mLaunchBounds = opts.getParcelable(KEY_LAUNCH_BOUNDS); } mAnimationType = opts.getInt(KEY_ANIM_TYPE); switch (mAnimationType) { case ANIM_CUSTOM: Loading Loading @@ -779,14 +776,16 @@ public class ActivityOptions { } /** * Sets the bounds (window size) that the activity should be launched in. Set to null explicitly * for full screen. * NOTE: This value is ignored on devices that don't have * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} enabled. * Sets the bounds (window size) that the activity should be launched in. * Set to null explicitly for fullscreen. * <p> * <strong>NOTE:<strong/> This value is ignored on devices that don't have * {@link android.content.pm.PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT} or * {@link android.content.pm.PackageManager#FEATURE_PICTURE_IN_PICTURE} enabled. * @param launchBounds Launch bounds to use for the activity or null for fullscreen. */ public ActivityOptions setLaunchBounds(Rect launchBounds) { mHasLaunchBounds = true; mLaunchBounds = launchBounds; public ActivityOptions setLaunchBounds(@Nullable Rect launchBounds) { mLaunchBounds = launchBounds != null ? new Rect(launchBounds) : null; return this; } Loading @@ -795,10 +794,12 @@ public class ActivityOptions { return mPackageName; } public boolean hasLaunchBounds() { return mHasLaunchBounds; } /** * Returns the bounds that should be used to launch the activity. * @see #setLaunchBounds(Rect) * @return Bounds used to launch the activity. */ @Nullable public Rect getLaunchBounds() { return mLaunchBounds; } Loading Loading @@ -1024,7 +1025,7 @@ public class ActivityOptions { if (mPackageName != null) { b.putString(KEY_PACKAGE_NAME, mPackageName); } if (mHasLaunchBounds) { if (mLaunchBounds != null) { b.putParcelable(KEY_LAUNCH_BOUNDS, mLaunchBounds); } b.putInt(KEY_ANIM_TYPE, mAnimationType); Loading
services/core/java/com/android/server/am/ActivityStackSupervisor.java +1 −1 Original line number Diff line number Diff line Loading @@ -1754,7 +1754,7 @@ public final class ActivityStackSupervisor implements DisplayListener { boolean canUseActivityOptionsLaunchBounds(ActivityOptions options, int launchStackId) { // We use the launch bounds in the activity options is the device supports freeform // window management or is launching into the pinned stack. if (!options.hasLaunchBounds()) { if (options.getLaunchBounds() == null) { return false; } return (mService.mSupportsPictureInPicture && launchStackId == PINNED_STACK_ID) Loading