Home
last modified time | relevance | path

Searched refs:nanoapp (Results 1 – 25 of 57) sorted by relevance

123

/system/chre/platform/shared/
Dchre_api_re.cc37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetAppId() local
38 return nanoapp->getAppId(); in chreGetAppId()
42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetInstanceId() local
43 return nanoapp->getInstanceId(); in chreGetInstanceId()
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerSet() local
50 .setNanoappTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
54 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerCancel() local
56 .cancelNanoappTimer(nanoapp, timerId); in chreTimerCancel()
60 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreHeapAlloc() local
62 nanoappAlloc(nanoapp, bytes); in chreHeapAlloc()
[all …]
Dchre_api_core.cc35 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreAbort() local
40 if (nanoapp == nullptr) { in chreAbort()
43 FATAL_ERROR("chreAbort called by app 0x%016" PRIx64, nanoapp->getAppId()); in chreAbort()
50 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSendEvent() local
58 nanoapp->getInstanceId()); in chreSendEvent()
61 nanoapp->getInstanceId(), targetInstanceId); in chreSendEvent()
81 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSendMessageToHostEndpoint() local
88 "stopping", nanoapp->getInstanceId()); in chreSendMessageToHostEndpoint()
93 nanoapp, message, messageSize, messageType, hostEndpoint, freeCallback); in chreSendMessageToHostEndpoint()
116 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreConfigureNanoappInfoEvents() local
[all …]
Dchre_api_gnss.cc40 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStartAsync() local
43 nanoapp, Milliseconds(minIntervalMs), in chreGnssLocationSessionStartAsync()
52 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStopAsync() local
54 .getLocationSession().removeRequest(nanoapp, cookie); in chreGnssLocationSessionStopAsync()
63 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssMeasurementSessionStartAsync() local
66 nanoapp, Milliseconds(minIntervalMs), in chreGnssMeasurementSessionStartAsync()
75 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssMeasurementSessionStopAsync() local
77 .getMeasurementSession().removeRequest(nanoapp, cookie); in chreGnssMeasurementSessionStopAsync()
Dchre_api_sensor.cc96 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorFindDefault() local
97 if (!nanoapp->isUimgApp()) { in chreSensorFindDefault()
118 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetSensorInfo() local
123 getSensorInfo(sensorHandle, *nanoapp, info); in chreGetSensorInfo()
129 if (!nanoapp->isUimgApp()) { in chreGetSensorInfo()
153 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorConfigure() local
155 SensorRequest sensorRequest(nanoapp->getInstanceId(), sensorMode, in chreSensorConfigure()
158 .setSensorRequest(nanoapp, sensorHandle, sensorRequest); in chreSensorConfigure()
163 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorConfigureBiasEvents() local
165 .configureBiasEvents(nanoapp, sensorHandle, enable); in chreSensorConfigureBiasEvents()
[all …]
Dchre_api_wifi.cc37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiConfigureScanMonitorAsync() local
39 .configureScanMonitor(nanoapp, enable, cookie); in chreWifiConfigureScanMonitorAsync()
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestScanAsync() local
51 .requestScan(nanoapp, params, cookie); in chreWifiRequestScanAsync()
60 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestRangingAsync() local
63 .requestRanging(nanoapp, params, cookie); in chreWifiRequestRangingAsync()
Dchre_api_wwan.cc36 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWwanGetCellInfoAsync() local
38 .requestCellInfo(nanoapp, cookie); in chreWwanGetCellInfoAsync()
Dchre_api_audio.cc49 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreAudioConfigureSource() local
51 .configureSource(nanoapp, handle, enable, bufferDuration, in chreAudioConfigureSource()
/system/chre/core/
Devent_loop.cc79 for (const UniquePtr<Nanoapp>& nanoapp : mNanoapps) { in forEachNanoapp() local
80 callback(nanoapp.get(), data); in forEachNanoapp()
87 Nanoapp *nanoapp = lookupAppByAppId(appId); in invokeMessageFreeFunction() local
88 if (nanoapp == nullptr) { in invokeMessageFreeFunction()
92 mCurrentApp = nanoapp; in invokeMessageFreeFunction()
141 bool EventLoop::startNanoapp(UniquePtr<Nanoapp>& nanoapp) { in startNanoapp() argument
142 CHRE_ASSERT(!nanoapp.isNull()); in startNanoapp()
148 if (nanoapp.isNull()) { in startNanoapp()
150 } else if (eventLoop.findNanoappInstanceIdByAppId(nanoapp->getAppId(), in startNanoapp()
153 PRIx32, nanoapp->getAppId(), existingInstanceId); in startNanoapp()
[all …]
Dwwan_request_manager.cc34 bool WwanRequestManager::requestCellInfo(Nanoapp *nanoapp, in requestCellInfo() argument
36 CHRE_ASSERT(nanoapp); in requestCellInfo()
42 nanoapp->registerForBroadcastEvent(CHRE_EVENT_WWAN_CELL_INFO_RESULT); in requestCellInfo()
43 mCellInfoRequestingNanoappInstanceId = nanoapp->getInstanceId(); in requestCellInfo()
90 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() in handleFreeCellInfoResult() local
92 if (nanoapp != nullptr) { in handleFreeCellInfoResult()
93 nanoapp->unregisterForBroadcastEvent(CHRE_EVENT_WWAN_CELL_INFO_RESULT); in handleFreeCellInfoResult()
Dwifi_request_manager.cc48 bool WifiRequestManager::configureScanMonitor(Nanoapp *nanoapp, bool enable, in configureScanMonitor() argument
50 CHRE_ASSERT(nanoapp); in configureScanMonitor()
53 uint32_t instanceId = nanoapp->getInstanceId(); in configureScanMonitor()
56 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor()
64 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor()
81 Nanoapp *nanoapp, const struct chreWifiRangingParams *params, in requestRanging() argument
83 CHRE_ASSERT(nanoapp); in requestRanging()
90 req.nanoappInstanceId = nanoapp->getInstanceId(); in requestRanging()
121 bool WifiRequestManager::requestScan(Nanoapp *nanoapp, in requestScan() argument
124 CHRE_ASSERT(nanoapp); in requestScan()
[all …]
Dgnss_manager.cc70 bool GnssSession::addRequest(Nanoapp *nanoapp, Milliseconds minInterval, in addRequest() argument
72 CHRE_ASSERT(nanoapp); in addRequest()
73 return configure(nanoapp, true /* enable */, minInterval, minTimeToNext, in addRequest()
77 bool GnssSession::removeRequest(Nanoapp *nanoapp, const void *cookie) { in removeRequest() argument
78 CHRE_ASSERT(nanoapp); in removeRequest()
79 return configure(nanoapp, false /* enable */, Milliseconds(UINT64_MAX), in removeRequest()
139 Nanoapp *nanoapp, bool enable, Milliseconds minInterval, in configure() argument
142 uint32_t instanceId = nanoapp->getInstanceId(); in configure()
244 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() in updateRequests() local
246 if (nanoapp == nullptr) { in updateRequests()
[all …]
Dsensor_request_manager.cc116 bool SensorRequestManager::setSensorRequest(Nanoapp *nanoapp, in setSensorRequest() argument
118 CHRE_ASSERT(nanoapp); in setSensorRequest()
142 bool nanoappHasRequest = (requests.find(nanoapp->getInstanceId(), in setSensorRequest()
154 nanoapp->unregisterForBroadcastEvent(eventType); in setSensorRequest()
160 nanoapp->unregisterForBroadcastEvent(biasEventType); in setSensorRequest()
177 nanoapp->registerForBroadcastEvent(eventType); in setSensorRequest()
184 nanoapp->registerForBroadcastEvent(biasEventType); in setSensorRequest()
193 nanoapp->getInstanceId()); in setSensorRequest()
210 const Nanoapp& nanoapp, in getSensorInfo() argument
240 if (nanoapp.getTargetApiVersion() >= CHRE_API_VERSION_1_1) { in getSensorInfo()
[all …]
Dstatic_nanoapps.cc55 UniquePtr<Nanoapp> nanoapp = kStaticNanoappList[i](); in loadStaticNanoapps() local
56 EventLoopManagerSingleton::get()->getEventLoop().startNanoapp(nanoapp); in loadStaticNanoapps()
/system/chre/core/include/chre/core/
Dtimer_pool.h61 const Nanoapp *nanoapp, Nanoseconds duration, const void *cookie, in setNanoappTimer() argument
63 CHRE_ASSERT(nanoapp != nullptr); in setNanoappTimer()
64 return setTimer(nanoapp->getInstanceId(), duration, nullptr /* callback */, in setNanoappTimer()
95 bool cancelNanoappTimer(const Nanoapp *nanoapp, TimerHandle timerHandle) { in cancelNanoappTimer() argument
96 CHRE_ASSERT(nanoapp != nullptr); in cancelNanoappTimer()
97 return cancelTimer(nanoapp->getInstanceId(), timerHandle); in cancelNanoappTimer()
Dwifi_request_manager.h72 bool configureScanMonitor(Nanoapp *nanoapp, bool enable, const void *cookie);
86 bool requestRanging(Nanoapp *nanoapp, const chreWifiRangingParams *params,
105 bool requestScan(Nanoapp *nanoapp, const chreWifiScanParams *params,
271 bool addScanMonitorRequestToQueue(Nanoapp *nanoapp, bool enable,
Dsensor_request_manager.h70 bool setSensorRequest(Nanoapp *nanoapp, uint32_t sensorHandle,
81 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp& nanoapp,
135 Nanoapp *nanoapp, uint32_t sensorHandle, bool enable);
161 bool flushAsync(Nanoapp *nanoapp, uint32_t sensorHandle, const void *cookie);
Dgnss_manager.h50 bool addRequest(Nanoapp *nanoapp, Milliseconds minInterval,
63 bool removeRequest(Nanoapp *nanoapp, const void *cookie);
175 bool configure(Nanoapp *nanoapp, bool enable, Milliseconds minInterval,
Devent_loop.h57 typedef void (NanoappCallbackFunction)(const Nanoapp *nanoapp, void *data);
111 bool startNanoapp(UniquePtr<Nanoapp>& nanoapp);
407 void notifyAppStatusChange(uint16_t eventType, const Nanoapp& nanoapp);
/system/chre/platform/slpi/include/chre/target_platform/
Dstatic_nanoapp_init.h38 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \
54 if (nanoapp.isNull()) { \
57 nanoapp->loadStatic(&appInfo); \
60 return nanoapp; \
/system/chre/platform/linux/include/chre/target_platform/
Dstatic_nanoapp_init.h36 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \
52 if (nanoapp.isNull()) { \
55 nanoapp->loadStatic(&appInfo); \
58 return nanoapp; \
/system/chre/apps/wifi_offload/
DREADME.md2 sending messages between wifi_offload nanoapp and offload HAL. This library is
3 being included by both offload HAL and wifi_offload nanoapp, and is NOT a
4 standard nanoapp by itself.
/system/chre/util/
Dutil.mk14 COMMON_SRCS += util/nanoapp/audio.cc
15 COMMON_SRCS += util/nanoapp/debug.cc
16 COMMON_SRCS += util/nanoapp/sensor.cc
17 COMMON_SRCS += util/nanoapp/wifi.cc
/system/chre/platform/slpi/
Dhost_link.cc69 UniquePtr<Nanoapp> nanoapp; member
224 auto nanoappAdderCallback = [](const Nanoapp *nanoapp, void *data) { in buildNanoappListResponse() argument
227 *(cbData->builder), cbData->nanoappEntries, nanoapp->getAppId(), in buildNanoappListResponse()
228 nanoapp->getAppVersion(), true /*enabled*/, in buildNanoappListResponse()
229 nanoapp->isSystemNanoapp()); in buildNanoappListResponse()
270 cbData->nanoapp->isLoaded() && eventLoop.startNanoapp(cbData->nanoapp); in finishLoadingNanoappCallback()
515 auto nanoapp = MakeUnique<Nanoapp>(); in handleLoadNanoappFile() local
517 if (nanoapp.isNull()) { in handleLoadNanoappFile()
519 } else if (!nanoapp->setAppInfo(appId, appVersion, appFilename) in handleLoadNanoappFile()
520 || !nanoapp->isLoaded()) { in handleLoadNanoappFile()
[all …]
/system/chre/platform/android/
Dhost_link.cc119 auto nanoappAddCallback = [](const Nanoapp *nanoapp, void *data) { in constructNanoappListCallback() argument
123 nanoappListEntry->app_id = nanoapp->getAppId(); in constructNanoappListCallback()
124 nanoappListEntry->version = nanoapp->getAppVersion(); in constructNanoappListCallback()
126 nanoappListEntry->is_system = nanoapp->isSystemNanoapp(); in constructNanoappListCallback()
/system/chre/host/hal_generic/
Dgeneric_context_hub.cc410 for (const std::unique_ptr<fbs::NanoappListEntryT>& nanoapp in handleNanoappListResponse() local
414 if (nanoapp == nullptr) { in handleNanoappListResponse()
419 nanoapp->app_id, nanoapp->version, nanoapp->enabled, in handleNanoappListResponse()
420 nanoapp->is_system); in handleNanoappListResponse()
421 if (!nanoapp->is_system) { in handleNanoappListResponse()
424 appInfo.appId = nanoapp->app_id; in handleNanoappListResponse()
425 appInfo.version = nanoapp->version; in handleNanoappListResponse()
426 appInfo.enabled = nanoapp->enabled; in handleNanoappListResponse()

123