[ITC][media-content][ACR-1129][Added feature support for required apis]
authorAmritanshu Pandia <a.pandia1@samsung.com>
Wed, 18 Jul 2018 10:10:39 +0000 (15:40 +0530)
committerAmritanshu Pandia <a.pandia1@samsung.com>
Thu, 19 Jul 2018 09:17:16 +0000 (14:47 +0530)
Change-Id: Ia51791df3dce8b93606c1c200dcb62d94542d2f1
Signed-off-by: Amritanshu Pandia <a.pandia1@samsung.com>
14 files changed:
src/itc/media-content/ITs-media-content-album.c
src/itc/media-content/ITs-media-content-audio-meta.c
src/itc/media-content/ITs-media-content-bookmark.c
src/itc/media-content/ITs-media-content-common.h
src/itc/media-content/ITs-media-content-face.c
src/itc/media-content/ITs-media-content-folder.c
src/itc/media-content/ITs-media-content-group.c
src/itc/media-content/ITs-media-content-image-meta.c
src/itc/media-content/ITs-media-content-info.c
src/itc/media-content/ITs-media-content-playlist.c
src/itc/media-content/ITs-media-content-storage.c
src/itc/media-content/ITs-media-content-tag.c
src/itc/media-content/ITs-media-content-video-meta.c
src/itc/media-content/ITs-media-content.c

index ecd8683..8d8d64d 100755 (executable)
@@ -89,6 +89,12 @@ void ITs_media_content_album_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -97,6 +103,19 @@ void ITs_media_content_album_startup(void)
        AppendPaths(g_szInternalStoragePath, TESTAUDIO, g_szAudioPath);
 
        nRet = media_content_scan_file(g_szAudioPath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        g_CallBackHit = false;
@@ -117,7 +136,7 @@ void ITs_media_content_album_startup(void)
  */
 void ITs_media_content_album_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_album_destroy(g_hAlbum);
                media_content_disconnect();
@@ -149,7 +168,7 @@ void ITs_media_content_album_cleanup(void)
 //& type: auto
 int ITc_media_album_get_album_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_album_get_album_count_from_db(NULL, &nCount);
@@ -177,7 +196,7 @@ int ITc_media_album_get_album_count_from_db_p(void)
 //& type: auto
 int ITc_media_album_foreach_album_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_album_destroy(g_hAlbum);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_album_destroy", MediaContentGetError(nRet));
@@ -210,7 +229,7 @@ int ITc_media_album_foreach_album_from_db_p(void)
 //& type: auto
 int ITc_media_album_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_album_h hAlbum = NULL;
        int nRet = media_album_clone(&hAlbum, g_hAlbum);
@@ -241,7 +260,7 @@ int ITc_media_album_clone_destroy_p(void)
 //& type: auto
 int ITc_media_album_get_album_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nAlbumId = -1;
        int nRet = media_album_get_album_id(g_hAlbum, &nAlbumId);
@@ -269,7 +288,7 @@ int ITc_media_album_get_album_id_p(void)
 //& type: auto
 int ITc_media_album_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nAlbumId = -1;
        int nRet = media_album_get_album_id(g_hAlbum, &nAlbumId);
@@ -302,7 +321,7 @@ int ITc_media_album_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_album_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nAlbumId = -1;
        int nRet = media_album_get_album_id(g_hAlbum, &nAlbumId);
@@ -336,7 +355,7 @@ int ITc_media_album_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_album_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbumInfo = NULL;
        int nRet = media_album_get_name(g_hAlbum, &pszAlbumInfo);
@@ -365,7 +384,7 @@ int ITc_media_album_get_name_p(void)
 //& type: auto
 int ITc_media_album_get_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbumInfo = NULL;
        int nRet = media_album_get_artist(g_hAlbum, &pszAlbumInfo);
@@ -394,7 +413,7 @@ int ITc_media_album_get_artist_p(void)
 //& type: auto
 int ITc_media_album_get_album_art_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbumInfo = NULL;
        int nRet = media_album_get_album_art(g_hAlbum, &pszAlbumInfo);
@@ -423,7 +442,7 @@ int ITc_media_album_get_album_art_p(void)
 //& type: auto
 int ITc_media_album_get_album_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nAlbumId = -1;
        int nRet = media_album_get_album_id(g_hAlbum, &nAlbumId);
index 67a7447..2729a61 100755 (executable)
@@ -38,6 +38,12 @@ void ITs_media_content_audio_meta_startup(void)
 
        char *pszMediaId = NULL;
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -48,6 +54,19 @@ void ITs_media_content_audio_meta_startup(void)
        PRINT_RESULTNONE_CLEANUP(0, nRet, "GetFolderPath", "Return Value Not Correct", media_content_disconnect());
        AppendPaths(g_szAudioFolder, TESTAUDIO, g_szAudioPath);
        nRet = media_info_insert_to_db(g_szAudioPath, &g_hAudioInfo);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
        nRet = media_info_get_media_id(g_hAudioInfo, &pszMediaId);
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_get_media_id", MediaContentGetError(nRet), media_content_disconnect());
@@ -79,7 +98,7 @@ void ITs_media_content_audio_meta_cleanup(void)
                media_info_delete_from_db(g_szAudioId);
                media_info_destroy(g_hAudioInfo);
        }
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_content_disconnect();
        }
@@ -110,7 +129,7 @@ void ITs_media_content_audio_meta_cleanup(void)
 //& type: auto
 int ITc_audio_meta_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        audio_meta_h hAudioMeta = NULL;
        int nRet = audio_meta_clone(&hAudioMeta, g_hAudioMeta);
@@ -141,7 +160,7 @@ int ITc_audio_meta_clone_destroy_p(void)
 //& type: auto
 int ITc_audio_meta_set_get_played_count_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSetPlayedCount = 4;
        int nGetPlayedCount = 1;
@@ -174,7 +193,7 @@ int ITc_audio_meta_set_get_played_count_p(void)
 //& type: auto
 int ITc_audio_meta_set_get_played_position_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSetPlayedPosition = 4;
        int nGetPlayedPosition = 1;
@@ -207,7 +226,7 @@ int ITc_audio_meta_set_get_played_position_p(void)
 //& type: auto
 int ITc_audio_meta_set_get_played_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stGetTime = {0};
        time_t stSetTime = {0};
@@ -241,7 +260,7 @@ int ITc_audio_meta_set_get_played_time_p(void)
 //& type: auto
 int ITc_audio_meta_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = audio_meta_update_to_db(g_hAudioMeta);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "audio_meta_update_to_db", MediaContentGetError(nRet));
@@ -267,7 +286,7 @@ int ITc_audio_meta_update_to_db_p(void)
 //& type: auto
 int ITc_audio_meta_get_album_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbum = NULL;
        int nRet = audio_meta_get_album(g_hAudioMeta, &pszAlbum);
@@ -296,7 +315,7 @@ int ITc_audio_meta_get_album_p(void)
 //& type: auto
 int ITc_audio_meta_get_album_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbumArtist = NULL;
        int nRet = audio_meta_get_album_artist(g_hAudioMeta, &pszAlbumArtist);
@@ -325,7 +344,7 @@ int ITc_audio_meta_get_album_artist_p(void)
 //& type: auto
 int ITc_audio_meta_get_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszArtist = NULL;
        int nRet = audio_meta_get_artist(g_hAudioMeta, &pszArtist);
@@ -354,7 +373,7 @@ int ITc_audio_meta_get_artist_p(void)
 //& type: auto
 int ITc_audio_meta_get_bit_rate_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nBitRate = 0;
        int nRet = audio_meta_get_bit_rate(g_hAudioMeta, &nBitRate);
@@ -382,7 +401,7 @@ int ITc_audio_meta_get_bit_rate_p(void)
 //& type: auto
 int ITc_audio_meta_get_bitpersample_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nBitpersample = 0;
        int nRet = audio_meta_get_bitpersample(g_hAudioMeta, &nBitpersample);
@@ -410,7 +429,7 @@ int ITc_audio_meta_get_bitpersample_p(void)
 //& type: auto
 int ITc_audio_meta_get_channel_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nChannel = 0;
        int nRet = audio_meta_get_channel(g_hAudioMeta, &nChannel);
