Commit Graph

1189 Commits

Author SHA1 Message Date
Chavi Weingarten
e49ecde677 Merge "Add CAPTURE_BLACKOUT_CONTENT permission" into sc-dev am: 1b0e20108d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14334266

Change-Id: Ib2134e15be6d3ff558dd8a8aba32ce4693b26cdd
2021-05-14 16:30:02 +00:00
Chavi Weingarten
1b0e20108d Merge "Add CAPTURE_BLACKOUT_CONTENT permission" into sc-dev 2021-05-14 16:28:43 +00:00
Jason Chang
9ca1f82992 Merge "(1/n) Disabling OHM gesture in NavigationBar 3 Button mode" into sc-dev am: e8b62e4d23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14185029

Change-Id: I3cd5d84898fa96598b05ae0005077e5075e1dd84
2021-05-14 07:50:17 +00:00
Jason Chang
e8b62e4d23 Merge "(1/n) Disabling OHM gesture in NavigationBar 3 Button mode" into sc-dev 2021-05-14 07:40:34 +00:00
Jerry Chang
3cdda95977 Merge "Only reparent controlling tasks when entering split" into sc-dev am: c0302f5092
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14502545

Change-Id: Ia28c1006351addd19e50528d1116390d567e3261
2021-05-14 05:10:45 +00:00
Jerry Chang
c0302f5092 Merge "Only reparent controlling tasks when entering split" into sc-dev 2021-05-14 04:53:16 +00:00
Jerry Chang
de5948bde5 Merge "Fix wrong split bounds in legacy split flicker tests" into sc-dev am: 68667bdd3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14526747

Change-Id: Iad38f2b6e295d369ac72dc344c6e71b961c38a63
2021-05-14 02:42:21 +00:00
Jerry Chang
68667bdd3a Merge "Fix wrong split bounds in legacy split flicker tests" into sc-dev 2021-05-14 02:29:18 +00:00
Jerry Chang
80d67949a2 Only reparent controlling tasks when entering split
Only move split controlling tasks to split secondary root when entering
split. So that it could align with launch root rule while in split.

Fix: 187892355
Test: enter split screen while having assist type task in recent,
observed it won't reparent assist type task to split-secondary-root.

Change-Id: I648dc74e2e44d62a0e40d50b29b08dd23b85ed26
2021-05-14 01:38:36 +08:00
Jerry Chang
93edc1eae5 Fix wrong split bounds in legacy split flicker tests
Fix: 188013792
Test: passed presubmit
Change-Id: I675633a078d172f9c8cd836980658c4f2aa2d246
2021-05-13 16:23:42 +08:00
Wei Sheng Shih
ca9330f822 Merge "Enable app reveal animation after splash screen." into sc-dev am: a9cbf391e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14516142

Change-Id: I36560912ca1689e9d2cbc67542c20a60a1af66eb
2021-05-13 02:45:09 +00:00
Wei Sheng Shih
a9cbf391e0 Merge "Enable app reveal animation after splash screen." into sc-dev 2021-05-13 01:40:49 +00:00
Jason Chang
1d1ea541f0 (1/n) Disabling OHM gesture in NavigationBar 3 Button mode
1) UX mentioned the swipe gesture in 3-Button NavgationBar area
may confuse user from taping NavBar buttons(Back, Home, Recents).
They decide to disable the swipe gesture and allow user to trigger
One Handed Mode(3 Button Mode) through A11y shortcut.
However, user can still use OHM by enabled shortcut button on
both Gesture Navigation & 3-Button mode.

2) OHM gestural handler consume the touch event while window
Magnification overlap with NavigationBar area in 3-button mode,
this result Magnification function can no long obtain the control.

Bug: 184903678
Bug: 179648683

Test: manual
Test: atest WMShellUnitTests
Change-Id: Ib9a06e19d749707e6f5e08c3ef803c1681f86bbc
2021-05-13 08:47:56 +08:00
chaviw
fb796315ed Add CAPTURE_BLACKOUT_CONTENT permission
Added a permssion to allow an application to capture screenshots of
layers that would normally be blacked out.

Test: Builds, screenshots still work as before
Test: ScreenshotTests
Bug: 173746627
Change-Id: I27237c8e340904cbaa82c7e5793de35cab85d8de
2021-05-12 18:00:36 -05:00
Chris Li
ac5deaeb8d Merge "Determine whether to support activities in multi window (5/n)" into sc-dev am: 806b5b8ed6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14390424

Change-Id: I9cd1a15fab53ffff962ce7c1507d3e4112c30122
2021-05-12 22:43:16 +00:00
Chris Li
806b5b8ed6 Merge "Determine whether to support activities in multi window (5/n)" into sc-dev 2021-05-12 22:37:41 +00:00
Ben Lin
57be2f606a Merge "PiP: Update menu state AFTER animation is done for show/hide/resize." into sc-dev am: 4c21ac8f33
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14421938

