Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 50) sorted by relevance

12

/hardware/akm/AK8975_FS/libsensors/
Dsensors.cpp130 int setDelay(int handle, int64_t ns);
131 int setDelay_sub(int handle, int64_t ns);
153 int proxy_setDelay(int handle, int64_t ns);
235 int sensors_poll_context_t::setDelay(int handle, int64_t ns) { in setDelay() argument
244 setDelay_sub(ID_A, ns); in setDelay()
245 setDelay_sub(ID_M, ns); in setDelay()
251 return setDelay_sub(handle, ns); in setDelay()
254 int sensors_poll_context_t::setDelay_sub(int handle, int64_t ns) { in setDelay_sub() argument
262 if (cur != ns) { in setDelay_sub()
263 err = mSensors[drv]->setDelay(handle, ns); in setDelay_sub()
[all …]
DAkmSensor.cpp134 int AkmSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
141 if (ns < -1 || 2147483647 < ns) { in setDelay()
142 ALOGE("AkmSensor: invalid delay (%lld)", ns); in setDelay()
161 if (ns != mDelay[id]) { in setDelay()
162 bytes = sprintf(buffer, "%lld", ns); in setDelay()
165 mDelay[id] = ns; in setDelay()
167 &input_sysfs_path[input_sysfs_path_len], ns/1000000.0f); in setDelay()
DKionixSensor.h49 virtual int setDelay(int32_t handle, int64_t ns);
DAdxlSensor.h49 virtual int setDelay(int32_t handle, int64_t ns);
DAkmSensor.h47 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/invensense/65xx/libsensors_iio/
DPressureSensor.IIO.secondary.cpp101 int PressureSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
107 mDelay = int(1000000000.f / ns); in setDelay()
113 int t_poll_time = (int)(ns / 1000000LL); in setDelay()
120 "HAL:setDelay : %llu ns, (%.2f Hz)", ns, 1000000000.f/ns); in setDelay()
DCompassSensor.IIO.9150.cpp149 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
156 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
157 mDelay = ns; in setDelay()
158 if (ns == 0) in setDelay()
161 res = write_attribute_sensor(tempFd, 1000000000.f / ns); in setDelay()
DCompassSensor.IIO.primary.cpp284 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
290 mDelay = ns; in setDelay()
291 if (ns == 0) in setDelay()
295 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
296 res = write_attribute_sensor(tempFd, 1000000000.f / ns); in setDelay()
Dsensors_mpl.cpp91 int setDelay(int handle, int64_t ns);
197 int sensors_poll_context_t::setDelay(int handle, int64_t ns) in setDelay() argument
200 return mSensor->setDelay(handle, ns); in setDelay()
351 int handle, int64_t ns) in poll__setDelay() argument
354 int s= ctx->setDelay(handle, ns); in poll__setDelay()
DCompassSensor.AKM.cpp84 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
89 return mCompassSensor->setDelay(handle, ns); in setDelay()
DMPLSensor.cpp2345 int64_t ns; in setBatch() local
2352 ns = mBatchTimeouts[i]; in setBatch()
2353 timeout = (ns < timeout) ? ns : timeout; in setBatch()
3072 int MPLSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
3098 if (ns < 0) in setDelay()
3102 "setDelay : %llu ns, (%.2f Hz)", ns, 1000000000.f / ns); in setDelay()
3105 if (ns < 5000000LL) { in setDelay()
3106 ns = 5000000LL; in setDelay()
3111 mDelays[what] = ns; in setDelay()
3112 … LOGV_IF(ENG_VERBOSE, "storing mDelays[%d] = %lld, previousDelay = %lld", what, ns, previousDelay); in setDelay()
[all …]
DPressureSensor.IIO.secondary.h45 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/invensense/6515/libsensors_iio/
DPressureSensor.IIO.secondary.cpp101 int PressureSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
107 mDelay = int(1000000000.f / ns); in setDelay()
113 int t_poll_time = (int)(ns / 1000000LL); in setDelay()
120 "HAL:setDelay : %llu ns, (%.2f Hz)", ns, 1000000000.f/ns); in setDelay()
DCompassSensor.IIO.9150.cpp151 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
158 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
159 mDelay = ns; in setDelay()
160 if (ns == 0) in setDelay()
163 res = write_attribute_sensor(tempFd, 1000000000.f / ns); in setDelay()
DCompassSensor.AKM.cpp84 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
89 return mCompassSensor->setDelay(handle, ns); in setDelay()
DCompassSensor.IIO.primary.cpp284 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
290 mDelay = ns; in setDelay()
291 if (ns == 0) in setDelay()
295 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
296 res = write_attribute_sensor(tempFd, 1000000000.f / ns); in setDelay()
Dsensors_mpl.cpp105 int setDelay(int handle, int64_t ns);
197 int sensors_poll_context_t::setDelay(int handle, int64_t ns) in setDelay() argument
200 return mSensor->setDelay(handle, ns); in setDelay()
385 int handle, int64_t ns) in poll__setDelay() argument
388 int s= ctx->setDelay(handle, ns); in poll__setDelay()
DPressureSensor.IIO.secondary.h45 virtual int setDelay(int32_t handle, int64_t ns);
DMPLSensor.cpp2494 int64_t ns = 0; local
2501 ns = mBatchTimeouts[i];
2502 timeout = (ns < timeout) ? ns : timeout;
3154 int MPLSensor::setDelay(int32_t handle, int64_t ns) argument
3180 if (ns < 0)
3184 "setDelay : %llu ns, (%.2f Hz)", ns, 1000000000.f / ns);
3187 if (ns < 5000000LL) {
3188 ns = 5000000LL;
3193 mDelays[what] = ns;
3194 … LOGV_IF(ENG_VERBOSE, "storing mDelays[%d] = %lld, previousDelay = %lld", what, ns, previousDelay);
[all …]
DCompassSensor.AKM.h47 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/invensense/60xx/libsensors_iio/
Dsensors_mpl.cpp88 int setDelay(int handle, int64_t ns);
149 int sensors_poll_context_t::setDelay(int handle, int64_t ns) in setDelay() argument
152 return mSensor->setDelay(handle, ns); in setDelay()
222 int handle, int64_t ns) in poll__setDelay() argument
225 int s= ctx->setDelay(handle, ns); in poll__setDelay()
DCompassSensor.IIO.9150.cpp158 int CompassSensor::setDelay(int32_t /*handle*/, int64_t ns) in setDelay() argument
165 1000000000.f / ns, compassSysFs.compass_rate, getTimestamp()); in setDelay()
166 mDelay = ns; in setDelay()
167 if (ns == 0) in setDelay()
170 res = write_attribute_sensor(tempFd, 1000000000.f / ns); in setDelay()
DSensorBase.h55 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/invensense/60xx/libsensors/
DSensorBase.h59 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/libhardware/modules/sensors/
Dmultihal.cpp192 int setDelay(int handle, int64_t ns);
294 int sensors_poll_context_t::setDelay(int handle, int64_t ns) { in setDelay() argument
300 retval = v0->setDelay(v0, local_handle, ns); in setDelay()
428 int64_t ns) { in device__setDelay() argument
430 return ctx->setDelay(handle, ns); in device__setDelay()

12