Change-Id: I4f4e714d2aeea4b7cca95495293aab88b97fc2ca
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
g_app_list.reqDump();
if (g_app_list.haveRequest())
{
g_app_list.reqDump();
if (g_app_list.haveRequest())
{
- this->process_request();
+ this->processRequest();
this->display->flush();
}
this->display->flush();
}
{
HMI_SEQ_DEBUG(g_app_list.currentRequestNumber(), "Timer set activate");
if (g_timer_ev_src == nullptr)
{
HMI_SEQ_DEBUG(g_app_list.currentRequestNumber(), "Timer set activate");
if (g_timer_ev_src == nullptr)
{
unsigned req_num = g_app_list.currentRequestNumber();
HMI_SEQ_DEBUG(req_num, "Timer stop");
{
unsigned req_num = g_app_list.currentRequestNumber();
HMI_SEQ_DEBUG(req_num, "Timer stop");
return WMError::SUCCESS;
}
return WMError::SUCCESS;
}
-WMError App::do_transition(unsigned req_num)
+WMError App::doTransition(unsigned req_num)
{
HMI_SEQ_DEBUG(req_num, "check next state");
{
HMI_SEQ_DEBUG(req_num, "check next state");
- WMError ret = this->check_policy(req_num);
+ WMError ret = this->checkPolicy(req_num);
if (ret != WMError::SUCCESS)
{
return ret;
}
HMI_SEQ_DEBUG(req_num, "Start transition.");
if (ret != WMError::SUCCESS)
{
return ret;
}
HMI_SEQ_DEBUG(req_num, "Start transition.");
- ret = this->start_transition(req_num);
+ ret = this->startTransition(req_num);
-WMError App::check_policy(unsigned req_num)
+WMError App::checkPolicy(unsigned req_num)
-WMError App::start_transition(unsigned req_num)
+WMError App::startTransition(unsigned req_num)
{
bool sync_draw_happen = false;
bool found = false;
{
bool sync_draw_happen = false;
bool found = false;
-WMError App::set_request(const std::string& appid, const std::string &role, const std::string &area,
+WMError App::setRequest(const std::string& appid, const std::string &role, const std::string &area,
Task task, unsigned* req_num)
{
if (!g_app_list.contains(appid))
Task task, unsigned* req_num)
{
if (!g_app_list.contains(appid))
unsigned req_num = 0;
WMError ret = WMError::UNKNOWN;
unsigned req_num = 0;
WMError ret = WMError::UNKNOWN;
- ret = this->set_request(id, role, area, task, &req_num);
+ ret = this->setRequest(id, role, area, task, &req_num);
if(ret != WMError::SUCCESS)
{
if(ret != WMError::SUCCESS)
{
/*
* Do allocate tasks
*/
/*
* Do allocate tasks
*/
- ret = this->do_transition(req_num);
+ ret = this->doTransition(req_num);
if (ret != WMError::SUCCESS)
{
if (ret != WMError::SUCCESS)
{
/*
* Do allocate tasks
*/
/*
* Do allocate tasks
*/
- WMError ret = this->do_transition(new_req);
+ WMError ret = this->doTransition(new_req);
if (ret != WMError::SUCCESS)
{
if (ret != WMError::SUCCESS)
{
} while (!g_app_list.requestFinished());*/
}
} while (!g_app_list.requestFinished());*/
}
-void App::process_request()
+void App::processRequest()
{
unsigned req = g_app_list.currentRequestNumber();
HMI_SEQ_DEBUG(req, "Do next request");
{
unsigned req = g_app_list.currentRequestNumber();
HMI_SEQ_DEBUG(req, "Do next request");
- WMError rc = do_transition(req);
+ WMError rc = doTransition(req);
if(rc != WMError::SUCCESS){
HMI_SEQ_ERROR(req, errorDescription(rc));
}
if(rc != WMError::SUCCESS){
HMI_SEQ_ERROR(req, errorDescription(rc));
}
if (g_app_list.endDrawFullfilled(current_req))
{
// do task for endDraw
if (g_app_list.endDrawFullfilled(current_req))
{
// do task for endDraw
this->do_enddraw(current_req);
this->do_enddraw(current_req);
g_app_list.removeRequest(current_req);
HMI_SEQ_INFO(current_req, "Finish request");
g_app_list.next();
if (g_app_list.haveRequest())
{
g_app_list.removeRequest(current_req);
HMI_SEQ_INFO(current_req, "Finish request");
g_app_list.next();
if (g_app_list.haveRequest())
{
- this->process_request();
+ this->processRequest();
void emit_invisible(char const *label);
void emit_visible(char const *label);
void emit_invisible(char const *label);
void emit_visible(char const *label);
- WMError set_request(const std::string &appid, const std::string &role, const std::string &area,
+ WMError setRequest(const std::string &appid, const std::string &role, const std::string &area,
Task task, unsigned *req_num);
Task task, unsigned *req_num);
- WMError do_transition(unsigned sequence_number);
- WMError check_policy(unsigned req_num);
- WMError start_transition(unsigned req_num);
+ WMError doTransition(unsigned sequence_number);
+ WMError checkPolicy(unsigned req_num);
+ WMError startTransition(unsigned req_num);
+ void setTimer();
+ void stopTimer();
+ void processRequest();
void do_enddraw(unsigned req_num);
void do_enddraw(unsigned req_num);
- void process_request();
- void set_timer();
- void stop_timer();
const char *check_surface_exist(const char *drawing_name);
void activate(int id);
const char *check_surface_exist(const char *drawing_name);
void activate(int id);