[UTC][app-manager][Non-ACR][Update test applications] 55/224755/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 13 Feb 2020 01:45:50 +0000 (10:45 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 13 Feb 2020 01:46:59 +0000 (01:46 +0000)
Change-Id: Ie7068d8a48e2987406ccc6a11a173d55614734fa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-arm.tpk
src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-i386.tpk
src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-arm.tpk
src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-i386.tpk
src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-arm.tpk
src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-i386.tpk
src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-arm.tpk
src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-i386.tpk
src/utc/app-manager/utc-app-manager.c

index c8f257f02e367f89e1b94f35ac7f21ba808e68ae..fe6dbafa6d3678f73a2934b6ddbe6b96730ff916 100755 (executable)
Binary files a/src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-arm.tpk and b/src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-arm.tpk differ
index 6c58ed8444465953e1c9df05769f90063051ace6..db23ba3b32cc2bc9428deb8ec2d89649aa9a5085 100755 (executable)
Binary files a/src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-i386.tpk and b/src/utc/app-manager/res/mobile/org.tizen.helloworld2-1.0.0-i386.tpk differ
index c8f257f02e367f89e1b94f35ac7f21ba808e68ae..fe6dbafa6d3678f73a2934b6ddbe6b96730ff916 100755 (executable)
Binary files a/src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-arm.tpk and b/src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-arm.tpk differ
index 6c58ed8444465953e1c9df05769f90063051ace6..db23ba3b32cc2bc9428deb8ec2d89649aa9a5085 100644 (file)
Binary files a/src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-i386.tpk and b/src/utc/app-manager/res/tizeniot/org.tizen.helloworld2-1.0.0-i386.tpk differ
index c8f257f02e367f89e1b94f35ac7f21ba808e68ae..fe6dbafa6d3678f73a2934b6ddbe6b96730ff916 100755 (executable)
Binary files a/src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-arm.tpk and b/src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-arm.tpk differ
index 6c58ed8444465953e1c9df05769f90063051ace6..db23ba3b32cc2bc9428deb8ec2d89649aa9a5085 100755 (executable)
Binary files a/src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-i386.tpk and b/src/utc/app-manager/res/tv/org.tizen.helloworld2-1.0.0-i386.tpk differ
index c8f257f02e367f89e1b94f35ac7f21ba808e68ae..fe6dbafa6d3678f73a2934b6ddbe6b96730ff916 100755 (executable)
Binary files a/src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-arm.tpk and b/src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-arm.tpk differ
index 6c58ed8444465953e1c9df05769f90063051ace6..db23ba3b32cc2bc9428deb8ec2d89649aa9a5085 100755 (executable)
Binary files a/src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-i386.tpk and b/src/utc/app-manager/res/wearable/org.tizen.helloworld2-1.0.0-i386.tpk differ
index 9629d9fa1ce4475caa8b89919be68a19c3f574f1..8ea99d73aede9f9ccd2c27b1edf5f226256db989 100755 (executable)
@@ -2811,8 +2811,10 @@ int utc_app_manager_request_terminate_bg_app_n(void)
 
 static gboolean unset_app_context_event_cb(gpointer user_data)
 {
+       dlog_print(DLOG_INFO, "NativeTCT", "START");
        app_manager_unset_app_context_event_cb();
        normal_exit(0);
+       dlog_print(DLOG_INFO, "NativeTCT", "END");
 
        return FALSE;
 }
@@ -2820,12 +2822,29 @@ static gboolean unset_app_context_event_cb(gpointer user_data)
 static void app_context_event_cb(app_context_h app_context, app_context_event_e event, void *user_data)
 {
        char *str = (char *)user_data;
-       if (str == NULL)
+       bool touched = false;
+
+       dlog_print(DLOG_INFO, "NativeTCT", "START");
+       if (str == NULL) {
                normal_exit(1);
+               return;
+       }
 
-       if (str && ((event == APP_CONTEXT_EVENT_LAUNCHED && !strcmp(str, "launched"))
-                       || (event == APP_CONTEXT_EVENT_TERMINATED && !strcmp(str, "terminated"))))
+       if (event == APP_CONTEXT_EVENT_LAUNCHED) {
+               if (!strcmp(str, "launched"))
+                       touched = true;
+       } else if (event == APP_CONTEXT_EVENT_TERMINATED) {
+               if (!strcmp(str, "terminate"))
+                       touched = true;
+       }
+
+       if (touched) {
+               dlog_print(DLOG_INFO, "NativeTCT",
+                               "Deregister app_context_event_cb()");
                g_idle_add(unset_app_context_event_cb, NULL);
+       }
+
+       dlog_print(DLOG_INFO, "NativeTCT", "END");
 }
 
 /**