Home
last modified time | relevance | path

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

/device/generic/goldfish/sensors/
Dmultihal_sensors.cpp141 if (batchInfo.samplingPeriodNs <= 0) { in activate()
147 ::android::elapsedRealtimeNano() + batchInfo.samplingPeriodNs; in activate()
163 const int64_t samplingPeriodNs, in batch() argument
174 if (samplingPeriodNs < sensor->minDelay) { in batch()
180 m_batchInfo[sensorHandle].samplingPeriodNs = samplingPeriodNs; in batch()
315 const int64_t samplingPeriodNs = batchInfo.samplingPeriodNs; in batchThread() local
316 LOG_ALWAYS_FATAL_IF(samplingPeriodNs <= 0); in batchThread()
318 evRef.timestamp += samplingPeriodNs; in batchThread()
Dmultihal_sensors.h56 int64_t samplingPeriodNs,
132 int64_t samplingPeriodNs = 0; member
/device/google/trout/hal/sensors/2.0/
DSensor.h75 virtual void batch(int32_t samplingPeriodNs) = 0;
108 void batch(int32_t samplingPeriodNs);
DSensor.cpp88 void HWSensorBase::batch(int32_t samplingPeriodNs) { in batch() argument
89 samplingPeriodNs = in batch()
90 std::clamp(samplingPeriodNs, mSensorInfo.minDelay * 1000, mSensorInfo.maxDelay * 1000); in batch()
91 if (mSamplingPeriodNs != samplingPeriodNs) { in batch()
92 unsigned int sampling_frequency = ns_to_frequency(samplingPeriodNs); in batch()
94 mSamplingPeriodNs = samplingPeriodNs; in batch()
DSensorsSubHal.h59 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
DSensorsSubHal.cpp168 Return<Result> SensorsSubHal::batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
172 sensor->second->batch(samplingPeriodNs); in batch()