Commit Graph

38180 Commits

Author SHA1 Message Date
TreeHugger Robot
024f239d4a Merge "Set notification shelf icon color to primary text color" into sc-dev 2021-03-12 01:11:11 +00:00
TreeHugger Robot
cdebbc764a Merge "Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a" into sc-dev 2021-03-12 00:17:58 +00:00
TreeHugger Robot
9d814451e4 Merge "Handle multiple Activities matching eSOS intent" into sc-dev 2021-03-11 22:22:02 +00:00
Lyn Han
3bf20268d8 Set notification shelf icon color to primary text color
Bug: 182486170
Test: icons update color with dark/light theme change
Change-Id: I3e6e3c1c7427ccdce5b42242d475501d33f4dda0
2021-03-11 15:12:51 -06:00
Lyn Han
0ec8d259d5 Merge "Remove section headers for non-silent notifications" into sc-dev 2021-03-11 19:57:33 +00:00
Matthew Fritze
cc0f89b68b Handle multiple Activities matching eSOS intent
We should be able to handle multiple emergengy sos activities on the
device without showing a disambig dialog. This CL adds a config string
to set the package name of the preferred app to handle the emergengy sos
intent (not using RoleManager#ROLE_EMERGENCY since SysUI doesn't have
the necessary permission).

The preference is given to the activity as follows:

1. Activity is from a system app with package name matching new config string
2. Activity is from a system app
3. Gesture becomes a no-op (will not match non-system activities)

Test: manual {StatusBar makes testing a launched activity
challenging}

Bug: 181610572
Change-Id: I862b4e3edf990d5f011aa0dc073070ede8b474b1
2021-03-11 11:36:57 -08:00
Flavio Fiszman
04c28ba44f Merge "Handle onAppWidgetOptionsChanged widget add" into sc-dev 2021-03-11 15:59:34 +00:00
TreeHugger Robot
01ab7bcd20 Merge "Controls in QS" into sc-dev 2021-03-11 15:04:27 +00:00
Flavio Fiszman
af8cc8d0ee Handle onAppWidgetOptionsChanged widget add
Change-Id: I2df633086c61d973effec4dbe54a691ac31125f3
Test: PeopleSpaceUtilsTest and PeopleSpaceWidgetManagerTest
Bug: 182265091
2021-03-11 13:58:01 +00:00
Beverly Tai
384db6dd05 Merge "Add quickpickup gesture" into sc-dev 2021-03-11 13:35:56 +00:00
Jordan Demeulenaere
3d104e2101 Merge "Animate notification corner radius when it is expanding." into sc-dev 2021-03-11 11:16:18 +00:00
Anna Zappone
7dfa3fcee8 Merge "Strings for Beta 1" into sc-dev 2021-03-11 10:31:42 +00:00
Jordan Demeulenaere
1c56aa07d2 Merge "Don't collapse the Shade when expanding a notification." into sc-dev 2021-03-11 08:20:51 +00:00
Kevin Chyn
0cdcea8e74 Merge "Add scaling factor for guided enrollment" into sc-dev 2021-03-11 01:14:44 +00:00
Beverly Tai
11891c768c Merge "Don't show toast icon for system apps" into sc-dev 2021-03-10 23:41:10 +00:00
Jeff DeCew
364576c7e0 Merge "Flow text around the large icon." into sc-dev 2021-03-10 22:19:22 +00:00
Jeff DeCew
852a4a7bb5 Merge "Let CallStyle notifications be any height." into sc-dev 2021-03-10 21:11:45 +00:00
Beverly
c0ddb20d17 Add quickpickup gesture
Only registered when:
- udfps enrolled
- AOD is not enabled
- quickpick enabled:
    adb shell settings put secure doze_quick_pickup_gesture 1
Currently by default, quickpickup is not enabled

On gesture trigger, AOD screen will show for 5 seconds

