Commit Graph

27 Commits

Author SHA1 Message Date
TreeHugger Robot
ed0b75df20 Merge "Fix separator color for light wallpapers" into pi-dev 2018-03-07 21:37:30 +00:00
Lucas Dupin
b21fb8020f Fix separator color for light wallpapers
Test: visual
Change-Id: I61b2161db16db264c7425431dca50f5a54fce425
Fixes: 74345301
2018-03-07 11:37:25 -08:00
Lucas Dupin
2c5fce62f1 Fix notification padding and slice collision
Slices should completely replace notifications,
they should never be visible at the same time.

Test: send notification, look at AOD
Change-Id: I14f04db1e4541a24f7b9117659e4c9481262aeff
Fixes: 73908553
2018-03-06 10:18:19 -08:00
Alex Chau
ff7653d08e Show logout button on keyguard
- Introduced logout button with desnse button style that switch to user 0 and stop the user
- Use owner_info to calculate KeyguardStatusView bottom if that exist, or keyguard_clock_container otherwise, to prevent notification overlapping owenr_info or the clock.

Test: Logout button does not appear in user 0
Test: Logout button does not appear on unmanaged device
Test: Logout button does not appear when isLogoutEnabled is false
Test: Logout button is shown on secondary users when isLogoutEnabled is true, clicking on logout button switch to user 0 and stops the user
Bug: 71786325

Change-Id: I5adfabd3ea4cc2ed78e7bdd31cbb25f2cea4cce2
2018-02-12 15:17:33 +08:00
Lucas Dupin
dd69e4f4fa Fix pulsing notification overlap
Test: visual
Change-Id: Idf04cb75ab1487d15b708a704dd27a9f687c8595
Fixes: 72432710
2018-01-25 04:50:29 +00:00
Lucas Dupin
6bf7b64ed8 Hide keyguard slice when pulsing
Test: visual
Bug: 64155983
Change-Id: I0a5fbeb3c5418211562739b9c6e6ebd3e02ae1e3
2018-01-22 18:56:24 -08:00
Lucas Dupin
4272f44f3f Add battery to AOD
Showing battery percentage in AOD in the keyguard
indication area when also randomizing the text field
position to avoid burn-in.

Removed charging indication from KeyguardStatusView
since now it's always visible in the indication area.

Bug: 64155983
Test: flash taimen, look at AOD
Test: flash walleye, look at AOD
Test: unplug device, look at message
Test: wait for change in battery level in AOD
Change-Id: I6110d47d155e95e838cb901ab0928f0512454ab5
2018-01-17 01:21:11 +00:00
Lucas Dupin
9cc40de51d Add next alarm back to AoD
Test: Add alarm, look at AoD.
Test: Change alarm, look at AoD.
Test: Remove all alarms, look at AoD.
Bug: 64155983
Change-Id: I7de982a988a98eec26b034ca23414d60db79f348
2018-01-02 18:34:18 -08:00
Lucas Dupin
6bd8601e9f New keyguard slice data structure
Using androidx package and new API, also splitting content into
multiple views for better animation support.

Bug: 64155983
Test: visual, see data from provider propagate to AoD
Change-Id: I74b5511d582e7ec1f6ffe5dbc5595f54b9ccb202
2018-01-02 14:19:24 -08:00
Lucas Dupin
957e50ccdf Custom message in AoD
Optional message that lives under the clock and also
in AoD. Implemented using a slice.

Test: launch sysui, look at the date in AoD
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java
Change-Id: I9dbc827bd48c6a3d1b25b0a481ffaecc0dd37f25
2017-11-02 18:03:40 -07:00
Adrian Roos
b670f4b2d1 Keyguard: Remove fancy colon
The new fonts do not have a dedicated fancy colon for the lockscreen clock
and fall back to Roboto which breaks the kerning.

Change-Id: I4621c6248de3f42f6c3c49ee4149bc1c0bb233e6
Fixes: 63891134
Test: visual; runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockAccessibilityDelegateTest.java
2017-07-24 14:46:27 +00:00
Adrian Roos
8e130f08be AOD: Hide owner info on ambient display
Change-Id: Iea27b111b4025e2ad4b9cd0139f18f1653ca17dc
Fixes: 63800919
Test: Set a dark wallpaper, set owner info; go to AOD, verify that owner info is not visible.
2017-07-20 15:14:25 +02:00
Geoffrey Pitsch
c239fefc19 Delay marquee scrolling on lockscreen by 2 seconds.
Starting too quickly makes it hard to see the beginning.

