History log of /frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ba6b4b400d850ba18fcb9d5bf9789d490f390acc 10-Feb-2016 Jean-Michel Trivi <jmtrivi@google.com> Dynamic audio policies: JNI support for UID rules

Rename AttributeMatchCriterion to AudioMixMatchCriterion to be consistent
with the fact that now mixing rules are not always about audio attributes.

AudioSystem JNI: add support for UID-based rules.

Bug 26798796

Change-Id: Icb0f57841c94f410e1fac9ed071a829a26b9a58e
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
fee832a09734bd8d78501122d94111474fa791b7 30-Jan-2016 Jean-Michel Trivi <jmtrivi@google.com> Dynamic audio policies: fix AttributeMatchCriterion addition in mix

When adding an AttributeMatchCriterion for a mix, build the instance
with the constructor that matches the rule.

Bug 26798796

Change-Id: I130f4bdab51644685413d294096d35d9685ea5eb
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
32696d49e1a6f3c4d5ddadc8990f79966e00707b 28-Jan-2016 Jean-Michel Trivi <jmtrivi@google.com> Fix dynamic audio policy rules

Always set the mix type when adding rules, even
when adding from a parcel.

Bug 26798796

Change-Id: Ib10bfa9b9b7753b18d9b1b5a67e82677dcac2cbe
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
4d4b3d54c6bad3ecc71f2003abd398a2f135a052 26-Jan-2016 Jean-Michel Trivi <jmtrivi@google.com> Dynamic audio policies by UID

Add support for audio mix creation by UID.
Refactor AudioAttributes-based mix criteria to a generic Object
interface.

Bug 26798796

Change-Id: Idac256e19019cd1be52168c6127997c3c1bf280e
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
1b3541d5eedb332ea01066b4a78a2d06d5304044 25-Nov-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioMix address and type, rule exclusion API, dynamic source

- Simplify API for defining an exclusion-based rule: don't define
an exclusion rule, add instead a way to exclude a rule.
- API for defining rules for dynamic sources (rule match on capture
preset).
- Verify mix type when creating AudioRecord or AudioTrack for a mix.
- Use hashcode of mix for generating the device address.
- AudioService dump prints info about registered policies.
- Annotate as SystemApi the audio policy-related APIs.
- Express mixing match and exclude rule constants as flags for
future-proofness

Bug 16006090
Bug 16009464

Change-Id: I0dabe71204501acaffea7ef0ddbbab9700e1bd87
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
8fdb0d4defb6ee2ca8057d3442ead36b408b6c17 17-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> More AudioPolicy registration

Define new usage in AudioAttributes to describe "virtual" sources.
Maintain a registration string in AudioPolicy and AudioMix that
is used for the address of the mix in the native policy manager.
AudioPolicy registration marks the audio policy configuration and
the audio mixes as registered.
The AudioPolicy class is used as the factory for the AudioTrack
and AudioRecord objects that are respectively used as the
source and sink of the mixes created by the policy owner.

Bug 16009464

Change-Id: I8e5bd351495257597c513d22597e273fcabdbc55
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java
a8b6bd88cfb010c9e9aa1339e504fd593919e1e0 01-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Define audio policy, mixes, and mixing rules

An AudioMixingRule is a collection of AudioAttributes and match/exclude
rules.
An AudioMix is defined by its AudioMixingRule, AudioFormat and
routing flag.
An AudioPolicyConfig is a collection of AudioMix and is
parcellable.
An AudioPolicy has an AudioPolicyConfig, and
can be registered/unregistered through AudioManager.

bug 16009464

Change-Id: I01bf95d014967f48ba823648ea897779da099e5d
/frameworks/base/media/java/android/media/audiopolicy/AudioMixingRule.java