AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AndroidSLESMediaPlayerTest |
class | AndroidSLESMediaQueueTest |
class | AndroidSLESSpeakerTest |
class | FFmpegDecoderTest |
class | FFmpegUrlInputControllerTest |
class | MockAttachmentReader |
This class mocks an attachment reader that reads from the INPUT_CSTR . More... | |
class | MockCallback |
Mock status callback. More... | |
class | MockContentFetcherFactory |
Mocks the content fetcher factory. More... | |
class | MockDecoder |
Mock decoder. More... | |
class | MockEmptyAttachmentReader |
A mock AttachmentReader that mocks reading from an empty attachment (immediate EOF). More... | |
class | MockObserver |
Mocks the media player observer. More... | |
class | MockPlaylistParser |
class | WaitEvent |
Class that can be used to wait for an event. More... | |
Typedefs | |
using | MediaPlayerState = avsCommon::utils::mediaPlayer::MediaPlayerState |
using | MockSlSimpleBufferQueue = MockInterfaceImpl< SLAndroidSimpleBufferQueueItf_ > |
using | MockVolumeInterface = MockInterfaceImpl< SLVolumeItf_ > |
using | Byte = FFmpegDecoder::Byte |
Functions | |
TEST_F (AndroidSLESMediaPlayerTest, test_createNullFactory) | |
Test create with null factory. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_createNullEngine) | |
Test create with null engine. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_bQMediaPlayer) | |
Test buffer queue with media player. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_bQRawMediaPlayer) | |
Test buffer queue with media player and raw file. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_firstReadTimeout) | |
Test that media is played correct even if a timeout happens in the first read. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_initializeTimeout) | |
Test that media is played correct even after a timeout during initialization. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_decodingTimeout) | |
Test that media is played correct even after a timeout during decoding. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_streamMediaPlayer) | |
Test media player and istream source. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_streamRepeatMediaPlayer) | |
Test media player, istream source and repeat on. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_resumeMediaPlayer) | |
Test media player pause / resume. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_playFailed) | |
Test play fails with wrong id. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_pauseFailed) | |
Test pause fails with wrong id. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_pauseFailedNotPlaying) | |
Test pause fails if not playing. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_resumeFailedAfterStop) | |
Test resume fails after stop. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_stopFailed) | |
Test stop fails with wrong id. More... | |
TEST_F (AndroidSLESMediaPlayerTest, test_getOffset) | |
Test get offset. More... | |
static const std::string | MP3_FILE_PATH ("/fox_dog.mp3") |
MP3 test file path. More... | |
static SLresult | mockRegisterCallbackOk (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext) |
Mock register callback succeeds. More... | |
static SLresult | mockRegisterCallbackFailed (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext) |
Mock register callback fails. More... | |
static SLresult | mockEnqueueOk (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size) |
Mock enqueue call succeeds. More... | |
SLresult | mockEnqueueFailed (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size) |
Mock enqueue call fails. More... | |
SLresult | mockGetState (SLAndroidSimpleBufferQueueItf self, SLAndroidSimpleBufferQueueState *pState) |
Mock get state. More... | |
static SLresult | mockClearOk (SLAndroidSimpleBufferQueueItf self) |
Mock clear call succeeds. More... | |
static void | bufferFree (AndroidSLESMediaQueue &mediaQueue) |
Mock buffer free call. Increment index and decrement counter. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createSucceed) | |
Test buffer queue create. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createFailMissingSlObject) | |
Check that create fail if we are missing the OpenSL ES object. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createFailMissingInterface) | |
Check that create fail if the SL_IID_ANDROIDSIMPLEBUFFERQUEUE is missing. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createFailMissingDecoder) | |
Check that create fail if the decoder is missing. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createFailMissingCallback) | |
Check that create fail if the callback function is missing. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_createFailRegisterCallback) | |
Check that create fail if the callback function cannot be registered. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_onBufferQueueSucceed) | |
Test buffer queue events when the media queue succeeds to read data from the decoder. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_enqueueTillDone) | |
Test buffer queue events when the media queue succeeds to read data from the decoder till the end of the stream. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_decoderFailure) | |
Test that the buffer queue emits an error event when the decoder fails. More... | |
TEST_F (AndroidSLESMediaQueueTest, test_enqueueFailure) | |
Test buffer queue events emits an error event when it fails to enqueue a buffer. More... | |
static SLresult | mockGetVolume (SLVolumeItf self, SLmillibel *volume) |
Mock GetVolume succeeds. More... | |
static SLresult | mockGetVolumeFailed (SLVolumeItf self, SLmillibel *volume) |
Mock GetVolume fails. More... | |
static SLresult | mockSetVolume (SLVolumeItf self, SLmillibel volume) |
Mock SetVolume succeeds. More... | |
static SLresult | mockSetVolumeFailed (SLVolumeItf self, SLmillibel volume) |
Mock SetVolume fails. More... | |
static SLresult | mockGetMute (SLVolumeItf self, SLboolean *mute) |
Mock GetMute succeeds. More... | |
static SLresult | mockGetMuteFailed (SLVolumeItf self, SLboolean *mute) |
Mock GetMute fails. More... | |
static SLresult | mockSetMute (SLVolumeItf self, SLboolean mute) |
Mock SetMute succeeds. More... | |
static SLresult | mockSetMuteFailed (SLVolumeItf self, SLboolean mute) |
Mock SetMute fails. More... | |
static SLresult | mockGetMaxVolume (SLVolumeItf self, SLmillibel *volume) |
Mock GetMaxVolume succeeds. More... | |
TEST_F (AndroidSLESSpeakerTest, test_createNullEngine) | |
Test speaker create with null engine. More... | |
TEST_F (AndroidSLESSpeakerTest, test_createNullSpeaker) | |
Test speaker create with null output mix. More... | |
TEST_F (AndroidSLESSpeakerTest, test_createInterfaceUnavailable) | |
Test speaker create with null engine. More... | |
TEST_F (AndroidSLESSpeakerTest, test_createInvalidMaxVolume) | |
Test speaker create with invalid device configuration. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setVolumeSucceed) | |
Test set and get volume succeed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setVolumeFailed) | |
Test set volume failed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_getVolumeFailed) | |
Test get volume failed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setMuteSucceed) | |
Test set and get mute succeed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setMuteFailed) | |
Test set mute failed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_getMuteFailed) | |
Test get mute failed. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setVolumeAccuracy) | |
Test set and get volume on values in different ranges to guarantee accuracy. More... | |
TEST_F (AndroidSLESSpeakerTest, test_setDeviceVolume) | |
Test that the conversion from avs volume to device volume. More... | |
TEST (FFmpegAttachmentInputControllerTest, test_createFailed) | |
Test create controller fail. More... | |
TEST (FFmpegAttachmentInputControllerTest, test_rawArgument) | |
Test raw input format. More... | |
TEST (FFmpegAttachmentInputControllerTest, test_readOk) | |
Test read from attachment reader. More... | |
TEST (FFmpegAttachmentInputControllerTest, test_getCurrentFormatContextOnEmptyInput) | |
Test opening empty input from attachment reader. More... | |
TEST (FFmpegAttachmentInputControllerTest, test_readEof) | |
Test read from stream until the end. More... | |
static const std::string | MP3_FILE_PATH ("/fox_dog.mp3") |
MP3 test file path relative to the input folder. More... | |
TEST_F (FFmpegDecoderTest, test_createSucceed) | |
Test decoder create. More... | |
TEST_F (FFmpegDecoderTest, test_createFailedNullReader) | |
Test decoder create with null reader. More... | |
TEST_F (FFmpegDecoderTest, test_decodeFullFile) | |
Test decoding an entire file. More... | |
TEST_F (FFmpegDecoderTest, test_truncatedInput) | |
Test that it's possible to decode a file that was been truncated past the header. More... | |
TEST_F (FFmpegDecoderTest, test_corruptedInput) | |
Test that the decoder recovers if the file is missing parts of it. More... | |
TEST_F (FFmpegDecoderTest, test_invalidInput) | |
Test that the decoder will error if input has invalid media. More... | |
TEST_F (FFmpegDecoderTest, test_readSmallBuffer) | |
Check that read with a buffer that is too small fails. More... | |
TEST_F (FFmpegDecoderTest, test_abortInitialization) | |
Check that we can abort the decoding during initialization. More... | |
TEST_F (FFmpegDecoderTest, test_alarmVolumeRamp) | |
std::shared_ptr< std::stringstream > | createStream () |
TEST (FFmpegStreamInputControllerTest, test_createSucceed) | |
Test decoder input create succeed. More... | |
TEST (FFmpegStreamInputControllerTest, test_createFailed) | |
Test decoder input create with null input failed. More... | |
TEST (FFmpegStreamInputControllerTest, test_readSucceed) | |
Test read from stream. More... | |
TEST (FFmpegStreamInputControllerTest, test_readEof) | |
Test read from stream until the end. More... | |
TEST (FFmpegStreamInputControllerTest, test_readRepeat) | |
Test read with repeat on from a stream. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_createSucceed) | |
Test input controller create succeed. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_createNullParserFailed) | |
Test input controller create with null playlist parser failed. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_createEmptyUrlFailed) | |
Test input controller create with empty url failed. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_createInvalidUrlFailed) | |
Test input controller create with null playlist parser failed. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_getContextSucceed) | |
Test input controller getContext. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_getContextOffsetSucceed) | |
Test input controller getContext with non-zero offset. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_getContextInvalidUrl) | |
Test input controller getContext. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_getContextAfterNext) | |
Test get context after switching files. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_hasNext) | |
Test has next when parser isn't done. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_done) | |
Test has next after playlist parser is done. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_playlistRepeat) | |
Test parsing playlist with repeat on. More... | |
TEST_F (FFmpegUrlInputControllerTest, test_mediaUrlRepeat) | |
Test parsing media url with repeat on. More... | |
Variables | |
static constexpr size_t | MP3_INPUT_SIZE |
The size of the input buffer. More... | |
static const auto | MP3_INPUT_CSTR = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3 |
An input buffer with an mp3 file. More... | |
static const std::chrono::milliseconds | MP3_INPUT_DURATION {1440} |
The mp3 duration in milliseconds. More... | |
static const alexaClientSDK::avsCommon::utils::MediaType | MP3_TYPE = alexaClientSDK::avsCommon::utils::MediaType::MPEG |
The mp3 MediaType. More... | |
static const SourceConfig | EMPTY_CONFIG = emptySourceConfig() |
The source config. More... | |
static const size_t | RAW_INPUT_SIZE |
The size of the input buffer. More... | |
static const auto | RAW_INPUT_CSTR = applicationUtilities::resources::audio::data::med_system_alerts_melodic_01_short_wav |
An input buffer with an mp3 file. More... | |
static const std::chrono::milliseconds | RAW_INPUT_DURATION {2177} |
The raw input duration in milli seconds. More... | |
static const MediaPlayerState | DEFAULT_MEDIA_PLAYER_STATE = {std::chrono::milliseconds(0)} |
Default media player state for reporting all playback offsets. More... | |
static const MediaPlayerState | MP3_INPUT_FINISHED_MEDIA_PLAYER_STATE = {MP3_INPUT_DURATION} |
The finished media player state. More... | |
static std::string | inputsDirPath |
The path to the input Dir containing the test audio files. More... | |
static const std::chrono::milliseconds | TIMEOUT {100} |
Timeout for wait callback. More... | |
static const auto | NUMBER_OF_BUFFERS = AndroidSLESMediaQueue::NUMBER_OF_BUFFERS |
Number of buffers used by the buffer queue. More... | |
static std::atomic< int > | counter |
Mock buffer count. More... | |
static int | index |
Mock buffer index. More... | |
static std::mutex | bufferMutex |
Mutex used to synchronize the enqueueBuffer and onBufferFree. More... | |
static std::condition_variable | bufferCondition |
Condition variable used to guarantee that onBufferFree only happens after counter > 0;. More... | |
static constexpr SLmillibel | INVALID_MAX_VOLUME = -10 |
Represents an invalid device maximum value. OpenSL ES determines that device max volume is 0 or above. More... | |
static SLmillibel | g_volume |
static SLmillibel | g_maxVolume |
static SLboolean | g_mute |
static constexpr size_t | BUFFER_SIZE = 1024 |
The size of the buffers used to read input. More... | |
static const size_t | INPUT_SIZE = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3_len |
The size of the input buffer. More... | |
static const auto | INPUT_CSTR = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3 |
An input buffer with an mp3 file. More... | |
static const std::vector< size_t > | RECEIVE_SIZES {std::numeric_limits<size_t>::max()} |
Configure MockAttachmentReader to simulate getting the entire file before being read. More... | |
static std::string | inputFolder |
Test input folder. More... | |
static constexpr size_t | BUFFER_SIZE = 1024 |
The size of the buffers used to read input. More... | |
static constexpr size_t | INPUT_SIZE = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3_len |
The size of the input buffer. More... | |
static const auto | INPUT_CSTR = applicationUtilities::resources::audio::data::med_alerts_notification_01_mp3 |
An input buffer with an mp3 file. More... | |
static const std::string | PLAYLIST_URL {"playlist"} |
Represent a dummy url that will be used as playlist. More... | |
static const std::string | MEDIA_URL_1 {"url1"} |
Constant string used to mock a media url. More... | |
static const std::string | MP3_FILE_PATH {"/fox_dog.mp3"} |
MP3 test file path relative to the input folder. More... | |
static const std::chrono::seconds | DURATION {5} |
MP3 approximate duration. More... | |
static const bool | DO_NOT_REPEAT = false |
static const std::chrono::milliseconds | ZERO_OFFSET = std::chrono::milliseconds::zero() |
Zero offset. More... | |
static std::string | INPUT_FOLDER |
Test file path. More... | |
static const PlaylistEntry | INVALID_URL_ENTRY = PlaylistEntry::createErrorEntry(MEDIA_URL_1) |
Constant struct used to mock return of playlist next() method. Calls to getContext with this entry will fail. More... | |
using alexaClientSDK::mediaPlayer::android::test::Byte = typedef FFmpegDecoder::Byte |
using alexaClientSDK::mediaPlayer::android::test::MediaPlayerState = typedef avsCommon::utils::mediaPlayer::MediaPlayerState |
using alexaClientSDK::mediaPlayer::android::test::MockSlSimpleBufferQueue = typedef MockInterfaceImpl<SLAndroidSimpleBufferQueueItf_> |
using alexaClientSDK::mediaPlayer::android::test::MockVolumeInterface = typedef MockInterfaceImpl<SLVolumeItf_> |
|
static |
Mock buffer free call. Increment index and decrement counter.
std::shared_ptr<std::stringstream> alexaClientSDK::mediaPlayer::android::test::createStream | ( | ) |
|
static |
Mock clear call succeeds.
SLresult alexaClientSDK::mediaPlayer::android::test::mockEnqueueFailed | ( | SLAndroidSimpleBufferQueueItf | self, |
const void * | pBuffer, | ||
SLuint32 | size | ||
) |
Mock enqueue call fails.
|
static |
Mock enqueue call succeeds.
|
static |
Mock GetMaxVolume
succeeds.
|
static |
Mock GetMute
succeeds.
|
static |
Mock GetMute
fails.
SLresult alexaClientSDK::mediaPlayer::android::test::mockGetState | ( | SLAndroidSimpleBufferQueueItf | self, |
SLAndroidSimpleBufferQueueState * | pState | ||
) |
Mock get state.
|
static |
Mock GetVolume
succeeds.
|
static |
Mock GetVolume
fails.
|
static |
Mock register callback fails.
|
static |
Mock register callback succeeds.
|
static |
Mock SetMute
succeeds.
|
static |
Mock SetMute
fails.
|
static |
Mock SetVolume
succeeds.
|
static |
Mock SetVolume
fails.
|
static |
MP3 test file path.
|
static |
MP3 test file path relative to the input folder.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegStreamInputControllerTest | , |
test_createSucceed | |||
) |
Test decoder input create succeed.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegStreamInputControllerTest | , |
test_createFailed | |||
) |
Test decoder input create with null input failed.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegStreamInputControllerTest | , |
test_readSucceed | |||
) |
Test read from stream.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegStreamInputControllerTest | , |
test_readEof | |||
) |
Test read from stream until the end.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegStreamInputControllerTest | , |
test_readRepeat | |||
) |
Test read with repeat on from a stream.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegAttachmentInputControllerTest | , |
test_createFailed | |||
) |
Test create controller fail.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegAttachmentInputControllerTest | , |
test_rawArgument | |||
) |
Test raw input format.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegAttachmentInputControllerTest | , |
test_readOk | |||
) |
Test read from attachment reader.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegAttachmentInputControllerTest | , |
test_getCurrentFormatContextOnEmptyInput | |||
) |
Test opening empty input from attachment reader.
alexaClientSDK::mediaPlayer::android::test::TEST | ( | FFmpegAttachmentInputControllerTest | , |
test_readEof | |||
) |
Test read from stream until the end.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_createSucceed | |||
) |
Test input controller create succeed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_createNullParserFailed | |||
) |
Test input controller create with null playlist parser failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_createEmptyUrlFailed | |||
) |
Test input controller create with empty url failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_createSucceed | |||
) |
Test decoder create.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_createInvalidUrlFailed | |||
) |
Test input controller create with null playlist parser failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_createFailedNullReader | |||
) |
Test decoder create with null reader.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_getContextSucceed | |||
) |
Test input controller getContext.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_decodeFullFile | |||
) |
Test decoding an entire file.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_createNullEngine | |||
) |
Test speaker create with null engine.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_createNullSpeaker | |||
) |
Test speaker create with null output mix.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_getContextOffsetSucceed | |||
) |
Test input controller getContext with non-zero offset.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_createInterfaceUnavailable | |||
) |
Test speaker create with null engine.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_truncatedInput | |||
) |
Test that it's possible to decode a file that was been truncated past the header.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_createInvalidMaxVolume | |||
) |
Test speaker create with invalid device configuration.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_getContextInvalidUrl | |||
) |
Test input controller getContext.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setVolumeSucceed | |||
) |
Test set and get volume succeed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_corruptedInput | |||
) |
Test that the decoder recovers if the file is missing parts of it.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_getContextAfterNext | |||
) |
Test get context after switching files.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setVolumeFailed | |||
) |
Test set volume failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_getVolumeFailed | |||
) |
Test get volume failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setMuteSucceed | |||
) |
Test set and get mute succeed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_hasNext | |||
) |
Test has next when parser isn't done.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createSucceed | |||
) |
Test buffer queue create.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_invalidInput | |||
) |
Test that the decoder will error if input has invalid media.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setMuteFailed | |||
) |
Test set mute failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_done | |||
) |
Test has next after playlist parser is done.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_getMuteFailed | |||
) |
Test get mute failed.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_createNullFactory | |||
) |
Test create with null factory.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createFailMissingSlObject | |||
) |
Check that create fail if we are missing the OpenSL ES object.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setVolumeAccuracy | |||
) |
Test set and get volume on values in different ranges to guarantee accuracy.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_createNullEngine | |||
) |
Test create with null engine.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_playlistRepeat | |||
) |
Test parsing playlist with repeat on.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_readSmallBuffer | |||
) |
Check that read with a buffer that is too small fails.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_bQMediaPlayer | |||
) |
Test buffer queue with media player.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createFailMissingInterface | |||
) |
Check that create fail if the SL_IID_ANDROIDSIMPLEBUFFERQUEUE
is missing.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_abortInitialization | |||
) |
Check that we can abort the decoding during initialization.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESSpeakerTest | , |
test_setDeviceVolume | |||
) |
Test that the conversion from avs volume to device volume.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_bQRawMediaPlayer | |||
) |
Test buffer queue with media player and raw file.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createFailMissingDecoder | |||
) |
Check that create fail if the decoder is missing.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegUrlInputControllerTest | , |
test_mediaUrlRepeat | |||
) |
Test parsing media url with repeat on.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createFailMissingCallback | |||
) |
Check that create fail if the callback function is missing.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_firstReadTimeout | |||
) |
Test that media is played correct even if a timeout happens in the first read.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | FFmpegDecoderTest | , |
test_alarmVolumeRamp | |||
) |
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_createFailRegisterCallback | |||
) |
Check that create fail if the callback function cannot be registered.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_onBufferQueueSucceed | |||
) |
Test buffer queue events when the media queue succeeds to read data from the decoder.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_initializeTimeout | |||
) |
Test that media is played correct even after a timeout during initialization.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_decodingTimeout | |||
) |
Test that media is played correct even after a timeout during decoding.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_enqueueTillDone | |||
) |
Test buffer queue events when the media queue succeeds to read data from the decoder till the end of the stream.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_streamMediaPlayer | |||
) |
Test media player and istream source.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_streamRepeatMediaPlayer | |||
) |
Test media player, istream source and repeat on.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_decoderFailure | |||
) |
Test that the buffer queue emits an error event when the decoder fails.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_resumeMediaPlayer | |||
) |
Test media player pause / resume.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaQueueTest | , |
test_enqueueFailure | |||
) |
Test buffer queue events emits an error event when it fails to enqueue a buffer.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_playFailed | |||
) |
Test play fails with wrong id.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_pauseFailed | |||
) |
Test pause fails with wrong id.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_pauseFailedNotPlaying | |||
) |
Test pause fails if not playing.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_resumeFailedAfterStop | |||
) |
Test resume fails after stop.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_stopFailed | |||
) |
Test stop fails with wrong id.
alexaClientSDK::mediaPlayer::android::test::TEST_F | ( | AndroidSLESMediaPlayerTest | , |
test_getOffset | |||
) |
Test get offset.
|
static |
The size of the buffers used to read input.
|
static |
The size of the buffers used to read input.
Some arbitrary size that should fit valid audio samples.
|
static |
Condition variable used to guarantee that onBufferFree only happens after counter > 0;.
|
static |
Mutex used to synchronize the enqueueBuffer and onBufferFree.
|
static |
Mock buffer count.
|
static |
Default media player state for reporting all playback offsets.
|
static |
|
static |
MP3 approximate duration.
|
static |
The source config.
|
static |
|
static |
|
static |
|
static |
Mock buffer index.
|
static |
An input buffer with an mp3 file.
|
static |
An input buffer with an mp3 file.
|
static |
Test file path.
|
static |
The size of the input buffer.
|
static |
The size of the input buffer.
|
static |
Test input folder.
|
static |
The path to the input Dir containing the test audio files.
|
static |
Represents an invalid device maximum value. OpenSL ES determines that device max volume is 0 or above.
|
static |
Constant struct used to mock return of playlist next()
method. Calls to getContext
with this entry will fail.
|
static |
Constant string used to mock a media url.
|
static |
MP3 test file path relative to the input folder.
|
static |
An input buffer with an mp3 file.
|
static |
The mp3 duration in milliseconds.
|
static |
The finished media player state.
|
static |
The size of the input buffer.
|
static |
The mp3 MediaType.
|
static |
Number of buffers used by the buffer queue.
|
static |
Represent a dummy url that will be used as playlist.
|
static |
An input buffer with an mp3 file.
|
static |
The raw input duration in milli seconds.
|
static |
The size of the input buffer.
|
static |
Configure MockAttachmentReader
to simulate getting the entire file before being read.
|
static |
Timeout for wait callback.
|
static |
Zero offset.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0