Loading services/audiopolicy/common/include/Volume.h +11 −11 Original line number Diff line number Diff line Loading @@ -30,6 +30,17 @@ public: float mDBAttenuation; }; /** * device categories used for volume curve management. */ enum device_category { DEVICE_CATEGORY_HEADSET, DEVICE_CATEGORY_SPEAKER, DEVICE_CATEGORY_EARPIECE, DEVICE_CATEGORY_EXT_MEDIA, DEVICE_CATEGORY_CNT }; class Volume { public: Loading @@ -49,17 +60,6 @@ public: VOLCNT = 4 }; /** * device categories used for volume curve management. */ enum device_category { DEVICE_CATEGORY_HEADSET, DEVICE_CATEGORY_SPEAKER, DEVICE_CATEGORY_EARPIECE, DEVICE_CATEGORY_EXT_MEDIA, DEVICE_CATEGORY_CNT }; /** * extract one device relevant for volume control from multiple device selection * Loading services/audiopolicy/common/managerdefinitions/include/StreamDescriptor.h +5 −5 Original line number Diff line number Diff line Loading @@ -41,14 +41,14 @@ public: void dump(int fd) const; void setVolumeCurvePoint(Volume::device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(Volume::device_category deviceCategory) const void setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(device_category deviceCategory) const { return mVolumeCurve[deviceCategory]; } private: const VolumeCurvePoint *mVolumeCurve[Volume::DEVICE_CATEGORY_CNT]; const VolumeCurvePoint *mVolumeCurve[DEVICE_CATEGORY_CNT]; KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */ int mIndexMin; /**< min volume index. */ int mIndexMax; /**< max volume index. */ Loading @@ -71,11 +71,11 @@ public: status_t dump(int fd) const; void setVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory, device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory) const; device_category deviceCategory) const; void setVolumeIndexMin(audio_stream_type_t stream,int volIndexMin); void setVolumeIndexMax(audio_stream_type_t stream,int volIndexMax); Loading services/audiopolicy/common/managerdefinitions/src/StreamDescriptor.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ void StreamDescriptor::setVolumeIndexMax(int volIndexMax) mIndexMax = volIndexMax; } void StreamDescriptor::setVolumeCurvePoint(Volume::device_category deviceCategory, void StreamDescriptor::setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point) { mVolumeCurve[deviceCategory] = point; Loading Loading @@ -121,14 +121,14 @@ void StreamDescriptorCollection::addCurrentVolumeIndex(audio_stream_type_t strea } void StreamDescriptorCollection::setVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory, device_category deviceCategory, const VolumeCurvePoint *point) { editValueAt(stream).setVolumeCurvePoint(deviceCategory, point); } const VolumeCurvePoint *StreamDescriptorCollection::getVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory) const device_category deviceCategory) const { return valueAt(stream).getVolumeCurvePoint(deviceCategory); } Loading services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ public: * * @return amplification value in dB matching the UI index for this given device and stream. */ virtual float volIndexToDb(Volume::device_category deviceCategory, audio_stream_type_t stream, virtual float volIndexToDb(device_category deviceCategory, audio_stream_type_t stream, int indexInUi) = 0; /** Loading services/audiopolicy/engineconfigurable/interface/AudioPolicyPluginInterface.h +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ public: * @return true if the strategy were set correclty for this stream, false otherwise. */ virtual bool setVolumeProfileForStream(const audio_stream_type_t &stream, Volume::device_category category, device_category category, const VolumeCurvePoints &points) = 0; /** Loading Loading
services/audiopolicy/common/include/Volume.h +11 −11 Original line number Diff line number Diff line Loading @@ -30,6 +30,17 @@ public: float mDBAttenuation; }; /** * device categories used for volume curve management. */ enum device_category { DEVICE_CATEGORY_HEADSET, DEVICE_CATEGORY_SPEAKER, DEVICE_CATEGORY_EARPIECE, DEVICE_CATEGORY_EXT_MEDIA, DEVICE_CATEGORY_CNT }; class Volume { public: Loading @@ -49,17 +60,6 @@ public: VOLCNT = 4 }; /** * device categories used for volume curve management. */ enum device_category { DEVICE_CATEGORY_HEADSET, DEVICE_CATEGORY_SPEAKER, DEVICE_CATEGORY_EARPIECE, DEVICE_CATEGORY_EXT_MEDIA, DEVICE_CATEGORY_CNT }; /** * extract one device relevant for volume control from multiple device selection * Loading
services/audiopolicy/common/managerdefinitions/include/StreamDescriptor.h +5 −5 Original line number Diff line number Diff line Loading @@ -41,14 +41,14 @@ public: void dump(int fd) const; void setVolumeCurvePoint(Volume::device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(Volume::device_category deviceCategory) const void setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(device_category deviceCategory) const { return mVolumeCurve[deviceCategory]; } private: const VolumeCurvePoint *mVolumeCurve[Volume::DEVICE_CATEGORY_CNT]; const VolumeCurvePoint *mVolumeCurve[DEVICE_CATEGORY_CNT]; KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */ int mIndexMin; /**< min volume index. */ int mIndexMax; /**< max volume index. */ Loading @@ -71,11 +71,11 @@ public: status_t dump(int fd) const; void setVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory, device_category deviceCategory, const VolumeCurvePoint *point); const VolumeCurvePoint *getVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory) const; device_category deviceCategory) const; void setVolumeIndexMin(audio_stream_type_t stream,int volIndexMin); void setVolumeIndexMax(audio_stream_type_t stream,int volIndexMax); Loading
services/audiopolicy/common/managerdefinitions/src/StreamDescriptor.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ void StreamDescriptor::setVolumeIndexMax(int volIndexMax) mIndexMax = volIndexMax; } void StreamDescriptor::setVolumeCurvePoint(Volume::device_category deviceCategory, void StreamDescriptor::setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point) { mVolumeCurve[deviceCategory] = point; Loading Loading @@ -121,14 +121,14 @@ void StreamDescriptorCollection::addCurrentVolumeIndex(audio_stream_type_t strea } void StreamDescriptorCollection::setVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory, device_category deviceCategory, const VolumeCurvePoint *point) { editValueAt(stream).setVolumeCurvePoint(deviceCategory, point); } const VolumeCurvePoint *StreamDescriptorCollection::getVolumeCurvePoint(audio_stream_type_t stream, Volume::device_category deviceCategory) const device_category deviceCategory) const { return valueAt(stream).getVolumeCurvePoint(deviceCategory); } Loading
services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ public: * * @return amplification value in dB matching the UI index for this given device and stream. */ virtual float volIndexToDb(Volume::device_category deviceCategory, audio_stream_type_t stream, virtual float volIndexToDb(device_category deviceCategory, audio_stream_type_t stream, int indexInUi) = 0; /** Loading
services/audiopolicy/engineconfigurable/interface/AudioPolicyPluginInterface.h +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ public: * @return true if the strategy were set correclty for this stream, false otherwise. */ virtual bool setVolumeProfileForStream(const audio_stream_type_t &stream, Volume::device_category category, device_category category, const VolumeCurvePoints &points) = 0; /** Loading