Home
last modified time | relevance | path

Searched full:streamtype (Results 1 – 25 of 172) sorted by relevance

1234567

/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
Daudio_adapter_manager.cpp175 void AudioAdapterManager::SaveMediaVolumeToLocal(AudioStreamType streamType, int32_t volumeLevel) in SaveMediaVolumeToLocal() argument
177 if (streamType == STREAM_MUSIC) { in SaveMediaVolumeToLocal()
187 int32_t AudioAdapterManager::SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel, in SetSystemVolumeLevel() argument
190 …AUDIO_INFO_LOG("SetSystemVolumeLevel: streamType: %{public}d, deviceType: %{public}d, volumeLevel:… in SetSystemVolumeLevel()
191 streamType, currentActiveDevice_, volumeLevel); in SetSystemVolumeLevel()
193 (streamType == STREAM_VOICE_ASSISTANT || streamType == STREAM_VOICE_CALL || in SetSystemVolumeLevel()
194 streamType == STREAM_ALARM || streamType == STREAM_ACCESSIBILITY)) { in SetSystemVolumeLevel()
199 … if (volumeLevel < GetMinVolumeLevel(streamType) || volumeLevel > GetMaxVolumeLevel(streamType)) { in SetSystemVolumeLevel()
209 AudioStreamType streamForVolumeMap = GetStreamForVolumeMap(streamType); in SetSystemVolumeLevel()
211 WriteVolumeToKvStore(currentActiveDevice_, streamType, volumeLevel); in SetSystemVolumeLevel()
[all …]
/foundation/multimedia/camera_framework/services/camera_service/binder/server/src/
Dhcapture_session_stub.cpp106 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleAddOutput() local
113 if (streamType == StreamType::CAPTURE) { in HandleAddOutput()
115 } else if (streamType == StreamType::REPEAT) { in HandleAddOutput()
117 } else if (streamType == StreamType::METADATA) { in HandleAddOutput()
121 return AddOutput(streamType, stream); in HandleAddOutput()
126 StreamType streamType = static_cast<StreamType>(data.ReadUint32()); in HandleRemoveOutput() local
133 if (streamType == StreamType::CAPTURE) { in HandleRemoveOutput()
135 } else if (streamType == StreamType::REPEAT) { in HandleRemoveOutput()
137 } else if (streamType == StreamType::METADATA) { in HandleRemoveOutput()
140 return RemoveOutput(streamType, stream); in HandleRemoveOutput()
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/
Daudio_adapter_manager.h64 …int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel, bool isFromVolumeKey…
66 int32_t GetSystemVolumeLevel(AudioStreamType streamType, bool isFromVolumeKey = false);
68 float GetSystemVolumeDb(AudioStreamType streamType);
70 int32_t SetStreamMute(AudioStreamType streamType, bool mute);
74 bool GetStreamMute(AudioStreamType streamType);
76 bool IsStreamActive(AudioStreamType streamType);
124 …float CalculateVolumeDbNonlinear(AudioStreamType streamType, DeviceType deviceType, int32_t volume…
147 AudioStreamType streamType; member
163 AudioStreamType GetStreamIDByType(std::string streamType);
164 AudioStreamType GetStreamForVolumeMap(AudioStreamType streamType);
[all …]
/foundation/multimedia/audio_framework/frameworks/native/audioadapter/include/
Daudio_service_adapter.h34 * @param streamType streamType for which volume will be computed
37 virtual float OnGetVolumeDbCb(AudioStreamType streamType) = 0;
131 …* @param streamType the streamType for which volume will be set, streamType defined in{@link audio…
136 virtual int32_t SetVolumeDb(AudioStreamType streamType, float volume) = 0;
139 * @brief set mute for give output streamType
141 …* @param streamType the output streamType for which mute will be set, streamType defined in{@link …
166 * @brief returns if given streamType is active(currently the streamType audio is played)
168 …* @param streamType the streamType for which status will be fetched streamType defined in{@link au…
169 * @return Returns true: If streamType is active; else returns false
171 virtual bool IsStreamActive(AudioStreamType streamType);
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/
Ddcamera_capture_info_cmd_test.cpp39 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
50 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
60 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
71 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
81 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
92 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
109 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
120 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
131 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
142 "IsCapture": true, "EncodeType": 1, "StreamType": 1,
[all …]
Ddcamera_channel_info_cmd_test.cpp37 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
44 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
50 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
57 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
63 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
70 …"Value": {"SourceDevId": "TestDevId", "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
83 "Value": {Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
90 "Value": {"SourceDevId": 0, "Detail": [{"DataSessionFlag": "TestFlag", "StreamType": 1}]}
104 …"Value": {"SourceDevId": "TestDevId", "Detail": "[{"DataSessionFlag": "TestFlag", "StreamType": 1}…
111 "Value": {"SourceDevId": "TestDevId", "Detail": [{"StreamType": 1}]}
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/
Daudio_policy_server.cpp300 AudioVolumeType AudioPolicyServer::GetVolumeTypeFromStreamType(AudioStreamType streamType) in GetVolumeTypeFromStreamType() argument
302 switch (streamType) { in GetVolumeTypeFromStreamType()
334 bool AudioPolicyServer::IsVolumeTypeValid(AudioStreamType streamType) in IsVolumeTypeValid() argument
337 switch (streamType) { in IsVolumeTypeValid()
351 AUDIO_ERR_LOG("IsVolumeTypeValid: streamType[%{public}d] is not supported", streamType); in IsVolumeTypeValid()
357 bool AudioPolicyServer::IsVolumeLevelValid(AudioStreamType streamType, int32_t volumeLevel) in IsVolumeLevelValid() argument
360 if (volumeLevel < mPolicyService.GetMinVolumeLevel(streamType) || in IsVolumeLevelValid()
361 volumeLevel > mPolicyService.GetMaxVolumeLevel(streamType)) { in IsVolumeLevelValid()
362 …LOG("IsVolumeLevelValid: volumeLevel[%{public}d] is out of valid range for streamType[%{public}d]", in IsVolumeLevelValid()
363 volumeLevel, streamType); in IsVolumeLevelValid()
[all …]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/
Ddcamera_stream_data_process.cpp28 …DataProcess::DCameraStreamDataProcess(std::string devId, std::string dhId, DCStreamType streamType) in DCameraStreamDataProcess() argument
29 : devId_(devId), dhId_(dhId), streamType_(streamType) in DCameraStreamDataProcess()
39 …DHLOGI("DCameraStreamDataProcess Destructor devId %s dhId %s streamType: %d", GetAnonyString(devId… in ~DCameraStreamDataProcess()
51 DHLOGD("FeedStream devId %s dhId %s streamId %d streamType %d streamSize: %d", in FeedStream()
73 … "format: %d, dataspace: %d, encodeType: %d, streamType: %d", GetAnonyString(devId_).c_str(), in ConfigStreams()
84 DHLOGI("ReleaseStreams devId %s dhId %s streamId %d streamType %d", in ReleaseStreams()
106 DHLOGI("StartCapture devId %s dhId %s streamType: %d streamId: %d, " + in StartCapture()
107 … "srcConfig: width: %d, height: %d, format: %d, dataspace: %d, streamType: %d, encodeType: %d", in StartCapture()
125 DHLOGI("StartCapture findProducer devId %s dhId %s streamType: %d streamId: %d", in StartCapture()
131 DHLOGI("StartCapture CreateProducer devId %s dhId %s streamType: %d streamId: %d", in StartCapture()
[all …]
Ddcamera_stream_data_process_producer.cpp33 int32_t streamId, DCStreamType streamType) in DCameraStreamDataProcessProducer() argument
34 …: devId_(devId), dhId_(dhId), streamId_(streamId), streamType_(streamType), eventHandler_(nullptr), in DCameraStreamDataProcessProducer()
37 …DHLOGI("DCameraStreamDataProcessProducer Constructor devId %s dhId %s streamType: %d streamId: %d", in DCameraStreamDataProcessProducer()
45 …DHLOGI("DCameraStreamDataProcessProducer Destructor devId %s dhId %s state: %d streamType: %d stre… in ~DCameraStreamDataProcessProducer()
54 …DHLOGI("DCameraStreamDataProcessProducer Start producer devId: %s dhId: %s streamType: %d streamId… in Start()
78 …DHLOGI("DCameraStreamDataProcessProducer Stop devId: %s dhId: %s streamType: %d streamId: %d state… in Stop()
96 …DHLOGI("DCameraStreamDataProcessProducer Stop end devId: %s dhId: %s streamType: %d streamId: %d s… in Stop()
105 …DHLOGD("DCameraStreamDataProcessProducer FeedStream devId %s dhId %s streamId: %d streamType: %d" + in FeedStream()
109 … DHLOGD("DCameraStreamDataProcessProducer FeedStream OverSize devId %s dhId %s streamType: %d" + in FeedStream()
138 DHLOGI("LooperSnapShot producer devId: %s dhId: %s streamType: %d streamId: %d state: %d", in LooperSnapShot()
[all …]
Ddcamera_source_data_process.cpp26 …DataProcess::DCameraSourceDataProcess(std::string devId, std::string dhId, DCStreamType streamType) in DCameraSourceDataProcess() argument
27 : devId_(devId), dhId_(dhId), streamType_(streamType), isFirstContStream_(true) in DCameraSourceDataProcess()
29 …DHLOGI("DCameraSourceDataProcess Constructor devId %s dhId %s streamType %d", GetAnonyString(devId… in DCameraSourceDataProcess()
35 …DHLOGI("DCameraSourceDataProcess Destructor devId %s dhId %s streamType %d", GetAnonyString(devId_… in ~DCameraSourceDataProcess()
56 DHLOGD("DCameraSourceDataProcess FeedStream devId %s dhId %s streamType %d streamSize: %d", in FeedStream()
67 DHLOGI("DCameraSourceDataProcess ConfigStreams devId %s dhId %s streamType %d size %d", in ConfigStreams()
79 … "format: %d, dataspace: %d, encodeType: %d streamType: %d", GetAnonyString(devId_).c_str(), in ConfigStreams()
92 "dataspace: %d, encodeType: %d streamType: %d", GetAnonyString(devId_).c_str(), in ConfigStreams()
111 …DHLOGI("DCameraSourceDataProcess ReleaseStreams devId %s dhId %s streamType: %d", GetAnonyString(d… in ReleaseStreams()
132 …DHLOGI("DCameraSourceDataProcess ReleaseStreams devId %s dhId %s streamType: %d streamProcessSize:… in ReleaseStreams()
[all …]
/foundation/multimedia/audio_framework/services/audio_policy/server/include/
Daudio_policy_server.h75 …int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel, API_VERSION api_v = …
77 int32_t GetSystemVolumeLevel(AudioStreamType streamType) override;
85 … int32_t SetStreamMute(AudioStreamType streamType, bool mute, API_VERSION api_v = API_9) override;
87 bool GetStreamMute(AudioStreamType streamType) override;
89 bool IsStreamActive(AudioStreamType streamType) override;
102 … std::string GetSelectedDeviceInfo(int32_t uid, int32_t pid, AudioStreamType streamType) override;
335 …int32_t SetSystemVolumeLevelInternal(AudioStreamType streamType, int32_t volumeLevel, bool isUpdat…
336 int32_t SetSingleStreamVolume(AudioStreamType streamType, int32_t volumeLevel, bool isUpdateUi);
337 int32_t GetSystemVolumeLevelInternal(AudioStreamType streamType, bool isFromVolumeKey);
338 float GetSystemVolumeDb(AudioStreamType streamType);
[all …]
/foundation/multimedia/audio_framework/test/moduletest/audiopolicy/1.0/src/
Daudio_policy_test.cpp47 .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);
176 = static_cast<AudioVolumeType>(params.streamType);
[all …]
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/src/
Dclient_trans_stream.c134 StreamType streamType = (StreamType)channel->streamType; in TransOnstreamChannelOpened() local
135 …if (streamType != RAW_STREAM && streamType != COMMON_VIDEO_STREAM && streamType != COMMON_AUDIO_ST… in TransOnstreamChannelOpened()
136 …BusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "stream type invalid. type = %d", channel->streamType); in TransOnstreamChannelOpened()
145 streamType, in TransOnstreamChannelOpened()
163 streamType, in TransOnstreamChannelOpened()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
Dcapture_output.cpp20 CaptureOutput::CaptureOutput(CaptureOutputType outputType, StreamType streamType, in CaptureOutput() argument
21 sptr<IStreamCommon> stream) : outputType_(outputType), streamType_(streamType), stream_(stream) in CaptureOutput()
36 StreamType CaptureOutput::GetStreamType() in GetStreamType()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/include/
Dstream_adaptor_listener.h59 int32_t streamType = adaptor_->GetStreamType(); in OnStreamReceived() local
61 …if (streamType == StreamType::COMMON_VIDEO_STREAM || streamType == StreamType::COMMON_AUDIO_STREAM… in OnStreamReceived()
65 } else if (streamType == StreamType::RAW_STREAM) { in OnStreamReceived()
84 … SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "Do not support, streamType = %d", streamType); in OnStreamReceived()
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/volume_change_test/src/
Daudio_volume_change_unit_test.cpp102 AudioStreamType streamType = AudioStreamType::STREAM_MUSIC; variable
104 = static_cast<AudioVolumeType>(streamType);
116 EXPECT_EQ(streamType, g_streamType);
138 AudioStreamType streamType = AudioStreamType::STREAM_RING; variable
140 = static_cast<AudioVolumeType>(streamType);
152 EXPECT_EQ(streamType, g_streamType);
174 AudioStreamType streamType = AudioStreamType::STREAM_VOICE_CALL; variable
175 AudioVolumeType volumeType = static_cast<AudioVolumeType>(streamType);
187 EXPECT_EQ(streamType, g_streamType);
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/
Diaudio_policy_interface.h45 …virtual int32_t SetSystemVolumeLevel(AudioStreamType streamType, int32_t volumeLevel, bool isFromV…
47 virtual int32_t GetSystemVolumeLevel(AudioStreamType streamType, bool isFromVolumeKey) = 0;
49 virtual float GetSystemVolumeDb(AudioStreamType streamType) = 0;
51 virtual int32_t SetStreamMute(AudioStreamType streamType, bool mute) = 0;
55 virtual bool GetStreamMute(AudioStreamType streamType) = 0;
57 virtual bool IsStreamActive(AudioStreamType streamType) = 0;
/foundation/multimedia/camera_framework/services/camera_service/binder/base/include/
Dicapture_session.h38 virtual int32_t AddOutput(StreamType streamType, sptr<IStreamCommon> stream) = 0;
42 virtual int32_t RemoveOutput(StreamType streamType, sptr<IStreamCommon> stream) = 0;
/foundation/multimedia/camera_framework/services/camera_service/binder/client/include/
Dhcapture_session_proxy.h34 int32_t AddOutput(StreamType streamType, sptr<IStreamCommon> stream) override;
38 int32_t RemoveOutput(StreamType streamType, sptr<IStreamCommon> stream) override;
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/
Dcapture_output.h39 explicit CaptureOutput(CaptureOutputType OutputType, StreamType streamType,
54 StreamType GetStreamType();
62 StreamType streamType_;
/foundation/multimedia/audio_lite/test/unittest/
Daudiolite_test.cpp62 info.streamType = TYPE_MEDIA;
94 info.streamType = TYPE_MEDIA;
124 info.streamType = TYPE_MEDIA;
154 info.streamType = TYPE_MEDIA;
184 info.streamType = TYPE_MEDIA;
214 info.streamType = TYPE_MEDIA; in HWTEST_F()
244 info.streamType = TYPE_MEDIA; in HWTEST_F()
274 info.streamType = TYPE_MEDIA; in HWTEST_F()
304 info.streamType = TYPE_MEDIA; in HWTEST_F()
334 info.streamType = TYPE_MEDIA; in HWTEST_F()
[all …]
/foundation/multimedia/audio_framework/services/audio_service/common/src/
Daudio_process_config.cpp50 // streamType in WriteConfigToParcel()
51 parcel.WriteInt32(config.streamType); in WriteConfigToParcel()
81 // streamType in ReadConfigFromParcel()
82 config.streamType = static_cast<AudioStreamType>(parcel.ReadInt32()); in ReadConfigFromParcel()
108 temp << "streamType<" << config.streamType << ">"; in DumpProcessConfig()
/foundation/multimedia/audio_framework/frameworks/native/audioadapter/src/
Dpulse_audio_service_adapter_impl.cpp500 int32_t PulseAudioServiceAdapterImpl::SetVolumeDb(AudioStreamType streamType, float volumeDb) in SetVolumeDb() argument
512 userData->streamType = streamType; in SetVolumeDb()
558 bool PulseAudioServiceAdapterImpl::IsStreamActive(AudioStreamType streamType) in IsStreamActive() argument
568 userData->streamType = streamType; in IsStreamActive()
593 …AUDIO_DEBUG_LOG("IsStreamActive: streamType: %{puiblic}d, isCorked: %{puiblic}d", streamType, user… in IsStreamActive()
686 AudioStreamType PulseAudioServiceAdapterImpl::GetIdByStreamType(string streamType) in GetIdByStreamType() argument
689 if (STREAM_TYPE_STRING_ENUM_MAP.find(streamType) != STREAM_TYPE_STRING_ENUM_MAP.end()) { in GetIdByStreamType()
690 stream = STREAM_TYPE_STRING_ENUM_MAP.at(streamType); in GetIdByStreamType()
692 …R_LOG("GetIdByStreamType: Invalid stream type [%{public}s]. Use default type", streamType.c_str()); in GetIdByStreamType()
808 const char *streamtype = pa_proplist_gets(i->proplist, "stream.type"); in PaGetSinkInputInfoVolumeCb() local
[all …]
/foundation/multimedia/camera_framework/services/camera_service/include/
Dhstream_common.h33 HStreamCommon(StreamType streamType, sptr<OHOS::IBufferProducer> producer,
44 virtual StreamType GetStreamType() final;
61 StreamType streamType_;
/foundation/multimedia/audio_framework/services/audio_service/common/include/
Di_policy_provider.h52 … // virtual int32_t GetVolume(AudioStreamType streamType, DeviceType deviceType, Volume &vol) = 0;
54 // virtual int32_t SetVolume(AudioStreamType streamType, DeviceType deviceType, Volume vol) = 0;
58 static bool GetVolumeIndex(AudioStreamType streamType, DeviceType deviceType, size_t &index) in GetVolumeIndex() argument
62 if (g_volumeIndexVector[tempIndex].first == streamType && in GetVolumeIndex()

1234567