9 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
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