summaryrefslogtreecommitdiff
path: root/core/java/android/app/ActivityOptions.java
Commit message (Collapse)AuthorAgeFilesLines
* Only allow NEW_TASK flag when adjusting pending intentsWinson Chung2023-05-271-1/+5
| | | | | | | | Bug: 243794108 Test: atest CtsSecurityBulletinHostTestCases:android.security.cts.CVE_2023_20918 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c62d2e1021a030f4f0ae5fcfc8fe8e0875fa669f) Merged-In: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b Change-Id: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b
* Enable flagging shortcut with no_user_action flagJeff Chang2023-02-071-0/+23
| | | | | | | | | Enable indicating to apply no_user_action flag while starting a shortcut to split. Bug: 267723349 Test: check the applied flags with activity start logs Change-Id: I51c2152138cc80187ff649bea0bb415ac6ab043e
* Enable flagging shortcut with additional activity flagsJerry Chang2023-02-031-0/+24
| | | | | | | | | Enable indicating to apply multiple_task flag while starting a shortcut to split. Bug: 265244780 Test: check the applied flags with activity start logs Change-Id: Ia634baebeaf5f992fca40381b4a3c6bc7980017e
* Allow to disable showing starting window when start from recentswilsonshih2022-09-271-0/+27
| | | | | | | | | | | | For now only support startActivityFromRecents. Use ActivityOptions#setDisableStartingWindow to disable showing the starting window for current launch. Bug: 202826469 Test: call setDisableStartingWindow in TaskView#launchTask, verify no starting window for that launch. Change-Id: I6151c1b4c45f424b46a957846539e3345d919de8
* Merge "Strip transition information from activityoptions when sent to app" ↵Evan Rosky2022-08-041-0/+5
|\ | | | | | | | | | | | | | | | | into sc-v2-dev am: eeab60091c am: 5a154b395a am: 85817e6590 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999 Change-Id: I97d1c2c87625ac8405452d64b922c9b06e6ed5a1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Merge "Strip transition information from activityoptions when sent to app" ↵Evan Rosky2022-08-041-0/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | into sc-v2-dev am: eeab60091c am: 5a154b395a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999 Change-Id: Id85f7d2eeaf467cc5c77213379fff81b57c4a67f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Merge "Strip transition information from activityoptions when sent to app" ↵Evan Rosky2022-08-041-0/+5
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into sc-v2-dev am: eeab60091c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999 Change-Id: I2996d813bc8a89c220e7c89efdd064d3c7ef3fdd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Strip transition information from activityoptions when sent to appEvan Rosky2022-08-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation of shared-element transitions takes the ActivityOptions from the calling activity and sends them to another activity. This means that any sensitive information passed into ActivityManager via ActivityOptions can make its way to an unrelated app. Recently a RemoteTransition object was added which includes some sensitive information. This CL strips the sensitive information from the activity options before sending it to anonther app. Bug: 237290578 Test: atest ActivityManagerTest#testActivityManager_stripTransitionFromActivityOptions Change-Id: Ifa08fc195698f02bf70ca386178c67f6ba4a14ea
* | | | Merge "Revert "Strip transition information from activityoptions once it is ↵Evan Rosky2022-08-041-5/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | read."" into sc-v2-dev am: 1099b25b2d am: d7ae033815 am: 2e763d31d2 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194 Change-Id: If8f1ab91e07e72b49859593c77471f54d399a367 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Revert "Strip transition information from activityoptions once it is ↵Evan Rosky2022-08-041-5/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | read."" into sc-v2-dev am: 1099b25b2d am: d7ae033815 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194 Change-Id: I75303fa1000a2a5ca6233daa8c75fbcdce1238ba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Revert "Strip transition information from activityoptions once it is ↵Evan Rosky2022-08-041-5/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | read."" into sc-v2-dev am: 1099b25b2d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194 Change-Id: I0b8d234013f3551354f815533f2b4576b9100a48 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Revert "Strip transition information from activityoptions once it is read."Evan Rosky2022-08-031-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0b3ad39abf059b3e6e3088ab9d3ac6c43c29a2d5. Reason for revert: Broke NexusLauncherTests:MemoryTests Change-Id: Ibc8e9f516054f017e9db2e5608cf6806531ab554
* | | | Merge "Strip transition information from activityoptions once it is read." ↵Evan Rosky2022-08-031-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into sc-v2-dev am: dc8ae7665a am: a824844cdf am: 7cb144249f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172 Change-Id: Ibded759578f05fe3dab6af5f0dc0e8579756e46d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Strip transition information from activityoptions once it is read." ↵Evan Rosky2022-08-031-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into sc-v2-dev am: dc8ae7665a am: a824844cdf Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172 Change-Id: Id7de444318f392c3d8e9735df2dd78834fc79eee Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Strip transition information from activityoptions once it is read." ↵Evan Rosky2022-08-021-0/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into sc-v2-dev am: dc8ae7665a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172 Change-Id: I489c233fea52fff948c5b4d92cd61163904e974d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Strip transition information from activityoptions once it is read.Evan Rosky2022-08-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation of shared-element transitions takes the ActivityOptions from the calling activity and sends them to another activity. This means that any sensitive information passed into ActivityManager via ActivityOptions can make its way to an unrelated app. Recently a RemoteTransition object was added which includes some sensitive information. This CL strips the sensitive information from the activity options after it is extracted so that it can't be sent to the target. Bug: 237290578 Test: atest ActivityManagerTest#testActivityManager_stripTransitionFromActivityOptions Change-Id: Ic9f8062e67ab895292af75e97a9ce2f4aa45d467
| | | * Provide default splash screen style for Launcher and SystemUI.wilsonshih2021-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous the splash screen style can either be EMPTY or ICON, and need to be set by new hidden API #setSplashscreenStyle, so the flag will always be "EMPTY" for those 3rd party Launcher Apps which may have not upgrade to targetSDK 31. To correct the default behaivor for Launcher Apps, create a new UNDEFINED style as default value for splashScreenStyle, and if the value is UNDEFINED, determine the style by checking the launch source. Test: Verify no change when default home is NexusLauncher. Test: Set 3rd-party Launcher as default home, verify the splash screen style should be ICON when launch app from Launcher. Test: atest SplashscreenTests Bug: 206746601 Change-Id: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d Merged-In: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d
| * | | Add ActivityOption to remove keyguard when an activity is launched.Issei Suzuki2022-05-171-14/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced ActivityOption#dismissKeyguardIfInsecure by ActivityOption#dismissKeyguard, with which the server doesn't check if the keyguard is insecure again. The caller has to make sure if the keygaurd can be dismissed without additional authentication. Bug: 203044476 Test: atest KeyguardLockedTests KeyguardTransitionTests Change-Id: Ia83da6286875f1a539edbaf515fe01c07ce1ba76 Merged-In: Ia83da6286875f1a539edbaf515fe01c07ce1ba76
* | | Adjust PiP source rect hint for window boundsHongwei Wang2022-07-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The source rect hint specified by the app is normally a result of View#getGlobalVisibleRect (or equivalent) that does not count the window offset in scenarios like the app is placed in the middle of display by the system when - app specifies sensorLandscape - display is actually in portrait mode (on large screens) Fixed this by adjust the source rect hint on ActivityRecord whenever the internal PictureInPictureParams is updated. Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dr7uy1qxB1RGjZVvElo7kr Bug: 235599028 Test: Verify entering PiP animation working as intended for \ app specifies sensorLandscape when auto-enter-pip and \ make-launch-into-pip (aka. content-pip). Test: atest WmTests:ActivityRecorderTests \ WmTests:ActivityStarterTests Change-Id: Id991adbae45a7b61d09105a9aee9cbfecd6b66be
* | | Add ActivityOption to remove keyguard when an activity is launched.Issei Suzuki2022-04-271-14/+14
|/ / | | | | | | | | | | | | | | | | | | | | Replaced ActivityOption#dismissKeyguardIfInsecure by ActivityOption#dismissKeyguard, with which the server doesn't check if the keyguard is insecure again. The caller has to make sure if the keygaurd can be dismissed without additional authentication. Bug: 203044476 Test: atest KeyguardLockedTests KeyguardTransitionTests Change-Id: Ia83da6286875f1a539edbaf515fe01c07ce1ba76
* | Add timestamp to ActivityOptions.OnAnimation*ListenerIssei Suzuki2022-04-221-8/+15
| | | | | | | | | | | | Bug: 229948029 Test: atest ActivityTransitionTests Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
* | Add hidden flag in ActivityOptions to ignore PendingIntent creator ↵Ricky Wai2022-04-011-0/+27
| | | | | | | | | | | | | | | | foreground state Bug: 227431919 Test: atest BackgroundActivityLaunchTest Change-Id: I7192f65e747e6048d3a26ecb203767290fa5406e
* | Merge "Add ActivityOption to remove insecure keyguard when activity is ↵Issei Suzuki2022-03-241-0/+30
|\ \ | | | | | | | | | launched." into tm-dev
| * | Add ActivityOption to remove insecure keyguard when activity is launched.Issei Suzuki2022-03-161-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new ActivityOption#setDismissKeyguardIfInsecure remove keyguard when an activity is launched while an insecure keyguard is shown. If this option is set, WMS waits until the launched activity finishes drawing its surface, then starts KEYGUARD_GOING_AWAY app transition. Bug: 203044476 Test: atest KeyguardLockedTests KeyguardTransitionTests Change-Id: I0f6a501baa2a60ae044bf1ef888e5e6f57a5f13e
* | | Merge "Read custom background when creating ActivityOptions from bundle" ↵Pablo Gamito2022-03-221-0/+1
|\ \ \ | |/ / |/| | | | | into tm-dev
| * | Read custom background when creating ActivityOptions from bundlePablo Gamito2022-03-141-0/+1
| | | | | | | | | | | | | | | Test: atest CtsWindowManagerDeviceTestCases:ActivityTransitionTests Change-Id: I43f042678c5bea9d027552266ffb6c00ab92f3c0
* | | Revert "Expose ActivityOptions.fromBundle() as ModuleApi."Yuncheol Heo2022-03-031-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c5bf49474f9b7ed242b8ccff8ba56f62356a34d7. Reason for revert: API council decided not to expose it. Bug: 202145402 Test: atest ActivityOptionsTest Change-Id: I19c84a905f929e87f20a8dd28a3f45caf3e29c2c
* | | Rename 'EMPTY' to 'SOLID_COLOR' for splash screen style.wilsonshih2022-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preventing from misleading developers. Bug: 217953215 Test: atest SplashscreenTests StartingSurfaceDrawerTests ActivityRecordTests Change-Id: I8669effb2e843ebe61e807850359b07b36b39fb3
* | | Restrict what activity launches show permission promptsNate Myren2022-02-281-0/+33
|/ / | | | | | | | | | | | | | | | | | | | | | | Only show a permission prompt if the activity is a launcher, the calling app is the same as the opened intent app, or the isEligibleForLegacyPermissionPrompt ActivityOption is set. Also prevents the dialog from showing while the keyguard is locked. Test: atest NotificationPermissionTest Bug: 194833441 Fixes: 220891438 Change-Id: Ie5381af045d538a5b822bb1ccdf62b1dd916114f
* | Add Content PiP support with launch-into-pip APIHongwei Wang2022-02-151-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Terms - Host activity, the activity that the content-pip is originated from. There should be some UI affordance on Host activity user can tap to enter content-pip - Container activity, the activity that carries the content from Host Activity and transits to PiP mode Workflow in brief - Container activity is defined in the same application as Host activity - A new ActivityOptions#makeLaunchIntoPip API is added, Host activity uses this API to construct ActivityOptions to launch the Container activity directly into pip mode. - ActivityStarter sets a reference on Container activity pointing to Host activity upon creation and moves the activity to pinned task - WMShell transits Container activity to pinned mode - When user taps on `Expand` button in PiP menu, WMShell calls WCT#startTask with the task id to bring the Host task to front Content hand-off - Since Host activity is the one starts Container activity, it can replace its content with some placeholder right after startActivity - This CL also makes the assumption that Host activity can establish a communication channel with the Container activity, such as using the ResultReceiver parcelable. Therefore it's out of scope to provide extra callback to Host activity on lifecycle events of Container activity. See also the design doc go/content-pip-v2 and the end-to-end demo in ApiDemos `App > Activity > Picture in Picture` Bug: 165793661 Video: http://recall/-/aaaaaabFQoRHlzixHdtY/e9Mp5rvxYBrNOdGSUoSXHO Test: manual, see Video Test: atest WmTests:ActivityOptionsTest \ WmTests:ActivityRecordTests \ WmTests:ActivityStarterTests \ PinnedStackTests Change-Id: I2bebfea8d1930b0b7e495d91cfd5ddc7c347da68
* | Merge "Safer @hide Bundle.getParcelable() with explicit type"Bernardo Rufino2022-02-111-1/+1
|\ \
| * | Safer @hide Bundle.getParcelable() with explicit typeBernardo Rufino2022-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provider a safer API getParcelable() that takes a Class<?> parameter just like the safer Parcel APIs introduced, so we check the type before deserializing, preventing unexpected and potentially vulnerable code being executed (technique used in the bugs). Making it @hide since ASA requested this in T (more details on bugs) and the urgent usage is inside the platform, we can flesh out a public API for U. Test: App code gpaste/6130483466338304 logs gpaste/5148052949041152 Bug: 213169612 Bug: 212804042 Bug: 212803946 Bug: 210885162 Change-Id: Ieebc044043e0776e71d35c1cc11be9299f972c45
* | | Make getSplashScreenStyle public.wilsonshih2022-02-081-1/+0
|/ / | | | | | | | | | | Bug: 217953215 Test: atest ActivityOptionsTest#testActivityOptionsBundle_fromBundle Change-Id: I16c5ffbbbc2c40a6216b4338943ae45fadc92f76
* | Add option to override background color for animation through ↵Pablo Gamito2022-01-271-7/+43
| | | | | | | | | | | | | | overridePendingTransition Test: atest CtsWindowManagerDeviceTestCases:AnimationBackgroundTests Change-Id: I3debc8c1f4646cfd7c20c3f8e57abd465aec23ad
* | Public API set and get splashscreen stylewilsonshih2022-01-031-9/+16
| | | | | | | | | | | | | | | | | | | | | | Allow developer to control the splash screen style when the option is used for cold or warm launch an activity. Bug: 203497083 Test: atest SplashscreenTests#testLaunchFromLauncherWithEmptyIconOptions Test: atest SplashscreenTests#testLaunchAppWithIconOptions Change-Id: I9c4ccca2470df5dbac96da2d4a96b616b6670688
* | Add support for WindowAnimationStyle theme attribute in shellPablo Gamito2021-12-211-0/+2
| | | | | | | | | | | | | | Test: Make sure apps with custom animations set using WindowAnimationStyle actually use the custom animation when shell is enabled Bug: 206960607 Change-Id: I1d982870837d67c74f76dd0a90aa5260d9441aba
* | Provide default splash screen style for Launcher and SystemUI.wilsonshih2021-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous the splash screen style can either be EMPTY or ICON, and need to be set by new hidden API #setSplashscreenStyle, so the flag will always be "EMPTY" for those 3rd party Launcher Apps which may have not upgrade to targetSDK 31. To correct the default behaivor for Launcher Apps, create a new UNDEFINED style as default value for splashScreenStyle, and if the value is UNDEFINED, determine the style by checking the launch source. Test: Verify no change when default home is NexusLauncher. Test: Set 3rd-party Launcher as default home, verify the splash screen style should be ICON style when launch app from Launcher. Test: atest SplashscreenTests Bug: 206746601 Change-Id: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d
* | Merge "Make ActivityOptions#setLaunchTaskId a system API" into sc-v2-dev am: ↵Tom Natan2021-10-211-1/+3
|\| | | | | | | | | | | | | | | fdf0378b8d am: 8ea64535a8 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16093509 Change-Id: I2a76d0ee05bc162bb171831aaf4691482756388d
| * Make ActivityOptions#setLaunchTaskId a system APItomnatan2021-10-211-1/+4
| | | | | | | | | | | | | | | | This is needed for digital wellbeing, see go/dwb-dialog-multi-window-dd for more information. Bug: 199825187 Test: N/A Change-Id: Ic0acbb034f326d0e8bc0e63d8c1a7b3f35a0e931
| * Wrap IRemoteTransition in a parcelable to enable extra propertiesEvan Rosky2021-09-031-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in preparation for attaching some extra meta information to remote transitions (eg. process token). Most of this refactor just replaces references to the raw interface with references to the wrapper class. There is also a small refactor in RemoteTransitionHandler to better-manage death-recipients. It is possible to have >1 filter and >1 pendings referencing the same remote simultaneously, so this arrangement properly handles the 1-to-many possibility. Bug: 183993977 Test: refactor, so existing tests pass Change-Id: Icae8f2128e0ffdf7aee51284cba106963450e3e7 Merged-In: Icae8f2128e0ffdf7aee51284cba106963450e3e7
* | Merge BroadcastOptions and ActivityOptions PendingIntent BAL flags andRicky Wai2021-10-191-41/+5
| | | | | | | | | | | | | | | | | | | | | | | | remove @hide Patchset 1 is the same as ag/15884451. The latest patchset is adding SystemAPI annotation to fix the broken test in patchset 1. Bug: 192341120 Bug: 203407624 Test: atest BackgroundActivityLaunchTest Change-Id: I1ac315a3268bba590406e834f4930b0cb4db5de8
* | Merge "Expose ActivityOptions.fromBundle() as ModuleApi."Yuncheol Heo2021-09-301-3/+12
|\ \
| * | Expose ActivityOptions.fromBundle() as ModuleApi.Yuncheol Heo2021-09-171-3/+12
| |/ | | | | | | | | | | | | | | | | CarService mainline module will use it. Changed to accept NonNull only. Bug: 195598146 Test: atest android.app.cts.ActivityOptionsTest Change-Id: Iae70522fe1ad8b17a01c230ca8afb7a18b83a7ed
* | Merge "Add hidden API to allow PendingIntent sender to allow/block BAL"Ricky Wai2021-09-231-0/+36
|\ \
| * | Add hidden API to allow PendingIntent sender to allow/block BALRicky Wai2021-09-161-0/+36
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, AlarmManagerService uses it to block all PendingIntent BAL, so no apps can use alarm manager api to start activity from background. The current default behavior is allowing PendingIntent to use caller's foreground visibility to determine if BAL can be launched. We may want to change this behavior becomes disallow by default, but it may need androidx changes as SliceView is using PendingIntent.send() to launch apps and it should allow apps to start BAL activity using Slice API. For legacy app (targetSDK < T), even the flag is allowed, it won't use caller's BAL permission to bypass BAL checking, to match the original behavior. Next step will be removing @hide and formalize the api. Bug: 192341120 Test: atest BackgroundActivityLaunchTest Test: Test AlarmManager API, PendingIntent won't cause BAL. Change-Id: I89588473f0f028078adb9230caacb18ed4d6c504
* / Wrap IRemoteTransition in a parcelable to enable extra propertiesEvan Rosky2021-09-021-9/+8
|/ | | | | | | | | | | | | | | | This is in preparation for attaching some extra meta information to remote transitions (eg. process token). Most of this refactor just replaces references to the raw interface with references to the wrapper class. There is also a small refactor in RemoteTransitionHandler to better-manage death-recipients. It is possible to have >1 filter and >1 pendings referencing the same remote simultaneously, so this arrangement properly handles the 1-to-many possibility. Bug: 183993977 Test: refactor, so existing tests pass Change-Id: Icae8f2128e0ffdf7aee51284cba106963450e3e7
* Intercept activity start requests in client organizerAndrii Kulian2021-08-031-0/+24
| | | | | | | | | | | | | | | | This allows applying split rules to activity start requests for different processes and covers APIs like 'startActivityAsUser', not requiring app developers to use dedicated APIs to start to side instead. When the client organizer observes a new activity being started, it creates a new TaskFragment first and modifies the activity start options to target that container. Bug: 194140227 Bug: 190433398 Test: Manual, using reference implementation and sample app. Change-Id: Ice3de8ec725d327266ec38052129b4158608855e
* Persist Theme name instead of ID for ShortcutInfoIssei Suzuki2021-06-091-6/+7
| | | | | | Change-Id: Iee1e9c1568973f8354e781fcd3de160b8d494921 Bug: 185200798 Test: atest ShortcutManagerTest2 SplashscreenTests
* Introduce setSplashscreenStyle to specify splash screen style.wilsonshih2021-06-081-0/+28
| | | | | | | | | | | | | | | | Provide a method ActivityOptions#setSplashscreenStyle to specify splash screen style if needed. If not set, the default option will be empty-style splash screen, so without any other change, the activity launched from systemui with ActivityOptions will become empty style splash screen. Bug: 188023621 Bug: 189293785 Test: manual test start application from Launcher and Notification. Change-Id: I299320db8f32fbd835c7ec0acaad3df3486a13f5
* Defer pausing apps when bringing up recentsEvan Rosky2021-05-141-0/+30
| | | | | | | | | | | | | | | | | This adds an ActivityOption call "transient launch" which can be used to tell WM that this particular launch is likely temporary and may not be committed. This is for recents where it exists for the duration of the transition, but then disappears once the user's intention is resolved. The effect of this is that it won't pause the running app while in recents -- instead deferring pause until the transition finishes and the final visibility states are committed. Bug: 183993884 Test: enable shell transitions, open app, swipe to overview and check dumpsys to see that the app is still RESUMED Change-Id: Iba6b8faf4e42c645bfd0305b93b7e0b542fd2c96