Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b6df49e authored by Peng Xu's avatar Peng Xu Committed by Android (Google) Code Review
Browse files

Merge "Sensor: Add batch support for native applications" into nyc-dev

parents f2b1a15d da94fd86
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -392,6 +392,13 @@ int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue*

/*****************************************************************************/

/**
 * Enable the selected sensor with a specified sampling period and max batch report latency.
 * Returns a negative error code on failure.
 */
int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor,
        int32_t samplingPeriodUs, int maxBatchReportLatencyUs);

/**
 * Enable the selected sensor. Returns a negative error code on failure.
 */