- index shouldn't be the negative number.
Change-Id: I06de291893588bc22fff4486feda9b3cbf0922cb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular accelerometer sensor in case of multiple sensors
/// </param>
- public Accelerometer(int index = 0) : base(index)
+ public Accelerometer(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating Accelerometer object");
}
protected abstract void SensorEventCallback(IntPtr sensorHandle, IntPtr sensorPtr, IntPtr data);
- internal ActivityDetector(int index) : base(index)
+ internal ActivityDetector(uint index) : base(index)
{
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular face down gesture detector in case of multiple sensors.
/// </param>
- public FaceDownGestureDetector(int index = 0) : base(index)
+ public FaceDownGestureDetector(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating face down gesture detector object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular gravity sensor in case of multiple sensors
/// </param>
- public GravitySensor (int index = 0) : base(index)
+ public GravitySensor (uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating GravitySensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular gyroscope sensor in case of multiple sensors
/// </param>
- public Gyroscope(int index = 0) : base(index)
+ public Gyroscope(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating Gyroscope object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular gyroscope rotation vector sensor in case of multiple sensors
/// </param>
- public GyroscopeRotationVectorSensor(int index = 0) : base(index)
+ public GyroscopeRotationVectorSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating GyroscopeRotationVectorSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular heart rate monitor in case of multiple sensors
/// </param>
- public HeartRateMonitor(int index = 0) : base(index)
+ public HeartRateMonitor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating HeartRateMonitor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular humidity sensor in case of multiple sensors
/// </param>
- public HumiditySensor(int index = 0) : base(index)
+ public HumiditySensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating HumiditySensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular in-vehicle activity detector in case of multiple sensors.
/// </param>
- 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");
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular light sensor in case of multiple sensors
/// </param>
- public LightSensor(int index = 0) : base(index)
+ public LightSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating LightSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular linear acceleration sensor in case of multiple sensors
/// </param>
- public LinearAccelerationSensor(int index = 0) : base(index)
+ public LinearAccelerationSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating LinearAccelerationSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular magnetometer in case of multiple sensors
/// </param>
- public Magnetometer(int index = 0) : base(index)
+ public Magnetometer(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating Magnetometer object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular magnetometer rotation vector sensor in case of multiple sensors
/// </param>
- public MagnetometerRotationVectorSensor(int index = 0) : base(index)
+ public MagnetometerRotationVectorSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating MagnetometerRotationVectorSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular orientation sensor in case of multiple sensors
/// </param>
- public OrientationSensor(int index = 0) : base(index)
+ public OrientationSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating OrientationSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular pedometer sensor in case of multiple sensors
/// </param>
- public Pedometer(int index = 0) : base(index)
+ public Pedometer(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating Pedometer object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular pick up gesture detector in case of multiple sensors.
/// </param>
- public PickUpGestureDetector(int index = 0) : base(index)
+ public PickUpGestureDetector(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating pick up gesture detector object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular pressure sensor in case of multiple sensors
/// </param>
- public PressureSensor(int index = 0) : base(index)
+ public PressureSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating PressureSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular proximity sensor in case of multiple sensors
/// </param>
- public ProximitySensor(int index = 0) : base(index)
+ public ProximitySensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating ProximitySensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular rotation vector sensor in case of multiple sensors
/// </param>
- public RotationVectorSensor(int index = 0) : base(index)
+ public RotationVectorSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating RotationVectorSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular running activity detector in case of multiple sensors.
/// </param>
- 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");
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular sleep monitor in case of multiple sensors
/// </param>
- public SleepMonitor(int index = 0) : base(index)
+ public SleepMonitor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating SleepMonitor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular stationary activity detector in case of multiple sensors.
/// </param>
- 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");
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular temperature sensor in case of multiple sensors
/// </param>
- public TemperatureSensor(int index = 0) : base(index)
+ public TemperatureSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating TemperatureSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular ultraviolet sensor in case of multiple sensors
/// </param>
- public UltravioletSensor(int index = 0) : base(index)
+ public UltravioletSensor(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating UltravioletSensor object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular uncalibrated gyroscope sensor in case of multiple sensors
/// </param>
- public UncalibratedGyroscope(int index = 0) : base(index)
+ public UncalibratedGyroscope(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating UncalibratedGyroscope object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular uncalibrated magnetometer sensor in case of multiple sensors
/// </param>
- public UncalibratedMagnetometer(int index = 0) : base(index)
+ public UncalibratedMagnetometer(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating UncalibratedMagnetometer object");
}
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular walking activity detector in case of multiple sensors.
/// </param>
- 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");
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular wrist up gesture detector in case of multiple sensors.
/// </param>
- public WristUpGestureDetector(int index = 0) : base(index)
+ public WristUpGestureDetector(uint index = 0) : base(index)
{
Log.Info(Globals.LogTag, "Creating wrist up gesture detector object");
}
protected abstract void EventListenStart();
protected abstract void EventListenStop();
- internal Sensor(int index)
+ internal Sensor(uint index)
{
SensorType type = GetSensorType();
GetHandleList(type, index);
}
}
- private void GetHandleList(SensorType type, int index)
+ private void GetHandleList(SensorType type, uint index)
{
IntPtr list;
IntPtr[] sensorList;