summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSukHyung, Kang <shine.kang@samsung.com>2016-07-08 16:23:25 +0900
committerSukHyung, Kang <shine.kang@samsung.com>2016-07-08 16:23:25 +0900
commit03f27e0ba2244bcb948aa9d2b153e04beb57169b (patch)
treeda1741b472b98959d22eb0b7eae74549c055cc40
parente8a1cdcdef1548f8e53a1c7f91a9b2cd9ed165be (diff)
downloadappcore-agent-03f27e0ba2244bcb948aa9d2b153e04beb57169b.tar.gz
appcore-agent-03f27e0ba2244bcb948aa9d2b153e04beb57169b.tar.bz2
appcore-agent-03f27e0ba2244bcb948aa9d2b153e04beb57169b.zip
Change-Id: I955bec5a0486910429bc31425b05416a2a181474 Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
-rw-r--r--src/appcore-agent.c18
-rw-r--r--src/service_app_main.c2
2 files changed, 20 insertions, 0 deletions
diff --git a/src/appcore-agent.c b/src/appcore-agent.c
index f9d019b..033c70c 100644
--- a/src/appcore-agent.c
+++ b/src/appcore-agent.c
@@ -273,6 +273,7 @@ static guint __suspend_dbus_handler_initialized = 0;
extern int app_control_create_event(bundle *data, struct app_control_s **app_control);
static int __sys_do(struct agent_appcore *ac, void *event_info, enum sys_event event);
+/* LCOV_EXCL_START */
static int appcore_agent_flush_memory(void)
{
int (*flush_fn) (int);
@@ -291,7 +292,9 @@ static int appcore_agent_flush_memory(void)
return 0;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static int _appcore_agent_request_to_suspend(int pid)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -330,7 +333,9 @@ static int _appcore_agent_request_to_suspend(int pid)
#endif
return 0;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __prepare_to_suspend(void *data)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -345,7 +350,9 @@ static void __prepare_to_suspend(void *data)
}
#endif
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __exit_from_suspend(void *data)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -359,7 +366,9 @@ static void __exit_from_suspend(void *data)
}
#endif
}
+/* LCOV_EXCL_START */
+/* LCOV_EXCL_START */
static gboolean __flush_memory(gpointer data)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -377,14 +386,18 @@ static gboolean __flush_memory(gpointer data)
#endif
return FALSE;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __add_suspend_timer(struct agent_appcore *ac)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
ac->tid = g_timeout_add_seconds(5, __flush_memory, ac);
#endif
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __remove_suspend_timer(struct agent_appcore *ac)
{
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
@@ -394,6 +407,7 @@ static void __remove_suspend_timer(struct agent_appcore *ac)
}
#endif
}
+/* LCOV_EXCL_STOP */
static void __exit_loop(void *data)
{
@@ -470,6 +484,7 @@ static int __agent_request(void *data, bundle * k)
return 0;
}
+/* LCOV_EXCL_START */
static int __agent_terminate(void *data)
{
struct agent_appcore *ac = data;
@@ -481,6 +496,7 @@ static int __agent_terminate(void *data)
return 0;
}
+/* LCOV_EXCL_STOP */
static int __sys_do_default(struct agent_appcore *ac, enum sys_event event)
{
@@ -1029,6 +1045,7 @@ EXPORT_API int appcore_agent_main(int argc, char **argv,
return 0;
}
+/* LCOV_EXCL_START */
#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
static void __suspend_dbus_signal_handler(GDBusConnection *connection,
const gchar *sender_name,
@@ -1055,6 +1072,7 @@ static void __suspend_dbus_signal_handler(GDBusConnection *connection,
}
}
}
+/* LCOV_EXCL_STOP */
int _appcore_agent_init_suspend_dbus_handler(void *data)
{
diff --git a/src/service_app_main.c b/src/service_app_main.c
index 24afe8f..de9c8f1 100644
--- a/src/service_app_main.c
+++ b/src/service_app_main.c
@@ -209,6 +209,7 @@ static int _service_app_region_changed(void *event_info, void *data)
return APP_ERROR_NONE;
}
+/* LCOV_EXCL_START */
static int _service_app_appcore_suspended_state_changed(void *event_info, void *data)
{
Eina_List *l;
@@ -227,6 +228,7 @@ static int _service_app_appcore_suspended_state_changed(void *event_info, void *
return APP_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
static void _service_app_appcore_agent_set_event_cb(app_event_type_e event_type)
{