Commit Graph

1354 Commits

Author SHA1 Message Date
TreeHugger Robot
abe78cd313 Merge changes from topic "biometrics-face"
* changes:
  5/n: Move FaceService to biometrics directory
  4/n: Add face authentication framework
2018-06-22 18:44:27 +00:00
Julia Reynolds
aca215a67a Improve backup and restore for empty sounds
Test: runtest systemui-notification
Change-Id: Iab2eebb0da8163f520af95c2ad5fd8f35333a9d5
Fixes: 109777940
2018-06-22 09:35:10 -04:00
Gilad Bretter
cb51b8b847 4/n: Add face authentication framework
This change is cherry-picked and rebased from AOSP
https://android-review.googlesource.com/c/platform/frameworks/base/+/660242

Add face recognition as an identification method, following fingerprint
design. Unlike fingerprint, only one face template can be enrolled per
user, and a vendor message is passed from the HAL all the way to the
client callback to allow GUI indication about the enrolled face
templates.

Add FaceAuthenticationManager and FaceService.
Add face authentication capability to TrustManager and Keyguard.
Modify TrustManager and KeyguardUpdateMonitorCallback fingerprint code
to support generic biometric method to eliminate duplications.
Add BiometricSourceType enum to keep track of the specific biometric
method.

Test: biometric authentication still works on the device

Fixes: 110385761

Change-Id: I5d04fe69a112c13d3ef7330b9c08c146e36c5335
Signed-off-by: Gilad Bretter <gilad.bretter@intel.com>
2018-06-21 17:00:07 -07:00
Aaron Heuckroth
b621b31b80 Merge "Check for low priority when determining how many notifications to display." 2018-06-21 18:53:02 +00:00
Aaron Heuckroth
17ce40ee1c Check for low priority when determining how many notifications to display.
Test: Create a notification group with ~10 minimum priority notifications. Drag to expand the notification group
in the notification shade -- only 5 notifications should display.
Fixes: 77522394
Change-Id: I9c53aa3d4f672c88cb1e3806e5828d391d752b4d
2018-06-20 15:35:40 -04:00
felkachang
e6c03a07d0 Fix the icon overlay after density change
After showing the heads up for the fullscreen notification, to
change the density by user will have the status bar icons
not show normally. It will the only one icon overlay on the
clock but actually there are more than one icons. And, it can't
back to normal after expandable notification and collapse the
notification panel.

The root cause is that all of instances of PhoneStatusBarView,
Clock, HeadsUpStatusBarView, and HeadsUpAppearanceController are
recreated by FragmentManager after configuration density and
font changing. The new HeadsUpAppearanceController status is
neither consistent with HeadsUpManager's status nor the state of
the previous instances.

The solution is that to apply the onSaveInstanceState and
onRestoreInstanceState in PhoneStatusBarView, Clock, PanelBar, and
HeadsUpStatusBarView. To make sure that the values of the fields
in the new instance, which are set by other source, have the
consistence with the state of the old instances.

HeadsUpAppearanceController's Constructor.
To hook onLayoutChangedListener to sync the status with
HeadsUpManager's status to HeadsUpStatusBarView if there is a
pinnded heads up notification.

In original, PanelBar.mState is the only one state to save. Instead
of only saving one, to save the view tree state in
CollapsedStatusBarFragment.onSaveInstanceState and restore the view
state in CollapsedStatusBarFragment.onViewCreated.
CollapsedStatusBarFragment.mDisabled1 doesn't need to save and
restore because CommandQueue.recomputeDisableFlags will give it
the correct value.

After density changed, RemoteViews will reinflate the instances of
NotificationHeaderView and the wrapper instances of
NoticationContentView will also recreated in
NotificationContentView.setAmbientChild. The recreated instance
should synchronized with the ExpandableNotificationRow intance.

Fixes: 80224819
Fixes: 80426687
Test: atest SystemUITests
Change-Id: Ia3f8a0f138f403c8e0c74c00d56bd93baf604d3a
2018-06-19 02:29:50 +00:00
Android Build Merger (Role)
879af99893 [automerger] Merge "Fade to black without showing system wallpaper" into pi-dev am: 0e52664b0c am: 2e575f413c
Change-Id: I28b6f791597056c07b504d070ab704d74a37d1df
2018-06-18 18:18:40 +00:00
Lucas Dupin
f8463ee043 Fade to black without showing system wallpaper
When on the lock screen, and going to AOD animated, user would
temporarily see the system wallpaper. That's not what we want,
we want to fade from semi-transparent black to black, on top
of the backdrop - lock screen wallpaper or media art.

