|
RDK Documentation (Open Sourced RDK Components)
|
31 #define BOOST_TEST_MODULE GetAudioConfig
32 #define BOOST_TEST_MAIN
33 #include "boost/test/included/unit_test.hpp"
38 #include "videoOutputPortConfig.hpp"
52 #undef _DS_VIDEOOUTPUTPORTSETTINGS_H
53 #include "dsVideoPortSettings.h"
54 #undef _DS_VIDEORESOLUTIONSETTINGS_H
55 #include "dsVideoResolutionSettings.h"
57 BOOST_AUTO_TEST_CASE(test_AudioOutputPort_get_Methods)
80 BOOST_CHECK(vPorts.
size() != 0);
81 for (
int i = 0; i < vPorts.
size(); i++) {
97 BOOST_CHECK(aCompressions.
size() != 0);
98 for (
size_t j = 0; j < aCompressions.
size(); j++) {
99 std::cout <<
"Compressions supported = " << aCompressions.at(j).
toString() <<
" FOR " << aPort.
getType().
getName() << std::endl;
105 BOOST_CHECK(aEncodings.
size() != 0);
106 for (
size_t j = 0; j < aEncodings.
size(); j++) {
107 std::cout <<
"Encodings supported = " << aEncodings.at(j).
toString() <<
" FOR " << aPort.
getType().
getName() << std::endl;
113 BOOST_CHECK(aStereoModes.
size() != 0);
114 for (
size_t j = 0; j < aStereoModes.
size(); j++) {
115 std::cout <<
"fSTereoModes supported = " << aStereoModes.at(j).
toString() <<
" FOR " << aPort.
getType().
getName() << std::endl;
126 BOOST_AUTO_TEST_CASE(testDummy)
float getDB() const
This API will get the current Decibel value for the given Audio port.
const List< AudioStereoMode > getSupportedStereoModes() const
const List< AudioCompression > getSupportedCompressions() const
This API is used to get the list of audio compressions supported by the port.
float getGain() const
This API will get the current Gain for the given audio output port.
const AudioEncoding & getEncoding() const
This API is used to get the current encoding of the output port.
List< VideoOutputPort > getVideoOutputPorts()
This API is used to get the list of the video output ports supported on the device....
float getOptimalLevel() const
This API is used to get the current optimal level value for audio output port.
const AudioStereoMode & getStereoMode(bool usePersist=false)
This API is used to get the current stereo mode of the output port.
bool isLoopThru() const
This API is used to check whether the given audio port is configured for loop thro'.
Device Settings HAL error codes.
const AudioOutputPortType & getType() const
This API is used to get the type of the audio output port. The type of audio output port represent th...
size_t size()
This function gets the size of the container.
Device Settings HAL utilities.
Class extending Enumerable to implement the audiooutputport interface.
This file defines AudioStereoMode class for managing audio mode types.
float getMinDB() const
This API is used to get the current minimum decibel that Audio output port can support.
It contains class and structure refrenced by the videoResolution.cpp file.
bool isMuted() const
This API is used to check whether the audio is muted or not.
virtual const std::string & getName() const
This function is used to the get the data member name.
It contains class and structure refrenced by the videooutputport.cpp file.
AudioOutputPort & getAudioOutputPort()
This API is used to get the audio output port connected to the video output port. This connection is ...
virtual const std::string & toString() const
This function is used to the get the data member name in string format.
static Host & getInstance(void)
This API is used to get a reference to the single instance of the Host object.
const List< AudioEncoding > getSupportedEncodings() const
This API is used to get the list of audio encodings supported by the port.
It contain variables,stuctures,class and functions referenced by audiooutputportType code.
It contain variables,stuctures,class and functions referenced by audiooutputport code.
int getCompression() const
This API is used to get the current compression of the output port.
This file defines AudioCompression class for managing audio compression levels.
float getMaxDB() const
This API is used to get the current Maximum decibel that Audio output port can support.
This file defines AudioEncoding class for managing audio encoding types.