1 // This file is autogenerated by hidl-gen. Do not edit manually.
2 // Source: android.hardware.sensors@1.0
3 // Location: hardware/interfaces/sensors/1.0/
4 
5 #ifndef HIDL_GENERATED_ANDROID_HARDWARE_SENSORS_V1_0_EXPORTED_CONSTANTS_H_
6 #define HIDL_GENERATED_ANDROID_HARDWARE_SENSORS_V1_0_EXPORTED_CONSTANTS_H_
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 enum {
13     SENSOR_HAL_NORMAL_MODE = 0,
14     SENSOR_HAL_DATA_INJECTION_MODE = 1,
15 };
16 
17 enum {
18     SENSOR_TYPE_META_DATA = 0,
19     SENSOR_TYPE_ACCELEROMETER = 1,
20     SENSOR_TYPE_MAGNETIC_FIELD = 2,
21     SENSOR_TYPE_ORIENTATION = 3,
22     SENSOR_TYPE_GYROSCOPE = 4,
23     SENSOR_TYPE_LIGHT = 5,
24     SENSOR_TYPE_PRESSURE = 6,
25     SENSOR_TYPE_TEMPERATURE = 7,
26     SENSOR_TYPE_PROXIMITY = 8,
27     SENSOR_TYPE_GRAVITY = 9,
28     SENSOR_TYPE_LINEAR_ACCELERATION = 10,
29     SENSOR_TYPE_ROTATION_VECTOR = 11,
30     SENSOR_TYPE_RELATIVE_HUMIDITY = 12,
31     SENSOR_TYPE_AMBIENT_TEMPERATURE = 13,
32     SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED = 14,
33     SENSOR_TYPE_GAME_ROTATION_VECTOR = 15,
34     SENSOR_TYPE_GYROSCOPE_UNCALIBRATED = 16,
35     SENSOR_TYPE_SIGNIFICANT_MOTION = 17,
36     SENSOR_TYPE_STEP_DETECTOR = 18,
37     SENSOR_TYPE_STEP_COUNTER = 19,
38     SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20,
39     SENSOR_TYPE_HEART_RATE = 21,
40     SENSOR_TYPE_TILT_DETECTOR = 22,
41     SENSOR_TYPE_WAKE_GESTURE = 23,
42     SENSOR_TYPE_GLANCE_GESTURE = 24,
43     SENSOR_TYPE_PICK_UP_GESTURE = 25,
44     SENSOR_TYPE_WRIST_TILT_GESTURE = 26,
45     SENSOR_TYPE_DEVICE_ORIENTATION = 27,
46     SENSOR_TYPE_POSE_6DOF = 28,
47     SENSOR_TYPE_STATIONARY_DETECT = 29,
48     SENSOR_TYPE_MOTION_DETECT = 30,
49     SENSOR_TYPE_HEART_BEAT = 31,
50     SENSOR_TYPE_DYNAMIC_SENSOR_META = 32,
51     SENSOR_TYPE_ADDITIONAL_INFO = 33,
52     SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT = 34,
53     SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED = 35,
54     SENSOR_TYPE_HINGE_ANGLE = 36,
55     SENSOR_TYPE_HEAD_TRACKER = 37,
56     SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES = 38,
57     SENSOR_TYPE_GYROSCOPE_LIMITED_AXES = 39,
58     SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED = 40,
59     SENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED = 41,
60     SENSOR_TYPE_HEADING = 42,
61     SENSOR_TYPE_DEVICE_PRIVATE_BASE = 65536 /* 0x10000 */,
62 };
63 
64 enum {
65     SENSOR_FLAG_WAKE_UP = 1u,
66     SENSOR_FLAG_CONTINUOUS_MODE = 0u,
67     SENSOR_FLAG_ON_CHANGE_MODE = 2u,
68     SENSOR_FLAG_ONE_SHOT_MODE = 4u,
69     SENSOR_FLAG_SPECIAL_REPORTING_MODE = 6u,
70     SENSOR_FLAG_DATA_INJECTION = 16u /* 0x10 */,
71     SENSOR_FLAG_DYNAMIC_SENSOR = 32u /* 0x20 */,
72     SENSOR_FLAG_ADDITIONAL_INFO = 64u /* 0x40 */,
73     SENSOR_FLAG_DIRECT_CHANNEL_ASHMEM = 1024u /* 0x400 */,
74     SENSOR_FLAG_DIRECT_CHANNEL_GRALLOC = 2048u /* 0x800 */,
75     SENSOR_FLAG_MASK_REPORTING_MODE = 14u /* 0xE */,
76     SENSOR_FLAG_MASK_DIRECT_REPORT = 896u /* 0x380 */,
77     SENSOR_FLAG_MASK_DIRECT_CHANNEL = 3072u /* 0xC00 */,
78 };
79 
80 typedef enum {
81     SENSOR_FLAG_SHIFT_REPORTING_MODE = 1,
82     SENSOR_FLAG_SHIFT_DATA_INJECTION = 4,
83     SENSOR_FLAG_SHIFT_DYNAMIC_SENSOR = 5,
84     SENSOR_FLAG_SHIFT_ADDITIONAL_INFO = 6,
85     SENSOR_FLAG_SHIFT_DIRECT_REPORT = 7,
86     SENSOR_FLAG_SHIFT_DIRECT_CHANNEL = 10,
87 } sensor_flag_shift_t;
88 
89 enum {
90     SENSOR_STATUS_NO_CONTACT = -1 /* -1 */,
91     SENSOR_STATUS_UNRELIABLE = 0,
92     SENSOR_STATUS_ACCURACY_LOW = 1,
93     SENSOR_STATUS_ACCURACY_MEDIUM = 2,
94     SENSOR_STATUS_ACCURACY_HIGH = 3,
95 };
96 
97 enum {
98     META_DATA_FLUSH_COMPLETE = 1u,
99 };
100 
101 typedef enum {
102     AINFO_BEGIN = 0u,
103     AINFO_END = 1u,
104     AINFO_UNTRACKED_DELAY = 65536u /* 0x10000 */,
105     AINFO_INTERNAL_TEMPERATURE = 65537u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_UNTRACKED_DELAY implicitly + 1 */,
106     AINFO_VEC3_CALIBRATION = 65538u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_INTERNAL_TEMPERATURE implicitly + 1 */,
107     AINFO_SENSOR_PLACEMENT = 65539u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_VEC3_CALIBRATION implicitly + 1 */,
108     AINFO_SAMPLING = 65540u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_SENSOR_PLACEMENT implicitly + 1 */,
109     AINFO_CHANNEL_NOISE = 131072u /* 0x20000 */,
110     AINFO_CHANNEL_SAMPLER = 131073u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_NOISE implicitly + 1 */,
111     AINFO_CHANNEL_FILTER = 131074u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_SAMPLER implicitly + 1 */,
112     AINFO_CHANNEL_LINEAR_TRANSFORM = 131075u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_FILTER implicitly + 1 */,
113     AINFO_CHANNEL_NONLINEAR_MAP = 131076u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_LINEAR_TRANSFORM implicitly + 1 */,
114     AINFO_CHANNEL_RESAMPLER = 131077u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_NONLINEAR_MAP implicitly + 1 */,
115     AINFO_LOCAL_GEOMAGNETIC_FIELD = 196608u /* 0x30000 */,
116     AINFO_LOCAL_GRAVITY = 196609u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_LOCAL_GEOMAGNETIC_FIELD implicitly + 1 */,
117     AINFO_DOCK_STATE = 196610u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_LOCAL_GRAVITY implicitly + 1 */,
118     AINFO_HIGH_PERFORMANCE_MODE = 196611u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_DOCK_STATE implicitly + 1 */,
119     AINFO_MAGNETIC_FIELD_CALIBRATION = 196612u /* ::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_HIGH_PERFORMANCE_MODE implicitly + 1 */,
120     AINFO_CUSTOM_START = 268435456u /* 0x10000000 */,
121     AINFO_DEBUGGING_START = 1073741824u /* 0x40000000 */,
122 } additional_info_type_t;
123 
124 typedef enum {
125     SENSOR_DIRECT_RATE_STOP = 0,
126     SENSOR_DIRECT_RATE_NORMAL = 1 /* ::android::hardware::sensors::V1_0::RateLevel.STOP implicitly + 1 */,
127     SENSOR_DIRECT_RATE_FAST = 2 /* ::android::hardware::sensors::V1_0::RateLevel.NORMAL implicitly + 1 */,
128     SENSOR_DIRECT_RATE_VERY_FAST = 3 /* ::android::hardware::sensors::V1_0::RateLevel.FAST implicitly + 1 */,
129 } direct_rate_level_t;
130 
131 typedef enum {
132     SENSOR_DIRECT_MEM_TYPE_ASHMEM = 1,
133     SENSOR_DIRECT_MEM_TYPE_GRALLOC = 2 /* ::android::hardware::sensors::V1_0::SharedMemType.ASHMEM implicitly + 1 */,
134 } direct_mem_type_t;
135 
136 typedef enum {
137     SENSOR_DIRECT_FMT_SENSORS_EVENT = 1,
138 } direct_format_t;
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif  // HIDL_GENERATED_ANDROID_HARDWARE_SENSORS_V1_0_EXPORTED_CONSTANTS_H_
145