Commit Graph

644134 Commits

Author SHA1 Message Date
Huihong Luo
34f42fdecd Fix z-order for webview surface control
Set the root surface control transparent, and set the z order of the newly created child surface control to -1.
A new callback is needed to update root surface control in sync from Java side.

Bug: 186750329
Test: use latest APKs from Webview team, play a video, mini toolbar should be visible
Change-Id: I0b37ee8f83fd2b41ff4f2856dbadd31ff6170baf
2021-06-18 10:14:22 -07:00
Huihong Luo
1d88151a38 Fix potential ASurfaceTransactionCallback leaks
Change the rerferene to java object from global reference to weak
reference.

Bug: 188555236
Test: check number of ViewRootImpl objects from Systrace
Change-Id: I52347b9efb211691826635d046259bc3c54b194f
2021-06-16 09:47:04 -07:00
Issei Suzuki
41e7f367ed Merge "Persist Theme name instead of ID for ShortcutInfo" into sc-dev 2021-06-16 14:57:36 +00:00
TreeHugger Robot
04350c57de Merge "Don't promote the animation on Task's parent when clearing task" into sc-dev 2021-06-16 13:38:49 +00:00
Selim Cinek
4721ef7c65 Merge changes from topic "notif_smooth_dismissal" into sc-dev
* changes:
  Animating when the qs boundary changes due to notification interactions
  When swiping notifications it doesn't clip early anymore
  Modified the way the notifications clip to the boundary
2021-06-16 13:29:14 +00:00
Miranda Kephart
0ecbcfd09c Merge "Use sp for screenshot button icon size" into sc-dev 2021-06-16 13:15:22 +00:00
Vadim Caen
dc07d29bd0 Merge "Release the SurfacePackageViewHost on splash screen removed" into sc-dev 2021-06-16 12:27:47 +00:00
Jordan Demeulenaere
6057f676ae Merge "Fix bouncer to launcher/app animation" into sc-dev 2021-06-16 12:13:43 +00:00
PETER LIANG
d89dae0094 Merge "Update the default position of the Accessibility floating menu." into sc-dev 2021-06-16 11:52:45 +00:00
Selim Cinek
982d5430b8 Animating when the qs boundary changes due to notification interactions
When dismissing notifications, the logic how the scrolling was adapted
wasn't updated yet, leading to accidental scrolls after dismisses.
Additionally, we're now animating these changes properly when the
boundary changes for these events.

Fixes: 188439802
Test: have a couple of notifications, scroll, dismiss the first notification, observe nice animation
Change-Id: Ic4faec910a7ca82fd283ab2053ddb4222668a161
2021-06-16 13:40:59 +02:00
Selim Cinek
a21cbcdf03 When swiping notifications it doesn't clip early anymore
Previously notifications started to clip before reaching
the edge. We're now changinging the flags to dismiss with
translation instead of clipping the contents.

This is change 1/2 as the notification container should
clip the notification now, which is especially noticeable
in split shade.

Bug: 181887261
Test: dismiss notifications, visually observe no clipping
Change-Id: I003b1486ce64dd127a90ca2d9f982230eba79f60
2021-06-16 13:40:59 +02:00
Selim Cinek
07045f95e0 Modified the way the notifications clip to the boundary
Previously the notification shade didn't clip at all to
the qs - notification boundary, which could lead to
content peaking outside of the boundary during dismissal
or other situations. We now clip to the boundary
using rounded rect clipping. This also allows us to
remove various complex clipping logic that was updating
the clipping on the top for individual notification views.

This also fixes some bugs on the split shade where the
notifications were wrongly clipped previously.

This is change 2/2 to improve the notification dismissal.

Fixes: 181887261
Test: atest SystemUITests
Merged-In: I1ebe777c50b85a500ecce22823d547c6d9c3c6d5
Change-Id: I1ebe777c50b85a500ecce22823d547c6d9c3c6d5
2021-06-16 13:40:57 +02:00
Nikita Ioffe
a2d7f96154 Merge "Explicitly set generate_hashtree: false" into sc-dev 2021-06-16 10:30:35 +00:00
PETER LIANG
29ab842516 Merge "Add a new string for a migration tooltip of Accessibility floating menu." into sc-dev 2021-06-16 10:29:45 +00:00
Jordan Demeulenaere
534aef4d05 Fix bouncer to launcher/app animation
This CL ensures that we don't show the keyguard early when unlocking the
phone from the bouncer after swiping up on the lockscreen.

