/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/ |
H A D | iaudio_policy_interface.h | 74 …virtual int32_t SelectDevice(DeviceRole deviceRole, InternalDeviceType deviceType, std::string nam… 76 virtual int32_t SetDeviceActive(InternalDeviceType deviceType, 92 virtual void SetVolumeForSwitchDevice(InternalDeviceType deviceType) = 0;
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/ |
H A D | audio_policy_service.h | 157 int32_t SetDeviceActive(InternalDeviceType deviceType, bool active); 159 bool IsDeviceActive(InternalDeviceType deviceType); 438 int32_t SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::string address); 536 std::string GetSourcePortName(InternalDeviceType deviceType); 566 AudioIOHandle GetSinkIOHandle(InternalDeviceType deviceType); 568 AudioIOHandle GetSourceIOHandle(InternalDeviceType deviceType); 573 InternalDeviceType GetDeviceType(const std::string &deviceName); 689 void AddAudioDevice(AudioModuleInfo& moduleInfo, InternalDeviceType devType); 773 void UpdateActiveDeviceRoute(InternalDeviceType deviceType, DeviceFlag deviceFlag); 936 bool IsRingerOrAlarmerDualDevicesRange(const InternalDeviceType &deviceType); [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/include/ |
H A D | audio_policy_base.h | 31 using InternalDeviceType = DeviceType; variable 67 virtual int32_t SetDeviceActive(InternalDeviceType deviceType, bool active) = 0; 72 virtual bool IsDeviceActive(InternalDeviceType deviceType) = 0; 295 …virtual int32_t SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::string addres…
|
H A D | audio_policy_proxy.h | 66 int32_t SetDeviceActive(InternalDeviceType deviceType, bool active) override; 68 bool IsDeviceActive(InternalDeviceType deviceType) override; 282 …int32_t SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::string address) overr…
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/ |
H A D | audio_adapter_manager.h | 96 int32_t SelectDevice(DeviceRole deviceRole, InternalDeviceType deviceType, std::string name); 98 int32_t SetDeviceActive(InternalDeviceType deviceType, std::string name, bool active, 101 void SetVolumeForSwitchDevice(InternalDeviceType deviceType);
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/include/ |
H A D | audio_policy_manager.h | 40 using InternalDeviceType = DeviceType; variable 88 int32_t SetDeviceActive(InternalDeviceType deviceType, bool active); 90 bool IsDeviceActive(InternalDeviceType deviceType); 375 int32_t SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::string address);
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/ |
H A D | audio_policy_server.h | 149 int32_t SetDeviceActive(InternalDeviceType deviceType, bool active) override; 151 bool IsDeviceActive(InternalDeviceType deviceType) override; 153 InternalDeviceType GetActiveOutputDevice() override; 155 InternalDeviceType GetActiveInputDevice() override; 370 …int32_t SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::string address) overr…
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/ |
H A D | audio_policy_service.cpp | 1667 case InternalDeviceType::DEVICE_TYPE_EARPIECE: in GetSinkPortName() 1668 case InternalDeviceType::DEVICE_TYPE_SPEAKER: in GetSinkPortName() 1684 case InternalDeviceType::DEVICE_TYPE_DP: in GetSinkPortName() 1687 case InternalDeviceType::DEVICE_TYPE_FILE_SINK: in GetSinkPortName() 1705 case InternalDeviceType::DEVICE_TYPE_MIC: in GetSourcePortName() 1713 case InternalDeviceType::DEVICE_TYPE_WAKEUP: in GetSourcePortName() 5481 case InternalDeviceType::DEVICE_TYPE_EARPIECE: in GetSinkIOHandle() 5482 case InternalDeviceType::DEVICE_TYPE_SPEAKER: in GetSinkIOHandle() 5495 case InternalDeviceType::DEVICE_TYPE_DP: in GetSinkIOHandle() 5513 case InternalDeviceType::DEVICE_TYPE_MIC: in GetSourceIOHandle() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/test/fuzztest/audiopolicyanother_fuzzer/ |
H A D | audio_policy_another_fuzzer.cpp | 113 InternalDeviceType deviceType = *reinterpret_cast<const InternalDeviceType *>(rawData); in AudioDeviceFuzzTest()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/ |
H A D | audio_policy_manager_stub.cpp | 471 InternalDeviceType deviceType = static_cast<InternalDeviceType>(data.ReadInt32()); in SetDeviceActiveInternal() 482 InternalDeviceType deviceType = static_cast<InternalDeviceType>(data.ReadInt32()); in IsDeviceActiveInternal() 489 InternalDeviceType deviceType = GetActiveOutputDevice(); in GetActiveOutputDeviceInternal() 495 InternalDeviceType deviceType = GetActiveInputDevice(); in GetActiveInputDeviceInternal() 1865 InternalDeviceType deviceType = static_cast<InternalDeviceType>(data.ReadInt32()); in SetCallDeviceActiveInternal()
|
H A D | audio_policy_server.cpp | 1017 int32_t AudioPolicyServer::SetDeviceActive(InternalDeviceType deviceType, bool active) in SetDeviceActive() 1022 bool AudioPolicyServer::IsDeviceActive(InternalDeviceType deviceType) in IsDeviceActive() 1027 InternalDeviceType AudioPolicyServer::GetActiveOutputDevice() in GetActiveOutputDevice() 1032 InternalDeviceType AudioPolicyServer::GetActiveInputDevice() in GetActiveInputDevice() 2620 int32_t AudioPolicyServer::SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::str… in SetCallDeviceActive()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/ |
H A D | audio_adapter_manager.cpp | 650 int32_t AudioAdapterManager::SelectDevice(DeviceRole deviceRole, InternalDeviceType deviceType, std… in SelectDevice() 668 int32_t AudioAdapterManager::SetDeviceActive(InternalDeviceType deviceType, in SetDeviceActive() 675 case InternalDeviceType::DEVICE_TYPE_USB_ARM_HEADSET: { in SetDeviceActive() 711 void AudioAdapterManager::SetVolumeForSwitchDevice(InternalDeviceType deviceType) in SetVolumeForSwitchDevice()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_system_manager.cpp | 261 …return (AudioPolicyManager::GetInstance().SetDeviceActive(static_cast<InternalDeviceType>(deviceTy… in SetDeviceActive() 279 …return (AudioPolicyManager::GetInstance().IsDeviceActive(static_cast<InternalDeviceType>(deviceTyp… in IsDeviceActive() 1532 …return (AudioPolicyManager::GetInstance().SetCallDeviceActive(static_cast<InternalDeviceType>(devi… in SetCallDeviceActive()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/src/ |
H A D | audio_policy_manager.cpp | 542 int32_t AudioPolicyManager::SetDeviceActive(InternalDeviceType deviceType, bool active) in SetDeviceActive() 550 bool AudioPolicyManager::IsDeviceActive(InternalDeviceType deviceType) in IsDeviceActive() 1833 int32_t AudioPolicyManager::SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::st… in SetCallDeviceActive()
|
H A D | audio_policy_proxy.cpp | 553 int32_t AudioPolicyProxy::SetDeviceActive(InternalDeviceType deviceType, bool active) in SetDeviceActive() 569 bool AudioPolicyProxy::IsDeviceActive(InternalDeviceType deviceType) in IsDeviceActive() 2133 int32_t AudioPolicyProxy::SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::stri… in SetCallDeviceActive()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/client/src/proxy/ |
H A D | audio_policy_proxy.cpp | 347 int32_t AudioPolicyProxy::SetDeviceActive(InternalDeviceType deviceType, bool active) in SetDeviceActive() 394 bool AudioPolicyProxy::IsDeviceActive(InternalDeviceType deviceType) in IsDeviceActive() 1640 int32_t AudioPolicyProxy::SetCallDeviceActive(InternalDeviceType deviceType, bool active, std::stri… in SetCallDeviceActive()
|