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_DEVICE_PRIVATE_BASE = 65536 /* 0x10000 */, 55 }; 56 57 enum { 58 SENSOR_FLAG_WAKE_UP = 1u, 59 SENSOR_FLAG_CONTINUOUS_MODE = 0u, 60 SENSOR_FLAG_ON_CHANGE_MODE = 2u, 61 SENSOR_FLAG_ONE_SHOT_MODE = 4u, 62 SENSOR_FLAG_SPECIAL_REPORTING_MODE = 6u, 63 SENSOR_FLAG_DATA_INJECTION = 16u /* 0x10 */, 64 SENSOR_FLAG_DYNAMIC_SENSOR = 32u /* 0x20 */, 65 SENSOR_FLAG_ADDITIONAL_INFO = 64u /* 0x40 */, 66 SENSOR_FLAG_DIRECT_CHANNEL_ASHMEM = 1024u /* 0x400 */, 67 SENSOR_FLAG_DIRECT_CHANNEL_GRALLOC = 2048u /* 0x800 */, 68 SENSOR_FLAG_MASK_REPORTING_MODE = 14u /* 0xE */, 69 SENSOR_FLAG_MASK_DIRECT_REPORT = 896u /* 0x380 */, 70 SENSOR_FLAG_MASK_DIRECT_CHANNEL = 3072u /* 0xC00 */, 71 }; 72 73 typedef enum { 74 SENSOR_FLAG_SHIFT_REPORTING_MODE = 1, 75 SENSOR_FLAG_SHIFT_DATA_INJECTION = 4, 76 SENSOR_FLAG_SHIFT_DYNAMIC_SENSOR = 5, 77 SENSOR_FLAG_SHIFT_ADDITIONAL_INFO = 6, 78 SENSOR_FLAG_SHIFT_DIRECT_REPORT = 7, 79 SENSOR_FLAG_SHIFT_DIRECT_CHANNEL = 10, 80 } sensor_flag_shift_t; 81 82 enum { 83 SENSOR_STATUS_NO_CONTACT = -1 /* (-1) */, 84 SENSOR_STATUS_UNRELIABLE = 0, 85 SENSOR_STATUS_ACCURACY_LOW = 1, 86 SENSOR_STATUS_ACCURACY_MEDIUM = 2, 87 SENSOR_STATUS_ACCURACY_HIGH = 3, 88 }; 89 90 enum { 91 META_DATA_FLUSH_COMPLETE = 1u, 92 }; 93 94 typedef enum { 95 AINFO_BEGIN = 0u, 96 AINFO_END = 1u, 97 AINFO_UNTRACKED_DELAY = 65536u /* 0x10000 */, 98 AINFO_INTERNAL_TEMPERATURE = 65537u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_UNTRACKED_DELAY implicitly + 1) */, 99 AINFO_VEC3_CALIBRATION = 65538u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_INTERNAL_TEMPERATURE implicitly + 1) */, 100 AINFO_SENSOR_PLACEMENT = 65539u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_VEC3_CALIBRATION implicitly + 1) */, 101 AINFO_SAMPLING = 65540u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_SENSOR_PLACEMENT implicitly + 1) */, 102 AINFO_CHANNEL_NOISE = 131072u /* 0x20000 */, 103 AINFO_CHANNEL_SAMPLER = 131073u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_NOISE implicitly + 1) */, 104 AINFO_CHANNEL_FILTER = 131074u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_SAMPLER implicitly + 1) */, 105 AINFO_CHANNEL_LINEAR_TRANSFORM = 131075u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_FILTER implicitly + 1) */, 106 AINFO_CHANNEL_NONLINEAR_MAP = 131076u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_LINEAR_TRANSFORM implicitly + 1) */, 107 AINFO_CHANNEL_RESAMPLER = 131077u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_CHANNEL_NONLINEAR_MAP implicitly + 1) */, 108 AINFO_LOCAL_GEOMAGNETIC_FIELD = 196608u /* 0x30000 */, 109 AINFO_LOCAL_GRAVITY = 196609u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_LOCAL_GEOMAGNETIC_FIELD implicitly + 1) */, 110 AINFO_DOCK_STATE = 196610u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_LOCAL_GRAVITY implicitly + 1) */, 111 AINFO_HIGH_PERFORMANCE_MODE = 196611u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_DOCK_STATE implicitly + 1) */, 112 AINFO_MAGNETIC_FIELD_CALIBRATION = 196612u /* (::android::hardware::sensors::V1_0::AdditionalInfoType.AINFO_HIGH_PERFORMANCE_MODE implicitly + 1) */, 113 AINFO_CUSTOM_START = 268435456u /* 0x10000000 */, 114 AINFO_DEBUGGING_START = 1073741824u /* 0x40000000 */, 115 } additional_info_type_t; 116 117 typedef enum { 118 SENSOR_DIRECT_RATE_STOP = 0, 119 SENSOR_DIRECT_RATE_NORMAL = 1 /* (::android::hardware::sensors::V1_0::RateLevel.STOP implicitly + 1) */, 120 SENSOR_DIRECT_RATE_FAST = 2 /* (::android::hardware::sensors::V1_0::RateLevel.NORMAL implicitly + 1) */, 121 SENSOR_DIRECT_RATE_VERY_FAST = 3 /* (::android::hardware::sensors::V1_0::RateLevel.FAST implicitly + 1) */, 122 } direct_rate_level_t; 123 124 typedef enum { 125 SENSOR_DIRECT_MEM_TYPE_ASHMEM = 1, 126 SENSOR_DIRECT_MEM_TYPE_GRALLOC = 2 /* (::android::hardware::sensors::V1_0::SharedMemType.ASHMEM implicitly + 1) */, 127 } direct_mem_type_t; 128 129 typedef enum { 130 SENSOR_DIRECT_FMT_SENSORS_EVENT = 1, 131 } direct_format_t; 132 133 #ifdef __cplusplus 134 } 135 #endif 136 137 #endif // HIDL_GENERATED_ANDROID_HARDWARE_SENSORS_V1_0_EXPORTED_CONSTANTS_H_ 138