Test: press power on the lock screen when playing media
Test: press power on the lock screen after dismissing media
Test: unlock from AOD
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 80575770
Change-Id: I6796e844add889ff86be0cd2052db7c5d5073039
2018-06-18 09:24:38 -07:00
Android Build Merger (Role)
df81db8a2d [automerger] Merge "Config to enable/disable AOD via overlay" into pi-dev am: b784e6f7bc am: dbaa859020
Change-Id: I28f94afdf78fd73fb32963106ba0ab36d6f30cdd
2018-06-14 01:31:22 +00:00
Lucas Dupin
b784e6f7bc Merge "Config to enable/disable AOD via overlay" into pi-dev 2018-06-14 01:16:44 +00:00
Lucas Dupin
1e02f340e0 Config to enable/disable AOD via overlay
Bug: 109894567
Test: mp droid; fastboot -w
Change-Id: I3fda0bf486ae0c4b795ce34ba6823d8dc36a3796
2018-06-13 15:36:04 -07:00
TreeHugger Robot
19117b46f3 Merge "Moved some activities implementation to ActivityTaskManagerService (2/n)" 2018-06-12 22:52:52 +00:00
Lucas Dupin
f1381bbe13 Avoid showing bouncer when in a launch transition
The panel will collapse but the bouncer should not become visible,
otherwise the IME might be requested.

Test: go/sysui-bouncer-tests
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Change-Id: I0405cf1b956aa239b0684ac357a38cf4b2357cb2
Fixes: 109879604
2018-06-12 21:58:23 +00:00
TreeHugger Robot
62b8bc041f Merge "Do not re-inflate footer and empty shade views" 2018-06-12 20:43:49 +00:00
Wale Ogunwale
04d9cb5f40 Moved some activities implementation to ActivityTaskManagerService (2/n)
Second step in unifying the window hierarchy that is currently split
within AM and WM packages. We move some of the API implementation for
activities from ActivityManagerService.java to
ActivityTaskManagerService.java.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790

Change-Id: I23dcd924493d8ad1e0b6e3a55386fd72b0146605
2018-06-12 13:38:39 -07:00
TreeHugger Robot
5f0420a97d Merge "Avoid showing bouncer when in a launch transition" 2018-06-12 18:37:07 +00:00
TreeHugger Robot
6006f76ad7 Merge "Split interfaces and service for activities from current AM interfaces (1/n)" 2018-06-12 18:18:48 +00:00
Lucas Dupin
aaac2cb581 Avoid showing bouncer when in a launch transition
The panel will collapse but the bouncer should not become visible,
otherwise the IME might be requested.

Test: go/sysui-bouncer-tests
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Change-Id: I0405cf1b956aa239b0684ac357a38cf4b2357cb2
Fixes: 109879604
2018-06-11 15:53:04 +00:00
Julia Reynolds
0abae11b2e Properly consider non-blockable channels
In inline controls

Bug: 109875297
Test: atest SystemUITests
Change-Id: I4308b1312339dae611a84a0d22f6aadc877bc3e2
2018-06-11 14:32:57 +00:00
Lucas Dupin
cea7b86d89 Do not re-inflate footer and empty shade views
These views already have a setTextColor and don't need re-inflation when
the theme changes. Doing so would only degrade performance and
introduced a race condition where the text color would be
desynchronized.

Change-Id: I9351c73cc5f54bc47b7d717f22d4da54350008de
Fixes: 80040614
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Test: set light wallpaper on home and lock screen
Test: set dark wallpaper on home and lock screen
Test: set dark wallpaper on home and light wallpaper on lock screen
Test: change font size in settings app
2018-06-08 10:14:57 -07:00
TreeHugger Robot
7231e7b6ce Merge "More conservative dark text calculation" 2018-06-08 04:33:50 +00:00
Lucas Dupin
a291d19e47 More conservative dark text calculation
Refactored WallpaperColors to use constrast ratio instead of luminance
for detecting dark pixels. Also using a contrast more conservative than
what GAR requires while decreasing the dark area threshold.

