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

Commit bfcad70e 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: 9c2e6448

* commit '9c2e6448':
  Sensor: Add batch support for native applications
parents 79d911e4 9c2e6448
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -105,6 +105,14 @@ int ASensorManager_destroyEventQueue(ASensorManager* manager,

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

int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor,
        int32_t samplingPeriodUs, int maxBatchReportLatencyUs)
{
    return static_cast<SensorEventQueue*>(queue)->enableSensor(
            static_cast<Sensor const*>(sensor)->getHandle(), samplingPeriodUs,
                    maxBatchReportLatencyUs, 0);
}

int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
{
    return static_cast<SensorEventQueue*>(queue)->enableSensor(