-
Notifications
You must be signed in to change notification settings - Fork 244
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
[SDL-0296] Possibility to update video streaming capabilities during ignition cycle #3468
[SDL-0296] Possibility to update video streaming capabilities during ignition cycle #3468
Conversation
Currently InterfaceGenerator is not able to generate recursive structures i.e. one or several structure attributes have its own type e.g.: struct VideoStreamingCapability { ... VideoStreamingCapability additionalVideoStreamingCapabilities; } because structure type fully defined only when all of it attributes are defined. Otherwise param with type of structure will have AlwaysFalseSchema for validation so this param will never be validated successfully. With this commit InterfaceGenerator is able to handle such problem.
Add the checking of the SystemCapabilityType::VIDEO_STREAMING in the message and setting it into the HMICapabilities.
.../rpc_plugins/sdl_rpc_plugin/src/commands/mobile/on_system_capability_updated_notification.cc
Outdated
Show resolved
Hide resolved
src/components/application_manager/test/include/application_manager/commands/commands_test.h
Show resolved
Hide resolved
@atiwari9 please review this PR |
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.
Approved changed with below commits:
Logs:
2020-08-19_15-57-51.zip
TOTAL: 44
PASSED: 42
FAILED: 0
ABORTED: 0
SKIPPED: 2
SDL Core: 36f2f377929c52f84cb4b4216795fcc5c96f58b4
RPC Spec: 4d1312648b78b69f881d97b4b9fd0d8291736750
SDL HMI: 788499f2078e522d710dce3f413045277b278785
Test Scripts: e6d7f578d52c3b932bc2c5ed9465e9d0c8fd8979
Please resolve conflicts before merging.
…bility_to_update_video_streaming_capabilities
d61e005
to
618658a
Compare
@LitvinenkoIra, please advise when this PR is ready for Livio review. Thanks! |
ad9c15e
to
9fbb67f
Compare
9fbb67f
to
5393355
Compare
…bility_to_update_video_streaming_capabilities
@jordynmackool @JackLivio This PR is ready for Livio review. Thank you! |
...l_rpc_plugin/include/sdl_rpc_plugin/commands/hmi/bc_on_app_capability_updated_notification.h
Outdated
Show resolved
Hide resolved
...ins/sdl_rpc_plugin/src/commands/hmi/on_bc_system_capability_updated_notification_from_hmi.cc
Outdated
Show resolved
Hide resolved
...c_plugins/sdl_rpc_plugin/test/commands/hmi/bc_on_app_capability_updated_notification_test.cc
Outdated
Show resolved
Hide resolved
...c_plugins/sdl_rpc_plugin/test/commands/hmi/bc_on_app_capability_updated_notification_test.cc
Outdated
Show resolved
Hide resolved
This reverts commit 42721d5.
…date_video_streaming_capabilities_testing Fix resolutions switching on streaming
…ility_to_update_video_streaming_capabilities
@JackLivio Please notice all required updates are made and this PR is ready for a new iteration of review. |
@@ -3556,9 +3556,7 @@ void ApplicationManagerImpl::ForbidStreaming( | |||
} | |||
|
|||
void ApplicationManagerImpl::OnAppStreaming( | |||
uint32_t app_id, | |||
protocol_handler::ServiceType service_type, | |||
const Application::StreamingState new_state) { |
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.
I think the old OnAppStreaming should be marked deprecated with functionality left as is. A new OnAppStreaming method can be created with the new signature/functionality.
This is to prevent a major version change for Core since OnAppStreaming is a public method in application manager.
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.
Done in 3d6a459
@dboltovskyi @AKalinich-Luxoft @LitvinenkoIra Thank you for the update. The commit history is a little muddy with the different merges. Was the fix to revert the changes from #3488 ? Do we need to reexamine the issue here? #3160 |
src/components/application_manager/include/application_manager/application_manager_impl.h
Outdated
Show resolved
Hide resolved
...c_plugins/sdl_rpc_plugin/test/commands/hmi/bc_on_app_capability_updated_notification_test.cc
Outdated
Show resolved
Hide resolved
src/components/media_manager/include/media_manager/streamer_adapter.h
Outdated
Show resolved
Hide resolved
...ger/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/bc_on_app_capability_updated_notification.cc
Show resolved
Hide resolved
@JackLivio let me bring some clarity here. |
…bility_to_update_video_streaming_capabilities
…ility_to_update_video_streaming_capabilities
Fixes #3465
This PR is [ready] for review.
Risk
This PR makes [minor] API changes.
Testing Plan
smartdevicelink/sdl_atf_test_scripts#2437
Summary
Rpc_spec
smartdevicelink/rpc_spec#272
CLA