Loading compatibility_matrices/compatibility_matrix.current.xml +1 −0 Original line number Diff line number Diff line Loading @@ -577,6 +577,7 @@ </hal> <hal format="aidl" optional="true"> <name>android.hardware.sensors</name> <version>2</version> <interface> <name>ISensors</name> <instance>default</instance> Loading sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/ISensors.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ interface ISensors { const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_DATA = 24; const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_RESERVED = 88; const int DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH = 104; const int RUNTIME_SENSORS_HANDLE_BASE = 1593835520; const int RUNTIME_SENSORS_HANDLE_END = 1610612735; @Backing(type="int") @VintfStability enum RateLevel { STOP = 0, Loading sensors/aidl/android/hardware/sensors/ISensors.aidl +9 −0 Original line number Diff line number Diff line Loading @@ -371,4 +371,13 @@ interface ISensors { const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_DATA = 0x18; const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_RESERVED = 0x58; const int DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH = 104; /** * Constants related to reserved sensor handle ranges. * * The following range (inclusive) is reserved for usage by the system for * runtime sensors. */ const int RUNTIME_SENSORS_HANDLE_BASE = 0x5F000000; const int RUNTIME_SENSORS_HANDLE_END = 0x5FFFFFFF; } sensors/aidl/convert/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ cc_library_static { "libhardware", "libbase", "libutils", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], whole_static_libs: [ "sensors_common_convert", Loading sensors/aidl/default/Android.bp +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ cc_library_static { "libfmq", "libpower", "libbinder_ndk", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], export_include_dirs: ["include"], srcs: [ Loading @@ -68,7 +68,7 @@ cc_binary { "libcutils", "liblog", "libutils", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], static_libs: [ "libsensorsexampleimpl", Loading Loading
compatibility_matrices/compatibility_matrix.current.xml +1 −0 Original line number Diff line number Diff line Loading @@ -577,6 +577,7 @@ </hal> <hal format="aidl" optional="true"> <name>android.hardware.sensors</name> <version>2</version> <interface> <name>ISensors</name> <instance>default</instance> Loading
sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/ISensors.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ interface ISensors { const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_DATA = 24; const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_RESERVED = 88; const int DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH = 104; const int RUNTIME_SENSORS_HANDLE_BASE = 1593835520; const int RUNTIME_SENSORS_HANDLE_END = 1610612735; @Backing(type="int") @VintfStability enum RateLevel { STOP = 0, Loading
sensors/aidl/android/hardware/sensors/ISensors.aidl +9 −0 Original line number Diff line number Diff line Loading @@ -371,4 +371,13 @@ interface ISensors { const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_DATA = 0x18; const int DIRECT_REPORT_SENSOR_EVENT_OFFSET_SIZE_RESERVED = 0x58; const int DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH = 104; /** * Constants related to reserved sensor handle ranges. * * The following range (inclusive) is reserved for usage by the system for * runtime sensors. */ const int RUNTIME_SENSORS_HANDLE_BASE = 0x5F000000; const int RUNTIME_SENSORS_HANDLE_END = 0x5FFFFFFF; }
sensors/aidl/convert/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ cc_library_static { "libhardware", "libbase", "libutils", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], whole_static_libs: [ "sensors_common_convert", Loading
sensors/aidl/default/Android.bp +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ cc_library_static { "libfmq", "libpower", "libbinder_ndk", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], export_include_dirs: ["include"], srcs: [ Loading @@ -68,7 +68,7 @@ cc_binary { "libcutils", "liblog", "libutils", "android.hardware.sensors-V1-ndk", "android.hardware.sensors-V2-ndk", ], static_libs: [ "libsensorsexampleimpl", Loading