/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() 95 uint16_t instanceId; in TEST_F() local 98 .findNanoappInstanceIdByAppId(appId, &instanceId)); in TEST_F() 104 EXPECT_TRUE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 114 EXPECT_FALSE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 164 uint16_t instanceId; in TEST_F() local 167 .findNanoappInstanceIdByAppId(appId, &instanceId)); in TEST_F() 173 EXPECT_TRUE(hasNanoappTimers(timerPool, instanceId)); in TEST_F() 178 EXPECT_FALSE(hasNanoappTimers(timerPool, instanceId)); in TEST_F()
|
D | test_util.cc | 207 uint16_t instanceId; in sendEventToNanoapp() local 210 .findNanoappInstanceIdByAppId(appId, &instanceId)) { in sendEventToNanoapp() 216 freeTestEventDataCallback, instanceId); in sendEventToNanoapp() 247 uint16_t instanceId = 0; in testFinishUnloadingNanoappCallback() local 249 eventLoop.findNanoappInstanceIdByAppId(*appId, &instanceId); in testFinishUnloadingNanoappCallback() 250 eventLoop.unloadNanoapp(instanceId, true); in testFinishUnloadingNanoappCallback()
|
/system/chre/core/ |
D | timer_pool.cc | 62 if (request.instanceId == nanoapp->getInstanceId()) { in cancelAllNanoappTimers() 71 TimerHandle TimerPool::setTimer(uint16_t instanceId, Nanoseconds duration, in setTimer() argument 79 timerRequest.instanceId = instanceId; in setTimer() 110 bool TimerPool::cancelTimer(uint16_t instanceId, TimerHandle timerHandle) { in cancelTimer() argument 119 } else if (timerRequest->instanceId != instanceId) { in cancelTimer() 202 bool isNanoappTimer = (timerRequest.instanceId != kSystemInstanceId); in insertTimerRequestLocked() 219 (mTimerRequests.top().instanceId != kSystemInstanceId); in popTimerRequestLocked() 231 (mTimerRequests[index].instanceId != kSystemInstanceId); in removeTimerRequestLocked() 261 if (currentTimerRequest.instanceId == kSystemInstanceId) { in handleExpiredTimersAndScheduleNextLocked() 293 if (request.isOneShot && request.instanceId == kSystemInstanceId) { in rescheduleAndRemoveExpiredTimersLocked() [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() 211 for (uint16_t instanceId : mPassiveLocationListenerNanoapps) { in logStateToBuffer() local 212 debugDump.print(" nappId=%" PRIu16 "\n", instanceId); in logStateToBuffer() 400 log.timestamp.toRawNanoseconds(), log.instanceId, in logStateToBuffer() 412 uint16_t instanceId = nanoapp->getInstanceId(); in configure() local 414 bool hasRequest = nanoappHasRequest(instanceId, &requestIndex); in configure() 417 success = addRequestToQueue(instanceId, enable, minInterval, cookie); in configure() [all …]
|
D | event_loop_manager.cc | 36 uint16_t instanceId = in getNextInstanceId() local 43 if (instanceId == kBroadcastInstanceId || instanceId == kSystemInstanceId) { in getNextInstanceId() 47 return instanceId; in getNextInstanceId()
|
D | ble_request_manager.cc | 41 void BleRequestManager::handleExistingRequest(uint16_t instanceId, in handleExistingRequest() argument 45 mRequests.findRequest(instanceId, requestIndex); in handleExistingRequest() 49 handleAsyncResult(instanceId, foundRequest->isEnabled(), in handleExistingRequest() 55 bool BleRequestManager::compliesWithBleSetting(uint16_t instanceId, in compliesWithBleSetting() argument 63 handleAsyncResult(instanceId, enabled, false /* success */, in compliesWithBleSetting() 174 void BleRequestManager::addBleRequestLog(uint32_t instanceId, bool enabled, in addBleRequestLog() argument 177 BleRequestLog log(SystemTime::getMonotonicTime(), instanceId, enabled, in addBleRequestLog() 180 if (instanceId == CHRE_INSTANCE_ID) { in addBleRequestLog() 195 uint16_t instanceId = request.getInstanceId(); in configure() local 197 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 | 69 info->instanceId = app->getInstanceId(); in populateNanoappInfo() 105 uint16_t *instanceId) const { in findNanoappInstanceIdByAppId() 106 CHRE_ASSERT(instanceId != nullptr); in findNanoappInstanceIdByAppId() 112 *instanceId = app->getInstanceId(); in findNanoappInstanceIdByAppId() 225 bool EventLoop::unloadNanoapp(uint16_t instanceId, in unloadNanoapp() argument 231 if (instanceId == mNanoapps[i]->getInstanceId()) { in unloadNanoapp() 265 LOGD("Unloaded nanoapp with instanceId %" PRIu16, instanceId); in unloadNanoapp() 401 Nanoapp *EventLoop::findNanoappByInstanceId(uint16_t instanceId) const { in findNanoappByInstanceId() 403 return lookupAppByInstanceId(instanceId); in findNanoappByInstanceId() 414 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/core/include/chre/core/ |
D | ble_request_manager.h | 284 uint16_t instanceId; member 300 instanceId(instanceId_), in BleRequestLog() 312 uint32_t instanceId; member 350 void handleExistingRequest(uint16_t instanceId, bool *hasExistingRequest, 367 bool compliesWithBleSetting(uint16_t instanceId, bool enabled, 381 void addBleRequestLog(uint32_t instanceId, bool enabled, size_t requestIndex, 427 void handleNanoappEventRegistration(uint16_t instanceId, bool enabled, 443 void handleAsyncResult(uint16_t instanceId, bool enabled, bool success, 527 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); 316 bool hasNanoappTimers(uint16_t instanceId);
|
D | event_loop.h | 97 bool findNanoappInstanceIdByAppId(uint64_t appId, uint16_t *instanceId) const; 158 bool unloadNanoapp(uint16_t instanceId, bool allowSystemNanoappUnload, 314 Nanoapp *findNanoappByInstanceId(uint16_t instanceId) const; 331 bool populateNanoappInfoForInstanceId(uint16_t instanceId, 533 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/util/pigweed/ |
D | rpc_client.cc | 73 info.instanceId > kRpcNanoappMaxId) { in handleMessageFromServer() 77 if (!validateNanoappChannelId(senderInstanceId, info.instanceId)) { in handleMessageFromServer() 94 if (info->instanceId > kRpcNanoappMaxId) { in handleNanoappStopped() 95 LOGE("Invalid nanoapp Id 0x%08" PRIx32, info->instanceId); in handleNanoappStopped() 99 if (info->instanceId == mChannelId) { in handleNanoappStopped()
|
D | chre_channel_output.cc | 88 void ChreClientNanoappChannelOutput::setServer(uint32_t instanceId) { in setServer() argument 89 CHRE_ASSERT(instanceId <= kRpcNanoappMaxId); in setServer() 90 if (instanceId <= kRpcNanoappMaxId) { in setServer() 91 mServerInstanceId = static_cast<uint16_t>(instanceId); in setServer()
|
/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_base.h | 86 uint16_t instanceId; in getNanoappByAppId() local 89 .findNanoappInstanceIdByAppId(id, &instanceId)); in getNanoappByAppId() 92 .findNanoappByInstanceId(instanceId); in getNanoappByAppId()
|
/system/chre/platform/shared/ |
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/platform/shared/include/chre/platform/shared/ |
D | log_buffer.h | 171 uint32_t timestampMs, uint16_t instanceId, 350 uint16_t instanceId = kSystemInstanceId); 358 uint16_t instanceId = kSystemInstanceId); 373 LogType type, uint16_t instanceId);
|