Bug: 191031464
Test: Manual, swipe up on lockscreen with PIN
Change-Id: Id7269189c857e1108a8e33074bb5abfd40437deb
2021-06-16 12:10:28 +02:00
Stanley Wang
4a762bc62b Merge "Update the IllustrationPreference of SettingsLib." into sc-dev 2021-06-16 09:24:55 +00:00
Stanley Wang
09d0cbaff9 Merge "Refine the IllustrationPreference." into sc-dev 2021-06-16 09:22:00 +00:00
TreeHugger Robot
8f74aa34ee Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev 2021-06-16 08:46:41 +00:00
Ming-Shin Lu
dd21fabb74 Don't promote the animation on Task's parent when clearing task
We cannot promote the transition animation on Task's parent
when the task is in clearing task, in case the animation get
stuck when performing the opening task transition that behind it.

Fix: 176492094
Test: manual as issue steps in setup wizard:
1. complete initial setup without connection
2. finish the pre-deferred setup by setting up Wi-Fi connection
3. remove the Wi-Fi connection from settings page
4. launch deferred setup from notification
5. choose offline setup on Network settings page
6. complete deferred setup
7. observe the behaviour if the transition is janky when backing to home

Change-Id: I50fba3a7681c7d53e0caddf84315d6e6c76e9e92
2021-06-16 08:16:11 +00:00
Kevin Chyn
5c7cdbb8f5 Merge "Refactor/Move isTestModeEnabled to frameworks/base" into sc-dev 2021-06-16 07:55:01 +00:00
Rhed Jao
b55a5da715 Merge "Add support to update the throttle time of silent updates" into sc-dev 2021-06-16 07:28:58 +00:00
Rhed Jao
0d6cc194dc Merge "Fix wrong targetSdkVersion returned by the ApkLiteParseUtils" into sc-dev 2021-06-16 07:27:33 +00:00
Alexander Dorokhine
aafffec2e3 Merge "Switch to a non-hidden way to compute data path and switch to subdir." into sc-dev 2021-06-16 07:00:17 +00:00
TreeHugger Robot
72ca552528 Merge "Fixed wipeData() so it doesn't depend on device_admin." into sc-dev 2021-06-16 06:45:36 +00:00
TreeHugger Robot
04e32fa3d2 Merge "Tweak vertical divider hight of RadioButtonPreference" into sc-dev 2021-06-16 06:35:52 +00:00
TreeHugger Robot
949b4d2940 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev 2021-06-16 06:32:35 +00:00
Stanley Wang
4f59c38d83 Update the IllustrationPreference of SettingsLib.
- Adjust the frame size of the LottieView. We set the frame height
  to 300dp and set the length of the short side of the screen to
  the width of the frame. In this way, LottieView has a fixed size
  to solve the problem of incorrect illustration spec.
- Set the importantForAccessibility value to noHideDescendants to
  avoid the a11y issue.

Bug: 190807662
Test: robotest and see the UI.
Change-Id: Ib48f9c65e0dfbf36b7ebb70718fa5423c918a7a9
2021-06-16 14:14:42 +08:00
Kevin Chyn
ffc5989fd3 Merge "Move non-settings-specific logic to frameworks/base" into sc-dev 2021-06-16 06:13:17 +00:00
Stanley Wang
4defdfaeb4 Refine the IllustrationPreference.
- Remove the system color part of the adaptive colors.
- Add a flag to disable the adaptive colors feature.
- Update the minSdkVersion to 28.

