summaryrefslogtreecommitdiff
path: root/core/java/android/window/SplashScreen.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix setSplashScreenTheme documentation" into sc-dev am: ffad2f714d ↵Vadim Caen2022-03-211-2/+6
|\ | | | | | | | | | | | | | | am: 73ee4fe036 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16343578 Change-Id: I11ada44b09906012acd33000caeed2b479420572
| * Fix setSplashScreenTheme documentationVadim Caen2022-01-211-2/+6
| | | | | | | | | | | | | | Test: N/A Fixes: 186611969 Change-Id: I192aac4422ffcd8a2eafec2b7cd0325360dfb7e8
* | 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
* | Public API set and get splashscreen stylewilsonshih2022-01-031-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* | Provide default splash screen style for Launcher and SystemUI.wilsonshih2021-11-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Add details about theme stability" into sc-dev am: 9aff8397c8 am: ↵Vadim Caen2021-11-051-0/+3
|\| | | | | | | | | | | | | | | 6814291fde Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16176790 Change-Id: Iba0b6e951ddcb66e0b07014fef389f0ab04c1453
| * Add details about theme stabilityVadim Caen2021-11-031-0/+3
| | | | | | | | | | | | Fixes: 186611969 Change-Id: Ie537eb3b73f5b440aa3da507a769e4ba26ea1cd0
* | Fixes the flicker when transfer splash screen view to clientwilsonshih2021-10-051-5/+0
|/ | | | | | | | | | | | | Use applyTransactionOnDraw to ensure all transaction happen during the same frame, including - hide the starting window. - reparent the remote SurfaceView to client. Bug: 198593932 Test: continues launch test app several times then verify with winscope to ensure there is no flicker anymore. Change-Id: I03c600afdc477ca0c8064b215f2b361468db9f3c
* Introduce setSplashscreenStyle to specify splash screen style.wilsonshih2021-06-081-0/+19
| | | | | | | | | | | | | | | | 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
* Display Splashscreen AVD in a SurfaceViewVadim Caen2021-05-211-1/+11
| | | | | | | | | | If the splashscreen uses an animated icon, we need to display it in a surface view to avoid any jank if the view is passed to the client. Test: CtsWindowManagerDeviceTestCases:SplashscreenTests#testHandleExitIconAnimatingActivity Bug: 181757194 Change-Id: I7e2745a68626849374f5ebb9011c2e8c3b3b92c3
* API to override the splashscreen themeVadim Caen2021-04-231-0/+41
| | | | | | | | | | | By default, the SplashScreen uses the manifest theme. This API allows user to change the theme used for the splashcreen for the whole application. Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests#testOverrideSplashscreenTheme Bug: 185109768 Change-Id: I64e24910f6529a0ea2867b67d7e5963b971164b4
* Refine splash screen APIswilsonshih2021-04-011-11/+26
| | | | | | | | | | | | | | | - Add @UiThread on SplashScreenView:remove - Add @UiThread on OnExitAnimationListener:onSplashScreenExit - Add an API SplashScreen#clearOnExitAnimationListener, also update some comment for SplashScreen APIs. - Remove "millis" from getIconAnimationStartMillis and getIconAnimationDurationMillis - Return java.time.Duration for getIconAnimationDuration - Return java.time.Instant for getIconAnimationStart Bug: 182997416 Test: atest SplashscreenTests Change-Id: If07252cc4b554dcde0c5dc4c4dec3f242ee47ae7
* Customizable exit splash screen animation.(2/N)wilsonshih2021-02-151-0/+188
Introduce new APIs to customize exit splash screen animation. - SplashScreen This can be used for Activity to handle the exit splash screen animation. - SplashScreen#OnExitAnimationListener When receive onSplashScreenExit, the splash screen view will be on top of the activity. - SplashScreenView The view object which represents the view of current starting window. There are two APIs for developer to control it: - getIconView: get the icon view object. - remove: remove the view and release resources. If an Activity create a OnExitAnimationListener and set on SplashScreen, the core will request a copy of SplashScreenView from Shell, then send the parcelable information to client to reconstruct the view on top of the DecorView, then call onSplashScreenExit to let the listener able to operating this view. Bug: 73289295 Test: build/flash, check splash screen starting window. Test: atest StartingSurfaceDrawerTests ActivityRecordTests WindowOrganizerTests Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests Change-Id: I9f77fb4471bcf37a7f74d6c18a345ca56c05b716