Home
last modified time | relevance | path

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

12

/hardware/akm/AK8975_FS/libsensors/
Dsensors.cpp133 int setDelay(int handle, int64_t ns);
134 int setDelay_sub(int handle, int64_t ns);
156 int proxy_setDelay(int handle, int64_t ns);
238 int sensors_poll_context_t::setDelay(int handle, int64_t ns) { in setDelay() argument
247 setDelay_sub(ID_A, ns); in setDelay()
248 setDelay_sub(ID_M, ns); in setDelay()
254 return setDelay_sub(handle, ns); in setDelay()
257 int sensors_poll_context_t::setDelay_sub(int handle, int64_t ns) { in setDelay_sub() argument
265 if (cur != ns) { in setDelay_sub()
266 err = mSensors[drv]->setDelay(handle, ns); in setDelay_sub()
[all …]
DAkmSensor.cpp136 int AkmSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
143 if (ns < -1 || 2147483647 < ns) { in setDelay()
144 ALOGE("AkmSensor: invalid delay (%" PRIi64 ")", ns); in setDelay()
163 if (ns != mDelay[id]) { in setDelay()
164 bytes = sprintf(buffer, "%" PRIi64, ns); in setDelay()
167 mDelay[id] = ns; in setDelay()
169 &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);
DSensorBase.h63 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/invensense/65xx/libsensors_iio/
DPressureSensor.IIO.secondary.cpp102 int PressureSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
108 mDelay = int(1000000000.f / ns); in setDelay()
114 int t_poll_time = (int)(ns / 1000000LL); in setDelay()
121 "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.AKM.cpp84 int CompassSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
89 return mCompassSensor->setDelay(handle, ns); in setDelay()
Dsensors_mpl.cpp92 int setDelay(int handle, int64_t ns);
198 int sensors_poll_context_t::setDelay(int handle, int64_t ns) in setDelay() argument
201 return mSensor->setDelay(handle, ns); in setDelay()
352 int handle, int64_t ns) in poll__setDelay() argument
355 int s= ctx->setDelay(handle, ns); in poll__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()
DPressureSensor.IIO.secondary.h45 virtual int setDelay(int32_t handle, int64_t ns);
DCompassSensor.AKM.h47 virtual int setDelay(int32_t handle, int64_t ns);
DCompassSensor.IIO.9150.h46 virtual int setDelay(int32_t handle, int64_t ns);
DMPLSensor.cpp2338 int64_t ns; in setBatch() local
2345 ns = mBatchTimeouts[i]; in setBatch()
2346 timeout = (ns < timeout) ? ns : timeout; in setBatch()
3063 int MPLSensor::setDelay(int32_t handle, int64_t ns) in setDelay() argument
3089 if (ns < 0) in setDelay()
3093 "setDelay : %llu ns, (%.2f Hz)", ns, 1000000000.f / ns); in setDelay()
3096 if (ns < 5000000LL) { in setDelay()
3097 ns = 5000000LL; in setDelay()
3102 mDelays[what] = ns; in setDelay()
3103 … LOGV_IF(ENG_VERBOSE, "storing mDelays[%d] = %lld, previousDelay = %lld", what, ns, previousDelay); in setDelay()
[all …]
DCompassSensor.IIO.primary.h49 virtual int setDelay(int32_t handle, int64_t ns);
DSensorBase.h94 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()
DPressureSensor.IIO.secondary.h45 virtual int setDelay(int32_t handle, int64_t ns);
DCompassSensor.IIO.9150.h46 virtual int setDelay(int32_t handle, int64_t ns);
DCompassSensor.IIO.primary.h49 virtual int setDelay(int32_t handle, int64_t ns);
/hardware/interfaces/tests/foo/1.0/
DIFooCallback.hal29 // Block the caller for up to ns nanosesonds and return the number
45 reportResults(int64_t ns) generates (int64_t leftNs, InvokeInfo[3] invokeInfo);

12