// This process will be removed
// because the area "normal.full" and "normalfull" will be prohibited
{
- if (nullptr == drawing_area) {
- new_area = "normal";
- }
- else if (0 == strcmp("normal.full", drawing_area)) {
- new_area = "normal";
- }
- else if (0 == strcmp("restriction.split.sub", drawing_area)) {
- new_area = "restriction.split.sub";
- }
- else if (0 == strcmp("homescreen", new_role)) {
- // Now homescreen specifies "normalfull"
- new_area = "full";
+ if (0 == strcmp("Restriction", drawing_name)) {
+ new_area = drawing_area;
}
else {
- new_area = "normal";
+ if (nullptr == drawing_area) {
+ new_area = "normal";
+ }
+ else if (0 == strcmp("normal.full", drawing_area)) {
+ new_area = "normal";
+ }
+ else if (0 == strcmp("restriction.split.sub", drawing_area)) {
+ new_area = "restriction.split.sub";
+ }
+ else if (0 == strcmp("homescreen", new_role)) {
+ // Now homescreen specifies "normalfull"
+ new_area = "full";
+ }
+ else {
+ new_area = "normal";
+ }
}
HMI_DEBUG("wm", "drawing_area:%s, new_area: %s", drawing_area, new_area);
}
},
{
"category": "general",
- "role": "launcher | poi | music | video | browser | sdl | settings | mixer | radio | hvac | dashboard | debug",
+ "role": "launcher | poi | music | browser | sdl | settings | mixer | radio | hvac | dashboard | debug",
"area": "normal",
+ "description": "For ALS, role:video is moved to category:splitable",
},
{
"category": "phone",
},
{
"category": "splitable",
- "role": "splitable1 | splitable2",
+ "role": "splitable1 | splitable2 | video",
"area": "normal | split.main | split.sub",
+ "description": "For ALS, role:video is included here",
},
{
"category": "popup",
// },
json_object* json_layer = json_object_new_array();
json_object* json_tmp = json_object_new_object();
+ HMI_DEBUG("wm", "on_screen state (is_changed:%d state:%d:%s)",
+ this->current_state_.layer.on_screen.is_changed,
+ this->current_state_.layer.on_screen.state,
+ stm::gStmLayoutNo2Name[this->current_state_.layer.on_screen.state]);
this->addStateToJson("on_screen",
this->current_state_.layer.on_screen.is_changed,
stm::gStmLayoutNo2Name[this->current_state_.layer.on_screen.state],
// "state": <const char*>
// }
// },
+ HMI_DEBUG("wm", "restriction state (is_changed:%d state:%d:%s)",
+ this->current_state_.layer.restriction.is_changed,
+ this->current_state_.layer.restriction.state,
+ stm::gStmLayoutNo2Name[this->current_state_.layer.restriction.state]);
json_tmp = json_object_new_object();
this->addStateToJson("restriction",
this->current_state_.layer.restriction.is_changed,
// "state": <const char*>
// }
// },
+ HMI_DEBUG("wm", "apps state (is_changed:%d state:%d:%s)",
+ this->current_state_.layer.apps.is_changed,
+ this->current_state_.layer.apps.state,
+ stm::gStmLayoutNo2Name[this->current_state_.layer.apps.state]);
json_tmp = json_object_new_object();
this->addStateToJson("apps",
this->current_state_.layer.apps.is_changed,
// },
// ]
// }
+ HMI_DEBUG("wm", "homescreen state (is_changed:%d state:%d:%s)",
+ this->current_state_.layer.homescreen.is_changed,
+ this->current_state_.layer.homescreen.state,
+ stm::gStmLayoutNo2Name[this->current_state_.layer.homescreen.state]);
json_tmp = json_object_new_object();
this->addStateToJson("homescreen",
this->current_state_.layer.homescreen.is_changed,