Skip to content

Commit eedf116

Browse files
ddevadbenjaminqcox
authored andcommitted
Merge branch 'main' into feature/set_dimming_mode_fails_main
2 parents 49920c4 + 224d821 commit eedf116

File tree

16 files changed

+771
-41
lines changed

16 files changed

+771
-41
lines changed

.github/workflows/L1-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ jobs:
275275
-DPLUGIN_SCREENCAPTURE=ON
276276
-DPLUGIN_USBACCESS=ON
277277
-DPLUGIN_LOGGINGPREFERENCES=ON
278-
-DPLUGIN_USERPREFERENCES=ON
278+
-DPLUGIN_USERPREFERENCES=OFF
279279
-DPLUGIN_MESSENGER=ON
280280
-DPLUGIN_DEVICEINFO=ON
281281
-DPLUGIN_SYSTEMSERVICES=ON

.github/workflows/L2-tests-R4-4-1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ jobs:
274274
-DPLUGIN_USBACCESS=ON
275275
-DPLUGIN_USERSETTINGS=ON
276276
-DPLUGIN_PERSISTENTSTORE=ON
277+
-DPLUGIN_USERPREFERENCES=ON
277278
-DUSE_THUNDER_R4=ON
278279
-DPLUGIN_L2Tests=ON
279280
-DRDK_SERVICE_L2_TEST=ON
@@ -314,6 +315,7 @@ jobs:
314315
/opt/tmtryoptout
315316
/opt/fwdnldstatus.txt
316317
/opt/dcm.properties
318+
/opt/user_preferences.conf
317319
/etc/device.properties
318320
/etc/dcm.properties
319321
/etc/authService.conf

AVOutput/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
1616

1717
* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
1818

19+
## [1.1.2] - 2025-05-14
20+
### Fixed
21+
- Set backlight dimming mode failure
22+
1923
## [1.1.1] - 2025-05-02
2024
### Added
2125
- ODM API removal changes phase 2

ContentProtection/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
1616

1717
* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
1818

19+
## [1.1.0] - 2025-05-13
20+
### Changed
21+
- New appId parameter in openDrmSession and onWatermarkStatusChanged, opacityLevel parameter in showWatermark
22+
1923
## [1.0.1] - 2025-05-05
2024
### Fixed
2125
- Fix callsign - "org.rdk." missing

ContentProtection/ContentProtection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "ContentProtection.h"
2121

2222
#define API_VERSION_NUMBER_MAJOR 1
23-
#define API_VERSION_NUMBER_MINOR 0
24-
#define API_VERSION_NUMBER_PATCH 1
23+
#define API_VERSION_NUMBER_MINOR 1
24+
#define API_VERSION_NUMBER_PATCH 0
2525

