Home
last modified time | relevance | path

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

12

/system/chre/core/
Dgnss_manager.cc104 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()
[all …]
Dtimer_pool.cc48 TimerHandle TimerPool::setTimer(uint32_t instanceId, Nanoseconds duration, in setTimer() argument
56 timerRequest.instanceId = instanceId; in setTimer()
81 bool TimerPool::cancelTimer(uint32_t instanceId, TimerHandle timerHandle) { in cancelTimer() argument
90 } else if (timerRequest->instanceId != instanceId) { in cancelTimer()
179 bool isNanoappTimer = (timerRequest.instanceId != kSystemInstanceId); in insertTimerRequestLocked()
196 (mTimerRequests.top().instanceId != kSystemInstanceId); in popTimerRequestLocked()
208 (mTimerRequests[index].instanceId != kSystemInstanceId); in removeTimerRequestLocked()
230 if (currentTimerRequest.instanceId == kSystemInstanceId) { in handleExpiredTimersAndScheduleNextLocked()
238 nullptr /*freeCallback*/, currentTimerRequest.instanceId); in handleExpiredTimersAndScheduleNextLocked()
Daudio_request_manager.cc129 for (const auto &instanceId : request.instanceIds) { in logStateToBuffer() local
132 instanceId, request.numSamples, in logStateToBuffer()
171 bool AudioRequestManager::doConfigureSource(uint32_t instanceId, in doConfigureSource() argument
178 handle, instanceId, &requestIndex, &requestInstanceIdIndex); in doConfigureSource()
187 createAudioRequest(handle, instanceId, numSamples, deliveryInterval); in doConfigureSource()
204 success = (!enable || createAudioRequest(handle, instanceId, numSamples, in doConfigureSource()
228 uint32_t instanceId, in createAudioRequest() argument
239 if (!matchingAudioRequest->instanceIds.push_back(instanceId)) { in createAudioRequest()
250 } else if (!requestList.requests.back().instanceIds.push_back(instanceId)) { in createAudioRequest()
261 postAudioSamplingChangeEvent(instanceId, handle, requestList.available, in createAudioRequest()
[all …]
Devent_loop.cc55 info->instanceId = app->getInstanceId(); in populateNanoappInfo()
65 uint32_t *instanceId) const { in findNanoappInstanceIdByAppId()
66 CHRE_ASSERT(instanceId != nullptr); in findNanoappInstanceIdByAppId()
72 *instanceId = app->getInstanceId(); in findNanoappInstanceIdByAppId()
203 bool EventLoop::unloadNanoapp(uint32_t instanceId, in unloadNanoapp() argument
208 if (instanceId == mNanoapps[i]->getInstanceId()) { in unloadNanoapp()
248 LOGD("Unloaded nanoapp with instanceId %" PRIu32, instanceId); in unloadNanoapp()
328 Nanoapp *EventLoop::findNanoappByInstanceId(uint32_t instanceId) const { in findNanoappByInstanceId()
330 return lookupAppByInstanceId(instanceId); in findNanoappByInstanceId()
341 uint32_t instanceId, struct chreNanoappInfo *info) const { in populateNanoappInfoForInstanceId() argument
[all …]
Ddebug_dump_manager.cc51 uint32_t instanceId = nanoapp.getInstanceId(); in appendNanoappLog() local
59 instanceId); in appendNanoappLog()
62 if (!mLastNanoappId.has_value() || mLastNanoappId.value() != instanceId) { in appendNanoappLog()
63 mLastNanoappId = instanceId; in appendNanoappLog()
Dsensor_request_multiplexer.cc24 uint32_t instanceId, size_t *index) const { in findRequest() argument
30 if (sensorRequest.getInstanceId() == instanceId) { in findRequest()
Dwifi_request_manager.cc55 uint32_t instanceId = nanoapp->getInstanceId(); in configureScanMonitor() local
56 bool hasScanMonitorRequest = nanoappHasScanMonitorRequest(instanceId); in configureScanMonitor()
62 success = postScanMonitorAsyncResultEvent(instanceId, true /* success */, in configureScanMonitor()
72 instanceId); in configureScanMonitor()
254 for (uint32_t instanceId : mScanMonitorNanoapps) { in logStateToBuffer() local
255 debugDump.print(" nappId=%" PRIu32 "\n", instanceId); in logStateToBuffer()
282 log.timestamp.toRawNanoseconds(), log.instanceId, in logStateToBuffer()
292 uint32_t instanceId, size_t *nanoappIndex) const { in nanoappHasScanMonitorRequest() argument
293 size_t index = mScanMonitorNanoapps.find(instanceId); in nanoappHasScanMonitorRequest()
333 uint32_t instanceId) { in updateNanoappScanMonitoringList() argument
[all …]
/system/chre/apps/unload_tester/
Dunload_tester.cc44 uint32_t instanceId; in handleUnload() local
47 if (!eventLoop.findNanoappInstanceIdByAppId(kSpammerAppId, &instanceId)) { in handleUnload()
49 } else if (!eventLoop.unloadNanoapp(instanceId, true)) { in handleUnload()
72 CHRE_ASSERT(info.instanceId == chreGetInstanceId()); in nanoappStart()
97 info->instanceId); in nanoappHandleEvent()
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubEventBetweenAppsTestExecutor.java50 public int instanceId; field in ContextHubEventBetweenAppsTestExecutor.AppInfo
84 mAppInfo[index].instanceId = buffer.getInt(); in handleMessageFromNanoApp()
107 mAppInfo[0].instanceId != mAppInfo[1].instanceId); in handleMessageFromNanoApp()
112 .putInt(mAppInfo[0].instanceId); in handleMessageFromNanoApp()
117 buffer.putInt(mAppInfo[1].instanceId); in handleMessageFromNanoApp()
/system/chre/apps/test/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
54 } else if (instanceId != mInstanceId) { in validate()
Dnanoapp_info_events_test_observer.cc42 mStartStopHistory[mHistoryIndex].instanceId = nanoAppInfo->instanceId; in handleEvent()
78 if (data.instanceId == performerInstanceId) { in processStartStopHistory()
Dnanoapp_info.h42 bool validate(uint64_t appId, uint32_t instanceId);
/system/chre/core/include/chre/core/
Dgnss_manager.h148 instanceId(instanceIdIn), in SessionRequestLog()
152 uint32_t instanceId; member
253 bool nanoappHasRequest(uint32_t instanceId,
267 bool addRequestToQueue(uint32_t instanceId, bool enable,
301 uint32_t instanceId);
315 bool postAsyncResultEvent(uint32_t instanceId, bool success, bool enable,
326 void postAsyncResultEventFatal(uint32_t instanceId, bool success, bool enable,
Devent_loop.h76 bool findNanoappInstanceIdByAppId(uint64_t appId, uint32_t *instanceId) const;
136 bool unloadNanoapp(uint32_t instanceId, bool allowSystemNanoappUnload);
270 Nanoapp *findNanoappByInstanceId(uint32_t instanceId) const;
287 bool populateNanoappInfoForInstanceId(uint32_t instanceId,
460 Nanoapp *lookupAppByInstanceId(uint32_t instanceId) const;
Dwifi_request_manager.h182 instanceId(instanceIdIn), in WifiScanRequestLog()
187 uint32_t instanceId; member
256 bool nanoappHasScanMonitorRequest(uint32_t instanceId,
299 bool updateNanoappScanMonitoringList(bool enable, uint32_t instanceId);
Daudio_request_manager.h243 bool doConfigureSource(uint32_t instanceId, uint32_t handle, bool enable,
265 bool createAudioRequest(uint32_t handle, uint32_t instanceId,
283 uint32_t instanceId, size_t *index,
353 void postAudioSamplingChangeEvent(uint32_t instanceId, uint32_t handle,
Dtimer_pool.h116 uint32_t instanceId; member
191 TimerHandle setTimer(uint32_t instanceId, Nanoseconds duration,
203 bool cancelTimer(uint32_t instanceId, TimerHandle timerHandle);
Dnanoapp.h59 void setInstanceId(uint32_t instanceId) { in setInstanceId() argument
60 mInstanceId = instanceId; in setInstanceId()
Dsensor_request_multiplexer.h43 const SensorRequest *findRequest(uint32_t instanceId, size_t *index) const;
/system/chre/platform/shared/
Dmemory_manager.cc47 header->data.instanceId = app->getInstanceId(); in nanoappAlloc()
63 if (app->getInstanceId() != header->data.instanceId) { in nanoappFree()
65 app->getInstanceId(), header->data.instanceId); in nanoappFree()
/system/chre/chre_api/legacy/v1_1/chre/
Devent.h285 uint32_t instanceId; member
461 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,
/system/chre/chre_api/legacy/v1_3/chre/
Devent.h313 uint32_t instanceId; member
486 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/chre_api/legacy/v1_4/chre/
Devent.h327 uint32_t instanceId; member
502 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,
/system/chre/chre_api/include/chre_api/chre/
Devent.h381 uint32_t instanceId; member
595 bool chreGetNanoappInfoByInstanceId(uint32_t instanceId,

12