/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/ |
H A D | soundpool_mock.cpp | 42 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 D | soundpool_unit_test.cpp | 41 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 D | soundpool_napi.cpp | 91 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 D | soundpoolcreate_fuzzer.cpp | 118 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 D | soundpool_mock.h | 56 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 D | soundpool_unit_test.h | 42 std::shared_ptr<SoundPoolMock> soundPool_ = nullptr; member in OHOS::Media::SoundPoolUnitTest
|
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/ |
H A D | soundpoolplaystop_fuzzer.cpp | 137 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 D | soundpoolloadunload_fuzzer.cpp | 133 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 D | soundpoolsetloop_fuzzer.cpp | 90 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 D | soundpoolsetvolume_fuzzer.cpp | 96 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 D | soundpoolsetpriority_fuzzer.cpp | 90 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 D | soundpool_napi.h | 153 std::shared_ptr<ISoundPool> soundPool_; member in OHOS::Media::SoundPoolNapi 164 std::shared_ptr<ISoundPool> soundPool_; member
|