Home
last modified time | relevance | path

Searched refs:instanceId (Results 1 – 25 of 30) sorted by relevance

12

/system/chre/core/
Dgnss_manager.cc142 uint32_t instanceId = nanoapp->getInstanceId(); in configure() local
144 bool hasRequest = nanoappHasRequest(instanceId, &requestIndex); in configure()
146 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure()
149 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure()
155 instanceId); in configure()
160 instanceId, true /* success */, enable, minInterval, CHRE_ERROR_NONE, in configure()
168 uint32_t instanceId, size_t *requestIndex) const { in nanoappHasRequest() argument
171 if (mRequests[i].nanoappInstanceId == instanceId) { in nanoappHasRequest()
185 uint32_t instanceId, bool enable, Milliseconds minInterval, in addRequestToQueue() argument
188 stateTransition.nanoappInstanceId = instanceId; in addRequestToQueue()
[all …]
Dtimer_pool.cc47 uint32_t instanceId, Nanoseconds duration, in setTimer() argument
53 timerRequest.instanceId = instanceId; in setTimer()
79 uint32_t instanceId, TimerHandle timerHandle) { in cancelTimer() argument
88 } else if (timerRequest->instanceId != instanceId) { in cancelTimer()
177 bool isNanoappTimer = (timerRequest.instanceId != kSystemInstanceId); in insertTimerRequestLocked()
194 (mTimerRequests.top().instanceId != kSystemInstanceId); in popTimerRequestLocked()
206 (mTimerRequests[index].instanceId != kSystemInstanceId); in removeTimerRequestLocked()
229 currentTimerRequest.callback, currentTimerRequest.instanceId); in handleExpiredTimersAndScheduleNextLocked()
Daudio_request_manager.cc136 for (const auto& instanceId : request.instanceIds) { in logStateToBuffer() local
139 ", interval(ms)=%" PRIu64 "\n", instanceId, request.numSamples, in logStateToBuffer()
178 uint32_t instanceId, uint32_t handle, bool enable, uint32_t numSamples, in doConfigureSource() argument
183 handle, instanceId, &requestIndex, &requestInstanceIdIndex); in doConfigureSource()
191 success = createAudioRequest(handle, instanceId, numSamples, in doConfigureSource()
209 success = (!enable || createAudioRequest(handle, instanceId, numSamples, in doConfigureSource()
232 uint32_t handle, uint32_t instanceId, uint32_t numSamples, in createAudioRequest() argument
242 if (!matchingAudioRequest->instanceIds.push_back(instanceId)) { in createAudioRequest()
253 } else if (!requestList.requests.back().instanceIds.push_back(instanceId)) { in createAudioRequest()
262 postAudioSamplingChangeEvent(instanceId, handle, requestList.available); in createAudioRequest()
[all …]
Devent_loop.cc52 info->instanceId = app->getInstanceId(); in populateNanoappInfo()
62 uint32_t *instanceId) const { in findNanoappInstanceIdByAppId()
63 CHRE_ASSERT(instanceId != nullptr); in findNanoappInstanceIdByAppId()
69 *instanceId = app->getInstanceId(); in findNanoappInstanceIdByAppId()
193 bool EventLoop::unloadNanoapp(uint32_t instanceId, in unloadNanoapp() argument
198 if (instanceId == mNanoapps[i]->getInstanceId()) { in unloadNanoapp()
237 LOGD("Unloaded nanoapp with instanceId %" PRIu32, instanceId); in unloadNanoapp()
302 Nanoapp *EventLoop::findNanoappByInstanceId(uint32_t instanceId) const { in findNanoappByInstanceId()
304 return lookupAppByInstanceId(instanceId); in findNanoappByInstanceId()
315 uint32_t instanceId, struct chreNanoappInfo *info) const { in populateNanoappInfoForInstanceId() argument
[all …]
Dwifi_request_manager.cc53 uint32_t instanceId = nanoapp->getInstanceId(); in configureScanMonitor() local
54 bool hasScanMonitorRequest = nanoappHasScanMonitorRequest(instanceId); in configureScanMonitor()
60 success = postScanMonitorAsyncResultEvent(instanceId, true /* success */, in configureScanMonitor()
70 instanceId); in configureScanMonitor()
267 for (const auto& instanceId : mScanMonitorNanoapps) { in logStateToBuffer() local
269 " nanoappId=%" PRIu32 "\n", instanceId); in logStateToBuffer()
293 uint32_t instanceId, size_t *nanoappIndex) const { in nanoappHasScanMonitorRequest() argument
294 size_t index = mScanMonitorNanoapps.find(instanceId); in nanoappHasScanMonitorRequest()
333 uint32_t instanceId) { in updateNanoappScanMonitoringList() argument
336 .findNanoappByInstanceId(instanceId); in updateNanoappScanMonitoringList()
[all …]
Dsensor_request.cc49 SensorRequest::SensorRequest(uint32_t instanceId, SensorMode mode, in SensorRequest() argument
51 : mInstanceId(instanceId), mInterval(interval), mLatency(latency), in SensorRequest()
/system/chre/apps/unload_tester/
Dunload_tester.cc41 uint32_t instanceId; in handleUnload() local
44 if (!eventLoop.findNanoappInstanceIdByAppId(kSpammerAppId, &instanceId)) { in handleUnload()
46 } else if (!eventLoop.unloadNanoapp(instanceId, true)) { in handleUnload()
69 CHRE_ASSERT(info.instanceId == chreGetInstanceId()); in nanoappStart()
95 info->instanceId); in nanoappHandleEvent()
/system/chre/apps/chqts/src/general_test/
Dnanoapp_info.cc28 uint32_t instanceId; member
42 .instanceId = nanoapp_testing::hostToLittleEndian(mInstanceId), in sendToHost()
49 bool NanoappInfo::validate(uint64_t appId, uint32_t instanceId) { in validate() argument
55 } else if (instanceId != mInstanceId) { in validate()
Dnanoapp_info_events_test_observer.cc44 mStartStopHistory[mHistoryIndex].instanceId = in handleEvent()
45 nanoAppInfo->instanceId; in handleEvent()
81 if (data.instanceId == performerInstanceId) { in processStartStopHistory()
Dnanoapp_info.h42 bool validate(uint64_t appId, uint32_t instanceId);
Dnanoapp_info_events_test_observer.h43 uint32_t instanceId; member
Drunning_info.cc47 mRunningInfo.instanceId); in validate()
/system/chre/core/include/chre/core/
Devent_loop.h72 bool findNanoappInstanceIdByAppId(uint64_t appId, uint32_t *instanceId) const;
125 bool unloadNanoapp(uint32_t instanceId, bool allowSystemNanoappUnload);
216 Nanoapp *findNanoappByInstanceId(uint32_t instanceId) const;
233 bool populateNanoappInfoForInstanceId(uint32_t instanceId,
399 Nanoapp *lookupAppByInstanceId(uint32_t instanceId) const;
Dgnss_manager.h187 bool nanoappHasRequest(uint32_t instanceId, size_t *requestIndex = nullptr)
201 bool addRequestToQueue(uint32_t instanceId, bool enable,
235 uint32_t instanceId);
250 uint32_t instanceId, bool success, bool enable,
261 uint32_t instanceId, bool success, bool enable,
Daudio_request_manager.h272 bool doConfigureSource(uint32_t instanceId, uint32_t handle, bool enable,
295 uint32_t handle, uint32_t instanceId, uint32_t numSamples,
313 uint32_t handle, uint32_t instanceId, size_t *index,
380 void postAudioSamplingChangeEvent(uint32_t instanceId, uint32_t handle,
Dtimer_pool.h116 uint32_t instanceId; member
194 uint32_t instanceId, Nanoseconds duration,
205 bool cancelTimer(uint32_t instanceId, TimerHandle timerHandle);
Dnanoapp.h55 void setInstanceId(uint32_t instanceId) { in setInstanceId() argument
56 mInstanceId = instanceId; in setInstanceId()
Dwifi_request_manager.h238 bool nanoappHasScanMonitorRequest(uint32_t instanceId,
281 bool updateNanoappScanMonitoringList(bool enable, uint32_t instanceId);
Dsensor_request.h67 SensorRequest(uint32_t instanceId, SensorMode mode, Nanoseconds interval,
/system/chre/platform/shared/
Dmemory_manager.cc44 header->data.instanceId = app->getInstanceId(); in nanoappAlloc()
60 if (app->getInstanceId() != header->data.instanceId) { in nanoappFree()
62 app->getInstanceId(), header->data.instanceId); in nanoappFree()
Dchre_api_core.cc106 DLL_EXPORT bool chreGetNanoappInfoByInstanceId(uint32_t instanceId, in chreGetNanoappInfoByInstanceId() argument
109 .populateNanoappInfoForInstanceId(instanceId, info); in chreGetNanoappInfoByInstanceId()
/system/chre/chre_api/legacy/v1_1/chre/
Devent.h285 uint32_t instanceId; member
461 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,
/system/chre/chre_api/include/chre_api/chre/
Devent.h313 uint32_t instanceId; member
489 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,
/system/chre/chre_api/legacy/v1_2/chre/
Devent.h313 uint32_t instanceId; member
489 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,
/system/chre/platform/include/chre/platform/
Dmemory_manager.h115 uint32_t instanceId; member

12