Commit Graph

45 Commits

Author SHA1 Message Date
Lucas Dupin
40ec6b7814 Migrate SysUI theme to UiMode
Legacy RRO was deleted and resources migrated to DeviceDefault theme.
Theming via overlays is still possible, but the overlay should provide
both themes: day and night.

Test: adb shell service call uimode 4 i32 1
Test: adb shell service call uimode 4 i32 2
Change-Id: I5dee2f94764c5c2f4e11cfabfff97656b3822e8a
2018-07-04 18:15:25 -07:00
Jorim Jaggi
1f079b4f97 Merge "Only use simple rects for cutout region" into pi-dev am: 4764921dcc
am: b7dc212a61

Change-Id: I2af32c72ea859ff908fa30b5de1e722a99b28479
2018-07-02 14:58:32 -07:00
Jorim Jaggi
b7dc212a61 Merge "Only use simple rects for cutout region" into pi-dev
am: 4764921dcc

Change-Id: Icfb41008189d5c01f90afd4992428433043b4c4e
2018-07-02 14:47:09 -07:00
Jorim Jaggi
606405180f Only use simple rects for cutout region
Otherwise there is a big performance hit in all kinds of
situations where we do operations with the region, specifically
when:

- updating input windows
- insetting the cutout during layout
- touch dispatch

Test: DisplayCutoutTest, WmDisplayCutoutTest
Bug: 110464019
Bug: 110452325
Change-Id: I94a25c3794ecd33b8b7204ca308ac91623498f13
2018-07-02 17:58:10 +02:00
Rohan Shah
51f196eb1a Merge "[QS] Update landscape UI" into pi-dev am: 044a5e17da
am: d4b20a928f

Change-Id: If0b9f34e69116017be0a1b99d2dab8288175b4ad
2018-04-05 09:51:32 -07:00
Rohan Shah
d4b20a928f Merge "[QS] Update landscape UI" into pi-dev
am: 044a5e17da

Change-Id: I49ab03325cdb483ee5372df4ee8042dc225df850
2018-04-05 09:34:12 -07:00
Rohan Shah
cc3d1d8b96 [QS] Update landscape UI
Rolling forward the landscape UI changes (To not break taimen with a
notch this time!). OG CL: ag/3717677

Shorten status bar height in landscape and update colors to use
wallpaperTextColor when in landscape mode.

Additionally modified scrim opacity for the QS panel to provide more
contrast/focus on content.

Test: Visually
Bug: 73808887
Change-Id: I249579d2898b9915868bb584661864d10ed88de2
2018-04-04 09:36:49 -07:00
Bill Yi
d7d3caec3f Import translations. DO NOT MERGE
Change-Id: Ia98dc2d40fcf33029859e69beff4ee0d87f84bc8
Auto-generated-cl: translation import
2018-04-04 07:21:09 -07:00
Bill Yi
a1eb53d6ad Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I75114b63fbb3d7728b3c51df6a4a1c5749c54651
2018-03-31 09:55:02 -07:00
Rohan Shah
87d04e4d5b Merge "Revert "[QS] Update landscape UI"" into pi-dev am: a994156b55
am: 62d7369c44

Change-Id: If4b1094b4769ff01e664078ce62ef27cb95f0b7e
2018-03-30 11:35:03 +00:00
Rohan Shah
62d7369c44 Merge "Revert "[QS] Update landscape UI"" into pi-dev
am: a994156b55

Change-Id: I7c325c2367ace2807c0597fee8fb983bcc970dbd
2018-03-30 10:58:52 +00:00
Rohan Shah
8a0d3fcf17 Revert "[QS] Update landscape UI"
This reverts commit bc204efbe5.

Reason for revert: Causes crash on rotation due to something with config.xml overriding. Reverting as it's blocking daily build
Bug: 77217078
Test: Ran build, checked rotation
Change-Id: I79e94fb1703f888ac167cdae20142e130a2e80b3
2018-03-29 11:33:24 -07:00
Rohan Shah
21f9a66b80 Merge "[QS] Update landscape UI" into pi-dev am: 6d0412ee22
am: e1afde9b79

Change-Id: Ie039365801183d49cd45e206418d33fd5c132365
2018-03-27 20:35:46 +00:00
Rohan Shah
e1afde9b79 Merge "[QS] Update landscape UI" into pi-dev
am: 6d0412ee22

