Commit Graph

656855 Commits

Author SHA1 Message Date
Gary Jian
eaa09ebfab Make KEY_VONR_SETTING_VISIBILITY_BOOL default to true
Bug: 205809218
Test: make
Change-Id: I02ea3ad61a0dc1cd09f0bd541008de0e46e3d0ab
2021-11-15 19:26:34 +08:00
TreeHugger Robot
b5827095ca Merge "Send the network logging enabled notification to the current user." into sc-v2-dev 2021-11-13 16:34:10 +00:00
Wu Ahan
60316d327f Merge "Add null check before notifying CUJ events" into sc-v2-dev 2021-11-13 04:34:46 +00:00
TreeHugger Robot
b3137b3b86 Merge "New hidden DPM methods: getLogoutUserId() and clearLogoutUser()." into sc-v2-dev 2021-11-13 01:22:24 +00:00
Hongwei Wang
8923d44570 Merge "Update PiP dismiss target on theme change" into sc-v2-dev 2021-11-13 00:48:37 +00:00
TreeHugger Robot
23039de620 Merge "Add feature flag for Android automotive OS templates host" into sc-v2-dev 2021-11-13 00:09:56 +00:00
TreeHugger Robot
b8899dac7b Merge "Fix isVisibleOrAdding and update name/docs" into sc-v2-dev 2021-11-12 22:57:48 +00:00
Lucas Dupin
f485c6acf6 Merge "Remove unused resources" into sc-v2-dev 2021-11-12 22:23:30 +00:00
TreeHugger Robot
e089bd6d2e Merge "Don't show 'try fingerprint' msg on face auth help" into sc-v2-dev 2021-11-12 21:36:18 +00:00
TreeHugger Robot
c8f32a43b0 Merge "Prevent ClassCastException" into sc-v2-dev 2021-11-12 21:09:26 +00:00
Winson Chung
b5c5258a65 Merge "Fix issue with provided options not being applied when launching split tasks" into sc-v2-dev 2021-11-12 20:51:15 +00:00
Felipe Leme
3106ae05e2 Send the network logging enabled notification to the current user.
It was sending it to the system user, which wouldn't work on systems
with headless system user.

Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: manual verification with TestDpc and CtsVerifier on phone and automotive
Test: adb shell dumpsys device_policy | grep mNetworkLoggingNotificationUserId

Bug: 205190291

Change-Id: I0c060a9d9f1c41f63f9bcebd3c1848963ff12764
2021-11-12 12:11:05 -08:00
Lucas Dupin
e4bb3b1235 Remove unused resources
After deleting these files - mostly automated by Android Studio -
our final apk size went from 43MB to 37MB.

Test: make
Test: manual
Test: presubmit/integration tests
Fixes: 204361342
Change-Id: I7f76ca4249431fb226972ed48cc1a4a10328a556
Merged-In: I7f76ca4249431fb226972ed48cc1a4a10328a556
2021-11-12 20:07:01 +00:00
Evan Rosky
99c7e04b38 Fix isVisibleOrAdding and update name/docs
At some point, the functionality drifted from the name and
documentation. This changes the functionality back to the mismatching
functionality, but renames the method and updates the documentation to
match the behavior.

Bug: 205075200
Bug: 205761007
Bug: 204948120
Bug: 204731658
Test: open dev options in settings, click search, observe ime showing
Test: atest OpenImeWindowAndCloseTest
Change-Id: I3ec44ef6c444bbcfa60571ce8e39e3d531af64d7
2021-11-12 11:38:01 -08:00
TreeHugger Robot
decdf37b97 Merge "Add SPLIT_TOUCH to UdfpsView" into sc-v2-dev 2021-11-12 19:09:34 +00:00
Fabian Kozynski
338c15b33f Prevent ClassCastException
Check intent extra for malformed ComponentName

Test: atest TileServicesTest
Fixes: 205566860
Change-Id: I01f5f5cd7df8be0d75fa9a73afa47a39eb4a2fa9
2021-11-12 13:54:24 -05:00
TreeHugger Robot
d3fdb87c77 Merge "Keyguard Unfold" into sc-v2-dev 2021-11-12 18:44:36 +00:00
TreeHugger Robot
174e83c8ec Merge "Fixed permisssions on setStopBackgroundUsersOnSwitch()." into sc-v2-dev 2021-11-12 18:34:04 +00:00
Michał Brzeziński
cdae07870c Merge changes from topic "lock_icon_move" into sc-v2-dev
* changes:
  Moving notifications and keyguard status higher in split shade lockscreen
  Moving now playing widget above lock icon in split shade
2021-11-12 18:19:19 +00:00
TreeHugger Robot
26492d0725 Merge "Skip DevicePolicyManagerTest that are not supported on automotive." into sc-v2-dev 2021-11-12 17:51:24 +00:00
Ben Lin
b61f021774 Merge "PiP: Enable enter split." into sc-v2-dev 2021-11-12 17:47:00 +00:00
Beverly
79079e8a33 Don't show 'try fingerprint' msg on face auth help
Sometimes multiple biometric-help suggestions for face auth
can be sent right before a face auth sucesss. If udfps
is suppressing the face auth help message, don't show any messages
(previouosly we'd show "try fingerprint" which was unhelpful
and sometimes was shown on screen as a successful face auth
was occurring which was confusing).

