return false;
}
+static bool __is_launch_request(int cmd)
+{
+ switch (cmd) {
+ case APP_OPEN:
+ case APP_RESUME:
+ case APP_RESUME_BY_PID:
+ case APP_START:
+ case APP_START_RES:
+ case APP_START_ASYNC:
+ case APP_START_RES_ASYNC:
+ case APP_SEND_LAUNCH_REQUEST:
+ case APP_SEND_LAUNCH_REQUEST_SYNC:
+ case APP_SEND_RESUME_REQUEST:
+ return true;
+ default:
+ return false;
+ }
+}
+
static gboolean __timeout_handler(gpointer data)
{
pid_t pid = GPOINTER_TO_INT(data);
}
_W("Application(%d) Not Responding. cmd(%d)", pid, cmd);
+ if (!__is_launch_request(cmd))
+ return G_SOURCE_REMOVE;
+
if (__can_ignore_anr_policy(app_status)) {
_W("Ignore ANR policy. pid(%d)", pid);
return G_SOURCE_REMOVE;