/system/chre/platform/shared/ |
D | tracing.cc | 22 void traceRegisterNanoapp(uint16_t instanceId, const char *name) { in traceRegisterNanoapp() argument 23 UNUSED_VAR(instanceId); in traceRegisterNanoapp() 27 void traceNanoappHandleEventStart(uint16_t instanceId, uint16_t eventType) { in traceNanoappHandleEventStart() argument 28 UNUSED_VAR(instanceId); in traceNanoappHandleEventStart() 32 void traceNanoappHandleEventEnd(uint16_t instanceId) { in traceNanoappHandleEventEnd() argument 33 UNUSED_VAR(instanceId); in traceNanoappHandleEventEnd()
|
D | memory_manager.cc | 49 header->data.instanceId = app->getInstanceId(); in nanoappAlloc() 65 if (app->getInstanceId() != header->data.instanceId) { in nanoappFree() 67 app->getInstanceId(), header->data.instanceId); in nanoappFree()
|
/system/chre/core/include/chre/core/ |
D | ble_request_manager.h | 228 uint16_t instanceId; member 241 BleRequestLog(Nanoseconds timestamp, uint32_t instanceId, bool enable, in BleRequestLog() 244 instanceId(instanceId), in BleRequestLog() 254 uint32_t instanceId; member 291 void handleExistingRequest(uint16_t instanceId, bool *hasExistingRequest, 307 bool compliesWithBleSetting(uint16_t instanceId, bool enabled, 320 void addBleRequestLog(uint32_t instanceId, bool enabled, size_t requestIndex, 366 void handleNanoappEventRegistration(uint16_t instanceId, bool enabled, 380 void handleAsyncResult(uint16_t instanceId, bool enabled, bool success, 414 static void postAsyncResultEventFatal(uint16_t instanceId,
|
D | gnss_manager.h | 158 instanceId(instanceIdIn), in SessionRequestLog() 162 uint16_t instanceId; member 267 bool nanoappHasRequest(uint16_t instanceId, 281 bool addRequestToQueue(uint16_t instanceId, bool enable, 315 uint16_t instanceId); 329 bool postAsyncResultEvent(uint16_t instanceId, bool success, bool enable, 340 void postAsyncResultEventFatal(uint16_t instanceId, bool success, bool enable,
|
D | timer_pool.h | 149 uint16_t instanceId; member 207 TimerHandle setTimer(uint16_t instanceId, Nanoseconds duration, 219 bool cancelTimer(uint16_t instanceId, TimerHandle timerHandle); 308 bool hasNanoappTimers(uint16_t instanceId);
|
D | event_loop.h | 105 bool findNanoappInstanceIdByAppId(uint64_t appId, uint16_t *instanceId) const; 165 bool unloadNanoapp(uint16_t instanceId, bool allowSystemNanoappUnload); 299 Nanoapp *findNanoappByInstanceId(uint16_t instanceId) const; 316 bool populateNanoappInfoForInstanceId(uint16_t instanceId, 535 Nanoapp *lookupAppByInstanceId(uint16_t instanceId) const;
|
D | audio_request_manager.h | 242 bool doConfigureSource(uint16_t instanceId, uint32_t handle, bool enable, 264 bool createAudioRequest(uint32_t handle, uint16_t instanceId, 282 uint16_t instanceId, size_t *index, 352 void postAudioSamplingChangeEvent(uint16_t instanceId, uint32_t handle,
|
D | wifi_request_manager.h | 350 instanceId(instanceIdIn), in WifiScanRequestLog() 355 uint16_t instanceId; member 455 bool nanoappHasPendingScanRequest(uint16_t instanceId) const; 464 bool nanoappHasScanMonitorRequest(uint16_t instanceId, 474 bool nanoappHasPendingScanMonitorRequest(uint16_t instanceId) const; 516 bool updateNanoappScanMonitoringList(bool enable, uint16_t instanceId);
|
/system/chre/test/simulation/ |
D | timer_test.cc | 39 bool hasNanoappTimers(TimerPool &pool, uint16_t instanceId) { in hasNanoappTimers() argument 40 return pool.hasNanoappTimers(instanceId); in hasNanoappTimers() 93 uint16_t instanceId; in TEST_F() local 96 .findNanoappInstanceIdByAppId(app.id, &instanceId)); in TEST_F() 102 EXPECT_TRUE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 112 EXPECT_FALSE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 161 uint16_t instanceId; in TEST_F() local 164 .findNanoappInstanceIdByAppId(app.id, &instanceId)); in TEST_F() 170 EXPECT_TRUE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 175 EXPECT_FALSE(hasNanoappTimers(timerPool, instanceId)); in TEST_F()
|
D | rpc_test.cc | 68 uint16_t instanceId; in TEST_F() local 71 .findNanoappInstanceIdByAppId(app.id, &instanceId)); in TEST_F() 75 instanceId); in TEST_F() 111 uint16_t instanceId; in TEST_F() local 114 .findNanoappInstanceIdByAppId(app.id, &instanceId)); in TEST_F() 118 instanceId); in TEST_F() 214 uint16_t instanceId; in TEST_F() local 217 .findNanoappInstanceIdByAppId(app.id, &instanceId)); in TEST_F() 221 instanceId); in TEST_F()
|
/system/chre/core/ |
D | timer_pool.cc | 58 if (request.instanceId == nanoapp->getInstanceId()) { in cancelAllNanoappTimers() 67 TimerHandle TimerPool::setTimer(uint16_t instanceId, Nanoseconds duration, in setTimer() argument 75 timerRequest.instanceId = instanceId; in setTimer() 100 bool TimerPool::cancelTimer(uint16_t instanceId, TimerHandle timerHandle) { in cancelTimer() argument 109 } else if (timerRequest->instanceId != instanceId) { in cancelTimer() 192 bool isNanoappTimer = (timerRequest.instanceId != kSystemInstanceId); in insertTimerRequestLocked() 209 (mTimerRequests.top().instanceId != kSystemInstanceId); in popTimerRequestLocked() 221 (mTimerRequests[index].instanceId != kSystemInstanceId); in removeTimerRequestLocked() 248 if (currentTimerRequest.instanceId == kSystemInstanceId) { in handleExpiredTimersAndScheduleNextLocked() 256 nullptr /*freeCallback*/, currentTimerRequest.instanceId); in handleExpiredTimersAndScheduleNextLocked() [all …]
|
D | gnss_manager.cc | 107 uint16_t instanceId = nanoapp->getInstanceId(); in configurePassiveLocationListener() local 110 if (nanoappHasPassiveLocationListener(instanceId, &index) != enable) { in configurePassiveLocationListener() 140 mPassiveLocationListenerNanoapps.push_back(instanceId); in configurePassiveLocationListener() 144 if (!mLocationSession.nanoappHasRequest(instanceId)) { in configurePassiveLocationListener() 209 for (uint16_t instanceId : mPassiveLocationListenerNanoapps) { in logStateToBuffer() local 210 debugDump.print(" nappId=%" PRIu16 "\n", instanceId); in logStateToBuffer() 398 log.timestamp.toRawNanoseconds(), log.instanceId, in logStateToBuffer() 410 uint16_t instanceId = nanoapp->getInstanceId(); in configure() local 412 bool hasRequest = nanoappHasRequest(instanceId, &requestIndex); in configure() 415 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure() [all …]
|
D | ble_request_manager.cc | 39 void BleRequestManager::handleExistingRequest(uint16_t instanceId, in handleExistingRequest() argument 43 mRequests.findRequest(instanceId, requestIndex); in handleExistingRequest() 47 handleAsyncResult(instanceId, foundRequest->isEnabled(), in handleExistingRequest() 53 bool BleRequestManager::compliesWithBleSetting(uint16_t instanceId, in compliesWithBleSetting() argument 60 handleAsyncResult(instanceId, enabled, false /* success */, in compliesWithBleSetting() 144 void BleRequestManager::addBleRequestLog(uint32_t instanceId, bool enabled, in addBleRequestLog() argument 147 BleRequestLog log(SystemTime::getMonotonicTime(), instanceId, enabled, in addBleRequestLog() 150 if (instanceId == CHRE_INSTANCE_ID) { in addBleRequestLog() 165 uint16_t instanceId = request.getInstanceId(); in configure() local 167 handleExistingRequest(instanceId, &hasExistingRequest, &requestIndex); in configure() [all …]
|
D | audio_request_manager.cc | 136 for (const auto &instanceId : request.instanceIds) { in logStateToBuffer() local 139 instanceId, request.numSamples, in logStateToBuffer() 178 bool AudioRequestManager::doConfigureSource(uint16_t instanceId, in doConfigureSource() argument 185 handle, instanceId, &requestIndex, &requestInstanceIdIndex); in doConfigureSource() 194 createAudioRequest(handle, instanceId, numSamples, deliveryInterval); in doConfigureSource() 215 createAudioRequest(handle, instanceId, numSamples, deliveryInterval); in doConfigureSource() 240 uint16_t instanceId, in createAudioRequest() argument 251 if (!matchingAudioRequest->instanceIds.push_back(instanceId)) { in createAudioRequest() 262 } else if (!requestList.requests.back().instanceIds.push_back(instanceId)) { in createAudioRequest() 274 postAudioSamplingChangeEvent(instanceId, handle, requestList.available, in createAudioRequest() [all …]
|
D | event_loop.cc | 70 info->instanceId = app->getInstanceId(); in populateNanoappInfo() 101 uint16_t *instanceId) const { in findNanoappInstanceIdByAppId() 102 CHRE_ASSERT(instanceId != nullptr); in findNanoappInstanceIdByAppId() 108 *instanceId = app->getInstanceId(); in findNanoappInstanceIdByAppId() 229 bool EventLoop::unloadNanoapp(uint16_t instanceId, in unloadNanoapp() argument 234 if (instanceId == mNanoapps[i]->getInstanceId()) { in unloadNanoapp() 264 LOGD("Unloaded nanoapp with instanceId %" PRIu16, instanceId); in unloadNanoapp() 385 Nanoapp *EventLoop::findNanoappByInstanceId(uint16_t instanceId) const { in findNanoappByInstanceId() 387 return lookupAppByInstanceId(instanceId); in findNanoappByInstanceId() 398 uint16_t instanceId, struct chreNanoappInfo *info) const { in populateNanoappInfoForInstanceId() argument [all …]
|
D | debug_dump_manager.cc | 51 uint16_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()
|
D | sensor_request_multiplexer.cc | 24 uint16_t instanceId, size_t *index) const { in findRequest() argument 28 if (sensorRequest.getInstanceId() == instanceId) { in findRequest()
|
/system/chre/util/pigweed/ |
D | rpc_client.cc | 68 info.instanceId > kRpcNanoappMaxId) { in handleMessageFromServer() 72 if (!validateNanoappChannelId(senderInstanceId, info.instanceId)) { in handleMessageFromServer() 89 if (info->instanceId > kRpcNanoappMaxId) { in handleNanoappStopped() 90 LOGE("Invalid nanoapp Id 0x%08" PRIx32, info->instanceId); in handleNanoappStopped() 94 if (info->instanceId == mChannelId) { in handleNanoappStopped()
|
D | chre_channel_output.cc | 91 void ChreClientNanoappChannelOutput::setServer(uint32_t instanceId) { in setServer() argument 92 CHRE_ASSERT(instanceId <= kRpcNanoappMaxId); in setServer() 93 if (instanceId <= kRpcNanoappMaxId) { in setServer() 94 mServerInstanceId = static_cast<uint16_t>(instanceId); in setServer()
|
/system/chre/platform/include/chre/platform/ |
D | tracing.h | 35 void traceRegisterNanoapp(uint16_t instanceId, const char *name); 43 void traceNanoappHandleEventStart(uint16_t instanceId, uint16_t eventType); 50 void traceNanoappHandleEventEnd(uint16_t instanceId);
|
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/ |
D | ContextHubEventBetweenAppsTestExecutor.java | 50 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/unload_tester/ |
D | unload_tester.cc | 44 uint16_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/apps/test/chqts/src/general_test/ |
D | nanoapp_info.cc | 28 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()
|
D | nanoapp_info_events_test_observer.cc | 42 mStartStopHistory[mHistoryIndex].instanceId = nanoAppInfo->instanceId; in handleEvent() 78 if (data.instanceId == performerInstanceId) { in processStartStopHistory()
|
/system/chre/test/simulation/inc/ |
D | test_util.h | 185 uint16_t instanceId; in sendEventToNanoapp() local 188 .findNanoappInstanceIdByAppId(app.id, &instanceId)) { in sendEventToNanoapp() 194 freeTestEventDataCallback, instanceId); in sendEventToNanoapp() 220 uint16_t instanceId; in sendEventToNanoapp() local 223 .findNanoappInstanceIdByAppId(app.id, &instanceId)) { in sendEventToNanoapp() 233 freeTestEventDataCallback, instanceId); in sendEventToNanoapp()
|