Fix: 191136169
Test: robotest and see the UI
Change-Id: Ia385055d24092d81960cfe4093c427b23f3f2b87
2021-06-16 13:45:52 +08:00
Ahaan Ugale
d224da0ed4 ContentCaptureEvent: Log composing and selection indices
Bug: 184311217
Test: manual
Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785
2021-06-15 22:21:26 -07:00
Minche Li
70aaf815b6 Merge "Calculates the window height fraction on screen by the draggable bounds for magnification switch button" into sc-dev 2021-06-16 04:58:37 +00:00
TreeHugger Robot
014c064431 Merge "Limit marquee in QS tiles to 1" into sc-dev 2021-06-16 04:01:09 +00:00
TreeHugger Robot
8a39e97d7e Merge "Set quick_qs_offset_height to 48dp in waterfall" into sc-dev 2021-06-16 04:00:25 +00:00
mincheli
5c8b13c47f Calculates the window height fraction on screen by the draggable bounds for magnification switch button
In the previous change ag/14776093, the window height fraction used
"windowHeightFraction = (float) mParams.y / mWindowHeight;". And it
causes the  Y-position deviated after the rotation is changed.
To correct this, we used the draggable bounds to calculate the window
height fraction.
See b/189715285#comment3

Bug: 189715285
Test: atest MagnificationModeSwitchTest
Change-Id: I1adcea12f0a96c64c9c6e386dc2feb8e3a9ffcf3
2021-06-16 01:59:16 +00:00
Colin Cross
5c80e3491d Merge "Revert "Revert "HULK SMASH! We've gotta declare REL.""" into sc-dev 2021-06-16 01:55:36 +00:00
Colin Cross
67f28e7448 Revert "Revert "HULK SMASH! We've gotta declare REL.""
This reverts commit 30bb1d09eb.

Reason for revert: b/191191441

Bug: 171506470
Bug: 191191441
Change-Id: I698709a27f3b09e5e02143efd7a71157b5ecf75a
2021-06-16 01:54:59 +00:00
Kevin Chyn
c0c3e583c1 Refactor/Move isTestModeEnabled to frameworks/base
ActionDisabledByAdminControllerFactory is also in frameworks/base,
and should take test mode into consideration.

Bug: 188847063
Test: atest ParentalControlsUtilsTest
Change-Id: I0195478606361aa8b6406376d96b2fc219d9cc4d
2021-06-15 17:14:49 -07:00
Alexander Dorokhine
66e09afd54 Switch to a non-hidden way to compute data path and switch to subdir.
We need to store other things in the appsearch data dir other than what
Icing stores, such as the storage info cache.

Bug: 177685938
Bug: 181787682
Test: Presubmit
Change-Id: I903c34a2c891d617217d44f5126d0d31c8c6bf39
2021-06-15 16:43:28 -07:00
Alexander Dorokhine
ad37babc9f Merge "Update framework from jetpack." into sc-dev 2021-06-15 23:20:43 +00:00
Jing Ji
a388d2533d [automerger skipped] Validate the ServiceRecord state while handling misbehaving FGS am: ae5a219b95 -s ours
am skip reason: Merged-In If18e1d7ba88aef693349b82dc6e70f7d98c68665 with SHA-1 e9b096473f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14984596

Change-Id: I64138221dba7defd84c31b64fa84b6aea7c1d09b
2021-06-15 22:19:10 +00:00
Siarhei Vishniakou
5d552869af Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev 2021-06-15 21:50:35 +00:00
TreeHugger Robot
50bbe88967 Merge "Improved implementation of VoiceInteractionManagerService.setDisabled()" into sc-dev 2021-06-15 21:45:38 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
Ilya Matyukhin
825555290f Merge "Add traces for touch events and fix trace naming" into sc-dev 2021-06-15 21:07:54 +00:00
Jeff Sharkey
a56beb126d Merge "Revert "HULK SMASH! We've gotta declare REL."" into sc-dev 2021-06-15 21:03:41 +00:00
Nikita Ioffe
4173c5a51a Merge "Allow holders of INSTALL_PACKAGE_UPDATES permission to update APEXes" into sc-dev 2021-06-15 21:03:05 +00:00
TreeHugger Robot
5bb0024e1f Merge "Use PWLE for waveforms and add ramp down to zero" into sc-dev 2021-06-15 20:50:45 +00:00
TreeHugger Robot
7f848ec12a Merge "Refresh the call indicators whenever carrier config is changed" into sc-dev 2021-06-15 20:47:45 +00:00
TreeHugger Robot
d26ab5ef57 Merge "Need to call resetFgsRestrictionLocked() before calling setFgsRestrictionLocked() again." into sc-dev 2021-06-15 20:28:15 +00:00
Miranda Kephart
f34c9ede73 Merge "Make Markup fade in from screenshots" into sc-dev 2021-06-15 20:04:45 +00:00