2626
namespace WPEFramework {
2727
namespace Plugin {

ContentProtection/ContentProtection.h

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace Plugin {
3232
private:
3333
struct Session {
3434
string ClientId;
35+
string AppId;
3536
Exchange::IContentProtection::KeySystem KeySystem;
3637
};
3738

@@ -226,8 +227,10 @@ namespace Plugin {
226227
ShowWatermarkParams()
227228
{
228229
Add(_T("show"), &Show);
230+
Add(_T("alpha"), &Alpha);
229231
}
230232
Core::JSON::Boolean Show;
233+
Core::JSON::DecUInt8 Alpha;
231234
};
232235

233236
struct CreateWatermarkParams : public Core::JSON::Container {
@@ -338,6 +341,7 @@ namespace Plugin {
338341
}
339342

340343
uint32_t OpenDrmSession(const string& clientId,
344+
const string& appId,
341345
KeySystem keySystem, const string& licenseRequest,
342346
const string& initData, uint32_t& sessionId, string& response)
343347
override
@@ -360,7 +364,7 @@ namespace Plugin {
360364
in.ToString(response);
361365

362366
_parent._sessionStorage.Set(sessionId,
363-
{ clientId, keySystem });
367+
{ clientId, appId, keySystem });
364368
}
365369
}
366370
return result;
@@ -445,11 +449,12 @@ namespace Plugin {
445449
}
446450

447451
uint32_t ShowWatermark(uint32_t /*sessionId*/,
448-
bool show, bool /*localOverlay*/) override
452+
bool show, const uint8_t opacityLevel) override
449453
{
450454
uint32_t result;
451455
ShowWatermarkParams out;
452456
out.Show = show;
457+
out.Alpha = opacityLevel;
453458
JsonObject in;
454459
result = _parent._watermark->Invoke<
455460
ShowWatermarkParams, JsonObject>(
@@ -562,8 +567,14 @@ namespace Plugin {
562567
ASSERT(_secManager->Subscribe<OnWatermarkSessionParams>(
563568
Timeout, _T("onWatermarkSession"),
564569
[&](const OnWatermarkSessionParams& params) {
570+
auto session = _sessionStorage.Get(
571+
params.SessionId);
572+
if (!session.IsSet()) {
573+
return; // No such session
574+
}
565575
WatermarkStatusChanged(
566576
params.SessionId,
577+
session.Value().AppId,
567578
{ ((params.ConditionContext == 1)
568579
? State::GRANTED
569580
: ((params.ConditionContext == 2)
@@ -713,8 +724,14 @@ namespace Plugin {
713724
auto watermark = _watermarkStorage
714725
.Get(params.Image);
715726
if (watermark.IsSet()) {
727+
auto session = _sessionStorage.Get(
728+
watermark.Value().SessionId);
729+
if (!session.IsSet()) {
730+
return; // No such session
731+
}
716732
WatermarkStatusChanged(
717733
watermark.Value().SessionId,
734+
session.Value().AppId,
718735
{ State::FAILED, 20001 });
719736
}
720737
})
@@ -731,14 +748,15 @@ namespace Plugin {
731748
_watermark->Unsubscribe(Timeout, _T("onWatermarkRenderFailed"));
732749
}
733750
void WatermarkStatusChanged(uint32_t sessionId,
751+
const string& appId,
734752
const Exchange::IContentProtection::INotification::Status& status)
735753
{
736754
Exchange::JContentProtection::Event::WatermarkStatusChanged(
737-
*this, sessionId, status);
755+
*this, sessionId, appId, status);
738756

739757
Core::SafeSyncType<Core::CriticalSection> lock(_clientLock);
740758
for (auto& i : _clients) {
741-
i->WatermarkStatusChanged(sessionId, status);
759+
i->WatermarkStatusChanged(sessionId, appId, status);
742760
}
743761
}
744762

Tests/L1Tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ include_directories(../../LocationSync
7272
../../UsbAccess
7373
../../Timer
7474
../../LoggingPreferences
75-
../../UserPreferences
75+
#../../UserPreferences
7676
../../Messenger
7777
../../DeviceInfo
7878
../../helpers
@@ -115,7 +115,7 @@ link_directories(../../LocationSync
115115
../../Timer
116116
../../LoggingPreferences
117117
../../SystemServices
118-
../../UserPreferences
118+
#../../UserPreferences
119119
../../Messenger
120120
../../DeviceInfo
121121
../../HdmiInput
@@ -156,7 +156,7 @@ target_link_libraries(${PROJECT_NAME}
156156
${NAMESPACE}Timer
157157
${NAMESPACE}LoggingPreferences
158158
${NAMESPACE}SystemServices
159-
${NAMESPACE}UserPreferences
159+
# ${NAMESPACE}UserPreferences
160160
${NAMESPACE}Messenger
161161
${NAMESPACE}DeviceInfo
162162
${NAMESPACE}HdmiInput

Tests/L1Tests/tests/test_UserPreferences.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* limitations under the License.
1818
**/
1919

20+
#if 0
21+
2022
#include "gtest/gtest.h"
2123

2224
#include "UserPreferences.h"
@@ -87,3 +89,5 @@ TEST_F(UserPreferencesTest, setUILanguage)
8789

8890
file.Destroy();
8991
}
92+
93+
#endif

Tests/L2Tests/L2TestsPlugin/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ if(PLUGIN_USERSETTINGS)
4747
set(SRC_FILES ${SRC_FILES} tests/UserSettings_L2Test.cpp)
4848
endif()
4949

50+
if(PLUGIN_USERPREFERENCES)
51+
set(SRC_FILES ${SRC_FILES} tests/UserPreferences_L2Test.cpp)
52+
endif()
53+
5054
if(PLUGIN_SYSTEMMODE)
5155
set(SRC_FILES ${SRC_FILES} tests/SystemMode_L2Test.cpp)
5256
endif()

0 commit comments

Comments
 (0)