Searched refs:sampling_period_ns (Results 1 – 7 of 7) sorted by relevance
/device/google/dragon/sensor_hub/ |
D | cros_ec_sensors.cpp | 162 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()
|
D | cros_ec_sensors.h | 93 int64_t sampling_period_ns; member
|
D | sensors.cpp | 678 int64_t sampling_period_ns, in batch() argument 681 return mSensor->batch(handle, sampling_period_ns, in batch()
|
/device/google/contexthub/sensorhal/ |
D | sensors.cpp | 110 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()
|
D | sensors.h | 46 int64_t sampling_period_ns, 66 int64_t sampling_period_ns,
|
D | hubconnection.cpp | 1005 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 …]
|
D | hubconnection.h | 57 nsecs_t sampling_period_ns,
|