@@ -438,7 +457,7 @@ int ITc_audio_meta_get_channel_p(void)
 //& type: auto
 int ITc_audio_meta_get_composer_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszComposer = NULL;
        int nRet = audio_meta_get_composer(g_hAudioMeta, &pszComposer);
@@ -467,7 +486,7 @@ int ITc_audio_meta_get_composer_p(void)
 //& type: auto
 int ITc_audio_meta_get_copyright_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszCopyright = NULL;
        int nRet = audio_meta_get_copyright(g_hAudioMeta, &pszCopyright);
@@ -496,7 +515,7 @@ int ITc_audio_meta_get_copyright_p(void)
 //& type: auto
 int ITc_audio_meta_get_duration_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nDuration = 0;
        int nRet = audio_meta_get_duration(g_hAudioMeta, &nDuration);
@@ -524,7 +543,7 @@ int ITc_audio_meta_get_duration_p(void)
 //& type: auto
 int ITc_audio_meta_get_genre_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszGenre = NULL;
        int nRet = audio_meta_get_genre(g_hAudioMeta, &pszGenre);
@@ -553,7 +572,7 @@ int ITc_audio_meta_get_genre_p(void)
 //& type: auto
 int ITc_audio_meta_get_media_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszMediaId = NULL;
        int nRet = audio_meta_get_media_id(g_hAudioMeta, &pszMediaId);
@@ -582,7 +601,7 @@ int ITc_audio_meta_get_media_id_p(void)
 //& type: auto
 int ITc_audio_meta_get_recorded_date_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszRecordedDate = NULL;
        int nRet = audio_meta_get_recorded_date(g_hAudioMeta, &pszRecordedDate);
@@ -611,7 +630,7 @@ int ITc_audio_meta_get_recorded_date_p(void)
 //& type: auto
 int ITc_audio_meta_get_sample_rate_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSampleRate = 0;
        int nRet = audio_meta_get_sample_rate(g_hAudioMeta, &nSampleRate);
@@ -639,7 +658,7 @@ int ITc_audio_meta_get_sample_rate_p(void)
 //& type: auto
 int ITc_audio_meta_get_track_num_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszTrackNum = NULL;
        int nRet = audio_meta_get_track_num(g_hAudioMeta, &pszTrackNum);
@@ -668,7 +687,7 @@ int ITc_audio_meta_get_track_num_p(void)
 //& type: auto
 int ITc_audio_meta_get_year_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszYear = NULL;
        int nRet = audio_meta_get_year(g_hAudioMeta, &pszYear);
index ed2ae3c..648bbcc 100755 (executable)
@@ -94,6 +94,12 @@ void ITs_media_content_bookmark_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -105,6 +111,19 @@ void ITs_media_content_bookmark_startup(void)
        AppendPaths(g_szImageFolder, BOOKMARKIMAGE, g_szImagePath);
 
        nRet = media_content_scan_file(g_szImagePath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        nRet = GetFolderPath(STORAGE_DIRECTORY_VIDEOS, g_szVideoFolder);
@@ -146,7 +165,7 @@ void ITs_media_content_bookmark_startup(void)
  */
 void ITs_media_content_bookmark_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_bookmark_delete_from_db(g_nBookmarkId);
                media_bookmark_destroy(g_hBookmark);
@@ -179,7 +198,7 @@ void ITs_media_content_bookmark_cleanup(void)
 //& type: auto
 int ITc_media_bookmark_get_bookmark_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_bookmark_get_bookmark_count_from_db(NULL, &nCount);
@@ -207,7 +226,7 @@ int ITc_media_bookmark_get_bookmark_count_from_db_p(void)
 //& type: auto
 int ITc_media_bookmark_get_bookmark_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nBookmarkId = -1;
        int nRet = media_bookmark_get_bookmark_id(g_hBookmark, &nBookmarkId);
@@ -235,7 +254,7 @@ int ITc_media_bookmark_get_bookmark_id_p(void)
 //& type: auto
 int ITc_media_bookmark_get_thumbnail_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszBookmarkInfo = NULL;
        int nRet = media_bookmark_get_thumbnail_path(g_hBookmark, &pszBookmarkInfo);
@@ -264,7 +283,7 @@ int ITc_media_bookmark_get_thumbnail_path_p(void)
 //& type: auto
 int ITc_media_bookmark_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_bookmark_h hBookmark = NULL;
        int nRet = media_bookmark_clone(&hBookmark, g_hBookmark);
@@ -295,7 +314,7 @@ int ITc_media_bookmark_clone_destroy_p(void)
 //& type: auto
 int ITc_media_bookmark_get_marked_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        time_t stTime = {0};
 
        int nRet = media_bookmark_get_marked_time(g_hBookmark, &stTime);
@@ -323,7 +342,7 @@ int ITc_media_bookmark_get_marked_time_p(void)
 //& type: auto
 int ITc_media_bookmark_insert_delete_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_bookmark_delete_from_db(g_nBookmarkId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_bookmark_delete_from_db", MediaContentGetError(nRet));
@@ -367,7 +386,7 @@ int ITc_media_bookmark_insert_delete_from_db_p(void)
 
 int ITc_media_bookmark_set_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszBookMarkGetName = NULL;
        const char *pszBookMarkSetName = "test_name";
@@ -415,7 +434,7 @@ int ITc_media_bookmark_set_get_name_p(void)
 
 int ITc_media_bookmark_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = MEDIA_CONTENT_ERROR_NONE;
 
@@ -444,7 +463,7 @@ int ITc_media_bookmark_update_to_db_p(void)
 
 int ITc_media_bookmark_foreach_bookmark_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = -1;
        filter_h hFilter = NULL;
index 14f69cc..82c8378 100755 (executable)
@@ -71,6 +71,8 @@
 #define TESTGENRE                                      "COMEDY"
 #define DATE                                           "21OCT"
 #define FACE_DETECTION "http://tizen.org/feature/vision.face_recognition"
+#define SCAN_FEATURE   "http://tizen.org/feature/content.scanning.others"
+
 
 #define START_TEST {\
        FPRINTF("Starting test : %s\\n",__FUNCTION__);\
        }\
 }
 
