History log of /frameworks/base/media/java/android/media/AudioAttributes.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/AudioAttributes.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/AudioAttributes.java
ce4483cb83afb3a42a32ef2cb00cf04d6f9018fd 17-Sep-2014 Benson Huang <benson.huang@mediatek.com> [FM] Add FM_TUNER audio source to support L version FM radio app

1.MediaRecorder.java: Add FM_TUNER audio source type for FM record.
2.AudioRecord.java: For FM output to the other device,
(except the headset case), record the FM tuner signal to a track
and playback the recorded signal by a track.
3.AudioAttributes.java: Thus we use AudioRecord, need to modify
setCapturePreset to support MediaRecorder.AudioSource.FM_TUNER.

Review: https://partner-android-review.git.corp.google.com/#/c/182071

Signed-off-by: Benson Huang <benson.huang@mediatek.com>

Change-Id: If068d0bbbffb4848887004396a8a8d9bcba1334e
/frameworks/base/media/java/android/media/AudioAttributes.java
bdad1afa92a6e7cd688061d5432f25a3dd15b64e 20-Sep-2014 Eric Laurent <elaurent@google.com> AudioRecord: add HW hotword capture flag

Bug: 17575019.
Change-Id: Ifa8b8342dffa12e1943b8f9105f6ab1fa4a2b1a6
/frameworks/base/media/java/android/media/AudioAttributes.java
04f55a490d0479f73ac5b749eeb7716d9a2d17db 12-Sep-2014 Jean-Michel Trivi <jmtrivi@google.com> more AudioAttributes javadoc

Expand the AudioAttributes and associated Builder javadoc.

Bug 17059703

Change-Id: I81b8d48a3b5b3c203f02da3e37228e5ef7b5451d
/frameworks/base/media/java/android/media/AudioAttributes.java
56340fc2e87985fb3d396b63b28168bf57ebe7ce 09-Sep-2014 Eric Laurent <elaurent@google.com> unhide AudioAttributes flag FLAG_HW_AV_SYNC

Bug: 17112525.
Change-Id: Ia817d8e4b6e517da04f948bcb138fc38faea6caf
/frameworks/base/media/java/android/media/AudioAttributes.java
8aacb2e96c62887d5418851396f903b6cc4bb5ab 06-Sep-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioAttributes: unhide CREATOR

android.media.AudioAttributes implements the Parcelable interface,
and is part of the SDK, it therefore requires CREATOR, writeToParcel,
and describeContents to be "unhidden".
CREATOR was still @hide

Bug 17390818

Change-Id: I9c1cb1d454fe538cb5be6066ebed290a99352da9
/frameworks/base/media/java/android/media/AudioAttributes.java
6894cd38ebb619a0b7e47831b623655c9c0f6e12 22-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Define FLAG_BEACON in android.media.AudioAttributes

Define FLAG_BEACON as @SystemAPI
Keep track of which flags are public, and the list of all
supported flags for easier code maintenance.

Bug 15415971

Change-Id: Ia7675e8fa4bc7c4d7a8f727fd25ff92ecb68483c
/frameworks/base/media/java/android/media/AudioAttributes.java
b634e1b6d6bda56128c354b1803b04b537e3799d 01-Aug-2014 Eric Laurent <elaurent@google.com> AudioSystem: add API to query audio HW sync source

Add a method to query from the audio HAL the HW sync
source used for a given audio session.
Add an AudioAttributes flag to request an output with
HW sync source.

Bug: 16132368.
Change-Id: Ic31b2924b98f242c3aa0d58688879f05ea02d6f7
/frameworks/base/media/java/android/media/AudioAttributes.java
e9c19a5a8e020b11935511b37f51f9007994f4b6 29-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioAttributes: implement hashcode and equals methods

Change-Id: I3245c38d9413ba7590811a038db54628424a420e
/frameworks/base/media/java/android/media/AudioAttributes.java
cc58c76cf038343020331060d19ae39308f2a5cf 31-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioAttributes: always build formatted tags from tag array

An AudioAttributes instance can either be built through the
Builder, or from unmarshalling: the mFormattedTags field
should always be in sync with the array of tags.
In toString() method, use the more compact mFormattedTags.

Change-Id: Ie06cd7758bf4f2d2693fedaa8c3ba4245802d921
/frameworks/base/media/java/android/media/AudioAttributes.java
c1601f73b98b004b6210631830d2184255037948 29-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Restore missing usage assignment in AudioAttributes