Change-Id: I38b8214bf560d406d5f95468419314010cf6f579
2018-03-27 19:52:02 +00:00
Rohan Shah
bc204efbe5 [QS] Update landscape UI
Shorten status bar height in landscape and update colors to use
wallpaperTextColor when in landscape mode.

Additionally modified scrim opacity for the QS panel to provide more
contrast/focus on content.

Test: Visually
Bug: 73808887
Change-Id: I74713587ca426020cb15960800a4d2b6ac5f6466
2018-03-26 15:10:28 -07:00
Bill Yi
2d937fde7b Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iaaf06a880c141263f6bea9012e97e33e63cde378
2018-03-23 11:25:27 -07:00
Bill Yi
72f088586a Import translations. DO NOT MERGE
Change-Id: I485fd4f1f151e39ba579e1db653598c36c73af43
Auto-generated-cl: translation import
2018-03-23 10:48:19 -07:00
TreeHugger Robot
8d810c2b5d Merge "Import translations. DO NOT MERGE" 2018-03-19 19:54:30 +00:00
Bill Yi
1c67dbf325 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I689307250cc85c025fca7fd0a0ffbfe30f909fb1
2018-03-19 01:34:02 -07:00
Bill Yi
56a9cfae00 Import translations. DO NOT MERGE
Change-Id: I3bd6fcd21cf1455fca6a842a054a677534ffce45
Auto-generated-cl: translation import
2018-03-19 01:15:28 -07:00
Bill Yi
3c7f4d34d3 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4f0cac1ca19646cb5e45c5d84814883a3c11c1d6
2018-03-16 23:33:48 -07:00
Bill Yi
6578e9abd2 Import translations. DO NOT MERGE
Change-Id: Iff3b4063dc7c974ab623a2bcb145c553bf659569
Auto-generated-cl: translation import
2018-03-16 22:55:51 -07:00
Adrian Roos
b8b10f807c DisplayCutout: Add corner cutout overlay
Bug: 74982138
Test: mmm packages/overlays/DisplayCutoutEmulationCornerOverlay/
Change-Id: I06258f417b4ce3b1cc65e046fb18bc856de896c9
2018-03-15 20:09:46 +00:00
TreeHugger Robot
2f848a1381 Merge "Cutout: Add a multi cutout overlay" into pi-dev 2018-03-13 18:00:07 +00:00
Julia Reynolds
a43867501e Volume UI updates
- redline compliance
- a11y labeling
- hide setting icon if device isn't provisioned

Change-Id: I62e0da51879dc5f6e05ed814f2d9b6ee41e125a1
Fixes: 74152268
Fixes: 73963013
Fixes: 73902271
Test: manual inspection
2018-03-12 17:54:30 -04:00
Adrian Roos
550f658fa2 Cutout: Add a multi cutout overlay
Bug: 74195186
Test: Developer Settings > Simulate a display with a cutout > Double display cutout
Change-Id: Iff621bd047c3c55d6e4f0e20eaa560706bfc4059
2018-03-09 17:27:12 +01:00
TreeHugger Robot
bf37604165 Merge "WM: Split portrait and landscape status bar size" 2018-02-28 23:11:27 +00:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Adrian Roos
22af65082c WM: Split portrait and landscape status bar size
For devices with a display cutout, it is no longer feasible to have the
same status bar size in portrait and landscape.

Special care has to be taken because a lot of third-party apps (and bundled apps)
rely on @dimen/status_bar_height, so we make sure that in -land it is set
to the landscape value.

Note that resource overlays for @dimen/status_bar_height MUST be renamed to
status_bar_height_portrait, otherwise they will only override the portrait
orientation, while landscape will continue to be 24dp!

Bug: 73717865
Test: Enable display cutout, ensure status bar is smaller in landscape.
Change-Id: If2718e53c3a10e3cab092d4b6a0a2a3bdd0cea81
2018-02-23 13:26:11 +01:00
Adrian Roos
c84df7755c OverlayManager: Add categories
Adds the possibility to declare different categories
for resource overlays (e.g. themes, display cutout emulation, ...)

Bug: 72436677
Test: adb shell cmd overlay enable-exclusive --category com.android.internal.display_cutout_emulation android com.android.internal.display.cutout.emulation.narrow
Test: adb shell cmd overlay enable-exclusive --category com.android.internal.display_cutout_emulation android
Change-Id: I23f22113351b3948beb9e3a1fb969700852539cc
2018-02-13 14:41:38 -08:00
Evan Laird
4451fa2689 Add relevant SysUI values to notch emulation packages
Now overlays can change quick settings height as necessary