Note: we will continue to announce the help
messages for a11y purposes.

Test: atest KeyguardIndicationControllerTest
Test: manually auth with face, see keyguard message
Fixes: 203897784
Change-Id: I75b9e19b812505ff2dafa960600da67135448042
2021-11-12 12:27:40 -05:00
Fiona Campbell
c19c6d4b3c Merge "Make setBrightnessConfigurationForUser locked" into sc-v2-dev 2021-11-12 17:10:15 +00:00
Matt Pietal
d631564700 Keyguard Unfold
Support subtle x-axis movements of keyguard elements as the device
hinge is operated.

Bug: 201410717
Test: KeyguardUnfoldTransitionTest

Change-Id: Ic86b8316bbd07922e3d86a5fe7ff341ff5c7040e
2021-11-12 11:50:53 -05:00
Jordan Demeulenaere
64c7c7150f Merge "Fix regression when launching the media output dialog" into sc-v2-dev 2021-11-12 15:30:11 +00:00
TreeHugger Robot
55d2c4c1aa Merge "Check for the vibrate notification key on delayed vibrations" into sc-v2-dev 2021-11-12 13:58:20 +00:00
Jordan Demeulenaere
79bd0cafdd Fix regression when launching the media output dialog
This CL fixes a regression that was caused by ag/16191211: when opening
the media output dialog, we would animate from the media dialog content
instead of its parent (that has the dialog background).

This CL changes that by detecting that the view we are launching from is
actually the content of a dialog that was animated using
DialogLaunchAnimator, and animates its parent to also animate the
background.

See b/200781817#comment8 for before/after videos.

Bug: 200781817
Test: Manual
Change-Id: I20cf8bdff8b6d29e9aa458f96d65851a0298f98d
2021-11-12 14:32:27 +01:00
Jordan Demeulenaere
d7b0a36294 Merge "Temporary fix DialogLaunchAnimatorTest#testShowDialogFromView" into sc-v2-dev 2021-11-12 10:40:19 +00:00
Lais Andrade
6bd7a9c728 Check for the vibrate notification key on delayed vibrations
Notifications played with sound have a delayed vibration, in order to
match the vibration and sound effects. If the effects are cleared before
the vibration starts, or a new one takes its place, then the vibration
hould be cancelled because it no longer will be tracked by the
NotificationManagerService.mVibrateNotificationKey.

This can cause repeating vibrations, like incoming calls, to start and
continue vibrating even after the notification was handled, (if the user
opens the notification panel before it actually starts vibrating, for
example).

Fix: 202752953
Test: NotificationManagerServiceTest
Change-Id: If3ed4a741e78058a321691acebe735c735542f16
Merged-In: If3ed4a741e78058a321691acebe735c735542f16
(cherry picked from commit 2bf7f52086)
2021-11-12 10:29:53 +00:00
Wu Ahan
eec2d1237d Add null check before notifying CUJ events
There is a potential NPE since we didn't have null check before sending
broadcast, so add null cehck.

Bug: 205211901
Test: Manually
Change-Id: Icc60d2c87941373943ec627f669598dca684c09d
2021-11-12 09:06:44 +00:00
Jordan Demeulenaere
273dc06373 Temporary fix DialogLaunchAnimatorTest#testShowDialogFromView
This is a temporary fix to make #testShowDialogFromView pass on
git_master/cf_x86_64_phone-userdebug.

Bug: 204589809
Bug: 204561691
Test: https://android-build.googleplex.com/builds/abtd/run/L96200000951897805
Change-Id: I28fe649fde6a107ee939ae8e85090972899f5d17
2021-11-12 10:05:33 +01:00
Fedor Kudasov
2d7f52505e Merge "Add @Nullable annotations to Task fields" into sc-v2-dev 2021-11-12 08:18:32 +00:00
TreeHugger Robot
e171c540da Merge "Consider the lock-task mode while using FLAG_ACTIVITY_TASK_ON_HOME" into sc-v2-dev 2021-11-12 06:13:06 +00:00
Winson Chung
83119e1bac Fix issue with provided options not being applied when launching split tasks
- Since SysUI/Shell is making the call to start the app pair tasks in a
  WCT, we also need to expand the restriction on who can freeze the
  list (to any caller with MANAGE_ACTIVITY_TASKS)

Bug: 206000278
Test: Quickswitch from app pair and back
Change-Id: I7f455fde87edfbcb7d856d842710c2a4542d7207
2021-11-12 05:38:10 +00:00
Jeff Chang
d41841f469 Consider the lock-task mode while using FLAG_ACTIVITY_TASK_ON_HOME
The flag will cause a newly launching task to be placed on top of the
current home activity task but it did ignore the lock-task mode
mechansim.

