History log of /frameworks/base/services/core/java/com/android/server/audio/RotationHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0155856a1d1cb272d83b6175953dd7151fe65daa 06-Oct-2015 Jean-Michel Trivi <jmtrivi@google.com> Fix AudioService rotation helper thread

Fix a race condition where the wait index can be incremented inbetween
the while() loop and the lock
Fix when updateOrientation() is called: after the sleep, otherwise
the last sleep is useless.

Bug 24677424

Change-Id: I03770a0fc8af57f4696ebee7e9c9110e17c55a24
/frameworks/base/services/core/java/com/android/server/audio/RotationHelper.java
24806db8f6f523542510097ce0af4a32beeda83b 02-Oct-2015 Jean-Michel Trivi <jmtrivi@google.com> AudioService: alternative way of handling device rotation

For devices that monitor orientation (primarily for channel assignment
to stereo speakers):
The com.android.server.policy.WindowOrientationListener API is more
power efficient than simply monitoring the device's orientation. When
supported, use it instead of android.view.OrientationEventListener.
When WindowOrientationListener reports an orientation change, start
a thread to poll the UI orientation, as its change may lag behind
the observed rotation. Gradually increasing delays between polls
are stored in a table.

Bug 24415763

Change-Id: I69bf68da6107af24cd02a48961dd17ceab557816
/frameworks/base/services/core/java/com/android/server/audio/RotationHelper.java