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

Commit a57bf073 authored by Aniroop Mathur's avatar Aniroop Mathur Committed by android-build-merger
Browse files

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

am: 01e0d8f7

* commit '01e0d8f7':
  Sensor: Add batch support for native applications
parents b23f13c5 01e0d8f7
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.
 */