Lines Matching refs:ns
2338 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()
3108 mStepCountPollTime = ns; in setDelay()
3109 LOGV_IF(ENG_VERBOSE, "step count rate =%lld ns", ns); in setDelay()
3131 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) { in setDelay()
3149 (((mEnabled & (1 << Gyro)) && ns > mDelays[Gyro]) || in setDelay()
3150 ((mEnabled & (1 << RawGyro)) && ns > mDelays[RawGyro]) || in setDelay()
3152 ns > mDelays[Accelerometer])) && in setDelay()
3174 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) { in setDelay()
3217 int64_t ns = mDelays[i]; in update_delay() local
3218 wanted = wanted < ns ? wanted : ns; in update_delay()
5552 int64_t wanted = 1000000000LL, ns = 0; in batch() local
5556 ns = mBatchDelays[i]; in batch()
5558 … "HAL:batch - requested sensor=0x%01x, batch delay=%lld", mEnabled & (1 << i), ns); in batch()
5560 wanted = (ns < wanted) ? ns : wanted; in batch()
5627 ns = mBatchTimeouts[i]; in batch()
5628 tempTimeout = (ns < tempTimeout) ? ns : tempTimeout; in batch()
6248 int64_t ns = mBatchDelays[i]; in setBatchDataRates() local
6249 wanted = wanted < ns ? wanted : ns; in setBatchDataRates()
6311 int64_t ns = mDelays[i]; in resetDataRates() local
6312 if ((wanted == ns) && (i != Pressure)) { in resetDataRates()
6317 wanted = wanted < ns ? wanted : ns; in resetDataRates()