static char *media = ".test_record.amr";
static char *media_path = NULL;
-static bool mic_supported = false;
+static bool audio_recording_supported = false;
static recorder_h recorder = NULL;
static int startup_ret = RECORDER_ERROR_NONE;
-static bool cam_supported = false;
+static bool video_recording_supported = false;
static camera_h camera = NULL;
static int startup_ret_camera = CAMERA_ERROR_NONE;
This is the precondition for checking apis. \n
Tiis precondition is create_audiorecorder api for checking device and privilege error.
* @scenario 1. Check device storage supported. \n
- 2. Get platform feature for microphone and camera. \n
+ 2. Get platform feature for audio recording and video recording. \n
3. Create audio recorder. \n
4. Create camera.
* @parameter N/A
{
storage_foreach_device_supported(_storage_device_cb, NULL);
- system_info_get_platform_bool("http://tizen.org/feature/microphone", &mic_supported);
- system_info_get_platform_bool("http://tizen.org/feature/camera", &cam_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.audio_recording", &audio_recording_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.video_recording", &video_recording_supported);
startup_ret = recorder_create_audiorecorder(&recorder);
startup_ret_camera = camera_create(CAMERA_DEVICE_CAMERA0, &camera);
int ret = RECORDER_ERROR_NONE;
int channel = 0;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_device_e device = RECORDER_AUDIO_DEVICE_MIC;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
int bitrate = 0;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
int samplerate = 0;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_rotation_e rotation_tag = RECORDER_ROTATION_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
double rate = 0.0;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
int size = 0;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
int value = 0;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
int value = 0;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
recorder_audio_codec_e audio_codec = RECORDER_AUDIO_CODEC_DISABLE;
recorder_file_format_e file_format = -1;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_device_e device = RECORDER_AUDIO_DEVICE_MIC;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_device_e device = 10;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_rotation_e rotation = RECORDER_ROTATION_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_rotation_e rotation = -1;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_rotation_e rotation = -1;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_codec_e value;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
recorder_audio_codec_e codec = RECORDER_AUDIO_CODEC_AMR;
recorder_audio_codec_e ret_codec = RECORDER_AUDIO_CODEC_AMR;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_file_format_e value = RECORDER_FILE_FORMAT_3GP;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_video_codec_e value = RECORDER_VIDEO_CODEC_MPEG4;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
recorder_video_codec_e codec = RECORDER_VIDEO_CODEC_H263;
recorder_video_codec_e ret_codec = RECORDER_VIDEO_CODEC_H263;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
recorder_audio_codec_e audio_codec = RECORDER_AUDIO_CODEC_DISABLE;
recorder_file_format_e file_format = -1;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int mHeight = 0;
int mWidth = 0;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_codec_e codec = RECORDER_AUDIO_CODEC_DISABLE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_codec_e codec = -2;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_audio_codec_e codec = -2;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_file_format_e format = RECORDER_FILE_FORMAT_3GP;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_file_format_e format = -1;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_video_codec_e codec = RECORDER_VIDEO_CODEC_MPEG4;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_video_codec_e codec = -1;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
recorder_video_codec_e codec = -1;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int height = 0;
recorder_h video_recorder = NULL;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
recorder_file_format_e format = RECORDER_FILE_FORMAT_3GP;
recorder_file_format_e ret_format = RECORDER_FILE_FORMAT_3GP;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret = RECORDER_ERROR_NONE;
char *f_name = NULL;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
int ret2 = SOUND_MANAGER_ERROR_NONE;
sound_stream_info_h stream_info = NULL;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
static recorder_h recorder = NULL;
static camera_h camera = NULL;
-static bool cam_supported = false;
-static bool mic_supported = false;
+static bool video_recording_supported = false;
+static bool audio_recording_supported = false;
static int startup_ret = RECORDER_ERROR_NONE;
static int startup_ret_camera = CAMERA_ERROR_NONE;
void utc_media_recorder_callback_startup(void)
{
/* start of TC */
- system_info_get_platform_bool("http://tizen.org/feature/microphone", &mic_supported);
- system_info_get_platform_bool("http://tizen.org/feature/camera", &cam_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.audio_recording", &audio_recording_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.video_recording", &video_recording_supported);
startup_ret = recorder_create_audiorecorder(&recorder);
startup_ret_camera = camera_create(CAMERA_DEVICE_CAMERA0, &camera);
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(startup_ret_camera, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
}
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
ret = recorder_add_device_state_changed_cb(_device_state_changed_cb, NULL, &cb_id);
- if (mic_supported)
+ if (audio_recording_supported)
check_ret = RECORDER_ERROR_NONE;
else
check_ret = RECORDER_ERROR_NOT_SUPPORTED;
ret = recorder_add_device_state_changed_cb(_device_state_changed_cb, NULL, &cb_id);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
assert_neq(cb_id, 0);
ret = recorder_remove_device_state_changed_cb(0);
- if (mic_supported)
+ if (audio_recording_supported)
check_ret = RECORDER_ERROR_INVALID_OPERATION;
else
check_ret = RECORDER_ERROR_NOT_SUPPORTED;
ret = recorder_add_device_state_changed_cb(_device_state_changed_cb, NULL, &cb_id);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
assert_neq(cb_id, 0);
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
{
int ret = RECORDER_ERROR_NONE;
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(startup_ret, RECORDER_ERROR_NOT_SUPPORTED);
return 0;
}
static char *media = ".test_record.amr";
static char *media_path = NULL;
-static bool cam_supported = false;
-static bool mic_supported = false;
+static bool video_recording_supported = false;
+static bool audio_recording_supported = false;
#define UTC_AUDIO_CODEC_NUM 5
#define UTC_FILE_FORMAT_NUM 7
{
storage_foreach_device_supported(_storage_device_cb, NULL);
- system_info_get_platform_bool("http://tizen.org/feature/microphone", &mic_supported);
- system_info_get_platform_bool("http://tizen.org/feature/camera", &cam_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.audio_recording", &audio_recording_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/media.video_recording", &video_recording_supported);
return;
}
ret = recorder_create_audiorecorder(&recorder);
- if (!mic_supported) {
+ if (!audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NOT_SUPPORTED);
} else {
recorder_destroy(recorder);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
int ret2 = RECORDER_ERROR_NONE;
ret = camera_create(CAMERA_DEVICE_CAMERA0, &camera);
- if (!cam_supported) {
+ if (!video_recording_supported) {
assert_eq(ret, CAMERA_ERROR_NOT_SUPPORTED);
return 0;
} else {
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_destroy(recorder);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_prepare(recorder);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_start(recorder);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = _get_supported_audio_encoder_and_file_format(recorder, &audio_codec, &file_format);
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_unprepare(recorder);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
assert_eq(ret, RECORDER_ERROR_NONE);
ret = recorder_get_state(recorder, &state);
ret = recorder_create_audiorecorder(&recorder);
- if (mic_supported) {
+ if (audio_recording_supported) {
ret = recorder_get_state(recorder, NULL);
recorder_destroy(recorder);
ret = recorder_get_device_state(RECORDER_TYPE_AUDIO, &device_state);
- if (mic_supported)
+ if (audio_recording_supported)
check_ret = RECORDER_ERROR_NONE;
else
check_ret = RECORDER_ERROR_NOT_SUPPORTED;