Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorInterface.h39 virtual status_t batch(void* ident, int handle, int /*flags*/, int64_t samplingPeriodNs,
58 virtual status_t batch(void* ident, int handle, int, int64_t samplingPeriodNs, in batch() argument
61 return setDelay(ident, handle, samplingPeriodNs); in batch()
93 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
DSensorEventConnection.cpp680 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
690 nsecs_t requestedSamplingPeriodNs = samplingPeriodNs; in enableDisable()
700 err = mService->adjustSamplingPeriodBasedOnMicAndPermission(&samplingPeriodNs, in enableDisable()
706 err = mService->enable(this, handle, samplingPeriodNs, maxBatchReportLatencyNs, in enableDisable()
724 status_t SensorService::SensorEventConnection::setEventRate(int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument
730 nsecs_t requestedSamplingPeriodNs = samplingPeriodNs; in setEventRate()
740 status_t err = mService->adjustSamplingPeriodBasedOnMicAndPermission(&samplingPeriodNs, in setEventRate()
746 status_t ret = mService->setEventRate(this, handle, samplingPeriodNs, mOpPackageName); in setEventRate()
771 nsecs_t samplingPeriodNs = i.second; in capRates() local
772 if (samplingPeriodNs < SENSOR_SERVICE_CAPPED_SAMPLING_PERIOD_NS) { in capRates()
[all …]
DSensorDirectConnection.h61 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
63 virtual status_t setEventRate(int handle, nsecs_t samplingPeriodNs);
DSensorDevice.cpp770 int64_t samplingPeriodNs, in batch() argument
774 if (samplingPeriodNs < MINIMUM_EVENTS_PERIOD) { in batch()
775 samplingPeriodNs = MINIMUM_EVENTS_PERIOD; in batch()
783 ident, handle, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batch()
786 return batchLocked(ident, handle, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batch()
789 status_t SensorDevice::batchLocked(void* ident, int handle, int flags, int64_t samplingPeriodNs, in batchLocked() argument
799 BatchParams params(samplingPeriodNs, maxBatchReportLatencyNs); in batchLocked()
803 info.setBatchParamsForIdent(ident, flags, samplingPeriodNs, maxBatchReportLatencyNs); in batchLocked()
840 status_t SensorDevice::setDelay(void* ident, int handle, int64_t samplingPeriodNs) { in setDelay() argument
841 return batch(ident, handle, 0, samplingPeriodNs, 0); in setDelay()
[all …]
DSensorDevice.h94 status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
130 void onMicSensorAccessChanged(void* ident, int handle, nsecs_t samplingPeriodNs);
181 status_t setBatchParamsForIdent(void* ident, int flags, int64_t samplingPeriodNs,
246 status_t batchLocked(void* ident, int handle, int flags, int64_t samplingPeriodNs,
DSensorInterface.cpp67 int64_t samplingPeriodNs, int64_t maxBatchReportLatencyNs) { in batch() argument
68 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch()
DSensorDirectConnection.cpp119 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
124 UNUSED(samplingPeriodNs); in enableDisable()
131 int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument
134 UNUSED(samplingPeriodNs); in setEventRate()
DSensorEventConnection.h80 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
82 virtual status_t setEventRate(int handle, nsecs_t samplingPeriodNs);
DSensorService.cpp1686 int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, in enable() argument
1769 if (maxDelayNs > 0 && (samplingPeriodNs > maxDelayNs)) { in enable()
1770 samplingPeriodNs = maxDelayNs; in enable()
1774 if (samplingPeriodNs < minDelayNs) { in enable()
1775 samplingPeriodNs = minDelayNs; in enable()
1780 handle, reservedFlags, samplingPeriodNs, maxBatchReportLatencyNs); in enable()
1782 status_t err = sensor->batch(connection.get(), handle, 0, samplingPeriodNs, in enable()
1819 samplingPeriodNs, maxBatchReportLatencyNs, true); in enable()
DSensorService.h110 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,