Test: manual
Bug: 176550666
Change-Id: I804a2590c1d95acad62fbfbc85228ecfc8bfa3ed
2021-03-10 19:00:24 +00:00
Curtis Belmonte
81219cb73b Merge "Adjust UDFPS prompt for 3-button nav and landscape" into sc-dev 2021-03-10 18:50:57 +00:00
Beverly Tai
44d2d8f916 Merge "Update udfps view state before showing" into sc-dev 2021-03-10 17:41:35 +00:00
Anna Zappone
b98280defc Strings for Beta 1
Test: none
Bug: 163617224
Change-Id: I8d75a4c2bb4645ea51814db46101bf228e380106
2021-03-10 17:34:37 +00:00
Jeff DeCew
34555e2081 Merge "Do not increment the conversation unread count when FLAG_ONLY_ALERT_ONCE is set." into sc-dev 2021-03-10 17:31:15 +00:00
Lyn Han
4e57531ea5 Merge "Round adjacent corners when swiping notification" into sc-dev 2021-03-10 17:27:38 +00:00
Winson Chung
a69d3dc321 Merge "Ensure that ML model results are still bounded by the gesture insets" into sc-dev 2021-03-10 17:14:52 +00:00
Matt Pietal
7d969181e9 Controls in QS
Continue to support launching from both global actions as well as the
QS tile. Use an activity for QS tile launches, which supports
lockscreen visibility.

Bug: 172360102
Test: manual
Change-Id: I002aa32f9126745ee310e203ad45f9c28f39fa8d
2021-03-10 12:14:36 -05:00
Beth Thibodeau
5b1beb3963 Merge "Remove screenrecord flag code from global actions" into sc-dev 2021-03-10 17:10:00 +00:00
Lyn Han
b3e6ddfc03 Merge "Skip shelf icon fade for low priority notifications" into sc-dev 2021-03-10 17:04:26 +00:00
Lyn Han
af3ca90ae5 Skip shelf icon fade for low priority notifications
Fix issue where low priority icons fade into the shelf
then immediately fade out into the dot.

Remove unused things

- openedAmount: originally added to fix cutout issue
  but we won't show the shelf near the cutout anymore

- expandedAmount: tweaks shelf transformation near the status bar
  but we won't show the shelf near the status bar anymore

- handleCustomTransformHeight: leftover from shelf-icon to notif-icon
  animation, which we already removed

Bug: 178479515
Test: scroll shade up and down
Change-Id: I7c3e2cb6dac1ce70de1dbe575734c393f7f511de
2021-03-10 17:01:37 +00:00
Matt Casey
4e006517d5 Merge "Set initial crop handles to original page location" into sc-dev 2021-03-10 16:52:28 +00:00
Jeff DeCew
cdf6b6b4c9 Flow text around the large icon.
This is only necessary when a notification is posted without a title.

Fixes: 177976174
Test: Manual inspection of various staes.
Change-Id: I15fdc31e1557b7e5d6fb99e410f4bf37d6734ac4
2021-03-10 10:34:58 -05:00
Fabian Kozynski
b938d78c8f Merge "Add new Next Alarm tile" into sc-dev 2021-03-10 15:28:46 +00:00
TreeHugger Robot
084e763a08 Merge "Implement new footer" into sc-dev 2021-03-10 15:27:56 +00:00
Julia Reynolds
58050d1515 Merge changes I363c1670,Id16e8a0d into sc-dev
* changes:
  FGS notifs are no longer upranked
  Update comment
2021-03-10 14:42:50 +00:00
TreeHugger Robot
ebf45791ba Merge "Fix unbounded MotionEvent growth in Falsing" into sc-dev 2021-03-10 14:28:27 +00:00
Lyn Han
edb74bc2c9 Remove section headers for non-silent notifications
Fixes: 181791640
Test: manual - only silent section has header
Test: NotificationSectionsManagerTest

Change-Id: Ie55ad86b120875c659a3b7a559e9b585a58cd9fe
2021-03-10 08:18:25 -06:00
Matt Casey
943a2392a8 Merge "Ensure view is attached to window before removing it" into sc-dev 2021-03-10 13:53:19 +00:00
Jordan Demeulenaere
6a7e3d3682 Don't collapse the Shade when expanding a notification.
This CL prevents the Shade from collapsing if a notification expansion
animation is pending/running. It does so by:

1. Making sure that StatusBarNotificationActivityStarter#shouldCollapse
   is checked *after* ActivityLaunchAnimator#setLaunchResult is called.
2. Updating the clipped area of the parent of the notification that is
   expanding, if any.
3. Not moving the QS or the notification siblings while the animation is
   running.
4. Making sure that the notification is displayed above the QS.

See b/181654098#comment4 for before/after videos.

Bug: 181654098
Test: Manual; atest ActivityLaunchAnimatorTest ExpandableNotificationRowTest NotificationChildrenContainerTest NotificationStackScrollLayoutTest StatusBarNotificationActivityStarterTest