A bad merge caused the usage field assignment in
setLegacyStreamType() to disappear. Restore it.

Change-Id: I2c72e09a2c4a394483b8a4521b72d5edcc346e23
/frameworks/base/media/java/android/media/AudioAttributes.java
701d6ff12f36bf5e9de0dafdaced06744fd411eb 16-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioAttributes and AudioRecord.

Add audio recording source in AudioAttributes.
New AudioRecord constructor with AudioAttributes and
AudioFormat.
Legacy AudioRecord constructor is calling into the new
constructor.

Bug 16009464

Change-Id: I69d81f9e71bdf946c4cfbda6d3d8552ffac6b5c2
/frameworks/base/media/java/android/media/AudioAttributes.java
9b9d72fd111270333d773ec1f4cbc7795bbeec87 21-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Remove obsolete USAGE_NOTIFICATION_TELEPHONY_RINGTONE definition

Bug 16401631

Change-Id: I522e7c7030a71b528a484d4d8ae517b4b09460bf
/frameworks/base/media/java/android/media/AudioAttributes.java
89c3b29a9bfa0ae9858b913bc1ab6604c4613a15 20-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Rename USAGE_NOTIFICATION_TELEPHONY_RINGTONE

AudioAttributes: rename USAGE_NOTIFICATION_TELEPHONY_RINGTONE to
USAGE_NOTIFICATION_RINGTONE in the list of usage values.
Temporarily keep the old definition to prevent transient build
breakages, will be removed after telephony packages have been
updated.

Bug 16401631

Change-Id: I9398443fd7ba3c30e9d371c5c5a2934b9ea6f30a
/frameworks/base/media/java/android/media/AudioAttributes.java
7b41467704f941b11af6aace3e40993afc7f6c6f 18-Jul-2014 John Spurlock <jspurlock@google.com> Zen mode filtering should use new usage constants.

Refactor stream-based calls to usage-based calls.

Bug:15279516
Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
/frameworks/base/media/java/android/media/AudioAttributes.java
09818c15500a04eac6b9998144c1ca54b8a54109 19-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> Add AudioAttributes to stream type conversion

Framework internal conversion for going from an AudioAttributes
instance to a legacy stream type.

Change-Id: Ic3b7d2cf4aa0ac5255aa5897a25c78c940af9f77
/frameworks/base/media/java/android/media/AudioAttributes.java
998ff75484f1eecb6ebef150de4ac8456d22e864 11-Jul-2014 Jean-Michel Trivi <jmtrivi@google.com> fix build: hide AudioAttributes.usageToString() method

Change-Id: I1041d9bf530df45878dd61e30e32f5a2f4f9d1a1
/frameworks/base/media/java/android/media/AudioAttributes.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/AudioAttributes.java
8df982dfa5408afe67cd6a4b45bfbf26c94299d0 26-Jun-2014 Jean-Michel Trivi <jmtrivi@google.com> Java MediaPlayer: add support for setting audio attributes

Change-Id: Ia638107a5e67c20c46c2f5f1800db9da57d6f698
/frameworks/base/media/java/android/media/AudioAttributes.java
a1d80e3b1d210c60c6881a55ed39a4077ff66080 18-Jun-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioTrack Java constructor with AudioAttributes and AudioFormat

Change-Id: I82758a4231b8dc0b8d8e72acf3c896a289c28f60
/frameworks/base/media/java/android/media/AudioAttributes.java
b45c27303339e5baa9fe40e4f8ecd211e382982f 04-Jun-2014 Jean-Michel Trivi <jmtrivi@google.com> AudioAttributes: parcelable, hide support for tags

Make the AudioAttributes class parcelable.

Hide support for adding and querying tags, there is no SDK-backed
use case for this feature.

Bug 15306334

Change-Id: Idb67a735778e687d73020ed0120643f31fc230a6
/frameworks/base/media/java/android/media/AudioAttributes.java
d60e875a97867c1a6ed84325bb70f7ffe8ce4521 18-Apr-2014 Jean-Michel Trivi <jmtrivi@google.com> Define audio attributes

AudioAttributes is a class to associate a collection of attributes
describing information about an audio player.

Change-Id: I031aca1c79353abdfa0d7272c5dee0c2376c519a
/frameworks/base/media/java/android/media/AudioAttributes.java