AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
AndroidSLESBufferQueueTest.cpp File Reference
#include <array>
#include <gtest/gtest.h>
#include <AndroidUtilities/AndroidSLESBufferQueue.h>
#include <AVSCommon/AVS/AudioInputStream.h>
#include <AndroidUtilities/MockAndroidSLESObject.h>
#include <AndroidUtilities/MockAndroidSLESInterface.h>
Include dependency graph for AndroidSLESBufferQueueTest.cpp:

Classes

class  alexaClientSDK::applicationUtilities::androidUtilities::test::AndroidSLESBufferQueueTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::applicationUtilities
 
 alexaClientSDK::applicationUtilities::androidUtilities
 
 alexaClientSDK::applicationUtilities::androidUtilities::test
 

Typedefs

using alexaClientSDK::applicationUtilities::androidUtilities::test::MockSlSimpleBufferQueue = MockInterfaceImpl< SLAndroidSimpleBufferQueueItf_ >
 

Functions

static SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockRegisterCallbackOk (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext)
 
static SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockRegisterCallbackFailure (SLAndroidSimpleBufferQueueItf self, slAndroidSimpleBufferQueueCallback callback, void *pCallbackContext)
 
static SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockClear (SLAndroidSimpleBufferQueueItf self)
 
SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockEnqueue (SLAndroidSimpleBufferQueueItf self, const void *pBuffer, SLuint32 size)
 
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)
 
SLresult alexaClientSDK::applicationUtilities::androidUtilities::test::mockGetState (SLAndroidSimpleBufferQueueItf self, SLAndroidSimpleBufferQueueState *pState)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_registerCallbackSucceeded)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_registerCallbackFailed)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_enqueueOK)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_enqueueFailed)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_enqueuePartial)
 
 alexaClientSDK::applicationUtilities::androidUtilities::test::TEST_F (AndroidSLESBufferQueueTest, test_onBufferCompleted)
 

Variables

static constexpr size_t alexaClientSDK::applicationUtilities::androidUtilities::test::SAMPLE_RATE_HZ {16000}
 The sample rate of microphone audio data. More...
 
static constexpr std::chrono::seconds alexaClientSDK::applicationUtilities::androidUtilities::test::AMOUNT_OF_AUDIO_DATA_IN_BUFFER {10}
 The amount of audio data to keep in the ring buffer. More...
 
static const auto alexaClientSDK::applicationUtilities::androidUtilities::test::NUMBER_OF_BUFFERS = AndroidSLESBufferQueue::NUMBER_OF_BUFFERS
 
static constexpr size_t alexaClientSDK::applicationUtilities::androidUtilities::test::SDS_BUFFER_SIZE = (SAMPLE_RATE_HZ)*AMOUNT_OF_AUDIO_DATA_IN_BUFFER.count()
 The size of the ring buffer. More...
 

AlexaClientSDK 1.25.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0