+bool g_bIsScanFeatureSupported;
+bool g_bIsScanFeatureNotSupported;
+bool g_bScanFeatureMismatch;
+
+#define START_TEST_PLAYLIST {\
+       FPRINTF("[Line : %d][%s] Starting test : %s\\n", __LINE__, API_NAMESPACE, __FUNCTION__);\
+       if ( !g_bMediaContentStartup )\
+       {\
+               FPRINTF("[Line : %d][%s] Precondition of Media-Content failed so leaving test\\n",__LINE__, API_NAMESPACE);\
+               return 1;\
+       }\
+       if ( g_bScanFeatureMismatch )\
+       {\
+               FPRINTF("[Line : %d][%s] Feature support as returned and error code as returned by media_content_scan_file() mismatched, Leaving test\\n", __LINE__, API_NAMESPACE);\
+               return 1;\
+       }\
+       else if ( g_bIsScanFeatureNotSupported )\
+       {\
+               FPRINTF("[Line : %d][%s] Content scanning others feature not supported, Leaving test\\n", __LINE__, API_NAMESPACE);\
+               return 0;\
+       }\
+}
+
 #define CHECK_HANDLE_CLEANUP(Handle, API, FreeResource) {\
        if ( Handle == NULL )\
        {\
index 64ce418..72adb60 100755 (executable)
@@ -71,6 +71,12 @@ struct stat stBuff;
 
        char *pszMediaId = NULL;
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -81,6 +87,19 @@ struct stat stBuff;
        PRINT_RESULTNONE_CLEANUP(0, nRet, "GetFolderPath", "Return Value Not Correct", media_content_disconnect());
        AppendPaths(g_szImageFolder, TESTIMAGE, g_szImagePath);
        nRet = media_info_insert_to_db(g_szImagePath, &g_hImageInfo);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_insert_to_db", MediaContentGetError(nRet), media_content_disconnect());
        nRet = media_info_get_media_id(g_hImageInfo, &pszMediaId);
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_get_media_id", MediaContentGetError(nRet), media_content_disconnect());
@@ -108,13 +127,12 @@ struct stat stBuff;
  */
 void ITs_media_content_face_cleanup(void)
 {
-
        if(g_hImageInfo)
        {
                media_face_delete_from_db(g_szImageId);
                media_info_destroy(g_hImageInfo);
        }
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_face_destroy(g_hFace);
                media_content_disconnect();
@@ -146,7 +164,7 @@ void ITs_media_content_face_cleanup(void)
 //& type: auto
 int ITc_media_face_create_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_face_destroy(g_hFace);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_face_destroy", MediaContentGetError(nRet));
@@ -176,7 +194,7 @@ int ITc_media_face_create_destroy_p(void)
 //& type: auto
 int ITc_media_face_clone_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_face_h hFaceHandle = NULL;
        
@@ -205,7 +223,7 @@ int ITc_media_face_clone_p(void)
 //& type: auto
 int ITc_media_face_get_face_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFaceId = NULL;
 
@@ -233,7 +251,7 @@ int ITc_media_face_get_face_id_p(void)
 //& type: auto
 int ITc_media_face_get_media_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        char *pszMediaId = NULL;
        
@@ -262,7 +280,7 @@ int ITc_media_face_get_media_id_p(void)
 //& type: auto
 int ITc_media_face_set_get_face_rect_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        unsigned int rectx = 0,recty = 0,rectw = 0,recth = 0;
        
@@ -293,7 +311,7 @@ int ITc_media_face_set_get_face_rect_p(void)
 //& type: auto
 int ITc_media_face_set_get_orientation_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_content_orientation_e SetOrient = 3;
        media_content_orientation_e GetOrient = 0;
@@ -326,7 +344,7 @@ int ITc_media_face_set_get_orientation_p(void)
 //& type: auto
 int ITc_media_face_set_get_tag_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        char *pszTag = NULL;
        
@@ -360,7 +378,7 @@ int ITc_media_face_set_get_tag_p(void)
 //& type: auto
 int ITc_media_face_insert_to_and_delete_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        char *face_id = NULL;
 
@@ -403,7 +421,7 @@ int ITc_media_face_insert_to_and_delete_from_db_p(void)
 //& type: auto
 int ITc_media_face_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_face_set_face_rect(g_hFace, 20, 22, 70, 70);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_face_set_face_rect", MediaContentGetError(nRet));
@@ -441,7 +459,7 @@ int ITc_media_face_update_to_db_p(void)
 */
 int ITc_media_info_start_cancel_face_detection_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        g_CallBackHit = false;
        
@@ -495,7 +513,7 @@ int ITc_media_info_start_cancel_face_detection_p(void)
 */
 int ITc_media_face_get_face_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = -1;
        int face_cnt = -1;
@@ -533,7 +551,7 @@ int ITc_media_face_get_face_count_from_db_p(void)
 */
 int ITc_media_face_foreach_face_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = -1;
        g_CallBackHit = false;
index 9b45f26..226261e 100755 (executable)
@@ -89,6 +89,12 @@ void ITs_media_content_folder_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -97,6 +103,19 @@ void ITs_media_content_folder_startup(void)
        AppendPaths(g_szInternalStoragePath, FOLDERFILE, g_szFolderFilePath);
 
        nRet = media_content_scan_file(g_szFolderFilePath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        g_CallBackHit = false;
@@ -117,7 +136,7 @@ void ITs_media_content_folder_startup(void)
  */
 void ITs_media_content_folder_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_folder_destroy(g_hFolder);
                media_content_disconnect();
@@ -149,7 +168,7 @@ void ITs_media_content_folder_cleanup(void)
 //& type: auto
 int ITc_media_folder_get_folder_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_folder_get_folder_count_from_db(NULL, &nCount);
@@ -177,7 +196,7 @@ int ITc_media_folder_get_folder_count_from_db_p(void)
 //& type: auto
 int ITc_media_folder_foreach_folder_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_folder_destroy(g_hFolder);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_folder_destroy", MediaContentGetError(nRet));
@@ -210,7 +229,7 @@ int ITc_media_folder_foreach_folder_from_db_p(void)
 //& type: auto
 int ITc_media_folder_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_folder_h hFolder = NULL;
        int nRet = media_folder_clone(&hFolder, g_hFolder);
@@ -241,7 +260,7 @@ int ITc_media_folder_clone_destroy_p(void)
 //& type: auto
 int ITc_media_folder_get_folder_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderId = NULL;
        int nRet = media_folder_get_folder_id(g_hFolder, &pszFolderId);
@@ -270,7 +289,7 @@ int ITc_media_folder_get_folder_id_p(void)
 //& type: auto
 int ITc_media_folder_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderId = NULL;
        int nRet = media_folder_get_folder_id(g_hFolder, &pszFolderId);
@@ -304,7 +323,7 @@ int ITc_media_folder_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_folder_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderId = NULL;
        int nRet = media_folder_get_folder_id(g_hFolder, &pszFolderId);
@@ -339,7 +358,7 @@ int ITc_media_folder_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_folder_set_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszFolderInfo = NULL;
 
        int nRet = media_folder_set_name(g_hFolder, FOLDERNAMEIMG);
@@ -372,7 +391,7 @@ int ITc_media_folder_set_get_name_p(void)
 //& type: auto
 int ITc_media_folder_get_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderInfo = NULL;
        int nRet = media_folder_get_path(g_hFolder, &pszFolderInfo);
@@ -401,7 +420,7 @@ int ITc_media_folder_get_path_p(void)
 //& type: auto
 int ITc_media_folder_get_folder_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderId = NULL;
        int nRet = media_folder_get_folder_id(g_hFolder, &pszFolderId);
@@ -438,7 +457,7 @@ int ITc_media_folder_get_folder_from_db_p(void)
 //& type: auto
 int ITc_media_folder_set_get_order_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        int nFolderInfo = -1;
 
        int nRet = media_folder_set_order(g_hFolder, 1);
@@ -469,7 +488,7 @@ int ITc_media_folder_set_get_order_p(void)
 //& type: auto
 int ITc_media_folder_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_folder_update_to_db(g_hFolder);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_folder_update_to_db", MediaContentGetError(nRet));
@@ -495,7 +514,7 @@ int ITc_media_folder_update_to_db_p(void)
 //& type: auto
 int ITc_media_folder_get_modified_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        time_t stTime = {0};
 
        int nRet = media_folder_get_modified_time(g_hFolder, &stTime);
@@ -523,7 +542,7 @@ int ITc_media_folder_get_modified_time_p(void)
 //& type: auto
 int ITc_media_folder_get_storage_type_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        media_content_storage_e eStorageType = -1;
 
        int nRet = media_folder_get_storage_type(g_hFolder, &eStorageType);
@@ -551,7 +570,7 @@ int ITc_media_folder_get_storage_type_p(void)
 //& type: auto
 int ITc_media_folder_get_storage_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderInfo = NULL;
        int nRet = media_folder_get_storage_id(g_hFolder, &pszFolderInfo);
@@ -580,7 +599,7 @@ int ITc_media_folder_get_storage_id_p(void)
 //& type: auto
 int ITc_media_folder_get_parent_folder_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFolderInfo = NULL;
        int nRet = media_folder_get_parent_folder_id(g_hFolder, &pszFolderInfo);
index 0bea4ea..16abefe 100755 (executable)
@@ -111,6 +111,12 @@ void ITs_media_content_group_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -119,6 +125,19 @@ void ITs_media_content_group_startup(void)
        AppendPaths(g_szInternalStoragePath, TESTAUDIO, g_szAudioPath);
 
        nRet = media_content_scan_file(g_szAudioPath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        g_bMediaContentStartup = true;
@@ -133,7 +152,7 @@ void ITs_media_content_group_startup(void)
  */
 void ITs_media_content_group_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_content_disconnect();
        }
@@ -164,7 +183,7 @@ void ITs_media_content_group_cleanup(void)
 //& type: auto
 int ITc_media_group_get_group_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nEnumCounter = 0;
        int nEnumSize = sizeof(g_eMediaGroup) / sizeof(g_eMediaGroup[0]);
@@ -197,7 +216,7 @@ int ITc_media_group_get_group_count_from_db_p(void)
 //& type: auto
 int ITc_media_group_foreach_group_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nEnumCounter = 0;
        int nEnumSize = sizeof(g_eMediaGroup) / sizeof(g_eMediaGroup[0]);
@@ -240,7 +259,7 @@ int ITc_media_group_foreach_group_from_db_p(void)
 //& type: auto
 int ITc_media_group_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nEnumCounter = 0;
        int nEnumSize = sizeof(g_eMediaGroup) / sizeof(g_eMediaGroup[0]);
@@ -273,7 +292,7 @@ int ITc_media_group_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_group_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nEnumCounter = 0;
        int nEnumSize = sizeof(g_eMediaGroup) / sizeof(g_eMediaGroup[0]);
index f78a087..55fb129 100755 (executable)
@@ -53,6 +53,12 @@ void ITs_media_content_image_meta_startup(void)
 
        char *pszMediaId = NULL;
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -63,6 +69,19 @@ void ITs_media_content_image_meta_startup(void)
        PRINT_RESULTNONE_CLEANUP(0, nRet, "GetFolderPath", "Return Value Not Correct", media_content_disconnect());
        AppendPaths(g_szImageFolder, TESTIMAGE, g_szImagePath);
        nRet = media_info_insert_to_db(g_szImagePath, &g_hImageInfo);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
        nRet = media_info_get_media_id(g_hImageInfo, &pszMediaId);
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_get_media_id", MediaContentGetError(nRet), media_content_disconnect());
@@ -94,7 +113,7 @@ void ITs_media_content_image_meta_cleanup(void)
                media_info_delete_from_db(g_szImageId);
                media_info_destroy(g_hImageInfo);
        }
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_content_disconnect();
        }
@@ -125,7 +144,7 @@ void ITs_media_content_image_meta_cleanup(void)
 //& type: auto
 int ITc_image_meta_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        image_meta_h hImageMeta = NULL;
        int nRet = image_meta_clone(&hImageMeta, g_hImageMeta);
@@ -156,7 +175,7 @@ int ITc_image_meta_clone_destroy_p(void)
 //& type: auto
 int ITc_image_meta_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = image_meta_update_to_db(g_hImageMeta);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "image_meta_update_to_db", MediaContentGetError(nRet));
