smartdevicelink / sdl_requirements

Collection of requirements/technical tasks for new sdl_core features
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

[SetDisplayLayout] - request to change a layout and color scheme #125

Open KhrystynaDubovyk opened 5 years ago

KhrystynaDubovyk commented 5 years ago

The original issue described: https://github.com/smartdevicelink/sdl_core/issues/2955

Background:

  1. A SetDisplayLayout request with the same layout as is currently displayed will result in the current template to change color;

  2. SDL Core should track the number of attempted SetDisplayLayout requests with the current template and REJECT any beyond the first with the reason "Using SetDisplayLayout to change the color scheme may only be done once."

Assumptions:

  1. If an app requests to change color which is already set, SDL must respond with REJECT, i.e app can change colors if it changes templates again;
  2. If in a SetDisplayLayout request the template has not changed, but there is a color scheme in the message, SDL will only accept if there was not a color scheme set previously;
  3. The new layout without a new color scheme should transfer the old color scheme set in the previous layout;
  4. If there is a layout change, the color scheme should change at the same time.
KhrystynaDubovyk commented 5 years ago

SetDisplayLayout_Clarification_JackLivio.docx