Lines Matching refs:instanceId
104 uint32_t instanceId = nanoapp->getInstanceId(); in configurePassiveLocationListener() local
107 if (nanoappHasPassiveLocationListener(instanceId, &index) != enable) { in configurePassiveLocationListener()
137 mPassiveLocationListenerNanoapps.push_back(instanceId); in configurePassiveLocationListener()
141 if (!mLocationSession.nanoappHasRequest(instanceId)) { in configurePassiveLocationListener()
197 for (uint32_t instanceId : mPassiveLocationListenerNanoapps) { in logStateToBuffer() local
198 debugDump.print(" nappId=%" PRIu32 "\n", instanceId); in logStateToBuffer()
362 log.timestamp.toRawNanoseconds(), log.instanceId, in logStateToBuffer()
374 uint32_t instanceId = nanoapp->getInstanceId(); in configure() local
376 bool hasRequest = nanoappHasRequest(instanceId, &requestIndex); in configure()
378 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure()
384 success = postAsyncResultEvent(instanceId, false /* success */, enable, in configure()
387 } else if (addRequestToQueue(instanceId, enable, minInterval, cookie)) { in configure()
393 instanceId, enable); in configure()
397 success = postAsyncResultEvent(instanceId, true /* success */, enable, in configure()
408 bool GnssSession::nanoappHasRequest(uint32_t instanceId, in nanoappHasRequest() argument
412 if (mRequests[i].nanoappInstanceId == instanceId) { in nanoappHasRequest()
425 bool GnssSession::addRequestToQueue(uint32_t instanceId, bool enable, in addRequestToQueue() argument
429 stateTransition.nanoappInstanceId = instanceId; in addRequestToQueue()
485 uint32_t instanceId) { in updateRequests() argument
489 instanceId); in updateRequests()
494 bool hasExistingRequest = nanoappHasRequest(instanceId, &requestIndex); in updateRequests()
505 request.nanoappInstanceId = instanceId; in updateRequests()
524 .nanoappHasPassiveLocationListener(instanceId)) { in updateRequests()
533 bool GnssSession::postAsyncResultEvent(uint32_t instanceId, bool success, in postAsyncResultEvent() argument
537 if (!success || updateRequests(enable, minInterval, instanceId)) { in postAsyncResultEvent()
550 instanceId); in postAsyncResultEvent()
558 void GnssSession::postAsyncResultEventFatal(uint32_t instanceId, bool success, in postAsyncResultEventFatal() argument
563 if (!postAsyncResultEvent(instanceId, success, enable, minInterval, errorCode, in postAsyncResultEventFatal()