Conversation
4f7b4af to
ea47b07
Compare
| * @brief The HmiState class | ||
| * Handle Hmi state of application (hmi level, | ||
| * Handle HMI state of application (HMI level, | ||
| * audio streaming state, system context) |
| return false; | ||
| namespace { | ||
| bool IsStateChanged(const HmiState& old_state, const HmiState& new_state) { | ||
| return std::make_tuple(old_state.hmi_level(), |
There was a problem hiding this comment.
what's the benefit of using std::make_tuple() != std::make_tuple() comparing to the (condition 1 || condition 2 || condition 3 || condition 4) here?
I thought it can only make final binary code bigger.
There was a problem hiding this comment.
@yang1070 , this is common technik(since C++11) to compare complex objects, to make it easier to write a correct operators(==,!=,<,<=,>,>=) than rolling it yourself, to provide more readable code.
http://en.cppreference.com/w/cpp/utility/tuple/operator_cmp
8276621 to
0a2489f
Compare
Add projection app to audio app list as it can stream audio This is done to enable HMI leve switching to LIMITED level.
There was added PROJECTION HMI type to the notifications_per_minute_by_priority structure. Also this structure was updated in the policy types to make everything work correctly.
0a2489f to
43bdbd3
Compare
Fix HMI state resolver according to requirments of 'Mobile Projection Phase 2'
|
|
||
| DEPRECATED NaviStreamingHmiState(uint32_t app_id, | ||
| const ApplicationManager& app_mngr); | ||
| DEPRECATED VideoStreamingHmiState(uint32_t app_id, |
There was a problem hiding this comment.
DEPRECATED a new VideoStreamingHmiState?
| : HmiState(app, app_mngr, STATE_ID_VIDEO_STREAMING) {} | ||
|
|
||
| DEPRECATED NaviStreamingHmiState::NaviStreamingHmiState( | ||
| DEPRECATED VideoStreamingHmiState::VideoStreamingHmiState( |
There was a problem hiding this comment.
does not make sense to DEPRECATED a new function name. remove the function completely.
| ApplicationSharedPtr app, | ||
| const mobile_apis::HMILevel::eType hmi_level) const; | ||
|
|
||
| mobile_apis::VideoStreamingState::eType CalcVideoState( |
|
Rebuild required |
|
@theresalech Ford reviewed and approve this change |
|
@EKuliiev and @LuxoftAKutsan are working on fixing issue from Zhimin: when 2nd app is in FULL, the 1st app shall be in But I have seen BACKGROUND app still is STREAMABLE or AUDIBLE during test. |
37ed8a5 to
6cc4375
Compare
|
@theresalech Ford has tested and reviewed this work. Ford approve this change and it is ready for Livio to review. Thanks, |
| @@ -0,0 +1,76 @@ | |||
| /** | |||
| \page application_manager Application Manager Detailed Design | |||
| ## Table of contents | |||
There was a problem hiding this comment.
I think this information should be added to a different repository: https://github.com/smartdevicelink/sdl_core_documentation
There was a problem hiding this comment.
@JackLivio sdl_documentation contains the high-level Software Architecture design.
This is rather a low-level detailed design, that actually generated by Doxygen from the code.
Such implementation details should not be in SAD (software architecture design), the should be in SDD.
| , app_mngr_(app_mngr) | ||
| , hmi_level_(mobile_apis::HMILevel::INVALID_ENUM) | ||
| , audio_streaming_state_(mobile_apis::AudioStreamingState::INVALID_ENUM) | ||
| , video_streaming_state_(mobile_apis::VideoStreamingState::INVALID_ENUM) |
There was a problem hiding this comment.
This modifies a deprecated method. The next version of SDL Core is 5.0 a major version change. The DEPRECATED tag can be removed
| , app_mngr_(app_mngr) | ||
| , hmi_level_(mobile_apis::HMILevel::INVALID_ENUM) | ||
| , audio_streaming_state_(mobile_apis::AudioStreamingState::INVALID_ENUM) | ||
| , video_streaming_state_(mobile_apis::VideoStreamingState::INVALID_ENUM) |
There was a problem hiding this comment.
This modifies a deprecated method. The next version of SDL Core is 5.0 a major version change. The DEPRECATED tag can be removed
bc04fef to
3cec396
Compare
Fixes #2129
This PR is ready for review.
Risk
This PR makes major API changes.
Testing Plan
Tested with ATF : https://github.com/smartdevicelink/sdl_atf/tree/develop
ATF Scripts are "PASSED" from smartdevicelink/sdl_atf_test_scripts#1879.
Manual testing:
Used HMI from: smartdevicelink/sdl_hmi#53
Summary
Implementation of proposal https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0150-video-streaming-state.md
Changelog
Breaking Changes
Enhancements
Bug Fixes
Tasks Remaining:
CLA