-
Notifications
You must be signed in to change notification settings - Fork 131
Bugfix/issue 1824 Add missing DisplayCapabilities info and window ID #1825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1825 +/- ##
=============================================
+ Coverage 53.78% 54.05% +0.27%
- Complexity 5519 5534 +15
=============================================
Files 562 562
Lines 25809 25828 +19
Branches 3395 3400 +5
=============================================
+ Hits 13881 13961 +80
+ Misses 10660 10595 -65
- Partials 1268 1272 +4
|
noah-livio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Admittedly, I still don't completely understand exactly why they work, but these changes do fix the targeted issue and don't seem to create any new ones. The code is clean and seems safely limited in scope.
Just requesting the removal of any empty line for formatting at this point.
base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java
Show resolved
Hide resolved
DisplayCapabilities info and window ID
DisplayCapabilities info and window ID
base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java
Outdated
Show resolved
Hide resolved
…lity in SystemCapabilityManager
Fixes #1824
This PR is [ready] for review.
Risk
This PR makes [no] API changes.
Testing Plan
Unit Tests
Unit test were updated in SystemCapabilityManagerTests.java
Core Tests
Tested to verify that ScreenParams and MediaClockFormats from SystemCapabilityManager
DisplayCapabilitiesmatchedDisplayCapabilitiesfrom RAIR.Test retrieving DefaultMainWindowCapability from SystemCapabilityManager modifying it then retrieving it again from SystemCapabilityManager to verify that it was not modified in the manager.
Core version / branch / commit hash / module tested against: Manticore v 2.10.0
HMI name / version / branch / commit hash / module tested against: Manticore v 2.10.0
Summary
When we get the new
DisplayCapability, we update the old deprecatedDisplayCapabilitiesbased on the newDisplayCapability. When we do that,ScreenParamsand MediaClockFormats which are a part ofDisplayCapabilitiesdon't get set properly.This pr checks cached DisplayCapabilities for
ScreenParamsandMediaClockFormatsand updates them to the updated capabilities being set in SystemCapabilityManager as well as updatesgetWindowCapabilityto clone and set thewindowIDproperty.Changelog
Bug Fixes
DisplayCapabilitiesCLA