Commit Graph

16694 Commits

Author SHA1 Message Date
Lucas Dupin
311eac8292 Avoid flickering when unlocking with fingerprint
Fixes issue where scrim state could be set to KEYGUARD
for 1 frame and user would see the notification shade.

Change-Id: I577b969f98573fc481e3d7c283eb5b612b7e5cee
Fixes: 70210651
Test: Unlock with fingerprint from AoD
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
2017-12-12 06:40:08 +00:00
Lucas Dupin
3952e25663 Merge "Add support for seamless transion from/to AoD" 2017-12-12 06:36:30 +00:00
Selim Cinek
0ddfe166c6 Merge "Fixed an issue with font sizes between users" 2017-12-12 02:24:22 +00:00
TreeHugger Robot
950c769caf Merge "Convert screenshot hw Bitmap to sw Bitmap for screenshot preview." 2017-12-12 02:07:10 +00:00
TreeHugger Robot
1fa458fd7f Merge "Always invoke scrim callback" 2017-12-11 22:47:10 +00:00
Lucas Dupin
43d0d73d07 Add support for seamless transion from/to AoD
Bug: 64155983
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
Test: manual
Change-Id: I06e72cd5964944c79fb7bfda6881fc4a5a79ca7b
2017-12-11 13:52:43 -08:00
Lucas Dupin
19aba8e2e7 Always invoke scrim callback
Callback needs to be invoked if we're trying to switch
to the same state, otherwise the window will never know
that we're done fading the keyguard.

Change-Id: I6779ecf18fbb23f621731d851ab343b82c3529e3
Fixes: 70481733
Fixes: 70392591
Test: Unlock by tapping on notification
Test: Unlock with pin, fingerprint
Test: Unlock with fingerprint when pulsing
Test: Unlock by tapping on notification when pulsing
Test: Open Settings from QS when Maps is SHOW_WHEN_LOCKED
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
2017-12-11 12:51:36 -08:00
TreeHugger Robot
6e1fd8b5bd Merge "Restore volume expansion." 2017-12-11 20:23:20 +00:00
Julia Reynolds
edb2e7ce14 Restore volume expansion.
Test: manual
Bug: 63096355
Change-Id: Ibff2826084353b66a6e1376cb9dda3e01dcf0e72
2017-12-11 13:18:03 -05:00
Selim Cinek
3ddcbc6c53 Merge "Fixed a crash with the top headsup entry" 2017-12-11 17:21:37 +00:00
TreeHugger Robot
0b62766d27 Merge "API Review: Drop "Button" in is/setLogoutEnabled method" 2017-12-11 06:35:31 +00:00
Selim Cinek
bbe1924b53 Fixed an issue with font sizes between users
Because the user switching callback was posted,
the timing would be off, such that at inflation
time, the user wouldn't be switching, leading
to wrong font sizes in the wrong user.

Change-Id: Ied60acf0a8d1ebe7db18bdb1d786722d1efdcdfc
Fixes: 67507904
Test: switch between users with different font sizes
2017-12-08 15:42:08 -08:00
Selim Cinek
1185482b01 Merge "Fix issue where brightness mirror listener wouldn't be released" 2017-12-08 22:08:45 +00:00
Selim Cinek
61cfd4bcd8 Fixed a crash with the top headsup entry
Because of an optimization introduced, the topheads
up entry could be null, leading to a Nullpointer.

Change-Id: Ibba73d652b0b4aac15cc62e57d1dfcf88dc0a647
Fixes: 70386428
Test: manual expand while hun is visible
2017-12-08 12:56:20 -08:00
TreeHugger Robot
f74699939a Merge "Fix issue with transition cancelling" 2017-12-08 20:46:53 +00:00
Lucas Dupin
037a50076f Fix issue where brightness mirror listener wouldn't be released
Change-Id: I4f0bd83ad6f5915145f59e47fb899dfee8cb2d77
Fixes: 70388511
Bug: 70296214
Test: Unlock from pulsing with fingerprint, then adjust brightness
2017-12-08 11:55:19 -08:00
Lucas Dupin
8635c4494f Fix issue with transition cancelling
Fixes: 69901116
Fixes: 70296214
Test: Double tap power button to launch camera
Test: Unlock with fingerprint, pin, SmartLock
Test: Unlock with fingerprint while changing brightness
Test: Unlock by tapping notification
Change-Id: I487b29c3aa5460cbd120072becb4e0449cffcce6
2017-12-08 10:54:26 -08:00
TreeHugger Robot
138686daad Merge changes I3a966bc7,I91e6832d
* changes:
  Adjust window layout for DisplayCutout
  Display Cutout: Add emulation