@@ -182,7 +201,7 @@ int ITc_image_meta_update_to_db_p(void)
 //& type: auto
 int ITc_image_meta_get_media_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszMediaId = NULL;
        int nRet = image_meta_get_media_id(g_hImageMeta, &pszMediaId);
@@ -211,7 +230,7 @@ int ITc_image_meta_get_media_id_p(void)
 //& type: auto
 int ITc_image_meta_get_height_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nHeight = 0;
        int nRet = image_meta_get_height(g_hImageMeta, &nHeight);
@@ -239,7 +258,7 @@ int ITc_image_meta_get_height_p(void)
 //& type: auto
 int ITc_image_meta_get_width_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nWidth = 0;
        int nRet = image_meta_get_width(g_hImageMeta, &nWidth);
@@ -267,7 +286,7 @@ int ITc_image_meta_get_width_p(void)
 //& type: auto
 int ITc_image_meta_get_burst_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszBurstId = NULL;
        int nRet = image_meta_get_burst_id(g_hImageMeta, &pszBurstId);
@@ -295,7 +314,7 @@ int ITc_image_meta_get_burst_id_p(void)
 //& type: auto
 int ITc_image_meta_is_burst_shot_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        bool bIsBurstShot = false;
        int nRet = image_meta_is_burst_shot(g_hImageMeta, &bIsBurstShot);
@@ -326,7 +345,7 @@ int ITc_image_meta_is_burst_shot_p(void)
 //& type: auto
 int ITc_image_meta_get_date_taken_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszDateTaken = NULL;
        int nRet = image_meta_get_date_taken(g_hImageMeta, &pszDateTaken);
@@ -355,7 +374,7 @@ int ITc_image_meta_get_date_taken_p(void)
 //& type: auto
 int ITc_image_meta_set_get_orientation_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = 0;
        int nEnumCounter = 0;
@@ -393,7 +412,7 @@ int ITc_image_meta_set_get_orientation_p(void)
 //& type: auto
 int ITc_image_meta_get_model_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszModel = NULL;
        int nRet = image_meta_get_model(g_hImageMeta, &pszModel);
@@ -422,7 +441,7 @@ int ITc_image_meta_get_model_p(void)
 //& type: auto
 int ITc_image_meta_get_exposure_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszExposureTime = NULL;
        int nRet = image_meta_get_exposure_time(g_hImageMeta, &pszExposureTime);
@@ -451,7 +470,7 @@ int ITc_image_meta_get_exposure_time_p(void)
 //& type: auto
 int ITc_image_meta_get_iso_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nIso = 0;
        int nRet = image_meta_get_iso(g_hImageMeta, &nIso);
@@ -479,7 +498,7 @@ int ITc_image_meta_get_iso_p(void)
 //& type: auto
 int ITc_image_meta_get_fnumber_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        double dFnumber = 0;
        int nRet = image_meta_get_fnumber(g_hImageMeta, &dFnumber);
index 277f77c..018379c 100755 (executable)
@@ -488,6 +488,12 @@ void ITs_media_content_info_startup(void)
        g_hAudioInfo = NULL;
        g_hImageInfo = NULL;
        g_hVideoInfo = NULL;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -498,6 +504,19 @@ void ITs_media_content_info_startup(void)
        PRINT_RESULTNONE_CLEANUP(0, nRet, "GetFolderPath", "Return Value Not Correct", media_content_disconnect());
        AppendPaths(g_szAudioFolder, TESTAUDIO, g_szAudioPath);
        nRet = media_info_insert_to_db(g_szAudioPath, &g_hAudioInfo);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_insert_to_db", MediaContentGetError(nRet), media_content_disconnect());
        nRet = media_info_get_media_id(g_hAudioInfo, &pszMediaId);
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_get_media_id", MediaContentGetError(nRet), media_content_disconnect());
@@ -557,7 +576,7 @@ void ITs_media_content_info_cleanup(void)
                media_info_destroy(g_hVideoInfo);
                g_hVideoInfo = NULL;
        }
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_content_disconnect();
        }
@@ -588,7 +607,7 @@ void ITs_media_content_info_cleanup(void)
 //& type: auto
 int ITc_media_info_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_info_get_media_count_from_db(NULL, &nCount);
@@ -616,7 +635,7 @@ int ITc_media_info_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_info_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        g_CallBackHit = false;
        int nRet = media_info_foreach_media_from_db(NULL, ForeachMediaCb, TESTSTRING);
@@ -645,7 +664,7 @@ int ITc_media_info_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_info_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_info_h hInfo = NULL;
        int nRet = media_info_clone(&hInfo, g_hAudioInfo);
@@ -676,7 +695,7 @@ int ITc_media_info_clone_destroy_p(void)
 //& type: auto
 int ITc_media_info_insert_delete_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszMediaId = NULL;
 
        int nRet = media_info_delete_from_db(g_szAudioId);
@@ -716,7 +735,7 @@ int ITc_media_info_insert_delete_from_db_p(void)
 //& type: auto
 int ITc_media_info_create_get_thumbnail_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszThumbNailPath = NULL;
 
        g_CallBackHit = false;
@@ -751,7 +770,7 @@ int ITc_media_info_create_get_thumbnail_path_p(void)
 //& type: auto
 int ITc_media_info_create_cancel_thumbnail_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_create_thumbnail(g_hAudioInfo, ThumbnailCompletedCb, TESTSTRING);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_create_thumbnail", MediaContentGetError(nRet));
