* Check Policy
*/
// get current trigger
- auto trigger = app_list->getRequest(req_num);
+ bool found;
bool is_activate = true;
+ auto trigger = app_list->getRequest(req_num, &found);
+ if(!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, errorDescription(err));
+ return err;
+ }
/* get new status from Policy Manager
// layer manager task
bool sync_draw_happen = false;
- for (const auto &y : app_list->getActions(req_num))
+ for (const auto &y : app_list->getActions(req_num, &found))
{
+ if (!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, "%s : Action is not set", errorDescription(err));
+ return err;
+ }
/*
do_task(y);
*/
auto client = app_list->lookUpClient(id);
unsigned srfc = client->surfaceID(role);
- if(srfc != INVALID_SURFACE_ID){
- // remove floating surface
- app_list->removeFloatingSurface(client->surfaceID(role));
+ if(srfc == INVALID_SURFACE_ID){
+ HMI_ERROR("wm", "role should be set with surface");
+ reply("role should be set with surface");
+ return;
}
+ app_list->removeFloatingSurface(client->surfaceID(role));
+
/*
* Queueing Phase
*/
void App::do_enddraw(unsigned req_num)
{
// get actions
- auto actions = app_list->getActions(req_num);
+ bool found;
+ auto actions = app_list->getActions(req_num, &found);
+ if (!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, errorDescription(err));
+ return;
+ }
+
HMI_SEQ_INFO(req_num, "do endDraw");
for (const auto &act : actions)