2017-12-08 16:03:50 +00:00
Julia Reynolds
7d37e95d54 Merge "Move and reshape volume dialog" 2017-12-08 14:13:24 +00:00
Adrian Roos
000cf5e06d Display Cutout: Add emulation
Adds an overlay to SystemUI that draws an emulated
cutout in the bounding polygon that the window manager
supplies.

Bug: 65689439
Test: adb shell settings put global emulate_display_cutout 2
Change-Id: I91e6832d7e4594e995241d29d6f1ed0d918d59a0
2017-12-08 14:45:18 +01:00
Alex Chau
d795827c31 API Review: Drop "Button" in is/setLogoutEnabled method
Bug: 70336452
Test: Logout button can still be controlled

Change-Id: I2ac24c4dec1ce90a77037a6415b4a6f77e959965
2017-12-08 11:32:23 +00:00
TreeHugger Robot
1fec32bd84 Merge "Move list of SystemUI services to xml" 2017-12-08 08:16:20 +00:00
TreeHugger Robot
d3616f7790 Merge "Split NotificationListener out from StatusBar." 2017-12-08 06:28:55 +00:00
Eliot Courtney
21bc05f783 Split NotificationListener out from StatusBar.
This decouples the part of status bar that listens for notifications
being posted, updated, or removed.

Bug: 63874929
Bug: 62602530
Test: runtest systemui
Test: Compile and run

Change-Id: I4b685d03f6641bdefa297b752c93e5728cb84132
2017-12-08 12:46:10 +09:00
Jordan Liu
2514d1ca79 Merge "Fix available/remaining PIN/PUK attempts." am: e3ab43eefe am: cc3058f0a1
am: 1cd98a5edf

Change-Id: I67ddb422ef54ef0462f6a6342c515bce740b3872
2017-12-08 03:02:42 +00:00
Maggie Wang
eb370876bb Merge "Send MODE_CHANGING broadcast before location mode change." 2017-12-08 00:00:14 +00:00
Jordan Liu
1cd98a5edf Merge "Fix available/remaining PIN/PUK attempts." am: e3ab43eefe
am: cc3058f0a1

Change-Id: I9b1b50bd9d35428698d32eb48d71d24428b2f6a8
2017-12-07 23:43:16 +00:00
TreeHugger Robot
e6d714a636 Merge "Improved opening performance" 2017-12-07 23:24:02 +00:00
Maggie
fab2e2cbaa Send MODE_CHANGING broadcast before location mode change.
When location mode is about to change in Settings app, send
MODE_CHANGING broadcast.

Fixes: 28057031
Test: manual
Test: robotests
Change-Id: Id26325520211a8934c1670dfcd12e8d339766308
2017-12-07 23:22:35 +00:00
Jordan Liu
e3ab43eefe Merge "Fix available/remaining PIN/PUK attempts." 2017-12-07 23:17:11 +00:00
Mike Digman
6e15c2a89a Merge "Extend RotationPolicy to lock the screen at a specific rotation" 2017-12-07 21:53:13 +00:00
Daniel Chapin
6e11c3883c Merge "Fix cyclic keyguard state notification" 2017-12-07 20:16:03 +00:00
Julia Reynolds
36dd4f1fbe Move and reshape volume dialog
- Move the volume dialog back to the top
- curve some corners
- Add a ringer toggle row

Bug: 63096355
Test: manual
Change-Id: Ife8a3fa4fabf3a0f26ddca3cf05b16425b325ef3
2017-12-07 15:00:40 -05:00
Selim Cinek
1a891a91bc Improved opening performance
This should improve the opening and closing jank by
reducing binder calls and optimizing certain java
bottlenecks

Change-Id: I9a7831b4684954db4aa30dd5f3588967eca72741
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Test: run janktests
Fixes: 69933777
2017-12-07 10:25:25 -08:00
Lucas Dupin
243c731f7f Fix cyclic keyguard state notification
We should not not notify that the keyguard faded away
when a transition is cancelled. Another transition is
already happening and the message will be receive when
it finishes.

