From f19f843a43cbc7ce7fbf9037679956311f33e158 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Fri, 21 Oct 2016 15:02:33 +0900 Subject: [PATCH] csapi-sensor: change index type from int to unit in constructor - index shouldn't be the negative number. Change-Id: I06de291893588bc22fff4486feda9b3cbf0922cb Signed-off-by: kibak.yoon --- src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs | 2 +- .../Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs | 2 +- .../Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs | 2 +- src/Tizen.Sensor/Tizen.Sensor/Sensor.cs | 4 ++-- 29 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs index 5cce251..4a32f9a 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs @@ -65,7 +65,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular accelerometer sensor in case of multiple sensors /// - public Accelerometer(int index = 0) : base(index) + public Accelerometer(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating Accelerometer object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs index 917c88c..6dcb0ce 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/ActivityDetector.cs @@ -31,7 +31,7 @@ namespace Tizen.Sensor protected abstract void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data); - internal ActivityDetector(int index) : base(index) + internal ActivityDetector(uint index) : base(index) { } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs index 69adcc2..e29d6b7 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular face down gesture detector in case of multiple sensors. /// - public FaceDownGestureDetector(int index = 0) : base(index) + public FaceDownGestureDetector(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating face down gesture detector object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs index 07a330a..44b942b 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs @@ -66,7 +66,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular gravity sensor in case of multiple sensors /// - public GravitySensor (int index = 0) : base(index) + public GravitySensor (uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating GravitySensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs index 579a634..10d7953 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs @@ -65,7 +65,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular gyroscope sensor in case of multiple sensors /// - public Gyroscope(int index = 0) : base(index) + public Gyroscope(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating Gyroscope object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs index bfba8aa..4bd07ab 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs @@ -75,7 +75,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular gyroscope rotation vector sensor in case of multiple sensors /// - public GyroscopeRotationVectorSensor(int index = 0) : base(index) + public GyroscopeRotationVectorSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating GyroscopeRotationVectorSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs index c9f3497..54d6fb5 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs @@ -59,7 +59,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular heart rate monitor in case of multiple sensors /// - public HeartRateMonitor(int index = 0) : base(index) + public HeartRateMonitor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating HeartRateMonitor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs index 2c739a2..128e86e 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular humidity sensor in case of multiple sensors /// - public HumiditySensor(int index = 0) : base(index) + public HumiditySensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating HumiditySensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs index 7b518bb..7b5cffa 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular in-vehicle activity detector in case of multiple sensors. /// - public InVehicleActivityDetector(int index = 0) : base(index) + public InVehicleActivityDetector(uint index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.InVehicle); Log.Info(Globals.LogTag, "Creating in-vehicle activity detector object"); diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs index 4e4d87b..2bbe5fd 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular light sensor in case of multiple sensors /// - public LightSensor(int index = 0) : base(index) + public LightSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating LightSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs index aa767b7..eefb258 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs @@ -66,7 +66,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular linear acceleration sensor in case of multiple sensors /// - public LinearAccelerationSensor(int index = 0) : base(index) + public LinearAccelerationSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating LinearAccelerationSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs index e0ed9d2..80baee8 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs @@ -66,7 +66,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular magnetometer in case of multiple sensors /// - public Magnetometer(int index = 0) : base(index) + public Magnetometer(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating Magnetometer object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs index 91fbb92..1b7b104 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs @@ -76,7 +76,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular magnetometer rotation vector sensor in case of multiple sensors /// - public MagnetometerRotationVectorSensor(int index = 0) : base(index) + public MagnetometerRotationVectorSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating MagnetometerRotationVectorSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs index 132456e..ae8512b 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs @@ -66,7 +66,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular orientation sensor in case of multiple sensors /// - public OrientationSensor(int index = 0) : base(index) + public OrientationSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating OrientationSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs index 9e5a0d6..32178d9 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs @@ -94,7 +94,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular pedometer sensor in case of multiple sensors /// - public Pedometer(int index = 0) : base(index) + public Pedometer(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating Pedometer object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs index f236a4a..80c2739 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular pick up gesture detector in case of multiple sensors. /// - public PickUpGestureDetector(int index = 0) : base(index) + public PickUpGestureDetector(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating pick up gesture detector object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs index 5ee28ad..55d7b42 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular pressure sensor in case of multiple sensors /// - public PressureSensor(int index = 0) : base(index) + public PressureSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating PressureSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs index 15195c6..898269f 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular proximity sensor in case of multiple sensors /// - public ProximitySensor(int index = 0) : base(index) + public ProximitySensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating ProximitySensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs index be44649..4c400c3 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs @@ -76,7 +76,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular rotation vector sensor in case of multiple sensors /// - public RotationVectorSensor(int index = 0) : base(index) + public RotationVectorSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating RotationVectorSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs index 917f930..72fe410 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular running activity detector in case of multiple sensors. /// - public RunningActivityDetector(int index = 0) : base(index) + public RunningActivityDetector(uint index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Running); Log.Info(Globals.LogTag, "Creating running activity detector object"); diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs index f08a80b..543f5e6 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs @@ -59,7 +59,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular sleep monitor in case of multiple sensors /// - public SleepMonitor(int index = 0) : base(index) + public SleepMonitor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating SleepMonitor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs index 73a83cd..b5c5b7c 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular stationary activity detector in case of multiple sensors. /// - public StationaryActivityDetector(int index = 0) : base(index) + public StationaryActivityDetector(uint index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Stationary); Log.Info(Globals.LogTag, "Creating stationary activity detector object"); diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs index ac09680..3fdc409 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular temperature sensor in case of multiple sensors /// - public TemperatureSensor(int index = 0) : base(index) + public TemperatureSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating TemperatureSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs index d04a104..4aeba27 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular ultraviolet sensor in case of multiple sensors /// - public UltravioletSensor(int index = 0) : base(index) + public UltravioletSensor(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating UltravioletSensor object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs index 302efec..e3a8b87 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs @@ -80,7 +80,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular uncalibrated gyroscope sensor in case of multiple sensors /// - public UncalibratedGyroscope(int index = 0) : base(index) + public UncalibratedGyroscope(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating UncalibratedGyroscope object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs index a9bb8b4..c877116 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs @@ -81,7 +81,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular uncalibrated magnetometer sensor in case of multiple sensors /// - public UncalibratedMagnetometer(int index = 0) : base(index) + public UncalibratedMagnetometer(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating UncalibratedMagnetometer object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs index 307a16b..3b7dbf3 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular walking activity detector in case of multiple sensors. /// - public WalkingActivityDetector(int index = 0) : base(index) + public WalkingActivityDetector(uint index = 0) : base(index) { SetAttribute((SensorAttribute)ActivityAttribute, (int)ActivityType.Walking); Log.Info(Globals.LogTag, "Creating walking activity gesture detector object"); diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs index c7134ae..3c92416 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs @@ -55,7 +55,7 @@ namespace Tizen.Sensor /// /// Index. Default value for this is 0. Index refers to a particular wrist up gesture detector in case of multiple sensors. /// - public WristUpGestureDetector(int index = 0) : base(index) + public WristUpGestureDetector(uint index = 0) : base(index) { Log.Info(Globals.LogTag, "Creating wrist up gesture detector object"); } diff --git a/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs index 0245e84..0c98272 100644 --- a/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs @@ -42,7 +42,7 @@ namespace Tizen.Sensor protected abstract void EventListenStart(); protected abstract void EventListenStop(); - internal Sensor(int index) + internal Sensor(uint index) { SensorType type = GetSensorType(); GetHandleList(type, index); @@ -350,7 +350,7 @@ namespace Tizen.Sensor } } - private void GetHandleList(SensorType type, int index) + private void GetHandleList(SensorType type, uint index) { IntPtr list; IntPtr[] sensorList; -- 2.7.4