From 7fb614664707f4c67dbbad8320e7d3cc10750df1 Mon Sep 17 00:00:00 2001 From: Griff Hazen Date: Mon, 8 Sep 2014 21:34:52 -0700 Subject: [PATCH] Add support for a circular bitmap overlay for round android wear emulator. Android wear emulators have never had support for enabling both gpu emulation and also having a round clip overlay present. Fix this by supporting a drawable overlay when the ro.emulator.circular system property is set. Bug: 13415409 Change-Id: I6e0840ebe5c77adb786a7ba7ec6af348308ca46a --- .../emulator_circular_window_overlay.xml | 20 +++ core/res/res/values/config.xml | 4 + core/res/res/values/symbols.xml | 2 + .../server/wm/CircularDisplayMask.java | 10 +- .../server/wm/EmulatorDisplayOverlay.java | 127 ++++++++++++++++++ .../server/wm/WindowManagerService.java | 60 ++++++++- 6 files changed, 215 insertions(+), 8 deletions(-) create mode 100644 core/res/res/drawable/emulator_circular_window_overlay.xml create mode 100644 services/core/java/com/android/server/wm/EmulatorDisplayOverlay.java diff --git a/core/res/res/drawable/emulator_circular_window_overlay.xml b/core/res/res/drawable/emulator_circular_window_overlay.xml new file mode 100644 index 0000000000000..7616b37672880 --- /dev/null +++ b/core/res/res/drawable/emulator_circular_window_overlay.xml @@ -0,0 +1,20 @@ + + + + + + diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index f3b3077ffad73..1b12ff2c74343 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1611,6 +1611,10 @@ false + + false +