@@ -785,7 +804,7 @@ int ITc_media_info_create_cancel_thumbnail_p(void)
 //& type: auto
 int ITc_media_info_insert_delete_batch_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_delete_from_db(g_szImageId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_delete_from_db", MediaContentGetError(nRet));
@@ -846,7 +865,7 @@ int ITc_media_info_insert_delete_batch_from_db_p(void)
 //& type: auto
 int ITc_media_info_foreach_bookmark_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stTime = {0};
        time(&stTime);
@@ -883,7 +902,7 @@ int ITc_media_info_foreach_bookmark_from_db_p(void)
 //& type: auto
 int ITc_media_info_foreach_tag_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nTagId = -1;
        media_tag_h hMediaTag = NULL;
@@ -933,7 +952,7 @@ int ITc_media_info_foreach_tag_from_db_p(void)
 //& type: auto
 int ITc_media_info_get_bookmark_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_info_get_bookmark_count_from_db(g_szVideoId, NULL, &nCount);
@@ -961,7 +980,7 @@ int ITc_media_info_get_bookmark_count_from_db_p(void)
 //& type: auto
 int ITc_media_info_get_tag_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_info_get_tag_count_from_db(g_szVideoId, NULL, &nCount);
@@ -989,7 +1008,7 @@ int ITc_media_info_get_tag_count_from_db_p(void)
 //& type: auto
 int ITc_media_info_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_update_to_db(g_hAudioInfo);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_update_to_db", MediaContentGetError(nRet));
@@ -1015,7 +1034,7 @@ int ITc_media_info_update_to_db_p(void)
 //& type: auto
 int ITc_media_info_get_media_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAudioId = NULL;
        int nRet = media_info_get_media_id(g_hAudioInfo, &pszAudioId);
@@ -1044,7 +1063,7 @@ int ITc_media_info_get_media_id_p(void)
 //& type: auto
 int ITc_media_info_get_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_info_h hInfo = NULL;
        int nRet = media_info_get_media_from_db(g_szAudioId, &hInfo);
@@ -1074,7 +1093,7 @@ int ITc_media_info_get_media_from_db_p(void)
 //& type: auto
 int ITc_media_info_set_get_added_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stGetTime = {0};
        time_t stSetTime = {0};
@@ -1108,7 +1127,7 @@ int ITc_media_info_set_get_added_time_p(void)
 //& type: auto
 int ITc_media_info_set_get_age_rating_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszRating = NULL;
 
@@ -1142,7 +1161,7 @@ int ITc_media_info_set_get_age_rating_p(void)
 //& type: auto
 int ITc_media_info_set_get_altitude_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        double dSetAltitude = 200;
        double dGetAltitude = 0;
@@ -1175,7 +1194,7 @@ int ITc_media_info_set_get_altitude_p(void)
 //& type: auto
 int ITc_media_info_set_get_author_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAuthor = NULL;
 
@@ -1209,7 +1228,7 @@ int ITc_media_info_set_get_author_p(void)
 //& type: auto
 int ITc_media_info_set_get_category_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszCategory = NULL;
 
@@ -1243,7 +1262,7 @@ int ITc_media_info_set_get_category_p(void)
 //& type: auto
 int ITc_media_info_set_get_content_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszContent = NULL;
 
@@ -1277,7 +1296,7 @@ int ITc_media_info_set_get_content_name_p(void)
 //& type: auto
 int ITc_media_info_set_get_description_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszDescription = NULL;
 
@@ -1311,7 +1330,7 @@ int ITc_media_info_set_get_description_p(void)
 //& type: auto
 int ITc_media_info_set_get_display_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszDisplayName = NULL;
 
@@ -1345,7 +1364,7 @@ int ITc_media_info_set_get_display_name_p(void)
 //& type: auto
 int ITc_media_info_set_get_favorite_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        bool bSetFavorite = true;
        bool bGetFavorite = false;
@@ -1378,7 +1397,7 @@ int ITc_media_info_set_get_favorite_p(void)
 //& type: auto
 int ITc_media_info_get_file_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszFilePath = NULL;
        int nRet = media_info_get_file_path(g_hVideoInfo, &pszFilePath);
@@ -1407,7 +1426,7 @@ int ITc_media_info_get_file_path_p(void)
 //& type: auto
 int ITc_media_info_get_image_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        image_meta_h hImage = NULL;
        int nRet = media_info_get_image(g_hImageInfo, &hImage);
@@ -1438,7 +1457,7 @@ int ITc_media_info_get_image_p(void)
 //& type: auto
 int ITc_media_info_get_audio_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        audio_meta_h hAudio = NULL;
        int nRet = media_info_get_audio(g_hAudioInfo, &hAudio);
@@ -1469,7 +1488,7 @@ int ITc_media_info_get_audio_p(void)
 //& type: auto
 int ITc_media_info_get_video_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        video_meta_h hVideo = NULL;
        int nRet = media_info_get_video(g_hVideoInfo, &hVideo);
@@ -1500,7 +1519,7 @@ int ITc_media_info_get_video_p(void)
 //& type: auto
 int ITc_media_info_get_modified_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stModifiedTime = {0};
        int nRet = media_info_get_modified_time(g_hVideoInfo, &stModifiedTime);
@@ -1528,7 +1547,7 @@ int ITc_media_info_get_modified_time_p(void)
 //& type: auto
 int ITc_media_info_set_get_keyword_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszKeyword = NULL;
 
@@ -1562,7 +1581,7 @@ int ITc_media_info_set_get_keyword_p(void)
 //& type: auto
 int ITc_media_info_set_get_latitude_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        double dSetLatitude = 200;
        double dGetLatitude = 0;
@@ -1595,7 +1614,7 @@ int ITc_media_info_set_get_latitude_p(void)
 //& type: auto
 int ITc_media_info_set_get_longitude_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        double dSetLongitude = 200;
        double dGetLongitude = 0;
@@ -1628,7 +1647,7 @@ int ITc_media_info_set_get_longitude_p(void)
 //& type: auto
 int ITc_media_info_set_get_location_tag_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszLocationTag = NULL;
 
@@ -1662,7 +1681,7 @@ int ITc_media_info_set_get_location_tag_p(void)
 //& type: auto
 int ITc_media_info_set_get_provider_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszProvider = NULL;
 
@@ -1696,7 +1715,7 @@ int ITc_media_info_set_get_provider_p(void)
 //& type: auto
 int ITc_media_info_set_get_rating_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSetRating = 4;
        int nGetRating = 1;
@@ -1729,7 +1748,7 @@ int ITc_media_info_set_get_rating_p(void)
 //& type: auto
 int ITc_media_info_set_get_weather_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszWeather = NULL;
 
@@ -1763,7 +1782,7 @@ int ITc_media_info_set_get_weather_p(void)
 //& type: auto
 int ITc_media_info_is_drm_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        bool bIsDrm = false;
        int nRet = media_info_is_drm(g_hVideoInfo, &bIsDrm);
@@ -1793,7 +1812,7 @@ int ITc_media_info_is_drm_p(void)
 //& type: auto
 int ITc_media_info_refresh_metadata_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_refresh_metadata_to_db(g_szAudioId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_refresh_metadata_to_db", MediaContentGetError(nRet));
@@ -1819,7 +1838,7 @@ int ITc_media_info_refresh_metadata_to_db_p(void)
 //& type: auto
 int ITc_media_info_increase_played_count_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_increase_played_count(g_hVideoInfo);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_increase_played_count", MediaContentGetError(nRet));
@@ -1845,7 +1864,7 @@ int ITc_media_info_increase_played_count_p(void)
 //& type: auto
 int ITc_media_info_set_get_played_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stGetTime = {0};
        int nRet = media_info_set_played_time(g_hVideoInfo);
@@ -1875,7 +1894,7 @@ int ITc_media_info_set_get_played_time_p(void)
 //& type: auto
 int ITc_media_info_get_media_type_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_content_type_e eMediaType = MEDIA_CONTENT_TYPE_OTHERS;
        int nRet = media_info_get_media_type(g_hVideoInfo, &eMediaType);
@@ -1903,7 +1922,7 @@ int ITc_media_info_get_media_type_p(void)
 //& type: auto
 int ITc_media_info_get_mime_type_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszMimeType = NULL;
        int nRet = media_info_get_mime_type(g_hVideoInfo, &pszMimeType);
@@ -1932,7 +1951,7 @@ int ITc_media_info_get_mime_type_p(void)
 //& type: auto
 int ITc_media_info_get_size_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        unsigned long long ullSize = 0;
        int nRet = media_info_get_size(g_hVideoInfo, &ullSize);
@@ -1960,7 +1979,7 @@ int ITc_media_info_get_size_p(void)
 //& type: auto
 int ITc_media_info_get_timeline_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stTimeline = 0;
        int nRet = media_info_get_timeline(g_hVideoInfo, &stTimeline);
@@ -1988,7 +2007,7 @@ int ITc_media_info_get_timeline_p(void)
 //& type: auto
 int ITc_media_info_get_title_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszTitle = NULL;
        int nRet = media_info_get_title(g_hVideoInfo, &pszTitle);
@@ -2017,7 +2036,7 @@ int ITc_media_info_get_title_p(void)
 //& type: auto
 int ITc_media_info_get_played_count_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nPlayedCount = 0;
        int nRet = media_info_get_played_count(g_hVideoInfo, &nPlayedCount);
@@ -2045,7 +2064,7 @@ int ITc_media_info_get_played_count_p(void)
 //& type: auto
 int ITc_media_info_get_storage_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageId = NULL;
        int nRet = media_info_get_storage_id(g_hVideoInfo, &pszStorageId);
@@ -2074,7 +2093,7 @@ int ITc_media_info_get_storage_id_p(void)
 //& type: auto
 int ITc_media_info_get_storage_type_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_content_storage_e eStorageType = -1;
        int nRet = media_info_get_storage_type(g_hVideoInfo, &eStorageType);
@@ -2102,7 +2121,7 @@ int ITc_media_info_get_storage_type_p(void)
 //& type: auto
 int ITc_media_info_move_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        AppendSlash(g_szInternalStoragePath, g_szFinalPath);
 
        int nRet = media_info_move_to_db(g_hAudioInfo, g_szFinalPath);
@@ -2129,7 +2148,7 @@ int ITc_media_info_move_to_db_p(void)
 //& type: auto
 int ITc_media_info_insert_burst_shot_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_delete_from_db(g_szImageId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_delete_from_db", MediaContentGetError(nRet));
@@ -2190,7 +2209,7 @@ int ITc_media_info_insert_burst_shot_to_db_p(void)
 //& type: auto
 int ITc_media_info_get_face_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nCount = -1;
        int nRet = media_info_get_face_count_from_db(g_szVideoId, NULL, &nCount);
@@ -2218,7 +2237,7 @@ int ITc_media_info_get_face_count_from_db_p(void)
 //& type: auto
 int ITc_media_info_foreach_face_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_face_create(g_szImageId,&g_hFace);             
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_face_create", MediaContentGetError(nRet));
@@ -2266,7 +2285,7 @@ int ITc_media_info_foreach_face_from_db_p(void)
 //& type: auto
 int ITc_media_info_create_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_create(g_szAudioPath, &g_hInfo);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_create", MediaContentGetError(nRet));
@@ -2296,7 +2315,7 @@ int ITc_media_info_create_p(void)
 //& type: auto
 int ITc_media_info_insert_to_db_with_data_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_info_delete_from_db(g_szAudioId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_delete_from_db", MediaContentGetError(nRet));
@@ -2332,7 +2351,7 @@ int ITc_media_info_insert_to_db_with_data_p(void)
 //& type: auto
 int ITc_media_info_set_title_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
                
        int nRet = media_info_set_title(g_hVideoInfo, TESTTITLE);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_set_title", MediaContentGetError(nRet));
@@ -2367,7 +2386,7 @@ int ITc_media_info_set_title_p(void)
 //& type: auto
 int ITc_media_info_set_album_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_info_set_album(g_hAudioInfo, TESTAUDIO);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_set_album", MediaContentGetError(nRet));
@@ -2402,7 +2421,7 @@ int ITc_media_info_set_album_p(void)
 //& type: auto
 int ITc_media_info_set_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_info_set_artist(g_hAudioInfo, TESTARTIST);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_set_artist", MediaContentGetError(nRet));
@@ -2436,7 +2455,7 @@ int ITc_media_info_set_artist_p(void)
 //& type: auto
 int ITc_media_info_set_genre_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_info_set_genre(g_hAudioInfo, TESTDESCRIPTION);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_set_genre", MediaContentGetError(nRet));
@@ -2470,7 +2489,7 @@ int ITc_media_info_set_genre_p(void)
 //& type: auto
 int ITc_media_info_set_recorded_date_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        int nRet = media_info_set_recorded_date(g_hAudioInfo,TESTKEYWORD);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_set_recorded_date", MediaContentGetError(nRet));
@@ -2504,7 +2523,7 @@ int ITc_media_info_set_recorded_date_p(void)
 //& type: auto
 int ITc_media_info_is_360_content_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        
        bool bIs360 = false;
        int nRet = media_info_is_360_content(g_hVideoInfo, &bIs360);
index 52c54c5..6e443bb 100755 (executable)
@@ -123,6 +123,12 @@ void ITs_media_content_playlist_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -134,6 +140,19 @@ void ITs_media_content_playlist_startup(void)
        AppendPaths(g_szAudioFolder, TESTAUDIO, g_szAudioPath);
 
        nRet = media_content_scan_file(g_szAudioPath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        nRet = media_playlist_insert_to_db(PLAYLISTNAME, &g_hPlaylist);
@@ -166,7 +185,7 @@ void ITs_media_content_playlist_startup(void)
  */
 void ITs_media_content_playlist_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_playlist_delete_from_db(g_nPlaylistId);
                media_playlist_destroy(g_hPlaylist);
@@ -199,7 +218,7 @@ void ITs_media_content_playlist_cleanup(void)
 //& type: auto
 int ITc_media_playlist_get_playlist_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_playlist_get_playlist_count_from_db(NULL, &nCount);
@@ -227,7 +246,7 @@ int ITc_media_playlist_get_playlist_count_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_foreach_playlist_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_playlist_destroy(g_hPlaylist);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_playlist_destroy", MediaContentGetError(nRet));
@@ -260,7 +279,7 @@ int ITc_media_playlist_foreach_playlist_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_playlist_h hPlaylist = NULL;
        int nRet = media_playlist_clone(&hPlaylist, g_hPlaylist);
@@ -291,7 +310,7 @@ int ITc_media_playlist_clone_destroy_p(void)
 //& type: auto
 int ITc_media_playlist_get_playlist_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nPlaylistId = -1;
        int nRet = media_playlist_get_playlist_id(g_hPlaylist, &nPlaylistId);
@@ -319,7 +338,7 @@ int ITc_media_playlist_get_playlist_id_p(void)
 //& type: auto
 int ITc_media_playlist_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nPlaylistId = -1;
        int nRet = media_playlist_get_playlist_id(g_hPlaylist, &nPlaylistId);
@@ -352,7 +371,7 @@ int ITc_media_playlist_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nPlaylistId = -1;
        int nRet = media_playlist_get_playlist_id(g_hPlaylist, &nPlaylistId);
@@ -386,7 +405,7 @@ int ITc_media_playlist_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_set_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszPlaylistInfo = NULL;
 
        int nRet = media_playlist_set_name(g_hPlaylist, PLAYLISTNAME);
@@ -419,7 +438,7 @@ int ITc_media_playlist_set_get_name_p(void)
 //& type: auto
 int ITc_media_playlist_get_playlist_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nPlaylistId = -1;
        int nRet = media_playlist_get_playlist_id(g_hPlaylist, &nPlaylistId);
@@ -455,7 +474,7 @@ int ITc_media_playlist_get_playlist_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_playlist_update_to_db(g_hPlaylist);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_playlist_update_to_db", MediaContentGetError(nRet));
@@ -481,7 +500,7 @@ int ITc_media_playlist_update_to_db_p(void)
 //& type: auto
 int ITc_media_playlist_insert_delete_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        media_playlist_h hMediaPlaylist = NULL;
        int nPlaylistId = -1;
 
@@ -519,7 +538,7 @@ int ITc_media_playlist_insert_delete_from_db_p(void)
 //& type: auto
 int ITc_media_playlist_set_get_thumbnail_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszPlaylistInfo = NULL;
 
        int nRet = GetFolderPath(STORAGE_DIRECTORY_IMAGES, g_szImageFolder);
@@ -559,7 +578,7 @@ int ITc_media_playlist_set_get_thumbnail_path_p(void)
 //& type: auto
 int ITc_media_playlist_add_remove_media_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        int nPlaylistId = -1;
 
        int nRet = media_playlist_get_playlist_id(g_hPlaylist, &nPlaylistId);
@@ -599,7 +618,7 @@ int ITc_media_playlist_add_remove_media_p(void)
 //& type: auto
 int ITc_media_playlist_set_get_play_order_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        int nPlayOrder = -1;
        int nPlaylistId = -1;
 
@@ -641,7 +660,7 @@ int ITc_media_playlist_set_get_play_order_p(void)
 //& type: auto
 int ITc_media_playlist_import_export_to_file_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        int nPlaylistId = -1;
        media_playlist_h hMediaPlaylist = NULL;
 
index 9007b57..355d3ac 100755 (executable)
@@ -102,6 +102,12 @@ void ITs_media_content_storage_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -110,6 +116,19 @@ void ITs_media_content_storage_startup(void)
        AppendPaths(g_szInternalStoragePath, TESTAUDIO, g_szAudioPath);
 
        nRet = media_content_scan_file(g_szAudioPath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        g_CallBackHit = false;
@@ -130,7 +149,7 @@ void ITs_media_content_storage_startup(void)
  */
 void ITs_media_content_storage_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_storage_destroy(g_hStorage);
                media_content_disconnect();
@@ -162,7 +181,7 @@ void ITs_media_content_storage_cleanup(void)
 //& type: auto
 int ITc_media_storage_get_storage_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_storage_get_storage_count_from_db(NULL, &nCount);
@@ -190,7 +209,7 @@ int ITc_media_storage_get_storage_count_from_db_p(void)
 //& type: auto
 int ITc_media_storage_foreach_storage_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_storage_destroy(g_hStorage);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_storage_destroy", MediaContentGetError(nRet));
@@ -223,7 +242,7 @@ int ITc_media_storage_foreach_storage_from_db_p(void)
 //& type: auto
 int ITc_media_storage_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_storage_h hStorage = NULL;
        int nRet = media_storage_clone(&hStorage, g_hStorage);
@@ -254,7 +273,7 @@ int ITc_media_storage_clone_destroy_p(void)
 //& type: auto
 int ITc_media_storage_get_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageId = NULL;
        int nRet = media_storage_get_id(g_hStorage, &pszStorageId);
@@ -283,7 +302,7 @@ int ITc_media_storage_get_id_p(void)
 //& type: auto
 int ITc_media_storage_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageId = NULL;
        int nRet = media_storage_get_id(g_hStorage, &pszStorageId);
@@ -317,7 +336,7 @@ int ITc_media_storage_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_storage_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageId = NULL;
        int nRet = media_storage_get_id(g_hStorage, &pszStorageId);
@@ -352,7 +371,7 @@ int ITc_media_storage_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_storage_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageInfo = NULL;
        media_content_storage_e eStorageInfo = -1;
@@ -390,7 +409,7 @@ int ITc_media_storage_get_name_p(void)
 //& type: auto
 int ITc_media_storage_get_path_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageInfo = NULL;
        int nRet = media_storage_get_path(g_hStorage, &pszStorageInfo);
@@ -419,7 +438,7 @@ int ITc_media_storage_get_path_p(void)
 //& type: auto
 int ITc_media_storage_get_type_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_content_storage_e eStorageInfo = -1;
        int nRet = media_storage_get_type(g_hStorage, &eStorageInfo);
@@ -447,7 +466,7 @@ int ITc_media_storage_get_type_p(void)
 //& type: auto
 int ITc_media_storage_get_storage_info_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszStorageId = NULL;
        int nRet = media_storage_get_id(g_hStorage, &pszStorageId);
index 35b8cc5..3173a68 100755 (executable)
@@ -91,6 +91,12 @@ void ITs_media_content_tag_startup(void)
        }
 
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -102,6 +108,19 @@ void ITs_media_content_tag_startup(void)
        AppendPaths(g_szImageFolder, TESTIMAGE, g_szImagePath);
 
        nRet = media_content_scan_file(g_szImagePath);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
 
        nRet = media_tag_insert_to_db(TAGNAME, &g_hTag);
@@ -134,7 +153,7 @@ void ITs_media_content_tag_startup(void)
  */
 void ITs_media_content_tag_cleanup(void)
 {
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_tag_remove_media(g_hTag, g_szMediaId);
                media_tag_update_to_db(g_hTag);
@@ -169,7 +188,7 @@ void ITs_media_content_tag_cleanup(void)
 //& type: auto
 int ITc_media_tag_get_tag_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nCount = -1;
        int nRet = media_tag_get_tag_count_from_db(NULL, &nCount);
@@ -197,7 +216,7 @@ int ITc_media_tag_get_tag_count_from_db_p(void)
 //& type: auto
 int ITc_media_tag_foreach_tag_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        g_CallBackHit = false;
        int nRet = media_tag_foreach_tag_from_db(NULL, ForeachTagCb, TESTSTRING);
@@ -226,7 +245,7 @@ int ITc_media_tag_foreach_tag_from_db_p(void)
 //& type: auto
 int ITc_media_tag_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        media_tag_h hTag = NULL;
        int nRet = media_tag_clone(&hTag, g_hTag);
@@ -257,7 +276,7 @@ int ITc_media_tag_clone_destroy_p(void)
 //& type: auto
 int ITc_media_tag_get_tag_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nTagId = -1;
        int nRet = media_tag_get_tag_id(g_hTag, &nTagId);
@@ -285,7 +304,7 @@ int ITc_media_tag_get_tag_id_p(void)
 //& type: auto
 int ITc_media_tag_get_media_count_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nTagId = -1;
        int nRet = media_tag_get_tag_id(g_hTag, &nTagId);
@@ -318,7 +337,7 @@ int ITc_media_tag_get_media_count_from_db_p(void)
 //& type: auto
 int ITc_media_tag_foreach_media_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nTagId = -1;
        int nRet = media_tag_get_tag_id(g_hTag, &nTagId);
@@ -352,7 +371,7 @@ int ITc_media_tag_foreach_media_from_db_p(void)
 //& type: auto
 int ITc_media_tag_get_tag_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nTagId = -1;
        int nRet = media_tag_get_tag_id(g_hTag, &nTagId);
@@ -388,7 +407,7 @@ int ITc_media_tag_get_tag_from_db_p(void)
 //& type: auto
 int ITc_media_tag_set_get_name_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        char *pszTagInfo = NULL;
 
        int nRet = media_tag_set_name(g_hTag, TAGNAME);
@@ -421,7 +440,7 @@ int ITc_media_tag_set_get_name_p(void)
 //& type: auto
 int ITc_media_tag_add_remove_media_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_tag_remove_media(g_hTag, g_szMediaId);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_tag_remove_media", MediaContentGetError(nRet));
@@ -450,7 +469,7 @@ int ITc_media_tag_add_remove_media_p(void)
 //& type: auto
 int ITc_media_tag_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = media_tag_update_to_db(g_hTag);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_tag_update_to_db", MediaContentGetError(nRet));
@@ -476,7 +495,7 @@ int ITc_media_tag_update_to_db_p(void)
 //& type: auto
 int ITc_media_tag_insert_delete_from_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
        media_tag_h hMediaTag = NULL;
        int nTagId = -1;
 
index 0548b12..01c0c97 100755 (executable)
@@ -38,6 +38,12 @@ void ITs_media_content_video_meta_startup(void)
 
        char *pszMediaId = NULL;
        g_bMediaContentStartup = false;
+       g_bIsScanFeatureSupported = false;
+       g_bIsScanFeatureNotSupported = false;
+       g_bScanFeatureMismatch= false;
+
+       g_bIsScanFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        int nRet = media_content_connect();
        PRINT_RESULTNONE(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_connect", MediaContentGetError(nRet));
 
@@ -48,6 +54,19 @@ void ITs_media_content_video_meta_startup(void)
        PRINT_RESULTNONE_CLEANUP(0, nRet, "GetFolderPath", "Return Value Not Correct", media_content_disconnect());
        AppendPaths(g_szVideoFolder, TESTVIDEO, g_szVideoPath);
        nRet = media_info_insert_to_db(g_szVideoPath, &g_hVideoInfo);
+       if ( !g_bIsScanFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       g_bScanFeatureMismatch = true;
+               }
+               else
+               {
+                       g_bIsScanFeatureNotSupported = true;
+               }
+               media_content_disconnect();
+               return;
+       }
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet), media_content_disconnect());
        nRet = media_info_get_media_id(g_hVideoInfo, &pszMediaId);
        PRINT_RESULTNONE_CLEANUP(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_get_media_id", MediaContentGetError(nRet), media_content_disconnect());
@@ -79,7 +98,7 @@ void ITs_media_content_video_meta_cleanup(void)
                media_info_delete_from_db(g_szVideoId);
                media_info_destroy(g_hVideoInfo);
        }
-       if(g_bMediaContentStartup)
+       if(g_bMediaContentStartup && g_bIsScanFeatureSupported)
        {
                media_content_disconnect();
        }
@@ -110,7 +129,7 @@ void ITs_media_content_video_meta_cleanup(void)
 //& type: auto
 int ITc_video_meta_clone_destroy_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        video_meta_h hVideoMeta = NULL;
        int nRet = video_meta_clone(&hVideoMeta, g_hVideoMeta);
@@ -141,7 +160,7 @@ int ITc_video_meta_clone_destroy_p(void)
 //& type: auto
 int ITc_video_meta_set_get_played_count_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSetPlayedCount = 4;
        int nGetPlayedCount = 1;
@@ -174,7 +193,7 @@ int ITc_video_meta_set_get_played_count_p(void)
 //& type: auto
 int ITc_video_meta_set_get_played_position_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nSetPlayedPosition = 4;
        int nGetPlayedPosition = 1;
@@ -207,7 +226,7 @@ int ITc_video_meta_set_get_played_position_p(void)
 //& type: auto
 int ITc_video_meta_set_get_played_time_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        time_t stGetTime = {0};
        time_t stSetTime = {0};
@@ -241,7 +260,7 @@ int ITc_video_meta_set_get_played_time_p(void)
 //& type: auto
 int ITc_video_meta_update_to_db_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRet = video_meta_update_to_db(g_hVideoMeta);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "video_meta_update_to_db", MediaContentGetError(nRet));
@@ -267,7 +286,7 @@ int ITc_video_meta_update_to_db_p(void)
 //& type: auto
 int ITc_video_meta_get_album_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbum = NULL;
        int nRet = video_meta_get_album(g_hVideoMeta, &pszAlbum);
@@ -296,7 +315,7 @@ int ITc_video_meta_get_album_p(void)
 //& type: auto
 int ITc_video_meta_get_album_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszAlbumArtist = NULL;
        int nRet = video_meta_get_album_artist(g_hVideoMeta, &pszAlbumArtist);
@@ -325,7 +344,7 @@ int ITc_video_meta_get_album_artist_p(void)
 //& type: auto
 int ITc_video_meta_get_artist_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszArtist = NULL;
        int nRet = video_meta_get_artist(g_hVideoMeta, &pszArtist);
@@ -354,7 +373,7 @@ int ITc_video_meta_get_artist_p(void)
 //& type: auto
 int ITc_video_meta_get_bit_rate_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nBitRate = 0;
        int nRet = video_meta_get_bit_rate(g_hVideoMeta, &nBitRate);
@@ -382,7 +401,7 @@ int ITc_video_meta_get_bit_rate_p(void)
 //& type: auto
 int ITc_video_meta_get_composer_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszComposer = NULL;
        int nRet = video_meta_get_composer(g_hVideoMeta, &pszComposer);
@@ -411,7 +430,7 @@ int ITc_video_meta_get_composer_p(void)
 //& type: auto
 int ITc_video_meta_get_copyright_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszCopyright = NULL;
        int nRet = video_meta_get_copyright(g_hVideoMeta, &pszCopyright);
@@ -440,7 +459,7 @@ int ITc_video_meta_get_copyright_p(void)
 //& type: auto
 int ITc_video_meta_get_duration_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nDuration = 0;
        int nRet = video_meta_get_duration(g_hVideoMeta, &nDuration);
@@ -468,7 +487,7 @@ int ITc_video_meta_get_duration_p(void)
 //& type: auto
 int ITc_video_meta_get_genre_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszGenre = NULL;
        int nRet = video_meta_get_genre(g_hVideoMeta, &pszGenre);
@@ -497,7 +516,7 @@ int ITc_video_meta_get_genre_p(void)
 //& type: auto
 int ITc_video_meta_get_media_id_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszMediaId = NULL;
        int nRet = video_meta_get_media_id(g_hVideoMeta, &pszMediaId);
@@ -526,7 +545,7 @@ int ITc_video_meta_get_media_id_p(void)
 //& type: auto
 int ITc_video_meta_get_recorded_date_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszRecordedDate = NULL;
        int nRet = video_meta_get_recorded_date(g_hVideoMeta, &pszRecordedDate);
@@ -555,7 +574,7 @@ int ITc_video_meta_get_recorded_date_p(void)
 //& type: auto
 int ITc_video_meta_get_track_num_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszTrackNum = NULL;
        int nRet = video_meta_get_track_num(g_hVideoMeta, &pszTrackNum);
@@ -584,7 +603,7 @@ int ITc_video_meta_get_track_num_p(void)
 //& type: auto
 int ITc_video_meta_get_year_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        char *pszYear = NULL;
        int nRet = video_meta_get_year(g_hVideoMeta, &pszYear);
@@ -613,7 +632,7 @@ int ITc_video_meta_get_year_p(void)
 //& type: auto
 int ITc_video_meta_get_height_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nHeight = 0;
        int nRet = video_meta_get_height(g_hVideoMeta, &nHeight);
@@ -641,7 +660,7 @@ int ITc_video_meta_get_height_p(void)
 //& type: auto
 int ITc_video_meta_get_width_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nWidth = 0;
        int nRet = video_meta_get_width(g_hVideoMeta, &nWidth);
@@ -669,7 +688,7 @@ int ITc_video_meta_get_width_p(void)
 */
 int ITc_video_meta_get_rotation_p(void)
 {
-       START_TEST;
+       START_TEST_PLAYLIST;
 
        int nRotation = 0;
        int nRet = video_meta_get_rotation(g_hVideoMeta, &nRotation);
index 6e88892..ba1d67e 100755 (executable)
@@ -159,12 +159,28 @@ int ITc_media_content_connect_disconnect_p(void)
 int ITc_media_content_scan_file_p(void)
 {
        START_TEST;
+       bool bIsFeatureSupported = true;
 
        int nRet = GetInternalStorageIdandPath();
        PRINT_RESULT(0, nRet, "GetInternalStorageId", "Return Value Not Correct");
        AppendPaths(g_szInternalStoragePath, TESTIMAGE, g_szImagePath);
 
+       bIsFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        nRet = media_content_scan_file(g_szImagePath);
+       if ( !bIsFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       return 1;
+               }
+               else
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file correctly returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       return 0;
+               }
+       }
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet));
 
        return 0;
@@ -309,6 +325,7 @@ int ITc_media_content_add_remove_db_updated_cb_p(void)
 int ITc_media_content_set_unset_db_updated_cb_p(void)
 {
        START_TEST;
+       bool bIsFeatureSupported = true;
 
        int nRet = GetInternalStorageIdandPath();
        PRINT_RESULT(0, nRet, "GetInternalStorageId", "Return Value Not Correct");
@@ -318,7 +335,24 @@ int ITc_media_content_set_unset_db_updated_cb_p(void)
        nRet = media_content_set_db_updated_cb(DataBaseUpdatedCb, TESTSTRING);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_set_db_updated_cb", MediaContentGetError(nRet));
 
+       bIsFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        nRet = media_content_scan_file(g_szImagePath);
+       if ( !bIsFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       media_content_unset_db_updated_cb();
+                       return 1;
+               }
+               else
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file correctly returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       media_content_unset_db_updated_cb();
+                       return 0;
+               }
+       }
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet));
 
        IterateGmainLoop();