Change-Id: I4d2e227027a02f2168578bc1d201a4cf8672097d
Fixes: 70316977
Test: Double tap power button on the lock screen and aod
Test: Unlock with fingerprint from aod and lock screen
Test: Unlock with PIN
Test: Unlock from "pulsing" (AoD2) with fp or by tapping notification
2017-12-07 09:54:18 -08:00
Ruthwar Kumar Ambeer
118e574ea4 Fix available/remaining PIN/PUK attempts.
* Fix to properly display attempts remaining for PIN/PUK.
* On bootup show the available PIN/PUK attempts if sim
is locked on PIN/PUK.
* Show incorrect password message on entering wrong PIN/PUK
password.

In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on
PIN and reset the flags to show the default message.

Bug: 37782683
Change-Id: I46d7d5dd86977cddecf3147add73ef6ccc64b257
2017-12-07 14:45:43 +05:30
yoshiki iguchi
61b3708833 Move list of SystemUI services to xml
Previously the services of SystemUI were defined in SystemUIApplication.

This patch moves the service list to res/values/config.xml. So that it
gets easier to customize services of SystemUI.

Bug: 63874929
Bug: 62602530
Test: Ran and confirmed SystemUI started without error

Change-Id: I7f0321c46e562288b2cad5201ae120c37e853908
2017-12-07 17:49:32 +09:00
Chris Wren
4170751a68 add integer array values to KeyValueListParser
Test: atest NotificationSnoozeTest KeyValueListParserTest AlwaysOnDisplayPolicyTest
Change-Id: Ia26cd38258c2cf83558a9a39a6b1c2ec6dedfcb1
2017-12-07 01:06:31 -05:00
Selim Cinek
4f6c85f6bc Removed vibrations when icons go into / out of the shelf
This also removed binder transactions happening in every frame
and improves it for the opening case to a listener.

Change-Id: I8052848c622ca468b6daf17f8fbe335eac166255
Fixes: 	65206902
Bug: 69933777
Test: open panel, observe vibrations
2017-12-06 17:06:18 -08:00
TreeHugger Robot
6a736e5643 Merge "Fix issue where scrims would not go away" 2017-12-06 23:58:44 +00:00
Lucas Dupin
c2e7546921 Fix issue where scrims would not go away
Change-Id: Ibb683d6bddadd5b670da28427d4801e03d575bd8
Fixes: 70245015
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
2017-12-06 13:59:25 -08:00
Lucas Dupin
db2e6c1266 Merge "Remove obsolete scrim transition" 2017-12-06 21:24:12 +00:00
chaviw
1da9cd9b84 Convert screenshot hw Bitmap to sw Bitmap for screenshot preview.
Bitmaps created from SurfaceControl.screenshot are hardware Bitmaps. In
order to update the size for the screenshot preview, the Bitmaps need to
be converted to software Bitmaps first.

Also updated the SurfaceControl docs to make this clear.

Fixes: 69929720
Test: Notifications from lock screen and status bar show the screenshot
preview.

Change-Id: Iebc4a261216f3d965e1c98a77c27cc0cb2e442af
2017-12-06 10:48:11 -08:00
Mike Digman
6ca8711b7b Extend RotationPolicy to lock the screen at a specific rotation
Test: manual
Change-Id: Ic39fed014d614c4c473f6728dd922ca0f1ad2244
2017-12-06 09:46:52 -08:00
TreeHugger Robot
b5f48b2392 Merge "Add latency logging for rotation" 2017-12-06 16:54:45 +00:00
TreeHugger Robot
57a69f683c Merge "Revert "Don't generate irrelevant a11y events - framework"" 2017-12-06 16:48:16 +00:00
Wenting Xiong
a6cadd4c4b Merge "SystemUI: Display RAT icon in quick setting when data is off" am: f845bbdfa4
am: 592f539419

Change-Id: I88d871f593ff64ebea1c36f42a8fe59d69d3b6f3
2017-12-06 16:32:09 +00:00
Wenting Xiong
592f539419 Merge "SystemUI: Display RAT icon in quick setting when data is off"
am: f845bbdfa4

Change-Id: I3285f1f9e63cbf3d0487618b5ff636c7637ef9e4
2017-12-06 16:21:34 +00:00
Jason Monk
ea03be1056 Add latency logging for rotation
Move LatencyTracker and sysui_latency to make this possible

Fixes: 67862696
Test: atest
platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/LatencyTests.java#testRotationLatency

Change-Id: I42e3218355c162d4ba04b0f2c49e031156b5a357
2017-12-06 15:02:17 +00:00
TreeHugger Robot
057087457b Merge "Revert "Add latency logging for rotation"" 2017-12-06 04:56:46 +00:00