|
RDK Documentation (Open Sourced RDK Components)
|
20 #include "iarmMgrMocks.h"
26 const char *methodName,
30 return g_mockIarmBus->IARM_Bus_Call(ownerName, methodName, arg, argLen);
35 return g_mockIarmBus->IARM_Bus_Connect();
40 return g_mockIarmBus->IARM_Bus_Init(name);
44 IARM_EventId_t eventId,
47 return g_mockIarmBus->IARM_Bus_RegisterEventHandler(ownerName, eventId, handler);
51 IARM_EventId_t eventId,
54 return g_mockIarmBus->IARM_Bus_RemoveEventHandler(ownerName, eventId, handler);
80 return g_mockDeviceHost->getVideoOutputPort(name);
85 g_mockDeviceManager->DeInitialize();
90 g_mockDeviceManager->Initialize();
112 const std::string &resolution)
128 int VideoOutputPort::getHDCPCurrentProtocol()
130 return g_mockDeviceVideoOutputPort->getHDCPCurrentProtocol();
133 int VideoOutputPort::getHDCPProtocol()
135 return g_mockDeviceVideoOutputPort->getHDCPProtocol();
138 int VideoOutputPort::getHDCPReceiverProtocol()
140 return g_mockDeviceVideoOutputPort->getHDCPReceiverProtocol();
143 int VideoOutputPort::getHDCPStatus()
145 return g_mockDeviceVideoOutputPort->getHDCPStatus();
150 return g_mockDeviceVideoOutputPort->getResolution();
155 return g_mockDeviceVideoOutputPort->isContentProtected();
160 return g_mockDeviceVideoOutputPort->isDisplayConnected();
164 const std::string &name,
bool isContentProtected() const
This API is used to Check if the port or the content output on the port has DTCP or HDCP in use.
VideoOutputPort(const int type, const int index, const int id, int audioPortId, const std::string &resolution)
This function is a parameterised constructor for videooutputport. It initialises the data members of ...
virtual ~VideoOutputPort()
This is a default destructor of class VideoOutputPort.
static const int k1280x720
Indicates 1280x720 video resolution.
Class extending DSConstant to implement the videoResolution interface.
This class extends DSConstant to manages the pixel resolution of the video.
bool isDisplayConnected() const
This API is used to Check if the port is currently connected to any display device.
IARM_Result_t IARM_Bus_Call(const char *ownerName, const char *methodName, void *arg, size_t argLen)
This API is used to Invoke RPC method by its application name and method name.
Class extending enumerable to implement the videoooutputport interface.
VideoResolution(const int id, const std::string &name, int resolutionId, int ratioid, int ssModeId, int frameRateId, bool interlacedId, bool enabled=true)
This function is a default constructor for videoResolution. It initialises the data members of video ...
IARM_Result_t IARM_Bus_RegisterEventHandler(const char *ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler)
This API register to listen to event and provide the callback function for event notification....
static const int k3840x2160
Indicates 3840x2160 video resolution.
IARM_Result_t IARM_Bus_RemoveEventHandler(const char *ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler)
Remove specific handler registered for the given event.
const VideoResolution & getResolution()
This API is used to get the current video resolution output from the video output port....
static const int k1920x1080
Indicates 1920x1080 video resolution.
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
static const int k720x480
Indicates 720x480 video resolution.
const PixelResolution & getPixelResolution() const
This API is used to get the pixel format of the given video output port.
virtual ~VideoResolution()
This is a default destructor of class VideoResolution.
Display()
This function is default constructor and it is used to initialize the display handle and EDID informa...
static const int k4096x2160
Indicates 4096x2160 video resolution.
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
VideoOutputPort & getVideoOutputPort(const std::string &name)
This API is used to get the reference to the video output port by its name. The name of the port must...
void(* IARM_EventHandler_t)(const char *owner, IARM_EventId_t eventId, void *data, size_t len)
Function signature for event handlers.
static Host & getInstance(void)
This API is used to get a reference to the single instance of the Host object.
Class to implement the Host interface.
virtual ~Display()
This function is a default destructor of class Display.
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
static const int k720x576
Indicates 720x576 video resolution.
virtual ~PixelResolution()
This function is the default destructor for PixelResolution.
PixelResolution(int id)
This function is a parameterised constructor for PixelResolution. It initializes the instance with th...
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.