Home
last modified time | relevance | path

Searched refs:AudioEndpoint (Results 1 - 8 of 8) sorted by relevance

/foundation/multimedia/audio_framework/services/audio_service/test/unittest/
H A Daudio_endpoint_separate_unit_test.cpp88 AudioEndpoint::EndpointType type = AudioEndpoint::EndpointType::TYPE_MMAP; in HWTEST()
106 AudioEndpoint::EndpointType type = AudioEndpoint::EndpointType::TYPE_MMAP; in HWTEST()
126 AudioEndpoint::EndpointType type = AudioEndpoint::EndpointType::TYPE_MMAP; in HWTEST()
144 AudioEndpoint::EndpointType type = AudioEndpoint::EndpointType::TYPE_MMAP; in HWTEST()
171 AudioEndpoint::EndpointType type = AudioEndpoint in HWTEST()
[all...]
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/audio_endpoint_unit_test/src/
H A Daudio_endpoint_unit_test.cpp58 static std::shared_ptr<AudioEndpointInner> CreateEndpointInner(AudioEndpoint::EndpointType type, uint64_t id, in CreateEndpointInner()
62 if (type == AudioEndpoint::EndpointType::TYPE_INDEPENDENT && deviceInfo.deviceRole != INPUT_DEVICE && in CreateEndpointInner()
68 CHECK_AND_RETURN_RET_LOG(audioEndpoint != nullptr, nullptr, "Create AudioEndpoint failed."); in CreateEndpointInner()
76 static std::shared_ptr<AudioEndpointInner> CreateInputEndpointInner(AudioEndpoint::EndpointType type) in CreateInputEndpointInner()
92 static std::shared_ptr<AudioEndpointInner> CreateOutputEndpointInner(AudioEndpoint::EndpointType type) in CreateOutputEndpointInner()
152 std::shared_ptr<AudioEndpoint> audioEndpoint = in HWTEST_F()
153 AudioEndpoint::CreateEndpoint(AudioEndpoint::TYPE_MMAP, 123, config, deviceInfo); in HWTEST_F()
173 CreateEndpointInner(AudioEndpoint::TYPE_MMAP, 123, config, deviceInfo); in HWTEST_F()
175 audioEndpointInner = CreateEndpointInner(AudioEndpoint in HWTEST_F()
[all...]
/foundation/multimedia/audio_framework/services/audio_service/server/include/
H A Daudio_service.h57 std::shared_ptr<AudioEndpoint> GetAudioEndpointForDevice(DeviceInfo &deviceInfo,
61 int32_t LinkProcessToEndpoint(sptr<AudioProcessInServer> process, std::shared_ptr<AudioEndpoint> endpoint);
62 int32_t UnlinkProcessToEndpoint(sptr<AudioProcessInServer> process, std::shared_ptr<AudioEndpoint> endpoint);
93 void CheckInnerCapForProcess(sptr<AudioProcessInServer> process, std::shared_ptr<AudioEndpoint> endpoint);
110 std::vector<std::pair<sptr<AudioProcessInServer>, std::shared_ptr<AudioEndpoint>>> linkedPairedList_;
115 std::map<std::string, std::shared_ptr<AudioEndpoint>> endpointList_;
H A Daudio_endpoint.h29 // When AudioEndpoint is offline, notify the owner.
39 * When AudioEndpoint changed status, we need to notify AudioProcessStream.
44 class AudioEndpoint : public IProcessStatusListener { class
64 static std::shared_ptr<AudioEndpoint> CreateEndpoint(EndpointType type, uint64_t id,
99 virtual ~AudioEndpoint() = default;
104 class AudioEndpointSeparate : public AudioEndpoint {
/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Daudio_service.cpp77 if ((*paired).second->GetStatus() == AudioEndpoint::EndpointStatus::UNLINKED) { in OnProcessRelease()
541 std::shared_ptr<AudioEndpoint> audioEndpoint = GetAudioEndpointForDevice(deviceInfo, config, in GetAudioProcess()
556 == AudioEndpoint::TYPE_INDEPENDENT ? audioEndpoint->GetBuffer() : nullptr; in GetAudioProcess()
575 if ((*paired).second->GetEndpointType() == AudioEndpoint::TYPE_MMAP) { in ResetAudioEndpoint()
589 std::shared_ptr<AudioEndpoint> audioEndpoint = GetAudioEndpointForDevice(deviceInfo, config, in ResetAudioEndpoint()
603 void AudioService::CheckInnerCapForProcess(sptr<AudioProcessInServer> process, std::shared_ptr<AudioEndpoint> endpoint) in CheckInnerCapForProcess()
632 std::shared_ptr<AudioEndpoint> endpoint) in LinkProcessToEndpoint()
658 std::shared_ptr<AudioEndpoint> endpoint) in UnlinkProcessToEndpoint()
692 std::shared_ptr<AudioEndpoint> temp = nullptr; in DelayCallReleaseEndpoint()
697 if (temp->GetStatus() == AudioEndpoint in DelayCallReleaseEndpoint()
[all...]
H A Daudio_endpoint.cpp101 class AudioEndpointInner : public AudioEndpoint {
355 std::string AudioEndpoint::GenerateEndpointKey(DeviceInfo &deviceInfo, int32_t endpointFlag) in GenerateEndpointKey()
366 std::shared_ptr<AudioEndpoint> AudioEndpoint::CreateEndpoint(EndpointType type, uint64_t id, in CreateEndpoint()
369 std::shared_ptr<AudioEndpoint> audioEndpoint = nullptr; in CreateEndpoint()
376 CHECK_AND_RETURN_RET_LOG(audioEndpoint != nullptr, nullptr, "Create AudioEndpoint failed."); in CreateEndpoint()
379 AUDIO_ERR_LOG("Config AudioEndpoint failed."); in CreateEndpoint()
388 AUDIO_INFO_LOG("AudioEndpoint type:%{public}d", endpointType_); in AudioEndpointInner()
390 logUtilsTag_ = "AudioEndpoint::Play"; in AudioEndpointInner()
392 logUtilsTag_ = "AudioEndpoint in AudioEndpointInner()
[all...]
H A Daudio_endpoint_separate.cpp74 AUDIO_INFO_LOG("AudioEndpoint type:%{public}d", endpointType_); in AudioEndpointSeparate()
127 AudioEndpoint::EndpointStatus AudioEndpointSeparate::GetStatus() in GetStatus()
129 AUDIO_INFO_LOG("AudioEndpoint get status:%{public}s", GetStatusStr(endpointStatus_).c_str()); in GetStatus()
163 AUDIO_INFO_LOG("~AudioEndpoint()"); in ~AudioEndpointSeparate()
364 Trace loopTrace("AudioEndpoint::ResyncPosition"); in ResyncPosition()
479 Trace trace("separate AudioEndpoint::OnUpdateHandleInfo"); in OnUpdateHandleInfo()
647 Trace infoTrace("AudioEndpoint::GetDeviceHandleInfo frames=>" + std::to_string(frames) + " " + in GetDeviceHandleInfo()
681 Trace trace("AudioEndpoint::WriteProcessData-<" + std::to_string(curWritePos)); in WriteToSpecialProcBuf()
/foundation/multimedia/audio_framework/test/fuzztest/audioserviceserversrc_fuzzer/
H A Daudio_service_server_src_fuzzer.cpp162 std::make_shared<AudioEndpointSeparate>(AudioEndpoint::EndpointType::TYPE_INDEPENDENT, id, STREAM_DEFAULT); in AudioEndPointSeparateConfigFuzzTest()

Completed in 10 milliseconds