Change-Id: I3c0f7f4d2f3a9a0ba6aecc8b078ecc3efdd9ae84
2021-05-12 21:36:50 +00:00
Ben Lin
b98d7c9860 Merge "PiP: Recheck condition to pass input to menu." into sc-dev am: 8c39ee10d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14508696

Change-Id: I2f756e6be5783916d5835fd890a43c2048113697
2021-05-12 21:36:24 +00:00
Ben Lin
4c21ac8f33 Merge "PiP: Update menu state AFTER animation is done for show/hide/resize." into sc-dev 2021-05-12 21:34:48 +00:00
Ben Lin
8c39ee10d3 Merge "PiP: Recheck condition to pass input to menu." into sc-dev 2021-05-12 21:33:01 +00:00
Leon Scroggins
a5b13d0c99 Merge "PIP: Always enable rounded corners" into sc-dev am: 5183641bef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14117650

Change-Id: I6ba14d80f451e92e49de22b297dc6dd01c8b3bd7
2021-05-12 21:07:26 +00:00
Leon Scroggins III
4dda15cd27 PIP: Always enable rounded corners
Bug: 187922869

Previously, we turned on rounded corners with a sysprop in
bf309e63d4. Now that a bug in rendering
them in landscape has been fixed, remove the sysprop and always use
the rounded corners radius specified in the xml file.

Change-Id: Ib0f61bbcbee6ead82beec2b149b0892836492b78
2021-05-12 10:37:43 -04:00
Jordan Demeulenaere
b32af9e01e Merge "Scale splash screen icon by 1.2 instead of 1.3" into sc-dev am: ac3b62b2d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14500988

Change-Id: I94e927c7a9f477342ac9b40b6301ecc974a49148
2021-05-12 13:34:23 +00:00
Jordan Demeulenaere
ac3b62b2d0 Merge "Scale splash screen icon by 1.2 instead of 1.3" into sc-dev 2021-05-12 13:19:10 +00:00
Jordan Demeulenaere
c970b02ee0 Enable app reveal animation after splash screen.
Bug: 184830058
Test: Open an app
Change-Id: I91746ebb8fd86d4db8c94a42712da094009d49be
2021-05-12 10:21:32 +00:00
Ben Lin
dcecbaed57 PiP: Recheck condition to pass input to menu.
This used to be OR (pip is not stashed), but it should be AND.

Bug: 186499713
Test: Double tap on where the play button should be even when the menu
is not visible, no longer pauses

Change-Id: If8e101286ddfbb83caf0d6a85a1089e6c257f996
2021-05-11 16:23:40 -07:00
Sunny Goyal
3d9e1c4ae1 Merge "Removing generalization from OneHandledAnimationController" into sc-dev am: b04efdff70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429641

Change-Id: I3b24e3a6d8722b863ccbe507cc2b2ae72c119f37
2021-05-11 16:27:45 +00:00
Sunny Goyal
b04efdff70 Merge "Removing generalization from OneHandledAnimationController" into sc-dev 2021-05-11 16:20:44 +00:00
Jordan Demeulenaere
4acb22437c Scale splash screen icon by 1.2 instead of 1.3
Bug: 186847483
Test: Open an app
Change-Id: I889df24a8a39bafa3c4c5eec6b14536a7cc804a2
2021-05-11 17:15:54 +02:00
Riddle Hsu
674bc29351 Merge "Skip creating config context if it is the same as current" into sc-dev am: 81e85863e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442227

Change-Id: If6fc3e04ace5f777bdafa7792dee8a7552cbafcd
2021-05-11 04:23:05 +00:00
Chris Li
43d99647e4 Determine whether to support activities in multi window (5/n)
Update Task/ActivityRecord to use the new elgibility check and update
tests

Bug: 176061101
Test: pass existing
Change-Id: Ibb78a43d5901a604b02904be0a0bfdc6da0eb421
2021-05-11 04:20:49 +00:00
Riddle Hsu
81e85863e5 Merge "Skip creating config context if it is the same as current" into sc-dev 2021-05-11 04:15:57 +00:00
Hongwei Wang
e6f56566a5 Merge "Unify round corner radius in PipSurfaceTransactionHelper(s)" into sc-dev am: 57618b94ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14344122

Change-Id: Id5e97f4c1d0974a12c678b0f399345446fffee0b
2021-05-11 03:40:43 +00:00
Hongwei Wang
57618b94ef Merge "Unify round corner radius in PipSurfaceTransactionHelper(s)" into sc-dev 2021-05-11 03:23:11 +00:00
Jordan Demeulenaere
5dcb125092 Merge "Polish the app reveal animation." into sc-dev am: 0cd1d01d63
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14206219

Change-Id: I332193f8cdd4256edd497c3c572d57b58f2ffb39
2021-05-10 14:30:15 +00:00
Jordan Demeulenaere
0cd1d01d63 Merge "Polish the app reveal animation." into sc-dev 2021-05-10 14:09:51 +00:00
Bill Yi
bca4acc749 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0fb1a33648fe6a9f57a7f1412ad03164eebacb0b
2021-05-07 04:29:30 +00:00
Jordan Demeulenaere
37a3c61b82 Polish the app reveal animation.
This CL polishes the app reveal animation after a cold start. It does so
by:

