summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/AudioPolicyManager.h
Commit message (Collapse)AuthorAgeFilesLines
* audio policy: update from libhardware_legacyEric Laurent2014-05-061-0/+9
| | | | | | | | | | | | | Merge changes made to AudioPolicyManagerBase in libhardware_legacy since it was forked here: fd61179 Update policy handling for USB inputs c7b6e3c audio: allow compiling for 64-bit c26f454 Initial implementation of USB Audio output. a7b1bc9 Audio policy is 32-bit only 26101ad audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable Change-Id: I22bc883c20603a6598c6ee3ded636e9cc4d9ec03
* Fix the buildEric Laurent2014-03-261-1/+1
| | | | Change-Id: I2169a3d26f4e35e5cfa35a1264175aab6ac4db41
* audio policy: remove obsolete AudioPolicyManager class membersEric Laurent2014-03-261-4/+0
| | | | | | | | | | | Remove mHasA2dp, mHasUsb and mHasRemoteSubmix members from AudoPolicyManager. They are not needed any more since we use device descriptors with additional attributes. Also remove obsolete limitation on device address length (MAX_DEVICE_ADDRESS_LEN). Change-Id: Iffe760a521692a4b50be3f6b935af84afb61bb86
* audio policy: use new audio device representationEric Laurent2014-03-261-12/+54
| | | | | | | | | | | | | | | | | | | | Represent audio devices with more attributes than just the type (audio_device_t). This is in preparation for new routing APIs allowing device selection based on more criteria than just the type (address, channel mask...) A new class DeviceDescriptor is created and used by functions needing more information than just the device type. Bit fields for available and supported input or output devices are replaced by vectors of device descriptors. Each available device is allocated a unique ID for future use. Removed obsolete mA2dpDeviceAddress, mScoDeviceAddress and mUsbCardAndDevice fields replaced by address stored in DeviceDescriptor. Policy decisions like getDeviceForStrategy() are still based only on the device type. Change-Id: I5de3b3ffb12ff8dcfb746782ab1e6b15bf040d0c
* audio policy: renamed AudioPolicyManagerBase to AudioPolicyManagerEric Laurent2014-03-111-0/+582
Change-Id: Ia8b5ae9c3a9cf6ed98f162614ea331efc78e9ff2