![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
| class | AndroidSLESBufferQueueTest |
| class | AndroidSLESMicrophoneTest |
| class | AndroidSLESObjectTest |
| class | MockAndroidSLESObject |
| class | MockInterface |
| class | MockInterfaceImpl |
Typedefs | |
| using | MockSlSimpleBufferQueue = MockInterfaceImpl< SLAndroidSimpleBufferQueueItf_ > |
Functions | |
| TEST (AndroidLoggerTest, test_sanityTestOk) | |
| Test a valid log entry. More... | |
| TEST (AndroidLoggerTest, test_sanityTestNullThreadMoniker) | |
| Test a log entry with null threadMoniker. More... | |
| TEST (AndroidLoggerTest, test_sanityTestNullText) | |
| Test a log entry with null text. More... | |
| TEST (AndroidLoggerTest, test_sanityTestLevels) | |
| Test all levels. More... | |
| static SLresult | mockRegisterCallbackOk (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext) |
| static SLresult | mockRegisterCallbackFailure (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext) |
| static SLresult | mockClear (SLAndroidSimpleBufferQueueItf self) |
| SLresult | mockEnqueue (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size) |
| SLresult | mockEnqueueFailed (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size) |
| SLresult | mockEnqueueHalf (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size) |
| SLresult | mockGetState (SLAndroidSimpleBufferQueueItf self, SLAndroidSimpleBufferQueueState *pState) |
| TEST_F (AndroidSLESBufferQueueTest, test_registerCallbackSucceeded) | |
| TEST_F (AndroidSLESBufferQueueTest, test_registerCallbackFailed) | |
| TEST_F (AndroidSLESBufferQueueTest, test_enqueueOK) | |
| TEST_F (AndroidSLESBufferQueueTest, test_enqueueFailed) | |
| TEST_F (AndroidSLESBufferQueueTest, test_enqueuePartial) | |
| TEST_F (AndroidSLESBufferQueueTest, test_onBufferCompleted) | |
| TEST_F (AndroidSLESMicrophoneTest, test_startRecording) | |
| TEST_F (AndroidSLESMicrophoneTest, test_pauseRecording) | |
| TEST_F (AndroidSLESMicrophoneTest, test_unPauseRecording) | |
| TEST_F (AndroidSLESMicrophoneTest, test_longRecording) | |
| SLresult | mockRealizeSucceed (SLObjectItf self, SLboolean async) |
| Mock realize that succeeds. More... | |
| SLresult | mockRealizeFail (SLObjectItf self, SLboolean async) |
| Mock realize that fails. More... | |
| void | mockDestroy (SLObjectItf self) |
| Mock destroy and keep track that the method was called once. More... | |
| SLresult | mockGetInterface (SLObjectItf self, const SLInterfaceID iid, void *pInterface) |
| Mock get interface. More... | |
| TEST_F (AndroidSLESObjectTest, test_createDestroySucceed) | |
| TEST_F (AndroidSLESObjectTest, test_createFailed) | |
| TEST_F (AndroidSLESObjectTest, test_getInterface) | |
| TEST_F (AndroidSLESObjectTest, test_getInterfaceFailed) | |
| SLresult | realizeSucceed (SLObjectItf self, SLboolean async) |
| SLresult | realizeFailed (SLObjectItf self, SLboolean async) |
| SLresult | getMockInterface (SLObjectItf self, SLInterfaceID id, void *interface) |
Variables | |
| static constexpr size_t | SAMPLE_RATE_HZ {16000} |
| The sample rate of microphone audio data. More... | |
| static constexpr std::chrono::seconds | AMOUNT_OF_AUDIO_DATA_IN_BUFFER {10} |
| The amount of audio data to keep in the ring buffer. More... | |
| static const auto | NUMBER_OF_BUFFERS = AndroidSLESBufferQueue::NUMBER_OF_BUFFERS |
| static constexpr size_t | SDS_BUFFER_SIZE = (SAMPLE_RATE_HZ)*AMOUNT_OF_AUDIO_DATA_IN_BUFFER.count() |
| The size of the ring buffer. More... | |
| static constexpr size_t | SAMPLE_RATE_HZ {16000} |
| The sample rate of microphone audio data. More... | |
| static constexpr std::chrono::seconds | AMOUNT_OF_AUDIO_DATA_IN_BUFFER {10} |
| The amount of audio data to keep in the ring buffer. More... | |
| static constexpr size_t | SDS_BUFFER_SIZE = (SAMPLE_RATE_HZ)*AMOUNT_OF_AUDIO_DATA_IN_BUFFER.count() |
| The size of the ring buffer. More... | |
| static constexpr std::chrono::milliseconds | TIMEOUT {1100} |
| Reader timeout. More... | |
| static constexpr size_t | TEST_BUFFER_SIZE {4096u} |
| The size of reader buffer is one page long. More... | |
| static std::unordered_map< SLInterfaceID, std::shared_ptr< MockInterface > > | g_interfaces |
| using alexaClientSDK::applicationUtilities::androidUtilities::test::MockSlSimpleBufferQueue = typedef MockInterfaceImpl<SLAndroidSimpleBufferQueueItf_> |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::getMockInterface | ( | SLObjectItf | self, |
| SLInterfaceID | id, | ||
| void * | interface | ||
| ) |
|
static |
| void alexaClientSDK::applicationUtilities::androidUtilities::test::mockDestroy | ( | SLObjectItf | self | ) |
Mock destroy and keep track that the method was called once.
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockEnqueue | ( | SLAndroidSimpleBufferQueueItf | self, |
| const void * | pBuffer, | ||
| SLuint32 | size | ||
| ) |
Mock enqueue success.
| self | ignored. |
| pBuffer | ignored. |
| size | ignored. |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockEnqueueFailed | ( | SLAndroidSimpleBufferQueueItf | self, |
| const void * | pBuffer, | ||
| SLuint32 | size | ||
| ) |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockEnqueueHalf | ( | SLAndroidSimpleBufferQueueItf | self, |
| const void * | pBuffer, | ||
| SLuint32 | size | ||
| ) |
Mock partial enqueue.
| self | ignored. |
| pBuffer | ignored. |
| size | ignored. |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockGetInterface | ( | SLObjectItf | self, |
| const SLInterfaceID | iid, | ||
| void * | pInterface | ||
| ) |
Mock get interface.
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockGetState | ( | SLAndroidSimpleBufferQueueItf | self, |
| SLAndroidSimpleBufferQueueState * | pState | ||
| ) |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockRealizeFail | ( | SLObjectItf | self, |
| SLboolean | async | ||
| ) |
Mock realize that fails.
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockRealizeSucceed | ( | SLObjectItf | self, |
| SLboolean | async | ||
| ) |
Mock realize that succeeds.
|
static |
|
static |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::realizeFailed | ( | SLObjectItf | self, |
| SLboolean | async | ||
| ) |
| SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::realizeSucceed | ( | SLObjectItf | self, |
| SLboolean | async | ||
| ) |
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST | ( | AndroidLoggerTest | , |
| test_sanityTestOk | |||
| ) |
Test a valid log entry.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST | ( | AndroidLoggerTest | , |
| test_sanityTestNullThreadMoniker | |||
| ) |
Test a log entry with null threadMoniker.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST | ( | AndroidLoggerTest | , |
| test_sanityTestNullText | |||
| ) |
Test a log entry with null text.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST | ( | AndroidLoggerTest | , |
| test_sanityTestLevels | |||
| ) |
Test all levels.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESObjectTest | , |
| test_createDestroySucceed | |||
| ) |
Test create method when the provided object can be realized.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESMicrophoneTest | , |
| test_startRecording | |||
| ) |
Test if recording works.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESMicrophoneTest | , |
| test_pauseRecording | |||
| ) |
Test if the stopStreamingMicrophoneData will stop writing to the buffer.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESObjectTest | , |
| test_createFailed | |||
| ) |
Test create method when the provided object cannot be realized.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESMicrophoneTest | , |
| test_unPauseRecording | |||
| ) |
Test if recording works after mute / unmute.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESObjectTest | , |
| test_getInterface | |||
| ) |
Test get interface when method succeeds.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESMicrophoneTest | , |
| test_longRecording | |||
| ) |
Test recording for a full iteration on the buffer circular queue.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESObjectTest | , |
| test_getInterfaceFailed | |||
| ) |
Test get interface when method fails.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_registerCallbackSucceeded | |||
| ) |
Test successful creation.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_registerCallbackFailed | |||
| ) |
Test the callback register failure.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_enqueueOK | |||
| ) |
Test enqueue succeeded.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_enqueueFailed | |||
| ) |
Test enqueue failed.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_enqueuePartial | |||
| ) |
Test enqueue succeeded to enqueue a few buffers.
| alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F | ( | AndroidSLESBufferQueueTest | , |
| test_onBufferCompleted | |||
| ) |
Test onBufferCompleted.
|
static |
The amount of audio data to keep in the ring buffer.
|
static |
The amount of audio data to keep in the ring buffer.
|
static |
|
static |
The number of buffers used by the AndroidSLESBufferQueue object. Redefine it here because of the ODR (one definition rule) use by EXPECT.
|
static |
The sample rate of microphone audio data.
|
static |
The sample rate of microphone audio data.
|
static |
The size of the ring buffer.
|
static |
The size of the ring buffer.
|
static |
The size of reader buffer is one page long.
|
static |
Reader timeout.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0