44344b05261cb9ad46a43e635f637b89aecc7afe |
|
13-Dec-2016 |
Mikhail Naganov <mnaganov@google.com> |
audio policy: allows dumping Audio Policy Mix This patch adds the dump of AudioPolicyMix if registered. It also adds the required conversion map to human readable strings of the types involved in Mixes. Adapted for the development branch from the AOSP patch: https://android-review.googlesource.com/#/c/309127/ Change-Id: I91cf7afe6de5ff837970d9063ca437d4f6201e89 Test: build, dumpsys media.audio_policy
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
913d06c099bd689375483a839e11057ccf284d1c |
|
01-Nov-2016 |
Mikhail Naganov <mnaganov@google.com> |
Move TypeConverter into a shared library This will be needed for the default implementation of the audio HAL in TREBLE for parsing supported formats etc. provided by HAL in a form of string literals. As a bonus, remove some hand-written type conversions in AudioFlinger used in dumps. Example changes in the dump output: HAL format: 0x1 (pcm16) ==> HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT) Processing format: 0x5 (pcmfloat) ==> Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT) Output device: 0x2 (SPEAKER) ==> Output device: 0x2 (AUDIO_DEVICE_OUT_SPEAKER) Input device: 0 (NONE) ==> Input device: 0 (AUDIO_DEVICE_NONE) AudioStreamOut: 0x... flags 0x6 (PRIMARY|FAST) ==> AudioStreamOut: 0x... flags 0x6 (AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST) Test: make & run Change-Id: I9cde640e6827b7aa6d62e9caade9e738227e299f
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
388360c786cdcbec650b79db65c734b8952dfec0 |
|
18-Oct-2016 |
Mikhail Naganov <mnaganov@google.com> |
Brush up audio parameters usage It is preferred to use the constants from AudioParameter (which can now serve as an abstraction layer similar to libaudiohal). Grepped for usages of defines and just string values and replaced with references to AudioParameter. Since the parameter definitions are being moved to system/audio.h, update includes in AudioParemeter and stagefright Utils. Change-Id: I2addb983707d866b16f39d45d0e14b802595e292 Test: make
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
d91a420f234e2ec0ccc4d156a56297832e21d4a6 |
|
13-Jul-2016 |
Glenn Kasten <gkasten@google.com> |
Merge commit \'885dd7136a999d21219a4cc9034f20ef688c0625\' into manual_merge_885dd71 am: edab4257fa Change-Id: I04abc72767b31fbdfd6ee82c239fbc4a94421a82
|
fcddb0b73931d207b21bd281a7df3ba2f230a607 |
|
09-Jul-2016 |
Glenn Kasten <gkasten@google.com> |
Enable strict warning checks and fix Change-Id: Id401a937911eb418e93314812f2f7c2b5ecff8d6
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
6163904559247601e9a0834a3c09341862bcff95 |
|
21-Apr-2016 |
Mikhail Naganov <mnaganov@google.com> |
Symbolize flags of IOProfile in dumps Sample symbolization: - flags: 0x0006 (AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST) - flags: 0x0008 (AUDIO_OUTPUT_FLAG_DEEP_BUFFER) - flags: 0x0031 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING) - flags: 0x0104 (AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW) Change-Id: Id155cffea4e1defb1e0c2c1d24b869d4151b14e3
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
0d6a03301d77724c00c7a9ce7b8c123092d07a19 |
|
20-Apr-2016 |
Mikhail Naganov <mnaganov@google.com> |
Small improvements in audio_policy dump 1. Introduce a formatting helper for audio_mode_t, use it. 2. Get rid of mSize in TypeConverter. 3. Convert to a string unknown enum values. Change-Id: I8fc222225c2dd48dea715bb3fe4ecb3f1eaecc46
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
f4ad6e5637b6deccdac4b60615383f290b3806cf |
|
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
Audio policy: implement configuration file in XML This patch introduces configuration file of the policy in XML. Legacy configuration file is used by default and compilation flag USE_XML_AUDIO_POLICY_CONF must be defined to use XML file format. Change-Id: I352b788b5829d42ed82c851a4faef0e526be582e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
112b0af826aeca45855690b9c105b2cdf9938bbe |
|
19-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: introduction of AudioProfile In order to be able to declare the possible sample specifications for an Audio Port (a given format, a list of sample rates, a list of channels), a new object AudioProfile is introduced. Change-Id: Ie3ca3400f05984e7b4132fc7ba90020eb4d998c7 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
5fcd6f99944d8722c57d2b2963814a1964ecfedd |
|
27-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: enhancing type conversion helper This patch updates the conversion helper class (string to/from policy common types) by adding direction agnostic helper for channels and formats. It also adds the support of device category and stream type parsing. Change-Id: I75d5a77d78bc3aeb2389b424bfb41febbf020f1a Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|
a8ecc2c72ca26389bd6b0162181d60aaeaca8149 |
|
09-Nov-2015 |
François Gaffie <francois.gaffie@intel.com> |
audio policy: remove deserialization from policy objects This patch removes the responsability of the deserialization of all objects managed by the policy by: -adding required accessors -moving deserialization function to Config parser helper -adds a TypeConverter to associate string to / from values of all audio enumeration shared between HALs and policy. Change-Id: I1ce798848f4657b37e47446c9fbdc63f7ed0390e Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/TypeConverter.h
|