29 Commits

Author SHA1 Message Date
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
8a0d3fcf17 Revert "[QS] Update landscape UI"
This reverts commit bc204efbe5602e130fbe666d6ea2b5185d42b0c4.

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
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
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
3c7f4d34d3 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4f0cac1ca19646cb5e45c5d84814883a3c11c1d6
2018-03-16 23:33:48 -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 e5d0b9dddbcd8e6be7725a89b82fb990db2dade7.

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 ae885416dddd684fab2369fde234dc9e48db5051.
2017-06-28 16:00:39 -07:00
Lucas Dupin
d78aa5d0cf Revert "Support dark text on Recents"
This reverts commit 512ce6c9b75ce7d3f4f70280a414ab8fb994e809.
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