Add lcov exception for deprecated APIs 93/296393/1 accepted/tizen/unified/20230728.155759
authorminje.ahn <minje.ahn@samsung.com>
Thu, 27 Jul 2023 01:54:56 +0000 (10:54 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Thu, 27 Jul 2023 01:54:56 +0000 (10:54 +0900)
Change-Id: Iad75bf82502eb35daa0b886e707c2a6fbc5b42d7
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
src/media_face.c
src/media_image.c
src/media_info.c

index 46e5b51..fdcbe15 100755 (executable)
@@ -18,7 +18,7 @@
 #include <media_info_private.h>
 
 #define MAX_SIZE 16
-
+// LCOV_EXCL_START
 static int __media_face_check_media_id(const char *media_id)
 {
        int ret = MEDIA_CONTENT_ERROR_NONE;
@@ -337,3 +337,4 @@ int media_face_foreach_face_from_db(filter_h filter, media_face_cb callback, voi
 
        return _media_db_get_face(NULL, filter, callback, user_data);
 }
+// LCOV_EXCL_STOP
\ No newline at end of file
index e3f8788..592a2a3 100755 (executable)
@@ -114,7 +114,7 @@ int image_meta_get_date_taken(image_meta_h image, char **date_taken)
 
        return MEDIA_CONTENT_ERROR_NONE;
 }
-
+// LCOV_EXCL_START
 int image_meta_get_exposure_time(image_meta_h image, char **exposure_time)
 {
        content_warn("DEPRECATION WARNING: image_meta_get_exposure_time() is deprecated and will be removed from next release.");
@@ -166,3 +166,4 @@ int image_meta_get_model(image_meta_h image, char **model)
 
        return MEDIA_CONTENT_ERROR_NONE;
 }
+// LCOV_EXCL_STOP
\ No newline at end of file
index 9dbd993..95ce20f 100644 (file)
@@ -21,7 +21,6 @@
 #include <system_info.h>
 
 static void __media_info_insert_completed_cb(media_request_result_s *result, void *user_data);
-static void __media_info_face_completed_cb(int error, const int face_count, void *user_data);
 static int __media_info_insert_batch(const char **path_array, unsigned int array_length, media_insert_completed_cb completed_cb, void *user_data);
 static int __media_info_check_file_validity(const char *path);
 
@@ -50,7 +49,7 @@ static void __media_info_insert_completed_cb(media_request_result_s *result, voi
 
        return;
 }
-
+// LCOV_EXCL_START
 static bool __media_info_isFaceRecognition_feature_supported(void)
 {
        bool isFaceRecognitionSupported = false;
@@ -82,7 +81,7 @@ static void __media_info_face_completed_cb(int error, const int face_count, void
 
        return;
 }
-
+// LCOV_EXCL_STOP
 static int __media_info_insert_batch(const char **path_array,
                                        unsigned int array_length,
                                        media_insert_completed_cb completed_cb,
@@ -737,7 +736,7 @@ int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, m
 
        return _media_db_get_bookmark(media_id, filter, callback, user_data);
 }
-
+// LCOV_EXCL_START
 int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count)
 {
        content_warn("DEPRECATION WARNING: media_info_get_face_count_from_db() is deprecated and will be removed from next release.");
@@ -755,7 +754,7 @@ int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media
 
        return _media_db_get_face(media_id, filter, callback, user_data);
 }
-
+// LCOV_EXCL_STOP
 int media_info_get_image(media_info_h media, image_meta_h *image)
 {
        int ret = MEDIA_CONTENT_ERROR_NONE;
@@ -1435,7 +1434,7 @@ int media_info_generate_thumbnail(media_info_h media)
 
        return ret;
 }
-
+// LCOV_EXCL_START
 int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data)
 {
        content_warn("DEPRECATION WARNING: media_info_start_face_detection() is deprecated and will be removed from next release.");
@@ -1490,3 +1489,4 @@ int media_info_cancel_face_detection(media_info_h media)
        ret = dcm_request_cancel_face(_media->face_request_id);
        return _content_error_capi(ret);
 }
+// LCOV_EXCL_STOP
\ No newline at end of file