Merge "Sensor: Add batch support for native applications" into nyc-dev
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user