Home
last modified time | relevance | path

Searched refs:sampling_period_ns (Results 1 – 7 of 7) sorted by relevance

/device/google/dragon/sensor_hub/
Dcros_ec_sensors.cpp162 long frequency = enabled ? 1e12 / info->sampling_period_ns : 0; in activate()
199 int64_t sampling_period_ns, in batch() argument
207 if (nanoseconds_to_microseconds(sampling_period_ns) > in batch()
209 info->sampling_period_ns = microseconds_to_nanoseconds(info->sensor_data.maxDelay); in batch()
210 else if (nanoseconds_to_microseconds(sampling_period_ns) < in batch()
212 info->sampling_period_ns = microseconds_to_nanoseconds(info->sensor_data.minDelay); in batch()
214 info->sampling_period_ns = sampling_period_ns; in batch()
221 if (info->max_report_latency_ns < max(sampling_period_ns, info->sampling_period_ns)) { in batch()
226 info->max_report_latency_ns = max(sampling_period_ns, info->sampling_period_ns); in batch()
Dcros_ec_sensors.h93 int64_t sampling_period_ns; member
Dsensors.cpp678 int64_t sampling_period_ns, in batch() argument
681 return mSensor->batch(handle, sampling_period_ns, in batch()
/device/google/contexthub/sensorhal/
Dsensors.cpp110 int64_t sampling_period_ns, in batch() argument
115 int64_t sampling_period_ns_clamped = sampling_period_ns; in batch()
123 if ((sampling_period_ns/1000) < sensor.minDelay) { in batch()
125 } else if ((sampling_period_ns/1000) > sensor.maxDelay) { in batch()
174 int64_t sampling_period_ns, in BatchWrapper() argument
177 handle, flags, sampling_period_ns, max_report_latency_ns); in BatchWrapper()
Dsensors.h46 int64_t sampling_period_ns,
66 int64_t sampling_period_ns,
Dhubconnection.cpp1005 void HubConnection::queueSetDelay(int handle, nsecs_t sampling_period_ns) in queueSetDelay() argument
1013 if (sampling_period_ns > 0 && in queueSetDelay()
1016 mSensorState[handle].rate = period_ns_to_frequency_q10(sampling_period_ns); in queueSetDelay()
1024 cmd.sensorType, handle, sampling_period_ns); in queueSetDelay()
1027 cmd.sensorType, handle, sampling_period_ns); in queueSetDelay()
1029 ALOGI("queueSetDelay: unhandled handle=%d, period=%" PRId64, handle, sampling_period_ns); in queueSetDelay()
1036 nsecs_t sampling_period_ns, in queueBatch() argument
1045 if (sampling_period_ns > 0 && in queueBatch()
1048 mSensorState[handle].rate = period_ns_to_frequency_q10(sampling_period_ns); in queueBatch()
1057 cmd.sensorType, handle, sampling_period_ns, max_report_latency_ns); in queueBatch()
[all …]
Dhubconnection.h57 nsecs_t sampling_period_ns,