Change-Id: I67b799be4b7ccd50bb3e63c6179d513b9b76446b
Fixes: 76435920
Test: manually set various wallpapers
Test: use new debug flag to verify which pixel is actually dark
2018-06-07 16:33:09 -07:00
Lucas Dupin
c3403c547c Merge "Update scrims when keyguard gets occluded" into pi-dev am: cc4efe08de
am: 7c66fae398

Change-Id: I64c0792cbbf4285e33032a4d3517d3529c072ba4
2018-06-07 10:48:19 -07:00
TreeHugger Robot
cc4efe08de Merge "Update scrims when keyguard gets occluded" into pi-dev 2018-06-07 16:50:34 +00:00
Wale Ogunwale
65ebd955e1 Split interfaces and service for activities from current AM interfaces (1/n)
First step in unifying the window hierarchy that is currently split
within AM and WM packages. We separate the interfaces and service dealing
with activities and their containers (tasks, stack, display) from the
rest of AM interfaces and services. This will allow us to move the new
interfaces and services to WM when the internal states are cleaned-up.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790
Change-Id: Ide9b3f89123b768cdbd3e3878113c7a8021187f3
2018-06-06 18:26:21 -07:00
Dieter Hsu
6613986233 Merge "Update notifications on density or font size change for current user" into pi-dev am: 1394b342e3
am: f26e86b473

Change-Id: Ica6434173ed8bd06ab9c4c88002ada98edacf898
2018-06-06 16:14:58 -07:00
Lucas Dupin
63d72170da Update scrims when keyguard gets occluded
We were assuming that a show_when_locked window would always be on
the lock screen when the device sleeps, but its possible that,
when charging, a window may come visible after the device enters
doze.

Ideally this should be handled in window manager but not feasible
in P.

Change-Id: I8a1b5e638a8e84bbea3a91fc4ac94feb6195390e
Fixes: 80647623
Test: manual with app from play store
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
2018-06-06 11:42:55 -07:00
Dieter Hsu
36e1ebca09 Update notifications on density or font size change for current user
For created notifications, entry manager is not going to update entries
after changing the font scale and/or display density when shade is
disabled or other reasons.
To reinflate notifications for current user even filtered.

Fixes: 77728867
Test: manually restore backup with lots of apps and change font scale and/or display density
Test: atest SystemUITests:NotificationDataTest
Change-Id: I37fa38e73af1ebb672abd06282d10d7d928cc3a9
2018-06-06 17:57:38 +00:00
Lucas Dupin
601c2a09db Merge "Blank screen when coming from pulse" into pi-dev am: 842ec5085b
am: 3d68a97d29

Change-Id: Ifac21906c44f76f2abcd29253fe85722ba6a4b82
2018-06-04 15:51:48 -07:00
TreeHugger Robot
842ec5085b Merge "Blank screen when coming from pulse" into pi-dev 2018-06-04 19:45:18 +00:00
Lucas Dupin
eb840eacf6 Blank screen when coming from pulse
We need to fade from black to the app to achieve a nice transition.

Test: visual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I13edd9c5f7a1bf9378851ac50c513d36ab821c43
Fixes: 87939048
2018-06-01 18:32:48 +00:00
Lucas Dupin
9d6f7fcd40 Merge "Do not request focus during wake and unlock" into pi-dev am: 58fc12e8fa
am: 668642b945

Change-Id: I9d87436cb157322f1fa02cdb00d6f4071ca0fae9
2018-05-29 20:25:38 -07:00
Lucas Dupin
71dd484427 Do not request focus during wake and unlock
Focus was being required because the expansion of the panel
would trigger onFullyShown. Bouncer shouldn't need any
translation during WAKE_AND_UNLOCK.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: go/sysui-bouncer-tests
Change-Id: I6d5c17ba89e14384859cf7fc91ca5cc2815dbfd9
Fixes: 80345339
2018-05-29 15:41:03 -07:00
Lucas Dupin
95a4423978 Merge "Only animate when the slice is actually animating" into pi-dev am: 3116918bf0
am: 5bf2a5de6f

Change-Id: I5247d66f300187728af4b0d6dbd837a021733794
2018-05-23 19:16:52 -07:00
Beverly
4f281ee623 Merge "On orientation change, update rounded corners" into pi-dev am: 4524e93577
am: 539f693086

