/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/ |
H A D | volume_data_maintainer.h | 62 bool SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel); 63 bool GetVolume(DeviceType deviceType, AudioStreamType streamType); 64 void SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel); 65 int32_t GetStreamVolume(AudioStreamType streamType); 66 std::unordered_map<AudioStreamType, int32_t> GetVolumeMap(); 68 bool SaveMuteStatus(DeviceType deviceType, AudioStreamType streamType, 70 bool GetMuteStatus(DeviceType deviceType, AudioStreamType streamType); 71 bool SetStreamMuteStatus(AudioStreamType streamType, bool muteStatus); 72 bool GetStreamMute(AudioStreamType streamType); 93 static std::string GetVolumeKeyForDataShare(DeviceType deviceType, AudioStreamType streamTyp [all...] |
H A D | audio_adapter_manager.h | 72 int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel); 74 int32_t GetSystemVolumeLevel(AudioStreamType streamType); 76 int32_t GetSystemVolumeLevelNoMuteState(AudioStreamType streamType); 78 float GetSystemVolumeDb(AudioStreamType streamType); 80 int32_t SetStreamMute(AudioStreamType streamType, bool mute, StreamUsage streamUsage = STREAM_USAGE_UNKNOWN); 84 bool GetStreamMute(AudioStreamType streamType); 129 float CalculateVolumeDbNonlinear(AudioStreamType streamType, DeviceType deviceType, int32_t volumeLevel); 155 int32_t GetStreamVolume(AudioStreamType streamType); 182 void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel); 184 void HandleStreamMuteStatus(AudioStreamType streamTyp [all...] |
H A D | audio_adapter_manager_handler.h | 48 VolumeDataEvent(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel) in VolumeDataEvent() 52 AudioStreamType streamType_; 58 StreamMuteStatusEvent(const AudioStreamType &streamType, const bool &mute, const StreamUsage &streamUsage) in StreamMuteStatusEvent() 61 AudioStreamType streamType_; 75 bool SendSaveVolume(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel); 76 bool SendStreamMuteStatusUpdate(const AudioStreamType &streamType, const bool &mute,
|
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | audio_endpoint_separate_unit_test.cpp | 47 config.streamType = AudioStreamType::STREAM_MUSIC; in InitProcessConfig() 90 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; in HWTEST() 108 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST() 112 streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST() 128 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; in HWTEST() 146 AudioStreamType streamType = AudioStreamType in HWTEST() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/ |
H A D | audio_focus_parser.cpp | 29 // Initialize stream map with string vs AudioStreamType 33 {AudioStreamType::STREAM_VOICE_CALL, SourceType::SOURCE_TYPE_INVALID, true}}, 35 {AudioStreamType::STREAM_VOICE_CALL_ASSISTANT, SourceType::SOURCE_TYPE_INVALID, true}}, 37 {AudioStreamType::STREAM_VOICE_MESSAGE, SourceType::SOURCE_TYPE_INVALID, true}}, 39 {AudioStreamType::STREAM_SYSTEM, SourceType::SOURCE_TYPE_INVALID, true}}, 41 {AudioStreamType::STREAM_RING, SourceType::SOURCE_TYPE_INVALID, true}}, 43 {AudioStreamType::STREAM_MUSIC, SourceType::SOURCE_TYPE_INVALID, true}}, 45 {AudioStreamType::STREAM_MOVIE, SourceType::SOURCE_TYPE_INVALID, true}}, 47 {AudioStreamType::STREAM_GAME, SourceType::SOURCE_TYPE_INVALID, true}}, 49 {AudioStreamType [all...] |
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_common_utils.h | 26 static AudioVolumeType GetVolumeTypeFromStreamType(AudioStreamType streamType); 30 static std::unordered_map<AudioStreamType, AudioVolumeType> defaultVolumeMap_; 31 static std::unordered_map<AudioStreamType, AudioVolumeType> audioPCVolumeMap_; 32 static std::unordered_map<AudioStreamType, AudioVolumeType>& GetVolumeMap();
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/ |
H A D | volume_data_maintainer.cpp | 52 static std::map<VolumeDataMaintainer::VolumeDataMaintainerStreamType, AudioStreamType> AUDIO_STREAMTYPE_MAP = { 59 static std::map<AudioStreamType, std::string> AUDIO_STREAMTYPE_VOLUME_MAP = { 73 static std::map<AudioStreamType, std::string> AUDIO_STREAMTYPE_MUTE_STATUS_MAP = { 122 bool VolumeDataMaintainer::SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel) in SaveVolume() 141 bool VolumeDataMaintainer::GetVolume(DeviceType deviceType, AudioStreamType streamType) in GetVolume() 147 bool VolumeDataMaintainer::GetVolumeInternal(DeviceType deviceType, AudioStreamType streamType) in GetVolumeInternal() 171 void VolumeDataMaintainer::SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel) in SetStreamVolume() 177 void VolumeDataMaintainer::SetStreamVolumeInternal(AudioStreamType streamType, int32_t volumeLevel) in SetStreamVolumeInternal() 179 AudioStreamType streamForVolumeMap = VolumeUtils::GetVolumeTypeFromStreamType(streamType); in SetStreamVolumeInternal() 183 int32_t VolumeDataMaintainer::GetStreamVolume(AudioStreamType streamTyp [all...] |
H A D | audio_adapter_manager.cpp | 35 static const std::vector<AudioStreamType> VOLUME_TYPE_LIST = { 54 static const std::vector<AudioStreamType> VOICE_CALL_VOLUME_TYPE_LIST = { 60 static const std::vector<AudioStreamType> RINGTONE_VOLUME_TYPE_LIST = { 70 static const std::vector<AudioStreamType> MEDIA_VOLUME_TYPE_LIST = { 293 int32_t AudioAdapterManager::SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) in SetSystemVolumeLevel() 343 void AudioAdapterManager::HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel) in HandleSaveVolume() 348 void AudioAdapterManager::HandleStreamMuteStatus(AudioStreamType streamType, bool mute, StreamUsage streamUsage) in HandleStreamMuteStatus() 360 AudioStreamType streamForVolumeMap = VolumeUtils::GetVolumeTypeFromStreamType(STREAM_RING); in HandleRingerMode() 376 int32_t AudioAdapterManager::SetVolumeDb(AudioStreamType streamType) in SetVolumeDb() 378 AudioStreamType streamForVolumeMa in SetVolumeDb() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/ |
H A D | iaudio_policy_interface.h | 49 virtual int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) = 0; 51 virtual int32_t GetSystemVolumeLevel(AudioStreamType streamType) = 0; 53 virtual int32_t GetSystemVolumeLevelNoMuteState(AudioStreamType streamType) = 0; 55 virtual float GetSystemVolumeDb(AudioStreamType streamType) = 0; 57 virtual int32_t SetStreamMute(AudioStreamType streamType, bool mute, 62 virtual bool GetStreamMute(AudioStreamType streamType) = 0; 154 virtual void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel) = 0; 156 virtual void HandleStreamMuteStatus(AudioStreamType streamType, bool mute,
|
/foundation/multimedia/audio_framework/services/audio_policy/server/include/ |
H A D | audio_stream_collector.h | 46 AudioStreamType GetStreamType(ContentType contentType, StreamUsage streamUsage); 54 bool IsStreamActive(AudioStreamType volumeType); 55 int32_t GetRunningStream(AudioStreamType certainType = STREAM_DEFAULT, int32_t certainChannelCount = 0); 64 AudioStreamType GetStreamType(int32_t sessionId); 88 static const std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> streamTypeMap_; 89 static std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> CreateStreamMap(); 98 AudioStreamType GetVolumeTypeFromContentUsage(ContentType contentType, StreamUsage streamUsage); 99 AudioStreamType GetStreamTypeFromSourceType(SourceType sourceType);
|
H A D | audio_policy_server.h | 64 const std::vector<AudioStreamType> GET_STREAM_ALL_VOLUME_TYPES { 75 const std::vector<AudioStreamType> GET_PC_STREAM_RING_VOLUME_TYPES { 84 const std::vector<AudioStreamType> GET_PC_STREAM_ALL_VOLUME_TYPES { 124 AudioStreamType GetSystemActiveVolumeType(const int32_t clientUid) override; 126 int32_t GetSystemVolumeLevel(AudioStreamType streamType) override; 134 int32_t SetStreamMuteLegacy(AudioStreamType streamType, bool mute) override; 136 int32_t SetStreamMute(AudioStreamType streamType, bool mute) override; 138 bool GetStreamMute(AudioStreamType streamType) override; 140 bool IsStreamActive(AudioStreamType streamType) override; 155 std::string GetSelectedDeviceInfo(int32_t uid, int32_t pid, AudioStreamType streamTyp [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/ |
H A D | audio_volume_change_unit_test.cpp | 90 * Function: Set volume for AudioStreamType::STREAM_MUSIC 102 AudioStreamType streamType = AudioStreamType::STREAM_MUSIC; in HWTEST_F() 126 * Function: Set volume for AudioStreamType::STREAM_RING 138 AudioStreamType streamType = AudioStreamType::STREAM_RING; in HWTEST_F() 162 * Function: Set volume for AudioStreamType::STREAM_VOICE_CALL 174 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST_F()
|
/foundation/multimedia/audio_framework/frameworks/native/audiostream/include/ |
H A D | i_audio_stream.h | 62 AudioStreamType eStreamType; 112 AudioStreamType eStreamType, int32_t appUid); 114 AudioStreamType eStreamType, int32_t appUid); 116 static AudioStreamType GetStreamType(ContentType contentType, StreamUsage streamUsage); 117 static std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> CreateStreamMap(); 118 static void CreateStreamMap(std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> &streamMap); 140 virtual int32_t SetAudioStreamType(AudioStreamType audioStreamType) = 0;
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/session/ |
H A D | audio_session_service.h | 51 static bool IsSameTypeForAudioSession(const AudioStreamType incomingType, const AudioStreamType existedType);
|
H A D | audio_session_service.cpp | 25 static const std::unordered_map<AudioStreamType, AudioSessionType> SESSION_TYPE_MAP = { 62 bool AudioSessionService::IsSameTypeForAudioSession(const AudioStreamType incomingType, in IsSameTypeForAudioSession() 63 const AudioStreamType existedType) in IsSameTypeForAudioSession()
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/ |
H A D | audio_policy_server.cpp | 264 const AudioStreamType &streamInFocus) in MaxOrMinVolumeOption() 308 AudioStreamType streamInFocus = AudioStreamType::STREAM_MUSIC; // use STREAM_MUSIC as default stream type in RegisterVolumeKeyEvents() 310 streamInFocus = AudioStreamType::STREAM_ALL; in RegisterVolumeKeyEvents() 354 AudioStreamType streamInFocus = AudioStreamType::STREAM_MUSIC; // use STREAM_MUSIC as default stream type in RegisterVolumeKeyMuteEvents() 356 streamInFocus = AudioStreamType::STREAM_ALL; in RegisterVolumeKeyMuteEvents() 397 bool AudioPolicyServer::IsVolumeTypeValid(AudioStreamType streamType) in IsVolumeTypeValid() 423 bool AudioPolicyServer::IsVolumeLevelValid(AudioStreamType streamType, int32_t volumeLevel) in IsVolumeLevelValid() 623 int32_t AudioPolicyServer::SetSystemVolumeLevelLegacy(AudioStreamType streamTyp [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioadapter/include/ |
H A D | pulse_audio_service_adapter_impl.h | 38 int32_t SetVolumeDb(AudioStreamType streamType, float volumeDb) override; 68 AudioStreamType streamType; 81 AudioStreamType GetIdByStreamType(std::string streamType);
|
H A D | audio_service_adapter.h | 37 virtual std::pair<float, int32_t> OnGetVolumeDbCb(AudioStreamType streamType) = 0; 134 virtual int32_t SetVolumeDb(AudioStreamType streamType, float volume) = 0;
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | i_audio_stream.cpp | 32 const std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> streamTypeMap_ = IAudioStream::CreateStreamMap(); 33 std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> IAudioStream::CreateStreamMap() in CreateStreamMap() 35 std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> streamMap; in CreateStreamMap() 69 void IAudioStream::CreateStreamMap(std::map<std::pair<ContentType, StreamUsage>, AudioStreamType> &streamMap) in CreateStreamMap() 96 AudioStreamType IAudioStream::GetStreamType(ContentType contentType, StreamUsage streamUsage) in GetStreamType() 98 AudioStreamType streamType = STREAM_MUSIC; in GetStreamType() 209 AudioStreamType eStreamType, int32_t appUid) in GetPlaybackStream() 226 AudioStreamType eStreamType, int32_t appUid) in GetRecordStream()
|
/foundation/multimedia/audio_framework/test/fuzztest/audiopolicymore_fuzzer/ |
H A D | audio_policy_more_fuzzer.cpp | 197 OHOS::AudioStandard::AudioStreamType streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in GetStreamTypePriorityFuzzTest() 229 focusInfo.first.audioFocusType.streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in SendInterruptEventFuzzTest() 256 incomingInterrupt.audioFocusType.streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in IsSameAppInShareModeFuzzTest() 259 activateInterrupt.audioFocusType.streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in IsSameAppInShareModeFuzzTest() 278 audioInterrupt.audioFocusType.streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in SendFocusChangeEventFuzzTest() 294 focusInfo.first.audioFocusType.streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in GetAudioFocusInfoListFuzzTest() 317 AudioStreamType streamType = *reinterpret_cast<const AudioStreamType *>(rawData); in AudioVolumeMoreFuzzTest() 434 volumeEvent.volumeType = *reinterpret_cast<const AudioStreamType *>(rawDat in AudioVolumeKeyCallbackStubMoreFuzzTest() [all...] |
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include/ |
H A D | audio_capturer.h | 41 AudioStreamType streamType = STREAM_MEDIA; 150 static std::unique_ptr<AudioCapturer> Create(AudioStreamType audioStreamType); 162 static std::unique_ptr<AudioCapturer> Create(AudioStreamType audioStreamType, const AppInfo &appInfo); 670 static AudioStreamType FindStreamTypeBySourceType(SourceType sourceType);
|
/foundation/multimedia/audio_framework/services/audio_service/server/include/ |
H A D | audio_endpoint.h | 71 virtual int32_t SetVolume(AudioStreamType streamType, float volume) = 0; 106 explicit AudioEndpointSeparate(EndpointType type, uint64_t id, AudioStreamType streamType); 137 int32_t SetVolume(AudioStreamType streamType, float volume) override; 189 AudioStreamType streamType_ = STREAM_DEFAULT;
|
/foundation/multimedia/audio_framework/services/audio_service/client/include/ |
H A D | capturer_in_client.h | 25 static std::shared_ptr<CapturerInClient> GetInstance(AudioStreamType eStreamType, int32_t appUid);
|
H A D | renderer_in_client.h | 25 static std::shared_ptr<RendererInClient> GetInstance(AudioStreamType eStreamType, int32_t appUid);
|
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/callback/ |
H A D | napi_audio_routing_manager_callbacks.h | 35 void SaveCallbackReference(AudioStreamType streamType, napi_value callback); 55 std::list<std::pair<std::shared_ptr<AutoRef>, AudioStreamType>> preferredOutputDeviceCbList_;
|