Searched defs:nanoapp (Results 1 - 11 of 11) sorted by relevance

/system/chre/platform/shared/
H A Dchre_api_wifi.cc30 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
32 .configureScanMonitor(nanoapp, enable, cookie);
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
39 .requestScan(nanoapp, params, cookie);
H A Dchre_api_re.cc32 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
33 return nanoapp->getAppId();
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
38 return nanoapp->getInstanceId();
42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
43 return chre::getCurrentEventLoop()->getTimerPool().setTimer(nanoapp,
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
49 return chre::getCurrentEventLoop()->getTimerPool().cancelTimer(nanoapp,
H A Dchre_api_sensor.cc43 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
48 getSensorInfo(sensorHandle, nanoapp, info);
56 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval),
61 .setSensorRequest(nanoapp, sensorHandle, sensorRequest);
H A Dchre_api_core.cc32 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
34 eventType, eventData, freeCallback, nanoapp->getInstanceId(),
/system/chre/core/
H A Devent_loop.cc21 #include "chre/core/nanoapp.h"
64 for (const UniquePtr<Nanoapp>& nanoapp : mNanoapps) {
65 callback(nanoapp.get(), data);
97 // callback and are not expected to be delivered to any nanoapp, so no
129 bool EventLoop::startNanoapp(UniquePtr<Nanoapp>& nanoapp) { argument
130 CHRE_ASSERT(!nanoapp.isNull());
135 if (nanoapp.isNull()) {
137 } else if (eventLoopManager->findNanoappInstanceIdByAppId(nanoapp->getAppId(),
141 PRIx32, nanoapp->getAppId(), existingInstanceId);
143 LOGE("Failed to allocate space for new nanoapp");
160 stopNanoapp(Nanoapp *nanoapp) argument
216 Nanoapp *nanoapp = lookupAppByInstanceId(instanceId); local
264 const UniquePtr<Nanoapp>& nanoapp = mNanoapps[index]; local
[all...]
H A Devent_loop_manager.cc75 Nanoapp *nanoapp = nullptr; local
77 nanoapp = mEventLoops[i]->findNanoappByInstanceId(instanceId);
78 if (nanoapp != nullptr) {
86 return nanoapp;
H A Dsensor_request.cc210 SensorRequest::SensorRequest(Nanoapp *nanoapp, SensorMode mode, argument
213 : mNanoapp(nanoapp), mInterval(interval), mLatency(latency), mMode(mode) {}
H A Dtimer_pool.cc32 TimerHandle TimerPool::setTimer(const Nanoapp *nanoapp, Nanoseconds duration, argument
34 CHRE_ASSERT(nanoapp);
38 timerRequest.requestingNanoapp = nanoapp;
50 nanoapp->getAppId(), duration.toRawNanoseconds());
66 bool TimerPool::cancelTimer(const Nanoapp *nanoapp, TimerHandle timerHandle) { argument
67 CHRE_ASSERT(nanoapp);
77 } else if (timerRequest->requestingNanoapp != nanoapp) {
91 LOGD("App %" PRIx64 " cancelled timer %" PRIu32, nanoapp->getAppId(),
H A Dsensor_request_manager.cc111 bool SensorRequestManager::setSensorRequest(Nanoapp *nanoapp, argument
113 CHRE_ASSERT(nanoapp);
136 bool nanoappHasRequest = (requests.find(nanoapp, &requestIndex) != nullptr);
143 // The existing request is removed from the multiplexer. The nanoapp is
147 nanoapp->unregisterForBroadcastEvent(eventType);
159 // multiplexer. The nanoapp is registered for events if this request was
163 nanoapp->registerForBroadcastEvent(eventType);
170 nullptr, kSystemInstanceId, nanoapp->getInstanceId());
187 const Nanoapp *nanoapp,
189 CHRE_ASSERT(nanoapp);
186 getSensorInfo(uint32_t sensorHandle, const Nanoapp *nanoapp, struct chreSensorInfo *info) const argument
232 Nanoapp *nanoapp = request.getNanoapp(); local
252 find( const Nanoapp *nanoapp, size_t *index) const argument
[all...]
H A Dwifi_request_manager.cc27 // Reserve space for at least one scan monitoring nanoapp. This ensures that
39 bool WifiRequestManager::configureScanMonitor(Nanoapp *nanoapp, bool enable, argument
41 CHRE_ASSERT(nanoapp);
44 uint32_t instanceId = nanoapp->getInstanceId();
46 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie);
53 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie);
60 LOGE("Failed to enable the scan monitor for nanoapp instance %" PRIu32,
71 bool WifiRequestManager::requestScan(Nanoapp *nanoapp, argument
74 CHRE_ASSERT(nanoapp);
80 mScanRequestingNanoappInstanceId = nanoapp
181 addScanMonitorRequestToQueue(Nanoapp *nanoapp, bool enable, const void *cookie) argument
200 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
380 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
416 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
[all...]
/system/chre/platform/slpi/
H A Dhost_link.cc54 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); member in struct:chre::__anon1356::LoadNanoappCallbackData
128 LOGE("Couldn't allocate builder for nanoapp list response");
130 LOGE("Couldn't reserve space for list of nanoapp offsets");
141 auto callback = [](const Nanoapp *nanoapp, void *untypedData) {
144 data->builder, data->nanoappEntries, nanoapp->getAppId(),
145 nanoapp->getAppVersion(), true /*enabled*/,
146 nanoapp->isSystemNanoapp());
149 // Add a NanoappListEntry to the FlatBuffer for each nanoapp
172 bool startedSuccessfully = (cbData->nanoapp->isLoaded()) ?
173 eventLoop->startNanoapp(cbData->nanoapp)
[all...]

Completed in 76 milliseconds