Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8512a15
Update L1-tests.yml
ssitar583 May 6, 2025
ad271ef
RDKEMW-4155 : Fix L1/L2 tests for HdcpProfile plugin
ssitar583 May 7, 2025
f7253dc
Merge branch 'develop' of https://github.com/rdkcentral/entservices-i…
ssitar583 May 15, 2025
bd46704
Update L1-tests.yml
ssitar583 May 15, 2025
6642f9f
Merge pull request #110 from rdkcentral/develop
ssitar583 May 15, 2025
dd3c31f
Update L1-tests.yml
ssitar583 May 15, 2025
0432bf7
Merge pull request #113 from rdkcentral/develop
ssitar583 May 16, 2025
84f1c3f
Update test_HdcpProfile.cpp
ssitar583 May 16, 2025
6a83172
Update test_HdcpProfile.cpp
ssitar583 May 16, 2025
0991f9a
Update HdcpProfileImplementation.cpp
ssitar583 May 18, 2025
29efeaf
Update HdcpProfileImplementation.cpp
ssitar583 May 18, 2025
8066bae
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
a6a75c1
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
05754b1
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
cb2c401
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
1fc30db
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
6844fab
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
4b21f14
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
7352f76
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
6466f02
Update test_HdcpProfile.cpp
ssitar583 May 19, 2025
360a734
Update test_HdcpProfile.cpp
ssitar583 May 19, 2025
521aa34
Update HdcpProfileImplementation.h
ssitar583 May 19, 2025
00672ee
Update HdcpProfileImplementation.cpp
ssitar583 May 19, 2025
a47a510
Update HdcpProfileImplementation.cpp
ssitar583 May 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions HdcpProfile/HdcpProfileImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,21 @@
HdcpProfileImplementation::~HdcpProfileImplementation()
{
LOGINFO("Call HdcpProfileImplementation destructor\n");
HdcpProfileImplementation::_instance = nullptr;
LOGINFO("Call HdcpProfileImplementation destructor-instance-destructed\n");
if (_powerManagerPlugin) {
_powerManagerPlugin.Reset();
}
LOGINFO("Call HdcpProfileImplementation destructor-DeinitializeIARM Call\n");
DeinitializeIARM();
LOGINFO("Call HdcpProfileImplementation destructor-DeinitializeIARM done\n");
mShell = nullptr;
if(_service != nullptr)
{
_service->Release();
_service = nullptr;
}
DeinitializeIARM();
HdcpProfileImplementation::_instance = nullptr;
mShell = nullptr;
LOGINFO("Call HdcpProfileImplementation destructor-service object destructed\n");
}

void HdcpProfileImplementation::InitializePowerManager(PluginHost::IShell *service)
Expand All @@ -93,11 +98,14 @@

void HdcpProfileImplementation::DeinitializeIARM()
{
LOGINFO("Call HdcpProfileImplementation destructor-DeinitializeIARM called\n");
if (Utils::IARM::isConnected())
{
LOGINFO("Call HdcpProfileImplementation destructor-DeinitializeIARM called-inside if\n");
IARM_Result_t res;
IARM_CHECK( Utils::Synchro::RemoveLockedEventHandler<HdcpProfileImplementation>(IARM_BUS_DSMGR_NAME,IARM_BUS_DSMGR_EVENT_HDMI_HOTPLUG, dsHdmiEventHandler) );
IARM_CHECK( Utils::Synchro::RemoveLockedEventHandler<HdcpProfileImplementation>(IARM_BUS_DSMGR_NAME,IARM_BUS_DSMGR_EVENT_HDCP_STATUS, dsHdmiEventHandler) );
LOGINFO("Call HdcpProfileImplementation destructor-DeinitializeIARM called-last if\n");
}
}

Expand Down Expand Up @@ -250,13 +258,14 @@

void HdcpProfileImplementation::dispatchEvent(Event event, const HDCPStatus &hdcpstatus)
{
LOGINFO("dispatchEvent called");
Core::IWorkerPool::Instance().Submit(Job::Create(this, event, hdcpstatus));
}

void HdcpProfileImplementation::Dispatch(Event event,const HDCPStatus& hdcpstatus)
{
_adminLock.Lock();

LOGINFO("dispatch called");
std::list<Exchange::IHdcpProfile::INotification *>::const_iterator index(_hdcpProfileNotification.begin());

switch (event)
Expand All @@ -265,6 +274,7 @@
{
while (index != _hdcpProfileNotification.end())
{
LOGINFO("Dispatch event-in progress");
(*index)->OnDisplayConnectionChanged(hdcpstatus);
++index;
}
Expand Down
4 changes: 3 additions & 1 deletion HdcpProfile/HdcpProfileImplementation.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@
Job &operator=(const Job &) = delete;
~Job()
{
printf("Job destructor");
if (_hdcpProfileImplementation != nullptr)
{
printf("Job destructor-hdcpProfileImpl-%p",_hdcpProfileImplementation);
_hdcpProfileImplementation->Release();
}
}
Expand Down Expand Up @@ -143,4 +145,4 @@
};

} // namespace Plugin
} // namespace WPEFramework
} // namespace WPEFramework
3 changes: 1 addition & 2 deletions Tests/L1Tests/tests/test_HdcpProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class HDCPProfileTest : public ::testing::Test {

dispatcher->Deactivate();
dispatcher->Release();

Core::IWorkerPool::Assign(nullptr);
workerPool.Release();

Expand All @@ -139,7 +139,6 @@ class HDCPProfileTest : public ::testing::Test {
delete p_iarmBusImplMock;
p_iarmBusImplMock = nullptr;
}

}
};

Expand Down
Loading