@@ -392,7 +392,7 @@ namespace WPEFramework
392
392
DeinitializeIARM ();
393
393
}
394
394
395
- uint32_t HdmiCecSourceImplementation::Configure (PluginHost::IShell* service)
395
+ Core::hresult HdmiCecSourceImplementation::Configure (PluginHost::IShell* service)
396
396
{
397
397
LOGINFO (" Configure" );
398
398
ASSERT (service != nullptr );
@@ -479,7 +479,7 @@ namespace WPEFramework
479
479
480
480
}
481
481
482
- uint32_t HdmiCecSourceImplementation::Register (Exchange::IHdmiCecSource::INotification* notification)
482
+ Core::hresult HdmiCecSourceImplementation::Register (Exchange::IHdmiCecSource::INotification* notification)
483
483
{
484
484
485
485
LOGINFO (" Register" );
@@ -501,7 +501,7 @@ namespace WPEFramework
501
501
}
502
502
503
503
504
- uint32_t HdmiCecSourceImplementation::Unregister (Exchange::IHdmiCecSource::INotification* notification)
504
+ Core::hresult HdmiCecSourceImplementation::Unregister (Exchange::IHdmiCecSource::INotification* notification)
505
505
{
506
506
LOGINFO (" Unregister" );
507
507
if (notification != nullptr ){
@@ -572,7 +572,7 @@ namespace WPEFramework
572
572
}
573
573
574
574
575
- uint32_t HdmiCecSourceImplementation::GetActiveSourceStatus (bool &isActiveSource, bool &success)
575
+ Core::hresult HdmiCecSourceImplementation::GetActiveSourceStatus (bool &isActiveSource, bool &success)
576
576
{
577
577
isActiveSource = isDeviceActiveSource;
578
578
success = true ;
@@ -653,7 +653,7 @@ namespace WPEFramework
653
653
return Core::ERROR_NONE;
654
654
}
655
655
656
- uint32_t HdmiCecSourceImplementation::SendKeyPressEvent (const uint32_t &logicalAddress,const uint32_t &keyCode, HdmiCecSourceSuccess &success)
656
+ Core::hresult HdmiCecSourceImplementation::SendKeyPressEvent (const uint32_t &logicalAddress,const uint32_t &keyCode, HdmiCecSourceSuccess &success)
657
657
{
658
658
SendKeyInfo keyInfo;
659
659
try {
@@ -684,7 +684,7 @@ namespace WPEFramework
684
684
685
685
}
686
686
687
- uint32_t HdmiCecSourceImplementation::SendStandbyMessage (HdmiCecSourceSuccess &success)
687
+ Core::hresult HdmiCecSourceImplementation::SendStandbyMessage (HdmiCecSourceSuccess &success)
688
688
{
689
689
bool ret = false ;
690
690
@@ -946,7 +946,7 @@ namespace WPEFramework
946
946
return cecSettingEnabled;
947
947
}
948
948
949
- uint32_t HdmiCecSourceImplementation::SetEnabled (const bool &enabled, HdmiCecSourceSuccess &success)
949
+ Core::hresult HdmiCecSourceImplementation::SetEnabled (const bool &enabled, HdmiCecSourceSuccess &success)
950
950
{
951
951
LOGINFO (" Entered SetEnabled " );
952
952
@@ -967,7 +967,7 @@ namespace WPEFramework
967
967
return Core::ERROR_NONE;
968
968
}
969
969
970
- uint32_t HdmiCecSourceImplementation::SetOTPEnabled (const bool &enabled, HdmiCecSourceSuccess &success)
970
+ Core::hresult HdmiCecSourceImplementation::SetOTPEnabled (const bool &enabled, HdmiCecSourceSuccess &success)
971
971
{
972
972
if (cecOTPSettingEnabled != enabled)
973
973
{
@@ -1197,31 +1197,31 @@ namespace WPEFramework
1197
1197
return ;
1198
1198
}
1199
1199
1200
- uint32_t HdmiCecSourceImplementation::GetEnabled (bool &enabled, bool &success)
1200
+ Core::hresult HdmiCecSourceImplementation::GetEnabled (bool &enabled, bool &success)
1201
1201
{
1202
1202
LOGINFO (" GetEnabled :%d " ,cecEnableStatus);
1203
1203
enabled = cecEnableStatus;
1204
1204
success = true ;
1205
1205
return Core::ERROR_NONE;
1206
1206
}
1207
1207
1208
- uint32_t HdmiCecSourceImplementation::GetOTPEnabled (bool &enabled, bool &success)
1208
+ Core::hresult HdmiCecSourceImplementation::GetOTPEnabled (bool &enabled, bool &success)
1209
1209
{
1210
1210
enabled = cecOTPSettingEnabled;
1211
1211
LOGINFO (" GetOTPEnabled :%d " ,cecOTPSettingEnabled);
1212
1212
success = true ;
1213
1213
return Core::ERROR_NONE;
1214
1214
}
1215
1215
1216
- uint32_t HdmiCecSourceImplementation::GetOSDName (std::string &name, bool &success)
1216
+ Core::hresult HdmiCecSourceImplementation::GetOSDName (std::string &name, bool &success)
1217
1217
{
1218
1218
name = osdName.toString ();
1219
1219
LOGINFO (" GetOSDName :%s " ,name.c_str ());
1220
1220
success = true ;
1221
1221
return Core::ERROR_NONE;
1222
1222
}
1223
1223
1224
- uint32_t HdmiCecSourceImplementation::SetOSDName (const std::string &name, HdmiCecSourceSuccess &success)
1224
+ Core::hresult HdmiCecSourceImplementation::SetOSDName (const std::string &name, HdmiCecSourceSuccess &success)
1225
1225
{
1226
1226
LOGINFO (" SetOSDName :%s " ,name.c_str ());
1227
1227
osdName = name.c_str ();
@@ -1230,15 +1230,15 @@ namespace WPEFramework
1230
1230
return Core::ERROR_NONE;
1231
1231
}
1232
1232
1233
- uint32_t HdmiCecSourceImplementation::GetVendorId (std::string &vendorid, bool &success)
1233
+ Core::hresult HdmiCecSourceImplementation::GetVendorId (std::string &vendorid, bool &success)
1234
1234
{
1235
1235
vendorid = appVendorId.toString ();
1236
1236
LOGINFO (" GetVendorId :%s " ,vendorid.c_str ());
1237
1237
success = true ;
1238
1238
return Core::ERROR_NONE;
1239
1239
}
1240
1240
1241
- uint32_t HdmiCecSourceImplementation::SetVendorId (const string &vendorid, HdmiCecSourceSuccess &success)
1241
+ Core::hresult HdmiCecSourceImplementation::SetVendorId (const string &vendorid, HdmiCecSourceSuccess &success)
1242
1242
{
1243
1243
LOGINFO (" SetVendorId :%s " ,vendorid.c_str ());
1244
1244
unsigned int vendorIdInt = 0 ;
@@ -1258,7 +1258,7 @@ namespace WPEFramework
1258
1258
return Core::ERROR_NONE;
1259
1259
}
1260
1260
1261
- uint32_t HdmiCecSourceImplementation::PerformOTPAction (HdmiCecSourceSuccess &success)
1261
+ Core::hresult HdmiCecSourceImplementation::PerformOTPAction (HdmiCecSourceSuccess &success)
1262
1262
{
1263
1263
LOGINFO (" PerformOTPAction " );
1264
1264
bool ret = false ;
@@ -1300,7 +1300,7 @@ namespace WPEFramework
1300
1300
}
1301
1301
}
1302
1302
1303
- uint32_t HdmiCecSourceImplementation::GetDeviceList (uint32_t &numberofdevices, IHdmiCecSourceDeviceListIterator*& deviceList, bool &success)
1303
+ Core::hresult HdmiCecSourceImplementation::GetDeviceList (uint32_t &numberofdevices, IHdmiCecSourceDeviceListIterator*& deviceList, bool &success)
1304
1304
{ // sample servicemanager response:
1305
1305
std::vector<Exchange::IHdmiCecSource::HdmiCecSourceDevices> localDevices;
1306
1306
Exchange::IHdmiCecSource::HdmiCecSourceDevices actual_hdmicecdevices = {0 };
0 commit comments