1. Fading out the icon during 233ms before revealing the app, as spec'ed
   in the direct [1].
2. Animating the reveal gradient opacity from 0 too 100% (instead of
   starting at 100% opacity directly).

See b/184830058#comment7 and #comment13 for before/after videos.

[1] https://direct.googleplex.com/#/spec/241550001

Bug: 184830058
Test: atest SplashscreenTests StartingSurfaceDrawerTests
Change-Id: Ie4561887a259eec398f8f347050f27a094026945
2021-05-06 15:25:55 +02:00
Vadim Caen
3dfd064445 Merge "Support enable default splash screen reveal aninatmion" into sc-dev am: 279e06697b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13945686

Change-Id: I21f4c677b559b552d60231732c8603856160d992
2021-05-06 10:09:49 +00:00
Vadim Caen
279e06697b Merge "Support enable default splash screen reveal aninatmion" into sc-dev 2021-05-06 10:03:56 +00:00
Riddle Hsu
0c54f2192f Skip creating config context if it is the same as current
If the launching app is fullscreen on default display, the task
config should be the same as current global config. Then it is
unnecessary to create a context again.

Use diffPublicOnly because task config may have specified windowing
mode, which won't affect resources resolving.

It saves up to 4ms when adding splash screen starting window.
Also simply the initialization a bit.

Bug: 187104264
Test: OpenAppMicrobenchmark
Change-Id: I2bc7e8dfba3b1d8ad501f6935080a86f2c45f032
2021-05-06 16:15:29 +08:00
Riddle Hsu
8c9001a57d Merge "Load icon of splash screen only once" into sc-dev am: a54290f36b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14439966

Change-Id: I65af03b7cdf3c53102a04750b9c816abe8724c03
2021-05-06 02:33:34 +00:00
Bill Lin
64dace014f Merge changes from topic "ohm-shortcut" into sc-dev am: f94486117f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14295086

Change-Id: Id630c07d7c9083ca9fa33f329caff2b4bd2e5711
2021-05-06 02:29:48 +00:00
Riddle Hsu
a54290f36b Merge "Load icon of splash screen only once" into sc-dev 2021-05-06 02:28:59 +00:00
Vadim Caen
bdb646b9fc Merge "Remove uses of deprecated splashscreenContent attribute" into sc-dev am: b5881bd59f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14266447

Change-Id: I2948240a8c4470e74f2a21e3e1871ef052377202
2021-05-06 02:08:47 +00:00
Jerry Chang
080b7fd59c Merge "Add a flag to determin whether to support legacy split" into sc-dev am: 6a60e58c46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14410479

Change-Id: I429369a899c1bc54ee63607560a1a34d0cc3c0a8
2021-05-06 01:58:45 +00:00
Bill Lin
f94486117f Merge changes from topic "ohm-shortcut" into sc-dev
* changes:
  3/ Listen ONE_HANDED_MODE_ACTIVATED for A11y shortcut action
  2/ Implement Shortcut for One Handed mode feature
2021-05-05 23:43:12 +00:00
Ben Lin
150072f401 PiP: Update menu state AFTER animation is done for show/hide/resize.
When hiding the menu, there is a brief moment where the menu hide
animation is running, but the menu is already set as hidden in
mMenuState. In that case, other menu operations, such as resizing it,
would no-op, since it assumes the menu is not visible to the user
anymore. We will update the menu at end of the animation so that before
the animation finishes, we will respect that the menu is still in its
previous state. This will break apart the callback into two parts -
onMenuStateChanging, and onMenuStateChangeFinish.

Additionally, PipAnimationController used to only control animating the
PiP leash, but not the menu. This CL also adds a handler callback to
allow menu controller to apply the transaction.

Bug: 185513811
Bug: 186424689
Test: Tap once (show menu), pinch resize - menu resizes & fade along
with the resize
Test: Resize to smallest size, tap once (so that it grows bigger), and
then tap outside region - see that the menu no longer lags behind on
fading out.

Change-Id: I4432961aff074f4569d5d6d61b0e917511e2cbad
2021-05-05 13:41:12 -07:00
Riddle Hsu
2595465821 Load icon of splash screen only once
It is unnecessary to load icon without scale and load again
with scale. Just load the scaled one directly.

The construction time of SplashScreenView:
Dialer  : 36ms -> 24ms
Messages: 21ms -> 13ms
Contacts: 27ms -> 16ms

Bug: 187104264
Test: OpenAppMicrobenchmark
Change-Id: I0b71d3038f85a0839af862e5822e10fccbe1395d
2021-05-05 23:50:06 +08:00
Vadim Caen
b5881bd59f Merge "Remove uses of deprecated splashscreenContent attribute" into sc-dev 2021-05-05 12:45:40 +00:00