From 814de9b0a4e8f1f70da71ab94f0cda861c665f22 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 17 Aug 2015 23:31:55 +0100 Subject: [PATCH] Add support for new window orientation sensor. If we have a window orientation sensor available then we can defer our orientation calculation to it and potentially let the AP go into XO shutdown. By default we'll use the typical accelerometer-based sensor unless the device tells us the name of the sensor to look for. Bug: 23038651 Change-Id: I94f02e0639956a7a6a3ab85710aa0f2537fbf7f3 --- core/res/res/values/config.xml | 11 + core/res/res/values/symbols.xml | 1 + .../policy/WindowOrientationListener.java | 308 +++++++++++++++--- 3 files changed, 275 insertions(+), 45 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index c85b44cdd2ffb..bd02d4ded7cfe 100755 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -619,6 +619,17 @@ -25 65 + + @null +