Home
last modified time | relevance | path

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

/device/generic/goldfish/sensors/
Dmultihal_sensors.cpp158 if (batchInfo.samplingPeriodNs <= 0) { in activate()
164 ::android::elapsedRealtimeNano() + batchInfo.samplingPeriodNs; in activate()
243 const int64_t samplingPeriodNs, in batch() argument
254 if (samplingPeriodNs < sensor->minDelay) { in batch()
260 m_batchInfo[sensorHandle].samplingPeriodNs = samplingPeriodNs; in batch()
266 const auto periodNs = b.samplingPeriodNs; in batch()
483 const int64_t samplingPeriodNs = batchInfo.samplingPeriodNs; in batchThread() local
484 LOG_ALWAYS_FATAL_IF(samplingPeriodNs <= 0); in batchThread()
486 evRef.timestamp += samplingPeriodNs; in batchThread()
/device/google/trout/hal/sensors/2.1/
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()
DSensor.h78 virtual void batch(int32_t samplingPeriodNs) = 0;
111 void batch(int32_t samplingPeriodNs);
DSensorsSubHal.cpp170 Return<Result> SensorsSubHal::batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
174 sensor->second->batch(samplingPeriodNs); in batch()
DSensorsSubHal.h61 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
/device/generic/goldfish/sensors/include/
Dmultihal_sensors.h63 int64_t samplingPeriodNs,
155 int64_t samplingPeriodNs = 0; member