@@ -352,8 +386,9 @@ int ITc_media_content_set_unset_db_updated_cb_p(void)
 int ITc_media_content_add_remove_db_updated_cb_p(void)
 {
        START_TEST;
-       
+
        media_content_noti_h hNotiHandle;
+       bool bIsFeatureSupported = true;
 
        int nRet = GetInternalStorageIdandPath();
        PRINT_RESULT(0, nRet, "GetInternalStorageId", "Return Value Not Correct");
@@ -362,8 +397,25 @@ int ITc_media_content_add_remove_db_updated_cb_p(void)
        g_CallBackHit = false;
        nRet = media_content_add_db_updated_cb(DataBaseUpdatedCb, NULL,&hNotiHandle);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_add_db_updated_cb", MediaContentGetError(nRet));
-       
+
+       bIsFeatureSupported = TCTCheckSystemInfoFeatureSupported(SCAN_FEATURE, API_NAMESPACE);
+
        nRet = media_content_scan_file(g_szImagePath);
+       if ( !bIsFeatureSupported )
+       {
+               if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       media_content_remove_db_updated_cb(hNotiHandle);
+                       return 1;
+               }
+               else
+               {
+                       FPRINTF("[Line : %d][%s] media_content_scan_file correctly returned %s error for unsupported feature\\n", __LINE__, API_NAMESPACE,  MediaContentGetError(nRet));
+                       media_content_remove_db_updated_cb(hNotiHandle);
+                       return 0;
+               }
+       }
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet));
 
        IterateGmainLoop();