public class SensorAdditionalInfo
extends Object
java.lang.Object | |
↳ | android.hardware.SensorAdditionalInfo |
This class represents a Sensor
additional information frame, which is reported through listener callback onSensorAdditionalInfo
.
See also:
Constants |
|
---|---|
int |
TYPE_FRAME_BEGIN Mark the beginning of a set of additional info frames. |
int |
TYPE_FRAME_END Mark the end of a set of additional info frames. |
int |
TYPE_INTERNAL_TEMPERATURE Internal temperature. |
int |
TYPE_SAMPLING Sampling parameter. |
int |
TYPE_SENSOR_PLACEMENT Sensor placement. |
int |
TYPE_UNTRACKED_DELAY Untracked delay. |
int |
TYPE_VEC3_CALIBRATION Vector calibration parameter. |
Fields |
|
---|---|
public final float[] |
floatValues Additional info payload data represented in float values. |
public final int[] |
intValues Additional info payload data represented in int values. |
public final Sensor |
sensor The sensor that generated this event. |
public final int |
serial Sequence number of frame for a certain type. |
public final int |
type Type of this additional info frame. |
Inherited methods |
|
---|---|
![]() java.lang.Object
|
int TYPE_FRAME_BEGIN
Mark the beginning of a set of additional info frames.
Constant Value: 0 (0x00000000)
int TYPE_FRAME_END
Mark the end of a set of additional info frames.
Constant Value: 1 (0x00000001)
int TYPE_INTERNAL_TEMPERATURE
Internal temperature. Sensor hardware device internal temperature. Payload: floatValues[0]: internal temperature in Celsius.
Constant Value: 65537 (0x00010001)
int TYPE_SAMPLING
Sampling parameter. Describes the raw sample period and estimated jitter of sample time in terms of standard deviation. Payload: floatValues[0]: raw sample period in seconds. floatValues[1]: standard deviation of sampling period.
Constant Value: 65540 (0x00010004)
int TYPE_SENSOR_PLACEMENT
Sensor placement. Describes location and installation angle of the sensor device. Payload: floatValues[0..11]: First 3 rows of homogeneous matrix in row major order that describes the location and orientation of the sensor. Origin of reference will be the mobile device geometric sensor. Reference frame is defined as the same as Android sensor frame.
Constant Value: 65539 (0x00010003)
int TYPE_UNTRACKED_DELAY
Untracked delay. Delays that are introduced by data processing, such as filtering, which is not taken into account by sensor timestamps. Payload: floatValues[0]: delay estimation in seconds floatValues[1]: delay estimation standard deviation
Constant Value: 65536 (0x00010000)
int TYPE_VEC3_CALIBRATION
Vector calibration parameter. Calibration applied to a sensor with 3 elements vector output, such as accelerometer, gyro, etc. Payload: floatValues[0..11]: First 3 rows of a homogeneous matrix in row major order that captures any linear transformation, including rotation, scaling, shear, shift.
Constant Value: 65538 (0x00010002)
float[] floatValues
Additional info payload data represented in float values. Depending on the type of information, this may be null.
int[] intValues
Additional info payload data represented in int values. Depending on the type of information, this may be null.
Sensor sensor
The sensor that generated this event. See SensorManager
for details.