Change-Id: I5a7beb4dc4883ed2757e286c4b480f83709680f7
2021-03-10 14:47:48 +01:00
Jordan Demeulenaere
4c157edf1e Animate notification corner radius when it is expanding.
This CL animates the notification corner radius when the notification is
expanding, from its initial radius up to the final window corner radius.

See b/181654098#comment5 for before/after videos.

Bug: 181654098
Test: Manual
Change-Id: I2b4889f3c811f27166e405248c512052d145922d
2021-03-10 14:31:20 +01:00
Beverly
bfcdcea0f3 Update udfps view state before showing
Also continue to listen for fingerprints on shade and fullscreen user
switcher, logic to hide icon is in UdfpsAnimationView

Test: manual
Fixes: 181573493
Change-Id: I7e7aed339498bb5cac588bb67f432251a93638a5
2021-03-10 06:48:15 -05:00
Jeff DeCew
5c64d007e8 Do not increment the conversation unread count when FLAG_ONLY_ALERT_ONCE is set.
Bug: 179417569
Test: manual testing with updated notify app.
Change-Id: I4009146716fde91f24cdd69a72bf7b0048e2bc14
2021-03-09 20:33:33 -05:00
Jeff DeCew
b9dccf5a77 Let CallStyle notifications be any height.
This separate dimension was really a bug waiting to happen. Add a little padding here or there, forget to update this dimension, and suddenly in rare cases the UI would be cropped.

Bug: 179178086
Test: Post CallStyle notifications with title, text, progress, smart actions.
Change-Id: I35500885eb53750fa2ccde4f2f602e6cfdb02113
2021-03-09 20:08:53 -05:00
Winson Chung
8afd10c966 Ensure that ML model results are still bounded by the gesture insets
- In some cases, the ML model may return that it is a valid swipe
  even if it is out of the current inset bounds

Bug: 178561216
Test: Enable ML model, rotate to landscape and try to swipe near
      the edges
Change-Id: Iaecd11acf50a1a19fe5964e11e06fb564ca6988c
2021-03-09 16:09:04 -08:00
Kevin Chyn
f79a2a68e1 Add scaling factor for guided enrollment
Bug: 182297949
Test: Builds
Change-Id: I47800efd65e5fca4162bb1b101e151447be42980
2021-03-09 15:10:47 -08:00
TreeHugger Robot
a701830c12 Merge "PIN/PUK Views not showing after boot" into sc-dev 2021-03-09 22:29:15 +00:00
Beverly
3898fef7cb Don't show toast icon for system apps
Bug: 181961398
Test: manual
Change-Id: I561a7525990e4698715e54171543147b4ed0291c
2021-03-09 22:02:26 +00:00
Curtis Belmonte
0c7065912d Adjust UDFPS prompt for 3-button nav and landscape
Modifies the layout of BiometricPrompt for under-display fingerprint
sensors so that the fingerprint icon is aligned with the sensor when the
device is in the landscape orientation and/or using 3-button navigation.

Test: atest AuthBiometricViewTest
Test: Manually, using the biometric integration test app

Bug: 179044674
Change-Id: I4da075b4cbf8b7119c071361336ddebd0a505ce0
2021-03-09 12:04:51 -08:00
Fabian Kozynski
e4ba4f837d Merge "Fix color animation" into sc-dev 2021-03-09 19:54:24 +00:00
Matt Casey
dd278eba33 Ensure view is attached to window before removing it
I'm not able to reproduce the bug, but we can avoid calling removeView
if the view isn't attached.

Bug: 180114844
Test: Manual verification of existing behavior
Change-Id: I1173f7d3656aaa10815f07717c09d3a3869d9878
2021-03-09 13:28:30 -05:00
Julia Reynolds
b263722171 FGS notifs are no longer upranked
With the relaxation of FGS visiblity rules in S, we
no longer need to boost FGS notifications to the
alerting section to ensure visibility on the lockscreen.

Test: atest HighPriorirtProviderTest
Bug: 182164793
Change-Id: I363c16708ab00bb3b2c4e3663bac2a6470a75274
2021-03-09 15:01:37 +00:00
Matt Pietal
f4ce81c63c PIN/PUK Views not showing after boot
An ill-timed onThemeChanged() event can occur after boot, which forces
the bouncer to be destroyed. In most cases this is fine, but after
boot this leaves the keyguard with nothing to show, as PIN/PUK views
are required to unlocked the device.

Bug: 182130809
Test: manual, reboot the device with SIM inserted
Change-Id: If7b86df15de29b295d86eff610da476b4dbee566
2021-03-09 09:59:44 -05:00