Test: manual
Change-Id: I203a65856c27f9e23f2e091669ac7b0ae1c114d9
Fixes: 21976443
2017-07-17 11:38:45 -04:00
Adrian Roos
7f91072c43 AOD: Show date on always-on display
Test: Turn off display. Make sure date shows on AOD. Also make sure it works with a white wallpaper.
Fixes: 63528250
Change-Id: I82e0e579f351c5f145021d0b3759f79c11a1270e
2017-07-14 12:17:39 +00:00
TreeHugger Robot
1f1a2740d4 Merge changes from topic 'lockscreen_themes'
* changes:
  Change keyguard theme when wallpaper colors change
  Themeable keyguard clock
  Use theme color on transient text
  Keyguard icon colors matching light or dark theme
2017-06-02 01:49:00 +00:00
Adrian Roos
f58fae54bf Merge "Keyguard: Fix date capitalization context" into oc-dev 2017-06-01 19:44:48 +00:00
Lucas Dupin
987f1937a0 Change keyguard theme when wallpaper colors change
Bug: 38163994
Bug: 37014702
Bug: 62053168
Test: visual
Change-Id: I5a2da4ef2ad6fc1dab71588f2d0f5bd207731900
2017-06-01 12:14:53 -07:00
Lucas Dupin
76d38e72c5 Themeable keyguard clock
Bug: 37014702
Test: change wallpaper to light/dark, look at the clock on the keyguard
Change-Id: I7e222401dfa0e3ac8be6635f45a4f517dd5509d9
2017-06-01 12:14:39 -07:00
Adrian Roos
59de4f30c0 Keyguard: Fix date capitalization context
Fixes an issue where the date on the lockscreen
was not title cased in certain locales.

Change-Id: I90ecb8bac88641c962424477e677d94a16098798
Test: Set language to Spanish, verify that first letter of date on lockscreen is capitalized.
Fixes: 62233491
2017-05-31 15:23:01 -07:00
Jorim Jaggi
ad15b4982c Check for null owner info
Test: Cast screen, lock keyguard
Change-Id: I314244d8a5fe1d7f49afbaf5247e84d5ea4df027
Fixes: 38484035
2017-05-30 18:01:49 -07:00
Adrian Roos
52414e31cd AOD: Anchor clock at a third of the height
Change-Id: Ie9074be76f23f9c353e38b515fd5a3cd9702696d
Fixes: 37646086
Test: Trigger AOD, observe that clock does not shift in response to notifications.
2017-05-10 11:43:34 -07:00
Adrian Roos
2edb63bd6d SysUI A11y: Fix keyguard time utterance
The fancy colon on keyguard is causing issues for TalkBack.
Fixed by replacing it with a regular colon in accessibility infos.

Change-Id: Id4802a8dc422f2abb523dbbf887291d5983fd4ee
Fixes: 34949557
Test: runtest -x /frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockAccessibilityDelegateTest.java
Test-Manual: Enable talkback, make sure that lockscreen time is read out correctly
2017-04-26 20:07:55 -07:00
Alan Viverette
51efddbd3b Remove unnecessary casts on calls to findViewById
Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
2017-04-14 11:15:50 -04:00
Adrian Roos
0bcaa27ceb AOD: More VisD updates
- Change alpha for clock on AOD2
- Increase header bottom margin on ambient notification

Fixes: 37089014
Bug: 30876804
Test: visual inspection
Change-Id: If7ba1a51fdce3167129e8d8845bcb4a09b22a78d
2017-04-06 15:39:29 -07:00
Adrian Roos
d83e9999f7 AOD: update AOD2 views to spec
- Increase notification header size
- Dim clock in AOD2
- Hide shelf in AOD2

Bug: 30876804
Test: manual
Change-Id: I272ff54bd0dbed0ae4271c922f62304401651fc9
2017-04-04 13:21:35 -07:00
Adrian Roos
5602189a6d AOD: Show charging status on AOD1
- Change PowerManager to not turn on display when on AOD
- Add charging icon to AOD1
- Add transient charging indication when plugged in

Bug: 30876804
Bug: 35850304
Test: runtest systemui; enable AOD, plug in phone, verify charging indicator shows, verify charging text shows and goes away after a few seconds
Change-Id: Icb80843a12c56c7e2abeca78115a366b4d508d4f
2017-03-09 14:31:24 -08:00
Jason Monk
23f85ec14d Move Keyguard to SystemUI
Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7
2017-02-10 07:45:58 -08:00