This CL checks the home task whether violated with lock-task mode when
startActivity with task-on-home flag.

Bug: 202980858
Test: atest TaskTests#testReturnsToHomeRootTask
      atest ActivityVisibilityTests#testLaunchTaskOnHome
Change-Id: I521b9e4fc32648263afb70de3342dbb5f3583330
2021-11-12 12:10:11 +08:00
Felipe Leme
670c8895be New hidden DPM methods: getLogoutUserId() and clearLogoutUser().
Also fixed how the logout user was cleared after a successful switch.

They will be used by CarSystemUi to end a session.

Test: Manual verification with CtsVerifier and TestDpc on automotive

Bug: 205185521
Bug: 204483021

Change-Id: Ieda0a22625ef705fcd705aedfc2dbf2cf570bf81
2021-11-11 18:14:28 -08:00
Siarhei Vishniakou
e8e382c03f [automerger skipped] Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29 am: c7052c9c79 -s ours am: bb535c95d2 -s ours am: 734bde2baa -s ours
am skip reason: Merged-In Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b with SHA-1 07e7aaff29 is already in history

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

Change-Id: I4bc5393e1d1a0e57746f4ad4715d41a6351bc843
2021-11-12 01:51:07 +00:00
Felipe Leme
1f37c4f7c7 Fixed permisssions on setStopBackgroundUsersOnSwitch().
It was requiring INTERACT_ACROSS_USERS_FULL (instead of
INTERACT_ACROSS_USERS), which cannot be granted by Shell
(and hence cannot be used by CtsVerifier).

Test: m update-api
Test: manual verification
Bug: 203752848

Change-Id: Ie84311e6500cefa055548e309ee6d629c62fb10d
2021-11-11 17:42:24 -08:00
Siarhei Vishniakou
734bde2baa [automerger skipped] Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29 am: c7052c9c79 -s ours am: bb535c95d2 -s ours
am skip reason: Merged-In Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b with SHA-1 07e7aaff29 is already in history

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

Change-Id: Ie76b4547496cb0d6da58f7dca1b2a6d410af0730
2021-11-12 01:32:59 +00:00
Siarhei Vishniakou
bb535c95d2 [automerger skipped] Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29 am: c7052c9c79 -s ours
am skip reason: Merged-In Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b with SHA-1 07e7aaff29 is already in history

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

Change-Id: I973210801594085c5d890a558cbb7b403b47f86f
2021-11-12 01:15:23 +00:00
Hongwei Wang
abf3d3b948 Update PiP dismiss target on theme change
Re-initiate the DismissCircleView upon theme change to make sure the PiP
dismiss target inherits the right theme color.

Bug: 199359063
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bIMe3fAFoW6Nw47Ye894MZ
Test: manually, see video
Change-Id: Ia65c633fd636114ddbdc2ff497245e2cb73f7745
2021-11-11 16:28:54 -08:00
Joe Bolinger
2ab2685cca Merge "Allow fields in biometric prompt to span multiple lines." into sc-v2-dev 2021-11-11 23:24:11 +00:00
Siarhei Vishniakou
c7052c9c79 Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16190719

Change-Id: If208e3c8b5a9d43034b4764d678a1a33ea2729c6
Merged-In: Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b
Bug: 157929241
Bug: 205996845
2021-11-11 23:09:51 +00:00
TreeHugger Robot
8b5c93d9ea Merge "Check if the view can be recycled if viewId is set" into sc-v2-dev 2021-11-11 23:02:46 +00:00
Ben Lin
6d6a81b5e8 PiP: Enable enter split.
Bug: 202740657
Test: Enter PIP, open another app, tap "enter split"
Change-Id: Ifd30489705c8a928aa8e219cb0d88fdd2b932c6d
2021-11-11 14:01:14 -08:00
Fedor Kudasov
716597f726 Add @Nullable annotations to Task fields
Bug: 205828770
Test: m SystemUI-core
Change-Id: I80194b9959b9be3b87d2f074557f4e79f164ceca
(cherry picked from commit 11ae0987c2)
2021-11-11 21:54:29 +00:00
Beverly
97b632d466 Add SPLIT_TOUCH to UdfpsView
So non-first touches go to the UdfpsView.
This makes it easier to authenticate.

Test: manually try multi-touch UDFPS
Fixes: 203086896
Change-Id: I9ff954d21bc027d18c530a8b7799fef0e902c4c9
2021-11-11 16:21:51 -05:00
TreeHugger Robot
715c488a9c Merge "Add a bold-text version for the keyguard clock" into sc-v2-dev 2021-11-11 21:16:58 +00:00
TreeHugger Robot
4d6947e323 Merge "Update Assistant entry points on navigation mode change" into sc-v2-dev 2021-11-11 20:55:20 +00:00
Jay Aliomer
b9902adf15 Merge "Update local wallpaper colors when areas added and fix stale clock" into sc-v2-dev 2021-11-11 20:47:01 +00:00