Home
last modified time | relevance | path

Searched refs:samplingPeriodNs (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorInterface.h38 virtual status_t batch(void* ident, int handle, int /*flags*/, int64_t samplingPeriodNs,
54 virtual status_t batch(void* ident, int handle, int, int64_t samplingPeriodNs, in batch() argument
57 return setDelay(ident, handle, samplingPeriodNs); in batch()
86 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
DSensorDirectConnection.cpp72 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
77 UNUSED(samplingPeriodNs); in enableDisable()
84 int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument
87 UNUSED(samplingPeriodNs); in setEventRate()
DSensorDevice.cpp320 int64_t samplingPeriodNs, in batch() argument
324 if (samplingPeriodNs < MINIMUM_EVENTS_PERIOD) { in batch()
325 samplingPeriodNs = MINIMUM_EVENTS_PERIOD; in batch()
333 ident, handle, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batch()
344 BatchParams params(samplingPeriodNs, maxBatchReportLatencyNs); in batch()
348 info.setBatchParamsForIdent(ident, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batch()
379 status_t SensorDevice::setDelay(void* ident, int handle, int64_t samplingPeriodNs) { in setDelay() argument
380 return batch(ident, handle, 0, samplingPeriodNs, 0); in setDelay()
578 int64_t samplingPeriodNs, in setBatchParamsForIdent() argument
584 ident, samplingPeriodNs, maxBatchReportLatencyNs, strerror(-index)); in setBatchParamsForIdent()
[all …]
DSensorDirectConnection.h61 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
63 virtual status_t setEventRate(int handle, nsecs_t samplingPeriodNs);
DSensorInterface.cpp66 int64_t samplingPeriodNs, int64_t maxBatchReportLatencyNs) { in batch() argument
67 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch()
DSensorEventConnection.h76 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
78 virtual status_t setEventRate(int handle, nsecs_t samplingPeriodNs);
DSensorDevice.h81 status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
146 status_t setBatchParamsForIdent(void* ident, int flags, int64_t samplingPeriodNs,
DSensorEventConnection.cpp555 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
560 err = mService->enable(this, handle, samplingPeriodNs, maxBatchReportLatencyNs, in enableDisable()
570 int handle, nsecs_t samplingPeriodNs) in setEventRate() argument
572 return mService->setEventRate(this, handle, samplingPeriodNs, mOpPackageName); in setEventRate()
DSensorService.cpp1310 int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, in enable() argument
1380 if (maxDelayNs > 0 && (samplingPeriodNs > maxDelayNs)) { in enable()
1381 samplingPeriodNs = maxDelayNs; in enable()
1385 if (samplingPeriodNs < minDelayNs) { in enable()
1386 samplingPeriodNs = minDelayNs; in enable()
1391 handle, reservedFlags, samplingPeriodNs, maxBatchReportLatencyNs); in enable()
1393 status_t err = sensor->batch(connection.get(), handle, 0, samplingPeriodNs, in enable()
1425 samplingPeriodNs, maxBatchReportLatencyNs, true); in enable()
DSensorService.h78 nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags,
/frameworks/native/libs/sensor/
DISensorEventConnection.cpp61 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs, in enableDisable() argument
68 data.writeInt64(samplingPeriodNs); in enableDisable()
135 nsecs_t samplingPeriodNs = data.readInt64(); in onTransact() local
138 status_t result = enableDisable(handle, enabled, samplingPeriodNs, in onTransact()
/frameworks/native/libs/sensor/include/sensor/
DISensorEventConnection.h40 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,