Change-Id: I2cb3fff4f5ee3c4e8fc3d4f47cd3957a6ca7c3e3
2018-05-23 17:21:10 -07:00
Sanry Huang
4094c84fd4 Merge "Fix User unable to view the keyboard input" into pi-dev am: 89d55288d9
am: bc21e9ef7b

Change-Id: I9672a83e06fa5b023daf9111ba255de51130ec7d
2018-05-23 14:02:38 -07:00
Lucas Dupin
3116918bf0 Merge "Only animate when the slice is actually animating" into pi-dev 2018-05-23 20:15:19 +00:00
TreeHugger Robot
4524e93577 Merge "On orientation change, update rounded corners" into pi-dev 2018-05-23 14:35:29 +00:00
Beverly
e91f0d05da On orientation change, update rounded corners
When rotating landscape/seascape/upsidedown, the 'top' and 'bottom'
corners are in the correct place

Change-Id: I19858ca42939d81911c5f45bd80d163d0c22eee9
Fixes: 79163187
Test: manual, ScreenDecorationsTest
2018-05-23 09:37:09 -04:00
Sanry Huang
89d55288d9 Merge "Fix User unable to view the keyboard input" into pi-dev 2018-05-23 07:39:27 +00:00
sanryhuang
63787860c2 Fix User unable to view the keyboard input
revert extracted mode solution and using commandQueue to implement
setRemoteInputActive

Test: manual test
Test: atest
Change-Id: I82c63843dd38c19c1f88af15abcc137be4f72c83
Fixes:73275201
2018-05-23 07:37:58 +00:00
Lucas Dupin
3978e6e6ee Only animate when the slice is actually animating
It's not correct to always animate if there is a layout transition.
The transition might not be triggered when the view is invisible
for example. It's necessary to check if we have pending/running
animations.

Change-Id: I75dbc9f8a152a162a3c77c9b316f653e665b8842
Fixes: 79773596
Test: manual
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
2018-05-22 19:13:51 -07:00
Rohan Shah
0043a6c600 Merge "[Notif] Don't show bouncer on dismiss" into pi-dev am: fe1b1f19fe
am: 8fa6942fb1

Change-Id: I374d9279ce77e7ac588d03e491c5de5714234288
2018-05-22 13:58:19 -07:00
TreeHugger Robot
fe1b1f19fe Merge "[Notif] Don't show bouncer on dismiss" into pi-dev 2018-05-22 20:36:51 +00:00
Rohan Shah
593e8f18cd [Notif] Don't show bouncer on dismiss
For blocking helper, when user dismisses by interacting with elements
outside the current notification, we should not show the bouncer.

Changed the logic to only show bouncer/use the checksaverunnable when
the user hits 'stop notifications'

Test: Added test cases, ran via atest, verified manually too
Bug: 80132806
Change-Id: Ic204e1794360684cd6359ff93e77e184e39ad57e
2018-05-22 10:37:11 -07:00
TreeHugger Robot
d1339635fe Merge "[SystemUI] To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files." 2018-05-22 12:35:00 +00:00
Jason Chang
1e4a4bdbf4 [SystemUI] To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files.
To plumb down ColorStateList all the way down instead of int colors in KeyguardHostView.java and its collaborative files.

Bug: 79721803
Test: manually test for UI
Change-Id: I69df1a13db5153ca36cf39f7b818d6c3d27ee107
2018-05-22 17:30:19 +08:00
Lucas Dupin
7f3e2ab6b9 Merge "Bouncer shouldn't be translated when occluded" into pi-dev am: 553fc8b8e0
am: 76bb2c0b59

Change-Id: Ibd5f92d3e11a28c1d7dbecbf4e702ccc0e294ba8
2018-05-21 18:22:04 -07:00
TreeHugger Robot
553fc8b8e0 Merge "Bouncer shouldn't be translated when occluded" into pi-dev 2018-05-22 00:59:29 +00:00
Lucas Dupin
aece5028fc Bouncer shouldn't be translated when occluded
Only checking if the bouncer should be scrimmed isn't enough
since it might have been initialized for performance reasons,
but is hidden at the bottom of the keyguard.

Change-Id: If92083e2c385d51febe0ec3a5e5d3484476caf81
Fixes: 80101176
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: manual
2018-05-21 16:44:28 -07:00