Home
last modified time | relevance | path

Searched refs:soundPool_ (Results 1 - 12 of 12) sorted by relevance

/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/
H A Dsoundpool_mock.cpp42 soundPool_ = SoundPoolFactory::CreateSoundPool(maxStreams, audioRenderInfo); in CreateSoundPool()
43 return soundPool_ != nullptr; in CreateSoundPool()
48 UNITTEST_CHECK_AND_RETURN_RET_LOG(soundPool_ != nullptr, MSERR_INVALID_OPERATION, "soundPool_ == nullptr"); in Load()
49 return soundPool_->Load(url); in Load()
54 UNITTEST_CHECK_AND_RETURN_RET_LOG(soundPool_ != nullptr, MSERR_INVALID_OPERATION, "soundPool_ == nullptr"); in Load()
55 return soundPool_->Load(fd, offset, length); in Load()
60 UNITTEST_CHECK_AND_RETURN_RET_LOG(soundPool_ != nullptr, MSERR_INVALID_OPERATION, "soundPool_ in Play()
[all...]
H A Dsoundpool_unit_test.cpp41 soundPool_ = std::make_shared<SoundPoolMock>(); in SetUp()
42 ASSERT_NE(nullptr, soundPool_); in SetUp()
67 if (soundPool_ != nullptr) { in TearDown()
68 int32_t ret = soundPool_->Release(); in TearDown()
69 soundPool_ = nullptr; in TearDown()
81 if (soundPool_ == nullptr) { in create()
84 EXPECT_TRUE(soundPool_->CreateSoundPool(maxStreams, audioRenderInfo)); in create()
93 soundIDs_[loadNum] = soundPool_->Load(url); in loadUrl()
106 size_t filesize = soundPool_->GetFileSize(fileName); in loadFd()
108 soundIDs_[loadNum] = soundPool_ in loadFd()
[all...]
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
H A Dsoundpool_napi.cpp91 soundPoolNapi->soundPool_ = SoundPoolFactory::CreateSoundPool(maxStreams, rendererInfo); in Constructor()
92 if (soundPoolNapi->soundPool_ == nullptr) { in Constructor()
98 if (soundPoolNapi->callbackNapi_ == nullptr && soundPoolNapi->soundPool_ != nullptr) { in Constructor()
100 (void)soundPoolNapi->soundPool_->SetSoundPoolCallback(soundPoolNapi->callbackNapi_); in Constructor()
122 if (napi->soundPool_) { in Destructor()
123 napi->soundPool_->Release(); in Destructor()
124 napi->soundPool_ = nullptr; in Destructor()
180 asyncCtx->soundPool_ = asyncCtx->napi->soundPool_; in JsLoad()
194 CHECK_AND_RETURN_LOG(asyncCtx->soundPool_ ! in JsLoad()
[all...]
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolcreate_fuzzer/
H A Dsoundpoolcreate_fuzzer.cpp118 auto soundPool_ = std::make_unique<SoundPoolCreateFuzzer>(); in FuzzTestSoundPoolCreate() local
119 return soundPool_->FuzzSoundPoolCreate(data, size); in FuzzTestSoundPoolCreate()
124 auto soundPool_ = std::make_unique<SoundPoolCreateFuzzer>(); in FuzzTestSoundPoolCreateFlags() local
125 return soundPool_->FuzzSoundPoolCreateFlags(data, size); in FuzzTestSoundPoolCreateFlags()
/foundation/multimedia/player_framework/test/unittest/soundpool_test/include/
H A Dsoundpool_mock.h56 std::shared_ptr<ISoundPool> soundPool_ = nullptr; member in OHOS::Media::SoundPoolMock
64 soundPool_ = soundPool; in SoundPoolCallbackTest()
68 soundPool_ = nullptr; in ~SoundPoolCallbackTest()
93 std::shared_ptr<SoundPoolMock> soundPool_ = nullptr; member in OHOS::Media::SoundPoolCallbackTest
H A Dsoundpool_unit_test.h42 std::shared_ptr<SoundPoolMock> soundPool_ = nullptr; member in OHOS::Media::SoundPoolUnitTest
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/
H A Dsoundpoolplaystop_fuzzer.cpp137 auto soundPool_ = std::make_unique<SoundPoolPlayStopFuzzer>(); in FuzzTestSoundPoolPlay() local
138 return soundPool_->FuzzSoundPoolPlay(data, size); in FuzzTestSoundPoolPlay()
142 auto soundPool_ = std::make_unique<SoundPoolPlayStopFuzzer>(); in FuzzTestSoundPoolStop() local
143 return soundPool_->FuzzSoundPoolStop(data, size); in FuzzTestSoundPoolStop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolloadunload_fuzzer/
H A Dsoundpoolloadunload_fuzzer.cpp133 auto soundPool_ = std::make_unique<SoundPoolLoadUnloadFuzzer>(); in FuzzTestSoundPoolLoad() local
134 return soundPool_->FuzzSoundPoolLoad(data, size); in FuzzTestSoundPoolLoad()
139 auto soundPool_ = std::make_unique<SoundPoolLoadUnloadFuzzer>(); in FuzzTestSoundPoolUnload() local
140 return soundPool_->FuzzSoundPoolUnload(data, size); in FuzzTestSoundPoolUnload()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetloop_fuzzer/
H A Dsoundpoolsetloop_fuzzer.cpp90 auto soundPool_ = std::make_unique<SoundPoolSetLoopFuzzer>(); in FuzzTestSoundPoolSetLoop() local
91 return soundPool_->FuzzSoundPoolSetLoop(data, size); in FuzzTestSoundPoolSetLoop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetvolume_fuzzer/
H A Dsoundpoolsetvolume_fuzzer.cpp96 auto soundPool_ = std::make_unique<SoundPoolSetVolumeFuzzer>(); in FuzzTestSoundPoolSetVolume() local
97 return soundPool_->FuzzSoundPoolSetVolume(data, size); in FuzzTestSoundPoolSetVolume()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetpriority_fuzzer/
H A Dsoundpoolsetpriority_fuzzer.cpp90 auto soundPool_ = std::make_unique<SoundPoolSetPriorityFuzzer>(); in FuzzTestSoundPoolSetPriority() local
91 return soundPool_->FuzzSoundPoolSetPriority(data, size); in FuzzTestSoundPoolSetPriority()
/foundation/multimedia/player_framework/frameworks/js/soundpool/include/
H A Dsoundpool_napi.h153 std::shared_ptr<ISoundPool> soundPool_; member in OHOS::Media::SoundPoolNapi
164 std::shared_ptr<ISoundPool> soundPool_; member

Completed in 5 milliseconds