Home
last modified time | relevance | path

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

/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/include/
H A Ddaudio_io_dev.h43 virtual int32_t EnableDevice(const int32_t dhId, const std::string &capability) = 0;
H A Ddspeaker_dev.h52 int32_t EnableDevice(const int32_t dhId, const std::string &capability) override;
H A Ddmic_dev.h57 int32_t EnableDevice(const int32_t dhId, const std::string &capability) override;
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/sourcedevice/src/
H A Ddspeaker_dev_test.cpp81 * @tc.desc: Verify EnableDSpeaker and EnableDevice function.
87 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, spk_->EnableDevice(DH_ID, CAP)); in HWTEST_F()
88 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, spk_->EnableDevice(DH_ID, CAP)); in HWTEST_F()
90 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, spk_->EnableDevice(DH_ID_SPK, CAP)); in HWTEST_F()
H A Ddmic_dev_test.cpp73 * @tc.desc: Verify EnableDMic and EnableDevice function.
79 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, mic_->EnableDevice(DH_ID, CAP)); in HWTEST_F()
80 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, mic_->EnableDevice(DH_ID, CAP)); in HWTEST_F()
82 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, mic_->EnableDevice(DH_ID_MIC, CAP)); in HWTEST_F()
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/
H A Ddaudio_source_dev.cpp691 if (deviceMap_[dhId]->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDSpeaker()
698 if (speaker->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDSpeaker()
712 if (deviceMap_[dhId]->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDMic()
719 if (mic->EnableDevice(dhId, attrs) != DH_SUCCESS) { in EnableDMic()
H A Ddspeaker_dev.cpp39 int32_t DSpeakerDev::EnableDevice(const int32_t dhId, const std::string &capability) in EnableDevice() function in OHOS::DistributedHardware::DSpeakerDev
H A Ddmic_dev.cpp98 int32_t DMicDev::EnableDevice(const int32_t dhId, const std::string &capability) in EnableDevice() function in OHOS::DistributedHardware::DMicDev

Completed in 8 milliseconds