History log of /frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bfa81adfbe1819d55737dbbb2fb9157e50dbe022 25-May-2017 Wale Ogunwale <ogunwale@google.com> Fix unnecessary relaunches when unlocking with fingerprint sensor.

When the device is unlocked using the fingerprint sensor in an
orientation opposite to the lockscreen orientation, the app that
will be visible is first relaunched in the current lockscreen
orientation and then later relaunched in the correct orientation.
If the keygaurd is going away then:
- Don't let keyguard affect device orientation. We want to use the
orientation of the app that will be visible.
- Allow the rotation sensor to be enabled even though draw isn't
complete so window manager can get the updated or last rotation
reading.
- Don't clear the previous proposed sensor reading to allow
window manager to use the information to update the orientation as
needed vs. falling back to the previous orientation.

Change-Id: I8369723d6a77f2c602f1ef080371fa7cd9ee094e
Fixes: 38494778
Test: Launch an app that doesn't fix orientation like clock, hold
the device in landscape, press the power button, unlock the device
using the fingerprint sensor, and verify the the app isn't
relaunched.
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
d49b1ee0de1eeb2f7370bf2839e7c707fe008b37 27-May-2016 Ivan Podogov <ginkage@google.com> Set the sensor batch size for accelerometer listener.

For the Wear devices it is important to set the batch size here,
because otherwise all sensor-related services (like gesture detection
or gaze/ungaze detection start to consume ~10x CPU time).

Bug: 28995481
Change-Id: I30f9e5f7ea5aee8fdd80734588386e64b874e1dc
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
8e4591c4f388dfa0c28f83d991cf91316581cfc9 15-Jan-2016 Trevor Bunker <trevorbunker@google.com> Use public device orientation sensor for window orientation

We have defined a new public sensor type TYPE_DEVICE_ORIENTATION, so
this CL removes code that depended on a private sensor type.

Change-Id: I0ecd6686338e1be8cf4984ed2664a6cdbc46aa65
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
74f6c79b513c5a6e032c009a037f67e256aab7ba 25-Aug-2015 Michael Wright <michaelwr@google.com> Update rotation without holding the WOL lock.

We need to make sure to only ever update the orientation of the
device from WindowOrientationListener when we're not holding the WOL
class lock, otherwise we can deadlock when WMS calls into us to set
the orientation based on an apps preference.

Bug: 23491348
Change-Id: Ifeded4d5d1dc923fa2ce0473bc4b7fe950dc0cfd
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
814de9b0a4e8f1f70da71ab94f0cda861c665f22 18-Aug-2015 Michael Wright <michaelwr@google.com> 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
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
6eabf57e58713b8f2bd8f0bec343929db4853725 12-Aug-2015 Michael Wright <michaelwr@google.com> Log last filtered sensor timestamp.

Bug: 22870354
Change-Id: Ib4efaa0f05bec81856c939c5c640eceff98d88ed
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
e97c9a244b71b6376003c377b56f7a86bcd0049f 11-Jun-2015 Jeff Brown <jeffbrown@google.com> Configure auto-rotation tilt tolerance in config.xml.

This allows for the thresholds to be tuned differently for different
products as needed.

Bug: 18276856
Change-Id: I6c87e683dea6a17cf606203a894c8419e20d3658
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
12741963740350c80c7b7744a1ccf6fc089fc1b8 31-Mar-2015 Adrian Roos <roosa@google.com> Fix WindowOrientationListener crash if no sensor present

Bug: 19999145
Change-Id: Ie0c2a2f9ff337a6538e85dc9bd0ef108dd468d28
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
3595be4d19caaa7ddfbff0b979d135aaf5ac20b1 05-Mar-2015 Adrian Roos <roosa@google.com> Prevent sensor induced rotations while screen is touched

Bug: 19408285
Change-Id: Idadacc4cfb0cf41477155dc837297bacc3533ba5
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java
b10e33ff804a831c71be9303146cea892b9aeb5d 04-Feb-2015 Jorim Jaggi <jjaggi@google.com> Split up android.policy into framework.jar and services.jar 1/3

Change-Id: Ifd69f1f3dd308a7e17a1442e2f3950da8b03cec4
/frameworks/base/services/core/java/com/android/server/policy/WindowOrientationListener.java