/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); 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 streamType); 94 static std::string GetMuteKeyForDataShare(DeviceType deviceType, AudioStreamType streamType); [all...] |
H A D | audio_adapter_manager_handler.h | 48 VolumeDataEvent(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel) in VolumeDataEvent() 49 : deviceType_(deviceType), streamType_(streamType), volumeLevel_(volumeLevel) in VolumeDataEvent() 58 StreamMuteStatusEvent(const AudioStreamType &streamType, const bool &mute, const StreamUsage &streamUsage) in StreamMuteStatusEvent() 59 : streamType_(streamType), mute_(mute), streamUsage_(streamUsage) in StreamMuteStatusEvent() 75 bool SendSaveVolume(const DeviceType &deviceType, const AudioStreamType &streamType, const int32_t &volumeLevel); 76 bool SendStreamMuteStatusUpdate(const AudioStreamType &streamType, const bool &mute,
|
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 streamType, boo 203 AudioStreamType streamType; global() member 326 OnGetVolumeDbCb(AudioStreamType streamType) OnGetVolumeDbCb() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/ |
H A D | volume_data_maintainer.cpp | 122 bool VolumeDataMaintainer::SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel) in SaveVolume() argument 125 std::string volumeKey = GetVolumeKeyForDataShare(type, streamType); in SaveVolume() 127 AUDIO_ERR_LOG("[device %{public}d, streamType %{public}d] is not supported for datashare", in SaveVolume() 128 type, streamType); in SaveVolume() 141 bool VolumeDataMaintainer::GetVolume(DeviceType deviceType, AudioStreamType streamType) in GetVolume() argument 144 return GetVolumeInternal(deviceType, streamType); in GetVolume() 147 bool VolumeDataMaintainer::GetVolumeInternal(DeviceType deviceType, AudioStreamType streamType) in GetVolumeInternal() argument 149 std::string volumeKey = GetVolumeKeyForDataShare(deviceType, streamType); in GetVolumeInternal() 151 AUDIO_ERR_LOG("[device %{public}d, streamType %{public}d] is not supported for datashare", in GetVolumeInternal() 152 deviceType, streamType); in GetVolumeInternal() 171 SetStreamVolume(AudioStreamType streamType, int32_t volumeLevel) SetStreamVolume() argument 177 SetStreamVolumeInternal(AudioStreamType streamType, int32_t volumeLevel) SetStreamVolumeInternal() argument 183 GetStreamVolume(AudioStreamType streamType) GetStreamVolume() argument 189 GetStreamVolumeInternal(AudioStreamType streamType) GetStreamVolumeInternal() argument 201 SaveMuteStatus(DeviceType deviceType, AudioStreamType streamType, bool muteStatus) SaveMuteStatus() argument 221 SaveMuteStatusInternal(DeviceType deviceType, AudioStreamType streamType, bool muteStatus) SaveMuteStatusInternal() argument 242 SetStreamMuteStatus(AudioStreamType streamType, bool muteStatus) SetStreamMuteStatus() argument 250 GetMuteStatus(DeviceType deviceType, AudioStreamType streamType) GetMuteStatus() argument 256 GetMuteStatusInternal(DeviceType deviceType, AudioStreamType streamType) GetMuteStatusInternal() argument 279 GetStreamMute(AudioStreamType streamType) GetStreamMute() argument 285 GetStreamMuteInternal(AudioStreamType streamType) GetStreamMuteInternal() argument 576 GetVolumeKeyForDataShare(DeviceType deviceType, AudioStreamType streamType) GetVolumeKeyForDataShare() argument 596 GetMuteKeyForDataShare(DeviceType deviceType, AudioStreamType streamType) GetMuteKeyForDataShare() argument [all...] |
H A D | audio_adapter_manager.cpp | 293 int32_t AudioAdapterManager::SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel) in SetSystemVolumeLevel() argument 295 AUDIO_INFO_LOG("SetSystemVolumeLevel: streamType: %{public}d, deviceType: %{public}d, volumeLevel:%{public}d", in SetSystemVolumeLevel() 296 streamType, currentActiveDevice_, volumeLevel); in SetSystemVolumeLevel() 297 if (GetSystemVolumeLevel(streamType) == volumeLevel && currentActiveDevice_ != DEVICE_TYPE_BLUETOOTH_SCO && in SetSystemVolumeLevel() 302 AUDIO_INFO_LOG("SetSystemVolumeLevel: streamType: %{public}d, deviceType: %{public}d, volumeLevel:%{public}d", in SetSystemVolumeLevel() 303 streamType, currentActiveDevice_, volumeLevel); in SetSystemVolumeLevel() 305 (streamType == STREAM_VOICE_ASSISTANT || streamType == STREAM_VOICE_CALL || in SetSystemVolumeLevel() 306 streamType == STREAM_ALARM || streamType in SetSystemVolumeLevel() 343 HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel) HandleSaveVolume() argument 348 HandleStreamMuteStatus(AudioStreamType streamType, bool mute, StreamUsage streamUsage) HandleStreamMuteStatus() argument 376 SetVolumeDb(AudioStreamType streamType) SetVolumeDb() argument 435 SetAudioVolume(AudioStreamType streamType, float volumeDb) SetAudioVolume() argument 478 SetOffloadVolume(AudioStreamType streamType, float volumeDb) SetOffloadVolume() argument 493 GetSystemVolumeLevel(AudioStreamType streamType) GetSystemVolumeLevel() argument 502 GetSystemVolumeLevelNoMuteState(AudioStreamType streamType) GetSystemVolumeLevelNoMuteState() argument 507 GetSystemVolumeDb(AudioStreamType streamType) GetSystemVolumeDb() argument 513 SetStreamMute(AudioStreamType streamType, bool mute, StreamUsage streamUsage) SetStreamMute() argument 518 SetStreamMuteInternal(AudioStreamType streamType, bool mute, StreamUsage streamUsage) SetStreamMuteInternal() argument 571 GetStreamMute(AudioStreamType streamType) GetStreamMute() argument 576 GetStreamVolume(AudioStreamType streamType) GetStreamVolume() argument 581 GetStreamMuteInternal(AudioStreamType streamType) GetStreamMuteInternal() argument 1053 GetVolumeKeyForKvStore(DeviceType deviceType, AudioStreamType streamType) GetVolumeKeyForKvStore() argument 1091 GetStreamIDByType(std::string streamType) GetStreamIDByType() argument 1398 CheckAndDealMuteStatus(const DeviceType &deviceType, const AudioStreamType &streamType) CheckAndDealMuteStatus() argument 1618 GetMuteKeyForKvStore(DeviceType deviceType, AudioStreamType streamType) GetMuteKeyForKvStore() argument 1792 CalculateVolumeDbNonlinear(AudioStreamType streamType, DeviceType deviceType, int32_t volumeLevel) CalculateVolumeDbNonlinear() argument 1874 GetVolumePoints(AudioVolumeType streamType, DeviceVolumeType deviceType, std::vector<VolumePoint> &volumePoints) GetVolumePoints() argument [all...] |
/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() local 92 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() 94 auto ret = ptr->SetVolume(streamType, volume); in HWTEST() 108 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST() local 110 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() 112 streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST() 114 auto ret = ptr->SetVolume(streamType, volume); in HWTEST() 128 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; in HWTEST() local 129 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() 146 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 173 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 189 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 206 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 233 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 251 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 278 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 302 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 342 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 365 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 382 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 404 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 430 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 445 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 462 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 480 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 503 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 532 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 561 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 577 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 594 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 614 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 653 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 694 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 713 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 743 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 774 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 794 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 823 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 856 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 887 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 917 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 949 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 982 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1018 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1049 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1076 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1103 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1123 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local 1149 AudioStreamType streamType = AudioStreamType::STREAM_DEFAULT; HWTEST() local [all...] |
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/ |
H A D | stream_parser_manager.cpp | 49 bool StreamParserManager::Init(StreamType streamType) in Init() argument 52 if (handlerMap_.count(streamType) && createFuncMap_.count(streamType) && destroyFuncMap_.count(streamType)) { in Init() 57 if (streamType == StreamType::HEVC) { in Init() 59 } else if (streamType == StreamType::VVC) { in Init() 65 if (handlerMap_.count(streamType) == 0) { in Init() 66 handlerMap_[streamType] = LoadPluginFile(streamParserPath); in Init() 68 if (!CheckSymbol(handlerMap_[streamType], streamType)) { in Init() 75 Create(StreamType streamType) Create() argument 198 CheckSymbol(void *handler, StreamType streamType) CheckSymbol() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/filter_test/ |
H A D | muxer_filter_unit_test.cpp | 122 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; in HWTEST_F() local 123 muxerFilter_->OnLinked(streamType, meta, callback); in HWTEST_F() 124 EXPECT_NE(muxerFilter_->OnLinked(streamType, meta, callback), Status::OK); in HWTEST_F() 137 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; in HWTEST_F() local 143 muxerFilter_->OnBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); in HWTEST_F() 146 muxerFilter_->OnBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); in HWTEST_F() 148 muxerFilter_->OnBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); in HWTEST_F() 164 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; in HWTEST_F() local 165 muxerFilter_->OnTransCoderBufferFilled(inputBuffer, trackIndex, streamType, inputBufferQueue); in HWTEST_F() 167 streamType in HWTEST_F() 187 StreamType streamType = StreamType::STREAMTYPE_ENCODED_AUDIO; HWTEST_F() local 221 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 242 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 252 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 260 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 275 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 283 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local 291 StreamType streamType = StreamType::STREAMTYPE_ENCODED_VIDEO; HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/player/src/ |
H A D | cast_stream_player_utils.cpp | 39 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetVolume() local 40 int originalVolume = audioSystemMgr->GetVolume(streamType); in GetVolume() 41 int maxVolume = audioSystemMgr->GetMaxVolume(streamType); in GetVolume() 60 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetMaxVolume() local 61 return audioSystemMgr->GetMaxVolume(streamType); in GetMaxVolume()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/player/src/ |
H A D | cast_stream_player_utils.cpp | 39 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetVolume() local 40 int originalVolume = audioSystemMgr->GetVolume(streamType); in GetVolume() 41 int maxVolume = audioSystemMgr->GetMaxVolume(streamType); in GetVolume() 60 auto streamType = AudioStandard::AudioVolumeType::STREAM_MUSIC; in GetMaxVolume() local 61 return audioSystemMgr->GetMaxVolume(streamType); in GetMaxVolume()
|
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_interrupt_info.h | 141 AudioStreamType streamType; member 146 return streamType == value.streamType && sourceType == value.sourceType && isPlay == value.isPlay; in operator ==() 151 return streamType < value.streamType || (streamType == value.streamType && sourceType < value.sourceType); in operator <() 156 return streamType > value.streamType || (streamType in operator >() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/ |
H A D | audio_volume_change_unit_test.cpp | 102 AudioStreamType streamType = AudioStreamType::STREAM_MUSIC; in HWTEST_F() local 104 = static_cast<AudioVolumeType>(streamType); in HWTEST_F() 116 EXPECT_EQ(streamType, g_streamType); in HWTEST_F() 138 AudioStreamType streamType = AudioStreamType::STREAM_RING; in HWTEST_F() local 140 = static_cast<AudioVolumeType>(streamType); in HWTEST_F() 152 EXPECT_EQ(streamType, g_streamType); in HWTEST_F() 174 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; in HWTEST_F() local 175 AudioVolumeType volumeType = static_cast<AudioVolumeType>(streamType); in HWTEST_F() 187 EXPECT_EQ(streamType, g_streamType); in HWTEST_F()
|
/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/test/moduletest/audiopolicy/1.0/src/ |
H A D | audio_policy_test.cpp | 47 .streamType = STREAM_MUSIC 51 .streamType = STREAM_RING 57 .streamType = STREAM_MUSIC, 61 .streamType = STREAM_MUSIC, 68 .streamType = STREAM_MUSIC, 72 .streamType = STREAM_RING, 100 .streamType = STREAM_MUSIC 103 .streamType = STREAM_RING 156 = static_cast<AudioVolumeType>(params.streamType); in HWTEST_P() 176 = static_cast<AudioVolumeType>(params.streamType); in HWTEST_P() [all...] |
/foundation/multimedia/camera_framework/services/camera_service/binder/server/src/ |
H A D | hcapture_session_stub.cpp | 160 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleAddOutput() local 165 if (streamType == StreamType::CAPTURE) { in HandleAddOutput() 167 } else if (streamType == StreamType::REPEAT) { in HandleAddOutput() 169 } else if (streamType == StreamType::METADATA) { in HandleAddOutput() 171 } else if (streamType == StreamType::DEPTH) { in HandleAddOutput() 175 return AddOutput(streamType, stream); in HandleAddOutput() 180 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleRemoveOutput() local 185 if (streamType == StreamType::CAPTURE) { in HandleRemoveOutput() 187 } else if (streamType == StreamType::REPEAT) { in HandleRemoveOutput() 189 } else if (streamType in HandleRemoveOutput() [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/src/ |
H A D | client_trans_stream.c | 160 StreamType streamType = (StreamType)channel->streamType; in TransOnstreamChannelOpened() local 161 if (streamType != RAW_STREAM && streamType != COMMON_VIDEO_STREAM && streamType != COMMON_AUDIO_STREAM) { in TransOnstreamChannelOpened() 162 TRANS_LOGE(TRANS_STREAM, "stream type invalid. type=%{public}d", channel->streamType); in TransOnstreamChannelOpened() 184 NULL, -1, streamType, (uint8_t*)channel->sessionKey, channel->keyLen, isEncryptedRawStream}; in TransOnstreamChannelOpened() 195 channel->peerPort, streamType, (uint8_t *)channel->sessionKey, channel->keyLen, isEncryptedRawStream}; in TransOnstreamChannelOpened()
|
/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() local 201 interruptService->GetStreamTypePriority(streamType); 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() local 326 GetServerPtr()->SetSystemVolumeLevel(streamType, volume); in AudioVolumeMoreFuzzTest() 327 GetServerPtr()->GetSystemVolumeLevel(streamType); in AudioVolumeMoreFuzzTest() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/vtpstreamsocket_fuzzer/ |
H A D | vtpstreamsocket_fuzzer.cpp | 34 int32_t streamType = *(reinterpret_cast<const int*>(data)); in VtpCreateClientTest() local 38 vtpStreamSocket.CreateClient(ipPort, streamType, sessionKey); in VtpCreateClientTest() 39 vtpStreamSocket.CreateClient(ipPort, ipPort, streamType, sessionKey); in VtpCreateClientTest() 48 int32_t streamType = *(reinterpret_cast<const int*>(data)); in VtpCreateServerTest() local 52 vtpStreamSocket.CreateServer(ipPort, streamType, sessionKey); in VtpCreateServerTest()
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/ |
H A D | audio_policy_server.cpp | 397 bool AudioPolicyServer::IsVolumeTypeValid(AudioStreamType streamType) in IsVolumeTypeValid() argument 400 switch (streamType) { in IsVolumeTypeValid() 417 AUDIO_ERR_LOG("IsVolumeTypeValid: streamType[%{public}d] is not supported", streamType); in IsVolumeTypeValid() 423 bool AudioPolicyServer::IsVolumeLevelValid(AudioStreamType streamType, int32_t volumeLevel) in IsVolumeLevelValid() argument 426 if (volumeLevel < audioPolicyService_.GetMinVolumeLevel(streamType) || in IsVolumeLevelValid() 427 volumeLevel > audioPolicyService_.GetMaxVolumeLevel(streamType)) { in IsVolumeLevelValid() 428 AUDIO_ERR_LOG("IsVolumeLevelValid: volumeLevel[%{public}d] is out of valid range for streamType[%{public}d]", in IsVolumeLevelValid() 429 volumeLevel, streamType); in IsVolumeLevelValid() 623 int32_t AudioPolicyServer::SetSystemVolumeLevelLegacy(AudioStreamType streamType, int32_ argument 641 SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel, int32_t volumeFlag) SetSystemVolumeLevel() argument 678 GetSystemVolumeLevel(AudioStreamType streamType) GetSystemVolumeLevel() argument 683 GetSystemVolumeLevelInternal(AudioStreamType streamType) GetSystemVolumeLevelInternal() argument 777 SetStreamMuteLegacy(AudioStreamType streamType, bool mute) SetStreamMuteLegacy() argument 788 SetStreamMute(AudioStreamType streamType, bool mute) SetStreamMute() argument 798 SetStreamMuteInternal(AudioStreamType streamType, bool mute, bool isUpdateUi) SetStreamMuteInternal() argument 819 SetSingleStreamMute(AudioStreamType streamType, bool mute, bool isUpdateUi) SetSingleStreamMute() argument 862 GetSystemVolumeDb(AudioStreamType streamType) GetSystemVolumeDb() argument 867 SetSystemVolumeLevelInternal(AudioStreamType streamType, int32_t volumeLevel, bool isUpdateUi) SetSystemVolumeLevelInternal() argument 891 SetSingleStreamVolume(AudioStreamType streamType, int32_t volumeLevel, bool isUpdateUi) SetSingleStreamVolume() argument 939 GetStreamMute(AudioStreamType streamType) GetStreamMute() argument 950 GetStreamMuteInternal(AudioStreamType streamType) GetStreamMuteInternal() argument 976 GetSelectedDeviceInfo(int32_t uid, int32_t pid, AudioStreamType streamType) GetSelectedDeviceInfo() argument 1111 IsStreamActive(AudioStreamType streamType) IsStreamActive() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_policy_service_unit_test/src/ |
H A D | audio_policy_service_third_unit_test.cpp | 326 AudioStreamType streamType = STREAM_MUSIC; in HWTEST_F() local 327 EXPECT_TRUE(server->audioPolicyService_.IsStreamSupported(streamType)); in HWTEST_F() 328 streamType = STREAM_VOICE_CALL; in HWTEST_F() 329 EXPECT_TRUE(server->audioPolicyService_.IsStreamSupported(streamType)); in HWTEST_F() 330 streamType = STREAM_VOICE_COMMUNICATION; in HWTEST_F() 331 EXPECT_TRUE(server->audioPolicyService_.IsStreamSupported(streamType)); in HWTEST_F() 332 streamType = STREAM_VOICE_ASSISTANT; in HWTEST_F() 333 EXPECT_TRUE(server->audioPolicyService_.IsStreamSupported(streamType)); in HWTEST_F() 334 streamType = STREAM_WAKEUP; in HWTEST_F() 335 EXPECT_TRUE(server->audioPolicyService_.IsStreamSupported(streamType)); in HWTEST_F() 350 AudioStreamType streamType = STREAM_MEDIA; HWTEST_F() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_sasdk.cpp | 43 bool AudioSaSdk::IsStreamActive(SaSdkAudioVolumeType streamType) in IsStreamActive() argument 45 return AudioPolicyManager::GetInstance().IsStreamActive(static_cast<AudioVolumeType>(streamType)); in IsStreamActive()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/ |
H A D | dcamera_source_input.cpp | 69 "streamType: %{public}d", GetAnonyString(devId_).c_str(), in ConfigStreams() 139 DHLOGI("DCameraSourceInput StartCapture Inner devId %{public}s dhId %{public}s streamType: %{public}d " in StartCapture() 290 void DCameraSourceInput::OnSessionState(DCStreamType streamType, int32_t state) in OnSessionState() argument 292 DHLOGI("DCameraSourceInput OnSessionState devId: %{public}s, dhId: %{public}s, streamType: %{public}d, state: " in OnSessionState() 293 "%{public}d", GetAnonyString(devId_).c_str(), GetAnonyString(dhId_).c_str(), streamType, state); in OnSessionState() 294 channelState_[streamType] = (DCameraChannelState)state; in OnSessionState() 297 FinshFrameAsyncTrace(streamType); in OnSessionState() 305 FinshFrameAsyncTrace(streamType); in OnSessionState() 318 void DCameraSourceInput::FinshFrameAsyncTrace(DCStreamType streamType) in FinshFrameAsyncTrace() argument 320 if (streamType in FinshFrameAsyncTrace() 327 OnSessionError(DCStreamType streamType, int32_t eventType, int32_t eventReason, std::string detail) OnSessionError() argument 336 OnDataReceived(DCStreamType streamType, std::vector<std::shared_ptr<DataBuffer>>& buffers) OnDataReceived() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | audio_volume.h | 39 void AddStreamVolume(uint32_t sessionId, int32_t streamType, int32_t streamUsage, int32_t uid, int32_t pid); 54 int32_t ConvertStreamTypeStrToInt(const std::string &streamType); 72 StreamVolume(uint32_t sessionId, int32_t streamType, int32_t streamUsage, int32_t uid, int32_t pid) in StreamVolume() argument 73 : sessionId_(sessionId), streamType_(streamType), streamUsage_(streamUsage), appUid_(uid), appPid_(pid) {}; in StreamVolume()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameradata/ |
H A D | dcamera_source_input.h | 46 void OnSessionState(DCStreamType streamType, int32_t state); 47 void OnSessionError(DCStreamType streamType, int32_t eventType, int32_t eventReason, std::string detail); 48 void OnDataReceived(DCStreamType streamType, std::vector<std::shared_ptr<DataBuffer>>& buffers); 51 void FinshFrameAsyncTrace(DCStreamType streamType);
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_manager_test/ |
H A D | stream_manager_test.cpp | 84 int32_t streamType = 12; in HWTEST_F() local 87 streamType, sessionKey); in HWTEST_F() 90 ret = streamSocketListener->CreateStreamClientChannel(*local, *remote, Communication::SoftBus::TCP, streamType, in HWTEST_F() 119 int32_t streamType = 12; in HWTEST_F() local 120 int32_t ret = streamSocketListener->CreateStreamServerChannel(*local, *protocol, streamType, sessionKey); in HWTEST_F() 124 ret = streamSocketListener->CreateStreamServerChannel(*local, *protocol, streamType, sessionKey); in HWTEST_F()
|