[TCSACR-37][Camera/Recorder] Modify camera, recorder privilege for some APIs
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 23 May 2017 08:10:49 +0000 (17:10 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Tue, 20 Jun 2017 01:25:10 +0000 (10:25 +0900)
Change-Id: I7d034d9bfb01d211aa669c8ba63723fba7bf3d47
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
src/Tizen.Multimedia.Camera/Camera/Camera.cs [changed mode: 0644->0755]
src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs [changed mode: 0644->0755]
src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs [changed mode: 0644->0755]
src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs

old mode 100644 (file)
new mode 100755 (executable)
index 2fdc447..7b4014b
@@ -38,9 +38,6 @@ namespace Tizen.Multimedia
     /// and functions for picture manipulations like sepia negative and many more.
     /// It also notifies you when a significant picture parameter changes e.g. focus.
     /// </summary>
-    /// <privilege>
-    /// http://tizen.org/privilege/camera
-    /// </privilege>
     public class Camera : IDisposable, IDisplayable<CameraError>
     {
         private IntPtr _handle = IntPtr.Zero;
@@ -52,9 +49,6 @@ namespace Tizen.Multimedia
         /// Initializes a new instance of the <see cref="Camera"/> Class.
         /// </summary>
         /// <param name="device">The camera device to access</param>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         public Camera(CameraDevice device)
         {
             CameraErrorFactory.ThrowIfError(Native.Create((int)device, out _handle),
@@ -526,9 +520,6 @@ namespace Tizen.Multimedia
         /// Changes the camera device.
         /// </summary>
         /// <param name="device">The hardware camera to access.</param>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <remarks>
         /// If display reuse is set using <see cref="DisplayReuseHint"/>
         /// before stopping the preview, the display will be reused and last frame on the display
@@ -550,9 +541,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Gets the device state.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="device">The device to get state.</param>
         /// <returns>Returns the state of camera device</returns>
         /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
@@ -571,9 +559,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Gets the flash state.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="device">The device to get state.</param>
         /// <returns>Returns the flash state of camera device</returns>
         /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
old mode 100644 (file)
new mode 100755 (executable)
index c7622e9..2d89713
@@ -84,9 +84,6 @@ namespace Tizen.Multimedia
         /// The display rotation.
         /// </summary>
         /// <value>A <see cref="CameraRotation"/> that specifies the rotation of camera device.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera.
-        /// </privilege>
         /// <exception cref="ObjectDisposedException" > The camera already has been disposed.</exception>
         public CameraRotation Rotation
         {
@@ -111,9 +108,6 @@ namespace Tizen.Multimedia
         /// The display flip.
         /// </summary>
         /// <value>A <see cref="CameraFlip"/> that specifies camera flip type.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera.
-        /// </privilege>
         /// <exception cref="ObjectDisposedException" > The camera already has been disposed.</exception>
         public CameraFlip Flip
         {
old mode 100644 (file)
new mode 100755 (executable)
index 3286db4..4c125c1
@@ -72,9 +72,6 @@ namespace Tizen.Multimedia
         /// <remarks>
         /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
         /// </remarks>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="x">X position</param>
         /// <param name="y">Y position</param>
         /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
@@ -92,9 +89,6 @@ namespace Tizen.Multimedia
         /// <remarks>
         /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
         /// </remarks>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="pos"><see cref="Point"/> structure including X, Y position</param>
         /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
@@ -108,9 +102,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Clears the auto focus area.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public void ClearFocusArea()
         {
@@ -122,9 +113,6 @@ namespace Tizen.Multimedia
         /// The auto focus mode.
         /// </summary>
         /// <value>A <see cref="CameraAutoFocusMode"/> that specifies the auto focus mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraAutoFocusMode AutoFocusMode
         {
@@ -150,9 +138,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// The contrast level of the camera.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int Contrast
         {
@@ -177,9 +162,6 @@ namespace Tizen.Multimedia
         /// The auto contrast.
         /// If true auto contrast is enabled, otherwise false.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public bool AutoContrast
         {
@@ -224,9 +206,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// The brightness level of the camera.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int Brightness
         {
@@ -272,9 +251,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// The exposure value.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int Exposure
         {
@@ -299,9 +275,6 @@ namespace Tizen.Multimedia
         /// The exposure mode.
         /// </summary>
         /// <value>A <see cref="CameraExposureMode"/> that specifies the exposure mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraExposureMode ExposureMode
         {
@@ -348,9 +321,6 @@ namespace Tizen.Multimedia
         /// The zoom level.
         /// The range for zoom level is received from ZoomRange property.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera.
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int ZoomLevel
         {
@@ -396,9 +366,6 @@ namespace Tizen.Multimedia
         /// The whitebalance mode.
         /// </summary>
         /// <value>A <see cref="CameraWhiteBalance"/> that specifies the white balance mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraWhiteBalance WhiteBalance
         {
@@ -423,9 +390,6 @@ namespace Tizen.Multimedia
         /// The ISO level.
         /// </summary>
         /// <value>A <see cref="CameraIsoLevel"/> that specifies ISO level.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraIsoLevel IsoLevel
         {
@@ -450,9 +414,6 @@ namespace Tizen.Multimedia
         /// The quality of the image.
         /// The range for image quality is 1 to 100.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera.
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int ImageQuality
         {
@@ -501,9 +462,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Gets or sets the resolution of preview
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public Size PreviewResolution
@@ -576,9 +534,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Resolution of the captured image.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ArgumentException">In case of invalid parameters</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public Size CaptureResolution
@@ -681,9 +636,6 @@ namespace Tizen.Multimedia
         /// The theater mode.
         /// </summary>
         /// <value>A <see cref="CameraTheaterMode"/> that specifies theater mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <remarks>
         /// If you want to display the preview image on the external display with the full screen mode,
         /// use this property.
@@ -712,9 +664,6 @@ namespace Tizen.Multimedia
         /// The camera effect mode.
         /// </summary>
         /// <value>A <see cref="CameraEffectMode"/> that specifies effect mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraEffectMode Effect
         {
@@ -739,9 +688,6 @@ namespace Tizen.Multimedia
         /// The scene mode.
         /// </summary>
         /// <value>A <see cref="CameraSceneMode"/> that specifies scene mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraSceneMode SceneMode
         {
@@ -766,9 +712,6 @@ namespace Tizen.Multimedia
         /// The camera's flash mode.
         /// </summary>
         /// <value>A <see cref="CameraFlashMode"/> that specifies flash mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public CameraFlashMode FlashMode
         {
@@ -858,9 +801,6 @@ namespace Tizen.Multimedia
         /// The mode of HDR(High dynamic range) capture.
         /// </summary>
         /// <value>A <see cref="CameraHdrMode"/> that specifies the HDR mode.</value>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <remarks>
         /// Taking multiple pictures at different exposure levels and intelligently stitching them together
         /// so that we eventually arrive at a picture that is representative in both dark and bright areas.
@@ -914,9 +854,6 @@ namespace Tizen.Multimedia
         /// Enables/Disables the video stabilization feature.
         /// If true video stabilization is enabled, otherwise false.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <remarks>
         /// If video stabilization is enabled, zero shutter lag is disabled.
         /// This feature is used to record a video.
@@ -976,9 +913,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Sets the position to move horizontally.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="type">ptz move type. <seealso cref="CameraPtzMoveType"/></param>
         /// <param name="panStep">pan step</param>
         /// <exception cref="ArgumentException">In case of invalid parameters</exception>
@@ -992,9 +926,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Gets the current position of the camera.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <returns>Returns the camera's horizontal position</returns>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int GetPan()
@@ -1010,9 +941,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Sets the position to move vertically.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <param name="type">ptz move type</param>
         /// <param name="tiltStep">tilt step</param>
         /// <exception cref="ArgumentException">In case of invalid parameters</exception>
@@ -1026,9 +954,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Gets the current position of the camera.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <returns>Returns the current vertical position</returns>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public int GetTilt()
@@ -1192,9 +1117,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Removes the geotag(GPS data) in the EXIF(Exchangeable image file format) tag.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public void RemoveGeoTag()
         {
index 10877c6..6fcd1bc 100755 (executable)
@@ -31,9 +31,6 @@ namespace Tizen.Multimedia
     ///  to start, stop and save the recorded content. It also provides methods
     ///  to get/set various attributes and capabilities of recorder.
     /// </summary>
-    /// <privilege>
-    /// http://tizen.org/privilege/recorder
-    /// </privilege>
     public class Recorder : IDisposable
     {
         private IntPtr _handle = IntPtr.Zero;
@@ -43,9 +40,6 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Audio recorder constructor.
         /// </summary>
-        /// /// <privilege>
-        /// http://tizen.org/privilege/microphone
-        /// </privilege>
         public Recorder()
         {
             RecorderErrorFactory.ThrowIfError(Native.Create(out _handle),
@@ -65,9 +59,6 @@ namespace Tizen.Multimedia
         /// <param name="camera">
         /// The camera object.
         /// </param>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera
-        /// </privilege>
         public Recorder(Camera camera)
         {
             RecorderErrorFactory.ThrowIfError(Native.CreateVideo(camera.Handle, out _handle),
@@ -239,9 +230,6 @@ namespace Tizen.Multimedia
         /// Before calling the function, it is required to set AudioEncoder,
         /// videoencoder and fileformat properties of recorder.
         /// </remarks>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
-        /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public void Prepare()
@@ -260,9 +248,6 @@ namespace Tizen.Multimedia
         /// After this method is finished without any exception,
         /// The state of recorder will be changed to <see cref="RecorderState.Created"/> state.
         /// </summary>
-        /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
-        /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
         public void Unprepare()
@@ -288,10 +273,11 @@ namespace Tizen.Multimedia
         ///    The filename should be set before this function is invoked.
         /// </remarks>
         /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+        /// http://tizen.org/privilege/recorder
         /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+        /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
         public void Start()
         {
             ValidateState(RecorderState.Ready, RecorderState.Paused);
@@ -312,10 +298,11 @@ namespace Tizen.Multimedia
         /// Recording can be resumed with Start().
         /// </remarks>
         /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+        /// http://tizen.org/privilege/recorder
         /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+        /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
         public void Pause()
         {
             ValidateState(RecorderState.Recording);
@@ -333,10 +320,11 @@ namespace Tizen.Multimedia
         /// The state of recorder will be changed to <see cref="RecorderState.Ready"/> state.
         /// </summary>
         /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+        /// http://tizen.org/privilege/recorder
         /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+        /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
         public void Commit()
         {
             ValidateState(RecorderState.Recording, RecorderState.Paused);
@@ -355,10 +343,11 @@ namespace Tizen.Multimedia
         /// The state of recorder will be changed to <see cref="RecorderState.Ready"/> state.
         /// </summary>
         /// <privilege>
-        /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone
+        /// http://tizen.org/privilege/recorder
         /// </privilege>
         /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
         /// <exception cref="ObjectDisposedException">The camera already has been disposed.</exception>
+        /// <exception cref="UnauthorizedAccessException">In case of access to the resources cannot be granted.</exception>
         public void Cancel()
         {
             ValidateState(RecorderState.Recording, RecorderState.Paused);