Merge "Updates EventPayload documentation for (Geomag)-RV" am: 79189993ec

am: d60adf2dd9

Change-Id: Ie7cc8345c813e2deb371ce1c2360e62a01248ac5
This commit is contained in:
Arthur Ishiguro 2018-11-05 17:47:39 -08:00 committed by android-build-merger
commit f81482a5f6
2 changed files with 10 additions and 3 deletions

View file

@ -394,5 +394,6 @@ e22e8135d061d0e9c4c1a70c25c19fdba10f4d3cda9795ef25b6392fc520317c android.hardwar
1d4a5776614c08b5d794a5ec5ab04697260cbd4b3441d5935cd53ee71d19da02 android.hardware.radio@1.0::IRadioResponse
271187e261b30c01a33011aea257c07a2d2f05b72943ebee89e973e997849973 android.hardware.radio@1.0::types
1d19720d4fd38b1095f0f555a4bd92b3b12c9b1d0f560b0e9a474cd6dcc20db6 android.hardware.radio@1.2::IRadio
e78cf871f9fd1c072874e481e06e18e2681763cf2aa38c1fd777d53bab4eb69b android.hardware.sensors@1.0::types
1722ad002317b1fae1400de709e90f442d94ef22864e05f7a12af48c32e8edc8 android.hardware.usb@1.1::types
29c8da7a13c40d488f569c812441d5754ee45bdcdb8ce6564f524b708d10a057 android.hardware.vibrator@1.1::types

View file

@ -1157,8 +1157,7 @@ union EventPayload {
Vec3 vec3;
/**
* SensorType::ROTATION_VECTOR, SensorType::GAME_ROTATION_VECTOR,
* SensorType::GEOMAGNETIC_ROTATION_VECTOR
* SensorType::GAME_ROTATION_VECTOR
*/
Vec4 vec4;
@ -1200,7 +1199,14 @@ union EventPayload {
/** SensorType::ADDITIONAL_INFO */
AdditionalInfo additional;
/** undefined/custom sensor type >= SensorType::DEVICE_PRIVATE_BASE */
/**
* The following sensors should use the data field:
* - Undefined/custom sensor type >= SensorType::DEVICE_PRIVATE_BASE
* - SensorType::ROTATION_VECTOR, SensorType::GEOMAGNETIC_ROTATION_VECTOR:
* - These are Vec4 types with an additional float accuracy field,
* where data[4] is the estimated heading accuracy in radians
* (-1 if unavailable, and invalid if not in the range (0, 2 * pi]).
*/
float[16] data;
};