[ITC][ACR-932][app-manager][Added new property for app info filter]
authornibha.sharma <nibha.sharma@samsung.com>
Mon, 1 May 2017 11:46:58 +0000 (17:16 +0530)
committerNibha Sharma <nibha.sharma@samsung.com>
Wed, 10 May 2017 05:47:08 +0000 (05:47 +0000)
Change-Id: I81caf671a8860ea76b4e802fdaa7775ac3916cdc
Signed-off-by: nibha.sharma <nibha.sharma@samsung.com>
src/itc/app-manager/ITs-app-manager-info.c

index cb98fe909724ee1e6e6e6d8b4d3f5958a820d5de..4a603812ed6b219fb3f9c3f2326fbbf47b3a6567 100755 (executable)
@@ -287,7 +287,13 @@ int ITc_app_manager_app_info_filter_foreach_appinfo_p(void)
        nRet = app_info_filter_add_string(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_TYPE, "capp");
        PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_string", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
 
-       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_NODISPLAY, 1);
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_NODISPLAY, true);
+       PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
+
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_TASKMANAGE, true);
+       PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
+
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_DISABLED, false);
        PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
 
        // Target API
@@ -404,7 +410,15 @@ int ITc_app_manager_app_info_filter_add_string_bool_count_p(void)
        PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_string", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
 
        //Target API
-       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_NODISPLAY, 1);
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_NODISPLAY, true);
+       PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
+
+       //Target API
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_TASKMANAGE, true);
+       PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
+
+       //Target API
+       nRet = app_info_filter_add_bool(pstAppInfoFilterHandle, PACKAGE_INFO_PROP_APP_DISABLED, false);
        PRINT_RESULT_CLEANUP(APP_MANAGER_ERROR_NONE, nRet, "app_info_filter_add_bool", AppManagerGetError(nRet), app_info_filter_destroy(pstAppInfoFilterHandle));
 
        // Target API