Skip to content

Commit 4cb8a4d

Browse files
committed
RDKEMW-1061: RDK-E Add COMRPC
Reason for change: Create the interface file for HdmiCecSource Test Procedure: Risks: low Priority: P1 Signed-off-by:Hayden Gfeller [email protected]
1 parent 1dae139 commit 4cb8a4d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

HdmiCecSource/HdmiCecSourceImplementation.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ namespace WPEFramework
407407
DeinitializeIARM();
408408
}
409409

410-
HdmiCecSourceImplementation::Configure(PluginHost::IShell* service)
410+
uint32_t HdmiCecSourceImplementation::Configure(PluginHost::IShell* service)
411411
{
412412
LOGINFO("Configure");
413413
ASSERT(service != nullptr);
@@ -493,7 +493,7 @@ namespace WPEFramework
493493

494494
}
495495

496-
void HdmiCecSourceImplementation::Register(Exchange::IHdmiCecSource::INotification* notification)
496+
void HdmiCecSourceImplementation::Register(IHdmiCecSource::INotification* notification)
497497
{
498498

499499
LOGINFO("Register");
@@ -647,8 +647,8 @@ namespace WPEFramework
647647
{
648648
SendKeyInfo keyInfo;
649649
try {
650-
keyInfo.logicalAddr = stoi(logicalAddress);
651-
keyInfo.keyCode = stoi(keyCode);
650+
keyInfo.logicalAddr = std::stoi(logicalAddress);
651+
keyInfo.keyCode = std::stoi(keyCode);
652652
} catch (const std::invalid_argument& e) {
653653
std::cerr << "Invalid input: " << e.what() << std::endl;
654654
success = false;
@@ -667,7 +667,9 @@ namespace WPEFramework
667667
{
668668
LOGINFO(" sendKeyReleaseEvent logicalAddress 0x%x \n",logicalAddress);
669669
if(!(_instance->smConnection))
670+
{
670671
return;
672+
}
671673
_instance->smConnection->sendTo(LogicalAddress(logicalAddress), MessageEncoder().encode(UserControlReleased()), 100);
672674

673675
}
@@ -1227,7 +1229,7 @@ namespace WPEFramework
12271229
unsigned int vendorIdInt = 0;
12281230
try
12291231
{
1230-
vendorIdInt = stoi(vendorid,NULL,16);
1232+
vendorIdInt = std::stoi(vendorid,NULL,16);
12311233
}
12321234
catch (...)
12331235
{
@@ -1283,7 +1285,7 @@ namespace WPEFramework
12831285
}
12841286
}
12851287

1286-
uint32_t HdmiCecSourceImplementation::getDeviceList (IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList, bool &success /* @out */)
1288+
uint32_t HdmiCecSourceImplementation::getDeviceList (Exchange::IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList, bool &success /* @out */)
12871289
{ //sample servicemanager response:
12881290
LOGINFOMETHOD();
12891291
std::vector<Exchange::HdmiCecSourceDevices> localDevices;
@@ -1596,7 +1598,7 @@ namespace WPEFramework
15961598
{
15971599
std::list<Exchange::IHdmiCecSource::INotification*>::const_iterator index(_hdmiCecSourceNotifications.begin());
15981600
while (index != _hdmiCecSourceNotifications.end()) {
1599-
(*index)->OnStandbyMsgReceived(logicalAddress);
1601+
(*index)->StandbyMessageReceived(logicalAddress);
16001602
index++;
16011603
}
16021604
}

0 commit comments

Comments
 (0)