From: kibak.yoon Date: Fri, 21 Oct 2016 06:02:33 +0000 (+0900) Subject: csapi-sensor: change index type from int to unit in constructor X-Git-Tag: submit/trunk/20170823.075128~86^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f19f843a43cbc7ce7fbf9037679956311f33e158;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git 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 --- diff --git a/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs b/src/Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs index 5cce25199..4a32f9af3 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 917c88c18..6dcb0ce5d 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 69adcc286..e29d6b7a3 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 07a330ad8..44b942be3 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 579a63411..10d7953b4 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 bfba8aa65..4bd07abdc 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 c9f3497d5..54d6fb58d 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 2c739a2e4..128e86e34 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 7b518bbdf..7b5cffaef 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 4e4d87b99..2bbe5fd3b 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 aa767b788..eefb2586d 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 e0ed9d21d..80baee8a1 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 91fbb9281..1b7b1044d 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 132456ed4..ae8512b25 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 9e5a0d685..32178d9af 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 f236a4a9e..80c273901 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 5ee28adb5..55d7b424a 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 15195c6a7..898269f3d 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 be446496d..4c400c3be 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 917f930a7..72fe41043 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 f08a80b06..543f5e6fa 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 73a83cd4f..b5c5b7c13 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 ac09680ce..3fdc40969 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 d04a10493..4aeba27b1 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 302efec48..e3a8b87ff 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 a9bb8b4a5..c8771162f 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 307a16bca..3b7dbf39b 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 c7134aea4..3c92416e4 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 0245e8474..0c98272bc 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;