Lines Matching refs:minInterval
72 bool GnssSession::addRequest(Nanoapp *nanoapp, Milliseconds minInterval, in addRequest() argument
75 return configure(nanoapp, true /* enable */, minInterval, minTimeToNext, in addRequest()
127 request.minInterval.getMilliseconds(), in logStateToBuffer()
137 transition.minInterval.getMilliseconds(), in logStateToBuffer()
145 Nanoapp *nanoapp, bool enable, Milliseconds minInterval, in configure() argument
152 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure()
153 } else if (isInRequestedState(enable, minInterval, hasRequest)) { in configure()
155 instanceId, true /* success */, enable, minInterval, CHRE_ERROR_NONE, in configure()
157 } else if (stateTransitionIsRequired(enable, minInterval, hasRequest, in configure()
159 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure()
161 success = controlPlatform(enable, minInterval, minTimeToNext); in configure()
193 uint32_t instanceId, bool enable, Milliseconds minInterval, in addRequestToQueue() argument
198 stateTransition.minInterval = minInterval; in addRequestToQueue()
214 bool requestedState, Milliseconds minInterval, bool nanoappHasRequest) in isInRequestedState() argument
217 bool meetsMinInterval = (minInterval >= mCurrentInterval); in isInRequestedState()
224 bool requestedState, Milliseconds minInterval, bool nanoappHasRequest, in stateTransitionIsRequired() argument
228 && minInterval < mCurrentInterval); in stateTransitionIsRequired()
246 && request.minInterval == currentRequest.minInterval) { in stateTransitionIsRequired()
251 requestToDecreaseRate = (minInterval > mCurrentInterval in stateTransitionIsRequired()
252 && currentRequest.minInterval == mCurrentInterval && requestCount == 0); in stateTransitionIsRequired()
260 bool enable, Milliseconds minInterval, uint32_t instanceId) { in updateRequests() argument
273 mRequests[requestIndex].minInterval = minInterval; in updateRequests()
280 request.minInterval = minInterval; in updateRequests()
305 uint32_t instanceId, bool success, bool enable, Milliseconds minInterval, in postAsyncResultEvent() argument
308 if (!success || updateRequests(enable, minInterval, instanceId)) { in postAsyncResultEvent()
333 uint32_t instanceId, bool success, bool enable, Milliseconds minInterval, in postAsyncResultEventFatal() argument
335 if (!postAsyncResultEvent(instanceId, success, enable, minInterval, errorCode, in postAsyncResultEventFatal()
350 mCurrentInterval = stateTransition.minInterval; in handleStatusChangeSync()
356 stateTransition.minInterval, in handleStatusChangeSync()
369 stateTransition.minInterval, in handleStatusChangeSync()
371 if (controlPlatform(stateTransition.enable, stateTransition.minInterval, in handleStatusChangeSync()
379 stateTransition.enable, stateTransition.minInterval, in handleStatusChangeSync()
386 stateTransition.enable, stateTransition.minInterval, in handleStatusChangeSync()
413 bool enable, Milliseconds minInterval, Milliseconds /* minTimeToNext */) { in controlPlatform() argument
421 .controlLocationSession(enable, minInterval, Milliseconds(0)); in controlPlatform()
426 .controlMeasurementSession(enable, minInterval); in controlPlatform()