//& 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
* @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;
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;
//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
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);
{"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},
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);
{"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},
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);
{"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},
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);
{"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},
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);
{"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},
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);
{"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},
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);
{"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},
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);
{"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},
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);
}
/**
- * @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;
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;
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;