2380566debfc57eb1cc07db1306ccee23b84ddd4 |
|
31-Jul-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Notification muting conditional to exclusive audio focus request Summary of feature: Do not mute notifications when speech recognition recording is active, but when an app has requested audio focus with AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE. Implementation: Move definition of AUDIOFOCUS_NONE to AudioManager where other audio focus codes are defined. Add support for querying the current audio focus type. When audio focus is requested as GAIN_TRANSIENT_EXCLUSIVE, make the corresponding loss by LOSS_TRANSIENT. Before playing a notification, check whether GAIN_TRANSIENT_EXCLUSIVE has been requested. Bug 8251963 Change-Id: I41edc77326b70639d2fdcb4642c53109995b72a8
/frameworks/base/media/java/android/media/FocusRequester.java
|
cbb212ff6f06b004ae19dfb6958ee3852716bbdc |
|
31-Jul-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Focus gain sends focus loss through the focus stack When a new focus owner lands on the stack, don't just make the previous top of the stack lose focus, propagate the loss throughout the stack. Only dispatch focus loss on focus loss state change Remove canDispatchFocus() method as it now doesn't need to be known (and shouldn't be known) outside of the implementation. Fix error where the focus code for a focus gain request should always be a focus loss code. Bug 8315302 Change-Id: I92c8f51fdcc090851d34d00fefed916e25da40c1
/frameworks/base/media/java/android/media/FocusRequester.java
|
53e6e287ffe924b6d26237e167a1a8996054e17e |
|
30-Jul-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Focus loss value takes into account previous loss Implement a state machine to represent how to transition to the next audio focus loss state, given the current focus loss (state) and the given external focus gain (transition). Bug 8315302 Change-Id: I4a3d5a4a53c842caceaa876206a993c4e5446681
/frameworks/base/media/java/android/media/FocusRequester.java
|
83283f23eb1b7c1576e253c644b8aade6f657d0a |
|
30-Jul-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Audio focus request managed by FocusRequester class Move all audio focus request functionality under a new class/file. Clean up encapsulation of data related to the request. Change-Id: I989796e1ee1a5fc99799a64e1612294e0e40fa6d
/frameworks/base/media/java/android/media/FocusRequester.java
|