Skip to content
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

Fix HMI status is cleared #1528

Closed
wants to merge 1 commit into from
Closed

Fix HMI status is cleared #1528

wants to merge 1 commit into from

Conversation

zhouxin627
Copy link
Contributor

@zhouxin627 zhouxin627 commented Jan 24, 2020

Fixes #1471 and #1479

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Covered by Unit tests.

Summary

Reason
#1471 When TestApp is switched to the background, the status is cleared.
・The HMILevel changes to NONE
・VideoStream changes to NOTStreamable.
#1479 After disconnecting TCP, the status is cleared.
・The HMILevel changes to NONE
・VideoStream changes to NOTStreamable.

The root cause of #1471 and #1479 is the same.
Both of them will invoke the stop function of SDLStreamingVideoLifecycleManager, and clear the status. When it's time to revert, it can not revert due to the wrong status.
★audioStream has the same problem.

Solution

  1. When SDLStreamingVideoLifecycleManager's stop method is called, record current HMILevel and streamable to lastHMILevel and lastStreamable.
  2. Add resumeHMIStatus flag, by which status can be reverted.
  3. Receive new HMILevel status from HU, reset resumeHMIStatus flag.
  4. Before sdl_startVideoSession, if resumeHMIStatus flag is true, recover lastHMILevel and lastStreamable to current HMILevel and streamable.

Sequence(#1471)
image

CLA

@zhouxin627 zhouxin627 changed the title WIP: Fix HMI status is cleared Fix HMI status is cleared Jan 24, 2020
@NicoleYarroch NicoleYarroch self-assigned this Jan 27, 2020
@NicoleYarroch NicoleYarroch added the bug A defect in the library label Jan 27, 2020
@NicoleYarroch NicoleYarroch added this to In progress in v6.6.0 via automation Jan 27, 2020
@NicoleYarroch NicoleYarroch removed the request for review from joeljfischer January 28, 2020 14:45
@joeljfischer joeljfischer added the transport-secondary Relating to the secondary transport label Jan 28, 2020
@NicoleYarroch
Copy link
Contributor

@zhouxin627 I just wanted to let you know that while reviewing this PR I found some other bugs with the secondary transport manager. I am currently investigating fixes for those bugs that might affect this PR so I am holding off on leaving a review on this PR until I've resolved those bugs.

@joeljfischer
Copy link
Contributor

I believe this was all resolved in #1566, can this be closed?

@joeljfischer joeljfischer removed this from In progress in v6.6.0 Apr 15, 2020
@zhouxin627
Copy link
Contributor Author

@joeljfischer Yes, I suppose it can be closed. Thank you.

@NicoleYarroch NicoleYarroch removed their assignment Apr 16, 2020
@NicoleYarroch
Copy link
Contributor

Closing in favor of PR #1551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library transport-secondary Relating to the secondary transport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants