[UTC/ITC][player][ACR-857][change API name according to the ACR]
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 7 Dec 2016 11:06:08 +0000 (20:06 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 9 Dec 2016 12:08:00 +0000 (21:08 +0900)
Change-Id: I339135a294618fbd60f07810f3a4857a27a5fc2f
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
src/itc/player/ITs-player-stream-info.c [changed mode: 0755->0644]
src/itc/player/ITs-player.c [changed mode: 0755->0644]
src/itc/player/tct-player-native_common_iot.h [changed mode: 0755->0644]
src/itc/player/tct-player-native_mobile.h [changed mode: 0755->0644]
src/itc/player/tct-player-native_tv.h [changed mode: 0755->0644]
src/itc/player/tct-player-native_wearable.h [changed mode: 0755->0644]
src/utc/player/tct-player-core_common_iot.h [changed mode: 0755->0644]
src/utc/player/tct-player-core_mobile.h [changed mode: 0755->0644]
src/utc/player/tct-player-core_tv.h [changed mode: 0755->0644]
src/utc/player/tct-player-core_wearable.h [changed mode: 0755->0644]
src/utc/player/utc-media-player.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 09f52e3..1b443d6
@@ -189,7 +189,7 @@ int ITc_player_get_audio_stream_info_p(void)
 //& purpose: Provides the audio stream information
 //& type : auto
 /**
-* @testcase                    ITc_player_set_audio_policy_info_p
+* @testcase                    ITc_player_set_sound_stream_info_p
 * @author                              SRID(sk.pal)
 * @reviewer                            SRID(gupta.sanjay)
 * @type                                auto
@@ -206,7 +206,7 @@ int ITc_player_get_audio_stream_info_p(void)
 * @precondition                        The player state must be one of: PLAYER_STATE_PLAYING, or PLAYER_STATE_PAUSED
 * @postcondition               N/A
 */
-int ITc_player_set_audio_policy_info_p(void)
+int ITc_player_set_sound_stream_info_p(void)
 {
        START_TEST;
 
@@ -247,8 +247,8 @@ int ITc_player_set_audio_policy_info_p(void)
                        FPRINTF("failed to create stream_information()\n");
                        return 1;
                }
-               nRet = player_set_audio_policy_info(g_player, g_stream_info_h);
-               PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_audio_policy_info", PlayerGetError(nRet));            
+               nRet = player_set_sound_stream_info(g_player, g_stream_info_h);
+               PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_sound_stream_info", PlayerGetError(nRet));
        }
        
        return 0;
old mode 100755 (executable)
new mode 100644 (file)
index 7b29612..415bd57
@@ -656,16 +656,6 @@ static void FeedVideoDataThreadFunc()
 //Callbacks
 
 /**
-* @function                            SeekCompletedCB
-* @description                 Called to check player seek position status
-* @parameter                   void *user_data
-* @return                              void
-*/
-static void SeekCompletedCB(void *user_data)
-{
-}
-
-/**
 * @function                            PlayerPreparedCB
 * @description                 Called to check media player for playback, asynchronously
 * @parameter                   void *user_data
old mode 100755 (executable)
new mode 100644 (file)
index 26f46df..e847d32
@@ -77,7 +77,7 @@ extern int ITc_player_select_track_p(void);
 extern int ITc_player_set_unset_media_stream_buffer_status_cb_p(void);
 extern int ITc_player_in_set_unset_interrupted_cb_p(void);
 extern int ITc_player_get_audio_stream_info_p(void);
-extern int ITc_player_set_audio_policy_info_p(void);
+extern int ITc_player_set_sound_stream_info_p(void);
 extern int ITc_player_get_album_art_p(void);
 extern int ITc_player_get_codec_info_p(void);
 extern int ITc_player_get_content_info_p(void);
@@ -135,7 +135,7 @@ testcase tc_array[] = {
     {"ITc_player_set_unset_media_stream_buffer_status_cb_p", ITc_player_set_unset_media_stream_buffer_status_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_in_set_unset_interrupted_cb_p", ITc_player_in_set_unset_interrupted_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_get_audio_stream_info_p", ITc_player_get_audio_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
-    {"ITc_player_set_audio_policy_info_p", ITc_player_set_audio_policy_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
+    {"ITc_player_set_sound_stream_info_p", ITc_player_set_sound_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_album_art_p", ITc_player_get_album_art_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_codec_info_p", ITc_player_get_codec_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_content_info_p", ITc_player_get_content_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 26f46df..e847d32
@@ -77,7 +77,7 @@ extern int ITc_player_select_track_p(void);
 extern int ITc_player_set_unset_media_stream_buffer_status_cb_p(void);
 extern int ITc_player_in_set_unset_interrupted_cb_p(void);
 extern int ITc_player_get_audio_stream_info_p(void);
-extern int ITc_player_set_audio_policy_info_p(void);
+extern int ITc_player_set_sound_stream_info_p(void);
 extern int ITc_player_get_album_art_p(void);
 extern int ITc_player_get_codec_info_p(void);
 extern int ITc_player_get_content_info_p(void);
@@ -135,7 +135,7 @@ testcase tc_array[] = {
     {"ITc_player_set_unset_media_stream_buffer_status_cb_p", ITc_player_set_unset_media_stream_buffer_status_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_in_set_unset_interrupted_cb_p", ITc_player_in_set_unset_interrupted_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_get_audio_stream_info_p", ITc_player_get_audio_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
-    {"ITc_player_set_audio_policy_info_p", ITc_player_set_audio_policy_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
+    {"ITc_player_set_sound_stream_info_p", ITc_player_set_sound_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_album_art_p", ITc_player_get_album_art_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_codec_info_p", ITc_player_get_codec_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_content_info_p", ITc_player_get_content_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 47ced4e..a098793
@@ -68,7 +68,7 @@ extern int ITc_player_get_track_language_code_p(void);
 extern int ITc_player_select_track_p(void);
 extern int ITc_player_in_set_unset_interrupted_cb_p(void);
 extern int ITc_player_get_audio_stream_info_p(void);
-extern int ITc_player_set_audio_policy_info_p(void);
+extern int ITc_player_set_sound_stream_info_p(void);
 extern int ITc_player_get_album_art_p(void);
 extern int ITc_player_get_codec_info_p(void);
 extern int ITc_player_get_content_info_p(void);
@@ -117,7 +117,7 @@ testcase tc_array[] = {
     {"ITc_player_select_track_p", ITc_player_select_track_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_in_set_unset_interrupted_cb_p", ITc_player_in_set_unset_interrupted_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_get_audio_stream_info_p", ITc_player_get_audio_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
-    {"ITc_player_set_audio_policy_info_p", ITc_player_set_audio_policy_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
+    {"ITc_player_set_sound_stream_info_p", ITc_player_set_sound_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_album_art_p", ITc_player_get_album_art_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_codec_info_p", ITc_player_get_codec_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_content_info_p", ITc_player_get_content_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 26f46df..e847d32
@@ -77,7 +77,7 @@ extern int ITc_player_select_track_p(void);
 extern int ITc_player_set_unset_media_stream_buffer_status_cb_p(void);
 extern int ITc_player_in_set_unset_interrupted_cb_p(void);
 extern int ITc_player_get_audio_stream_info_p(void);
-extern int ITc_player_set_audio_policy_info_p(void);
+extern int ITc_player_set_sound_stream_info_p(void);
 extern int ITc_player_get_album_art_p(void);
 extern int ITc_player_get_codec_info_p(void);
 extern int ITc_player_get_content_info_p(void);
@@ -135,7 +135,7 @@ testcase tc_array[] = {
     {"ITc_player_set_unset_media_stream_buffer_status_cb_p", ITc_player_set_unset_media_stream_buffer_status_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_in_set_unset_interrupted_cb_p", ITc_player_in_set_unset_interrupted_cb_p, ITs_player_startup, ITs_player_cleanup},
     {"ITc_player_get_audio_stream_info_p", ITc_player_get_audio_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
-    {"ITc_player_set_audio_policy_info_p", ITc_player_set_audio_policy_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
+    {"ITc_player_set_sound_stream_info_p", ITc_player_set_sound_stream_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_album_art_p", ITc_player_get_album_art_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_codec_info_p", ITc_player_get_codec_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
     {"ITc_player_get_content_info_p", ITc_player_get_content_info_p, ITs_player_stream_info_startup, ITs_player_stream_info_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 7b982dd..565a498
@@ -59,8 +59,8 @@ extern int utc_media_player_get_volume_n(void);
 extern int utc_media_player_set_sound_type_p(void);
 extern int utc_media_player_set_sound_type_n(void);
 extern int utc_media_player_set_sound_type_n2(void);
-extern int utc_media_player_set_audio_policy_info_p(void);
-extern int utc_media_player_set_audio_policy_info_n(void);
+extern int utc_media_player_set_sound_stream_info_p(void);
+extern int utc_media_player_set_sound_stream_info_n(void);
 extern int utc_media_player_set_subtitle_path_p(void);
 extern int utc_media_player_set_subtitle_path_n(void);
 extern int utc_media_player_set_display_visible_p(void);
@@ -235,8 +235,8 @@ testcase tc_array[] = {
     {"utc_media_player_set_sound_type_p", utc_media_player_set_sound_type_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n", utc_media_player_set_sound_type_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n2", utc_media_player_set_sound_type_n2, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_p", utc_media_player_set_audio_policy_info_p, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_n", utc_media_player_set_audio_policy_info_n, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_p", utc_media_player_set_sound_stream_info_p, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_n", utc_media_player_set_sound_stream_info_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_p", utc_media_player_set_subtitle_path_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_n", utc_media_player_set_subtitle_path_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_display_visible_p", utc_media_player_set_display_visible_p, utc_media_player_startup, utc_media_player_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 7b982dd..565a498
@@ -59,8 +59,8 @@ extern int utc_media_player_get_volume_n(void);
 extern int utc_media_player_set_sound_type_p(void);
 extern int utc_media_player_set_sound_type_n(void);
 extern int utc_media_player_set_sound_type_n2(void);
-extern int utc_media_player_set_audio_policy_info_p(void);
-extern int utc_media_player_set_audio_policy_info_n(void);
+extern int utc_media_player_set_sound_stream_info_p(void);
+extern int utc_media_player_set_sound_stream_info_n(void);
 extern int utc_media_player_set_subtitle_path_p(void);
 extern int utc_media_player_set_subtitle_path_n(void);
 extern int utc_media_player_set_display_visible_p(void);
@@ -235,8 +235,8 @@ testcase tc_array[] = {
     {"utc_media_player_set_sound_type_p", utc_media_player_set_sound_type_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n", utc_media_player_set_sound_type_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n2", utc_media_player_set_sound_type_n2, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_p", utc_media_player_set_audio_policy_info_p, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_n", utc_media_player_set_audio_policy_info_n, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_p", utc_media_player_set_sound_stream_info_p, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_n", utc_media_player_set_sound_stream_info_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_p", utc_media_player_set_subtitle_path_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_n", utc_media_player_set_subtitle_path_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_display_visible_p", utc_media_player_set_display_visible_p, utc_media_player_startup, utc_media_player_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 0cfff1b..3fcb8d6
@@ -143,8 +143,8 @@ extern int utc_media_player_get_volume_n(void);
 extern int utc_media_player_set_sound_type_p(void);
 extern int utc_media_player_set_sound_type_n(void);
 extern int utc_media_player_set_sound_type_n2(void);
-extern int utc_media_player_set_audio_policy_info_p(void);
-extern int utc_media_player_set_audio_policy_info_n(void);
+extern int utc_media_player_set_sound_stream_info_p(void);
+extern int utc_media_player_set_sound_stream_info_n(void);
 extern int utc_media_player_set_subtitle_path_p(void);
 extern int utc_media_player_set_subtitle_path_n(void);
 extern int utc_media_player_set_display_visible_p(void);
@@ -341,8 +341,8 @@ testcase tc_array[] = {
     {"utc_media_player_set_sound_type_p", utc_media_player_set_sound_type_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n", utc_media_player_set_sound_type_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n2", utc_media_player_set_sound_type_n2, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_p", utc_media_player_set_audio_policy_info_p, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_n", utc_media_player_set_audio_policy_info_n, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_p", utc_media_player_set_sound_stream_info_p, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_n", utc_media_player_set_sound_stream_info_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_p", utc_media_player_set_subtitle_path_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_n", utc_media_player_set_subtitle_path_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_display_visible_p", utc_media_player_set_display_visible_p, utc_media_player_startup, utc_media_player_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 6e55419..b22fb2f
@@ -144,8 +144,8 @@ extern int utc_media_player_get_volume_n(void);
 extern int utc_media_player_set_sound_type_p(void);
 extern int utc_media_player_set_sound_type_n(void);
 extern int utc_media_player_set_sound_type_n2(void);
-extern int utc_media_player_set_audio_policy_info_p(void);
-extern int utc_media_player_set_audio_policy_info_n(void);
+extern int utc_media_player_set_sound_stream_info_p(void);
+extern int utc_media_player_set_sound_stream_info_n(void);
 extern int utc_media_player_set_subtitle_path_p(void);
 extern int utc_media_player_set_subtitle_path_n(void);
 extern int utc_media_player_set_display_visible_p(void);
@@ -343,8 +343,8 @@ testcase tc_array[] = {
     {"utc_media_player_set_sound_type_p", utc_media_player_set_sound_type_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n", utc_media_player_set_sound_type_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_sound_type_n2", utc_media_player_set_sound_type_n2, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_p", utc_media_player_set_audio_policy_info_p, utc_media_player_startup, utc_media_player_cleanup},
-    {"utc_media_player_set_audio_policy_info_n", utc_media_player_set_audio_policy_info_n, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_p", utc_media_player_set_sound_stream_info_p, utc_media_player_startup, utc_media_player_cleanup},
+    {"utc_media_player_set_sound_stream_info_n", utc_media_player_set_sound_stream_info_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_p", utc_media_player_set_subtitle_path_p, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_subtitle_path_n", utc_media_player_set_subtitle_path_n, utc_media_player_startup, utc_media_player_cleanup},
     {"utc_media_player_set_display_visible_p", utc_media_player_set_display_visible_p, utc_media_player_startup, utc_media_player_cleanup},
old mode 100755 (executable)
new mode 100644 (file)
index 0268b1e..014bc35
@@ -818,7 +818,7 @@ int utc_media_player_set_sound_type_n2(void)
 
     if (state == PLAYER_STATE_IDLE){
         set_sound_stream_info();
-        ret = player_set_audio_policy_info(player, g_stream_info_h);
+        ret = player_set_sound_stream_info(player, g_stream_info_h);
         assert_eq(ret, PLAYER_ERROR_NONE);
 
         ret = player_set_sound_type(player, SOUND_TYPE_MEDIA);
@@ -828,11 +828,11 @@ int utc_media_player_set_sound_type_n2(void)
 }
 
 /**
- * @testcase           utc_media_player_set_audio_policy_info_p
+ * @testcase           utc_media_player_set_sound_stream_info_p
  * @since_tizen                3.0
  * @description                Positive test case to set audio policy info
  */
-int utc_media_player_set_audio_policy_info_p(void)
+int utc_media_player_set_sound_stream_info_p(void)
 {
     player_state_e state;
 
@@ -847,18 +847,18 @@ int utc_media_player_set_audio_policy_info_p(void)
 
     if (state == PLAYER_STATE_IDLE){
         set_sound_stream_info();
-        ret = player_set_audio_policy_info(player, g_stream_info_h);
+        ret = player_set_sound_stream_info(player, g_stream_info_h);
         assert_eq(ret, PLAYER_ERROR_NONE);
     }
     return 0;
 }
 
 /**
- * @testcase           utc_media_player_set_audio_policy_info_n
+ * @testcase           utc_media_player_set_sound_stream_info_n
  * @since_tizen                3.0
  * @description                Negative test case to set audio policy info
  */
-int utc_media_player_set_audio_policy_info_n(void)
+int utc_media_player_set_sound_stream_info_n(void)
 {
     player_state_e state;
 
@@ -872,7 +872,7 @@ int utc_media_player_set_audio_policy_info_n(void)
     assert_eq(ret, PLAYER_ERROR_NONE);
 
     if (state == PLAYER_STATE_IDLE){
-        ret = player_set_audio_policy_info(NULL, NULL);
+        ret = player_set_sound_stream_info(NULL, NULL);
         assert_eq(ret, PLAYER_ERROR_INVALID_PARAMETER);
     }
     return 0;