Test:  adb shell cmd overlay disable
com.android.internal.display.cutout.emulation.wide && adb shell stop &&
adb shell start;
Fixes: 72388027

Change-Id: Iac1c21ce97a61083478030259cbad6238414af3e
2018-01-26 10:02:25 -05:00
Adrian Roos
88553e9dc7 DisplayCutout: Add more display cutout flavors
Adds tall, narrow and wide variants of the cutout

Bug: 65689439
Test: Settings > Developer Options > Drawing > Simulate a display with a cutout > Try Narrow / Wide / Tall
Change-Id: Ie8f0a329fd95d844c6248bc5345b90ff9c8e4858
2018-01-22 14:20:04 +00:00
Adrian Roos
16693f3466 DisplayCutout: device-independent emulation overlay
Adds an option to use dp instead of px when specifying the cutout bounds.
Also centers the coordinate system in the middle, making it easier to specify
the usually centered cutouts.

Also makes the emulated cutout a bit prettier.

Bug: 65689439
Test: adb shell overlay enable com.android.display.cutout.emulation
Change-Id: I3bd16af15f1dad2af204d436abaa35fb9e5ae146
2018-01-19 12:55:01 +01:00
Adrian Roos
30f5321310 DisplayCutout: Move emulation into resource overlay
Bug: 65689439
Test: atest PhoneWindowManagerLayoutTest
Test: adb shell cmd overlay enable com.android.internal.display.cutout.emulation && adb shell stop && adb shell start
Change-Id: I7a319c28da53f78f884556cf176e01321b9c6b55
2018-01-15 14:44:41 +01:00
Jason Monk
ba3d0ab9d5 Fix QS loading animation
Was using wrong colors depending on the theme.

Test: visual
Change-Id: I49e00fcfc607b712e545a19bb1f49130c6a686d5
Fixes: 63648257
2017-09-06 15:38:52 -04:00
Lucas Dupin
fc755e9c07 Lighter Quick Settings
Now using material grey 900 for QS, volume and power menus.
Feels more polished than just a solid black.

Test: Visual, on multiple devices
Change-Id: Ife05454d9fa0cf5f587ed0e58f3b28447de14f7b
Fixes: 65369406
2017-09-05 16:35:25 -07:00
Lucas Dupin
e17ce5286f Fix jank when switching themes
Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: Ie8860d00dbb0705ed76edf60a9d3030618dd21ca
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
2017-07-24 13:26:22 -07:00
Jorim Jaggi
6498f96283 Revert "Fix jank when switching themes"
This reverts commit e5d0b9dddb.

Fixes crashloop with lock pattern

Change-Id: I3721444c91e2be625c59ec3e6ba14f1080badc07
Fixes: 63980375
2017-07-24 15:53:42 +02:00
Lucas Dupin
e5d0b9dddb Fix jank when switching themes
Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: I4b5db6234cafebbe8eaa952781c038370a11488b
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
2017-07-20 22:44:36 -07:00
Lucas Dupin
3ceaa0abbb Dark text support on Recents
Also changed target package.

Test: visual. Set light and dark wallpapers
Change-Id: I188bc21b5372e541509bdd739c825fc5ac53ca47
Fixes: 62346335
2017-07-05 00:36:50 -07:00
Lucas Dupin
15a39b3afa Revert "Replaced overlay target package"
This reverts commit ae885416dd.
2017-06-28 16:00:39 -07:00
Lucas Dupin
d78aa5d0cf Revert "Support dark text on Recents"
This reverts commit 512ce6c9b7.
2017-06-28 16:00:26 -07:00
Lucas Dupin
512ce6c9b7 Support dark text on Recents
Test: visual. Set light and dark wallpapers
Change-Id: I100c7d6dac066168636b1741ed1ed7fc309988ef
Fixes: 63080632
2017-06-27 18:25:53 -07:00
Lucas Dupin
ae885416dd Replaced overlay target package
Changing from android to com.android.systemui
will keep it from showing up in the settings app.

Bug: 62346335
Bug: 62739503
Test: manual
Change-Id: Ie8864d4508f229f83aec58380136549f3e4fb759
2017-06-27 18:22:13 -07:00
Lucas Dupin
96d7be7129 Separate theme breakpoints
Separating dark sysui theme from dark
colors on lock screen since they should
be independent.

Bug: 62346335
Test: manual
Change-Id: I1e2ddc8b80f838bcac1647b7c5ac2d5ba50765e3
2017-06-19 17:33:51 -07:00