Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 78) sorted by relevance

1234

/chre-3.4.0/apps/power_test/common/
Dpower_test.cc90 const struct chreAsyncResult *event = in nanoappHandleEvent() local
93 event->requestType, event->success, event->errorCode); in nanoappHandleEvent()
97 const struct chreWifiScanEvent *event = in nanoappHandleEvent() local
101 event->resultCount, event->scanType, event->radioChainPref); in nanoappHandleEvent()
105 const struct chreAsyncResult *event = in nanoappHandleEvent() local
108 event->requestType, event->success, event->errorCode); in nanoappHandleEvent()
121 const struct chreSensorSamplingStatusEvent *event = in nanoappHandleEvent() local
125 event->sensorHandle, event->status.enabled, event->status.interval, in nanoappHandleEvent()
126 event->status.latency); in nanoappHandleEvent()
130 const struct chreAudioDataEvent *event = in nanoappHandleEvent() local
[all …]
/chre-3.4.0/pal/tests/src/
Dgnss_pal_impl_test.cc70 void chrePalLocationEventCallback(struct chreGnssLocationEvent *event) { in chrePalLocationEventCallback() argument
72 gTest->locationEventCallback(event); in chrePalLocationEventCallback()
82 void chrePalMeasurementEventCallback(struct chreGnssDataEvent *event) { in chrePalMeasurementEventCallback() argument
84 gTest->measurementEventCallback(event); in chrePalMeasurementEventCallback()
88 void logLocationEvent(const struct chreGnssLocationEvent &event) { in logLocationEvent() argument
89 LOGI("Received location: %" PRId32 ", %" PRId32, event.latitude_deg_e7, in logLocationEvent()
90 event.longitude_deg_e7); in logLocationEvent()
91 LOGI(" timestamp (ms): %" PRIu64, event.timestamp); in logLocationEvent()
92 LOGI(" altitude (m): %f", event.altitude); in logLocationEvent()
93 LOGI(" speed (m/s): %f", event.speed); in logLocationEvent()
[all …]
Dwifi_pal_impl_test.cc67 void chrePalScanEventCallback(struct chreWifiScanEvent *event) { in chrePalScanEventCallback() argument
69 gTest->scanEventCallback(event); in chrePalScanEventCallback()
74 struct chreWifiRangingEvent *event) { in chrePalRangingEventCallback() argument
76 gTest->rangingEventCallback(errorCode, event); in chrePalRangingEventCallback()
139 void PalWifiTest::scanEventCallback(struct chreWifiScanEvent *event) { in scanEventCallback() argument
140 if (event == nullptr) { in scanEventCallback()
145 scanEventList_.push_back(event); in scanEventCallback()
146 numScanResultCount_ += event->resultCount; in scanEventCallback()
147 lastScanEventReceived_ = (numScanResultCount_ == event->resultTotal); in scanEventCallback()
155 struct chreWifiRangingEvent *event) { in rangingEventCallback() argument
[all …]
/chre-3.4.0/pal/util/
Dwifi_scan_cache.c39 struct chreWifiScanEvent event; member
82 uint64_t timeNs = gWifiCacheState.event.referenceTime; in paramsMatchScanCache()
95 (gWifiCacheState.event.scanType == CHRE_WIFI_SCAN_TYPE_ACTIVE) || in paramsMatchScanCache()
96 (gWifiCacheState.event.scanType == CHRE_WIFI_SCAN_TYPE_PASSIVE); in paramsMatchScanCache()
98 bool cache_all_freq = (gWifiCacheState.event.scannedFreqListLen == 0); in paramsMatchScanCache()
99 bool cache_all_ssid = (gWifiCacheState.event.ssidSetSize == 0); in paramsMatchScanCache()
124 gWifiCacheState.event.resultTotal); in chreWifiScanCacheDispatchAll()
125 if (gWifiCacheState.event.resultTotal == 0) { in chreWifiScanCacheDispatchAll()
126 gWifiCacheState.event.eventIndex = 0; in chreWifiScanCacheDispatchAll()
127 gWifiCacheState.event.resultCount = 0; in chreWifiScanCacheDispatchAll()
[all …]
/chre-3.4.0/core/
Devent_ref_queue.cc29 bool EventRefQueue::push(Event *event) { in push() argument
30 CHRE_ASSERT(event != nullptr); in push()
32 bool pushed = mQueue.push(event); in push()
34 event->incrementRefCount(); in push()
43 Event *event = mQueue.front(); in pop() local
45 event->decrementRefCount(); in pop()
47 return event; in pop()
Dnanoapp.cc126 Event *event = mEventQueue.pop(); in processNextEvent() local
128 CHRE_ASSERT_LOG(event != nullptr, "Tried delivering event, but queue empty"); in processNextEvent()
129 if (event != nullptr) { in processNextEvent()
130 if (event->eventType == CHRE_EVENT_GNSS_DATA) { in processNextEvent()
131 handleGnssMeasurementDataEvent(event); in processNextEvent()
133 handleEvent(event->senderInstanceId, event->eventType, event->eventData); in processNextEvent()
137 return event; in processNextEvent()
191 void Nanoapp::handleGnssMeasurementDataEvent(const Event *event) { in handleGnssMeasurementDataEvent() argument
194 static_cast<const struct chreGnssDataEvent *>(event->eventData); in handleGnssMeasurementDataEvent()
200 handleEvent(event->senderInstanceId, event->eventType, &localEvent); in handleGnssMeasurementDataEvent()
[all …]
Devent_loop.cc120 Event *event = mEvents.pop(); in run() local
124 distributeEvent(event); in run()
281 Event *event = in postSystemEvent() local
284 if (event == nullptr || !mEvents.push(event)) { in postSystemEvent()
383 Event *event = in allocateAndPostEvent() local
386 if (event != nullptr) { in allocateAndPostEvent()
387 success = mEvents.push(event); in allocateAndPostEvent()
410 Event *event = app->processNextEvent(); in deliverNextEvent() local
413 if (event->isUnreferenced()) { in deliverNextEvent()
414 freeEvent(event); in deliverNextEvent()
[all …]
Dwifi_request_manager.cc222 uint8_t errorCode, struct chreWifiRangingEvent *event) { in handleRangingEvent() argument
232 SystemCallbackType::WifiHandleRangingEvent, event, callback, in handleRangingEvent()
236 void WifiRequestManager::handleScanEvent(struct chreWifiScanEvent *event) { in handleScanEvent() argument
245 SystemCallbackType::WifiHandleScanEvent, event, callback); in handleScanEvent()
376 chreAsyncResult *event = memoryAlloc<chreAsyncResult>(); in postScanMonitorAsyncResultEvent() local
377 if (event == nullptr) { in postScanMonitorAsyncResultEvent()
380 event->requestType = CHRE_WIFI_REQUEST_TYPE_CONFIGURE_SCAN_MONITOR; in postScanMonitorAsyncResultEvent()
381 event->success = success; in postScanMonitorAsyncResultEvent()
382 event->errorCode = errorCode; in postScanMonitorAsyncResultEvent()
383 event->reserved = 0; in postScanMonitorAsyncResultEvent()
[all …]
/chre-3.4.0/platform/linux/
Dpal_wifi.cc42 auto event = chre::MakeUniqueZeroFill<struct chreWifiScanEvent>(); in sendScanResponse() local
44 event->resultCount = 1; in sendScanResponse()
45 event->resultTotal = 1; in sendScanResponse()
46 event->referenceTime = gSystemApi->getCurrentTime(); in sendScanResponse()
47 event->results = result.release(); in sendScanResponse()
49 gCallbacks->scanEventCallback(event.release()); in sendScanResponse()
89 void chrePalWifiApiReleaseScanEvent(struct chreWifiScanEvent *event) { in chrePalWifiApiReleaseScanEvent() argument
90 chre::memoryFree(const_cast<uint32_t *>(event->scannedFreqList)); in chrePalWifiApiReleaseScanEvent()
91 chre::memoryFree(const_cast<struct chreWifiScanResult *>(event->results)); in chrePalWifiApiReleaseScanEvent()
92 chre::memoryFree(event); in chrePalWifiApiReleaseScanEvent()
Dpal_gnss.cc54 auto event = chre::MakeUniqueZeroFill<struct chreGnssLocationEvent>(); in sendLocationEvents() local
55 event->timestamp = gSystemApi->getCurrentTime(); in sendLocationEvents()
56 gCallbacks->locationEventCallback(event.release()); in sendLocationEvents()
66 auto event = chre::MakeUniqueZeroFill<struct chreGnssDataEvent>(); in sendMeasurementEvents() local
70 event->measurements = measurement.release(); in sendMeasurementEvents()
71 event->measurement_count = 1; in sendMeasurementEvents()
72 event->clock.time_ns = static_cast<int64_t>(gSystemApi->getCurrentTime()); in sendMeasurementEvents()
73 gCallbacks->measurementEventCallback(event.release()); in sendMeasurementEvents()
123 void chrePalGnssReleaseLocationEvent(struct chreGnssLocationEvent *event) { in chrePalGnssReleaseLocationEvent() argument
124 chre::memoryFree(event); in chrePalGnssReleaseLocationEvent()
[all …]
/chre-3.4.0/core/include/chre/core/
Daudio_request_manager.h84 void handleAudioDataEvent(const struct chreAudioDataEvent *event);
180 explicit AudioDataEventRefCount(struct chreAudioDataEvent *event) in AudioDataEventRefCount()
181 : event(event) {} in AudioDataEventRefCount()
183 AudioDataEventRefCount(struct chreAudioDataEvent *event, uint32_t refCount) in AudioDataEventRefCount()
184 : event(event), refCount(refCount) {} in AudioDataEventRefCount()
193 return (event == other.event);
197 struct chreAudioDataEvent *event; member
318 void handleAudioDataEventSync(struct chreAudioDataEvent *event);
365 void postAudioDataEventFatal(struct chreAudioDataEvent *event,
/chre-3.4.0/chpp/platform/linux/services/
Dplatform_wifi.c55 static void wifiPalReleaseScanEvent(struct chreWifiScanEvent *event) { in wifiPalReleaseScanEvent() argument
56 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->results)); in wifiPalReleaseScanEvent()
57 gSystemApi->memoryFree(event); in wifiPalReleaseScanEvent()
66 static void wifiPalReleaseRangingEvent(struct chreWifiRangingEvent *event) { in wifiPalReleaseRangingEvent() argument
67 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->scannedFreqList)); in wifiPalReleaseRangingEvent()
68 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->results)); in wifiPalReleaseRangingEvent()
69 gSystemApi->memoryFree(event); in wifiPalReleaseRangingEvent()
Dplatform_gnss.c52 static void gnssPalReleaseLocationEvent(struct chreGnssLocationEvent *event) { in gnssPalReleaseLocationEvent() argument
53 gSystemApi->memoryFree(event); in gnssPalReleaseLocationEvent()
66 struct chreGnssDataEvent *event) { in gnssPalReleaseMeasurementDataEvent() argument
67 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->measurements)); in gnssPalReleaseMeasurementDataEvent()
68 gSystemApi->memoryFree(event); in gnssPalReleaseMeasurementDataEvent()
/chre-3.4.0/pal/util/tests/
Dwifi_scan_cache_test.cc38 void chreWifiScanEventCallback(struct chreWifiScanEvent *event);
94 void chreWifiScanEventCallback(struct chreWifiScanEvent *event) { in chreWifiScanEventCallback() argument
96 EXPECT_EQ(event->version, gExpectedWifiScanEvent->version); in chreWifiScanEventCallback()
97 EXPECT_EQ(event->scanType, gExpectedWifiScanEvent->scanType); in chreWifiScanEventCallback()
98 EXPECT_EQ(event->ssidSetSize, gExpectedWifiScanEvent->ssidSetSize); in chreWifiScanEventCallback()
99 ASSERT_EQ(event->scannedFreqListLen, in chreWifiScanEventCallback()
101 if (event->scannedFreqListLen > 0) { in chreWifiScanEventCallback()
102 ASSERT_NE(event->scannedFreqList, nullptr); in chreWifiScanEventCallback()
104 memcmp(gExpectedWifiScanEvent->scannedFreqList, event->scannedFreqList, in chreWifiScanEventCallback()
105 event->scannedFreqListLen * sizeof(uint32_t)), in chreWifiScanEventCallback()
[all …]
/chre-3.4.0/apps/gnss_world/
Dgnss_world.cc215 void handleGnssLocationEvent(const chreGnssLocationEvent *event) { in handleGnssLocationEvent() argument
216 LOGI("Received location: %" PRId32 ", %" PRId32, event->latitude_deg_e7, in handleGnssLocationEvent()
217 event->longitude_deg_e7); in handleGnssLocationEvent()
218 LOGI(" timestamp (ms): %" PRIu64, event->timestamp); in handleGnssLocationEvent()
219 LOGI(" altitude (m): %f", event->altitude); in handleGnssLocationEvent()
220 LOGI(" speed (m/s): %f", event->speed); in handleGnssLocationEvent()
221 LOGI(" bearing (deg): %f", event->bearing); in handleGnssLocationEvent()
222 LOGI(" accuracy: %f", event->accuracy); in handleGnssLocationEvent()
223 LOGI(" flags: %" PRIx16, event->flags); in handleGnssLocationEvent()
224 LOGI(" altitude_accuracy: %f", event->altitude_accuracy); in handleGnssLocationEvent()
[all …]
/chre-3.4.0/apps/wifi_world/
Dwifi_world.cc234 void prepareRanging(const chreWifiScanEvent *event) { in prepareRanging() argument
238 for (uint8_t i = 0; i < event->resultCount; i++) { in prepareRanging()
240 (event->results[i].flags & in prepareRanging()
242 chreWifiRangingTargetFromScanResult(&event->results[i], in prepareRanging()
249 if (gTargetCount == 0 && event->resultCount == 0) { in prepareRanging()
254 chreWifiRangingTargetFromScanResult(&event->results[0], in prepareRanging()
281 void handleWifiScanEvent(const chreWifiScanEvent *event) { in handleWifiScanEvent() argument
284 event->scanType, event->resultCount, event->referenceTime); in handleWifiScanEvent()
291 if (event->scanType != gWifiScanParams.scanType) { in handleWifiScanEvent()
293 gWifiScanParams.scanType, event->scanType); in handleWifiScanEvent()
[all …]
/chre-3.4.0/platform/slpi/see/
Dsee_helper.cc107 UniquePtr<uint8_t> event; member
442 sns_suid_event event = { in decodeSnsSuidEvent() local
449 bool success = pb_decode(stream, sns_suid_event_fields, &event); in decodeSnsSuidEvent()
681 sns_std_attr_event event; in decodeSnsStdAttrEvent() member
688 data->event.attributes.funcs.decode = decodeSnsStrAttr; in decodeSnsStdAttrEvent()
689 data->event.attributes.arg = &data->attr; in decodeSnsStdAttrEvent()
691 success = pb_decode(stream, sns_std_attr_event_fields, &data->event); in decodeSnsStdAttrEvent()
734 sns_std_error_event event = {}; in decodeSnsStdProtoEvent() local
735 success = pb_decode(stream, sns_std_error_event_fields, &event); in decodeSnsStdProtoEvent()
739 LOGW("SNS_STD_MSGID_SNS_STD_ERROR_EVENT: %d", event.error); in decodeSnsStdProtoEvent()
[all …]
/chre-3.4.0/apps/audio_world/
Daudio_world.cc99 void handleAudioDataEvent(const struct chreAudioDataEvent *event) { in handleAudioDataEvent() argument
100 kiss_fftr(gKissFftConfig, event->samplesS16, gKissFftOutput); in handleAudioDataEvent()
111 Milliseconds timestamp = Milliseconds(Nanoseconds(event->timestamp)); in handleAudioDataEvent()
118 fftStr, adjustedTimestamp.getMilliseconds(), event->sampleCount); in handleAudioDataEvent()
122 const struct chreAudioSourceStatusEvent *event) { in handleAudioSamplingChangeEvent() argument
124 event->handle, event->status.suspended); in handleAudioSamplingChangeEvent()
128 const struct chreUserSettingChangedEvent *event) { in handleAudioSettingChangedNotification() argument
134 if (event != nullptr) { in handleAudioSettingChangedNotification()
135 if (event->setting != CHRE_USER_SETTING_MICROPHONE) { in handleAudioSettingChangedNotification()
136 LOGE("Unexpected setting ID: %u", event->setting); in handleAudioSettingChangedNotification()
[all …]
/chre-3.4.0/apps/test/common/chre_stress_test/src/
Dchre_stress_test_manager.cc287 void Manager::handleGnssLocationEvent(const chreGnssLocationEvent *event) { in handleGnssLocationEvent() argument
288 LOGI("Received GNSS location event at %" PRIu64 " ms", event->timestamp); in handleGnssLocationEvent()
290 checkTimestamp(event->timestamp, mPrevGnssLocationEventTimestampMs); in handleGnssLocationEvent()
291 mPrevGnssLocationEventTimestampMs = event->timestamp; in handleGnssLocationEvent()
294 void Manager::handleGnssDataEvent(const chreGnssDataEvent *event) { in handleGnssDataEvent() argument
298 event->clock.time_ns, event->clock.hw_clock_discontinuity_count, in handleGnssDataEvent()
299 event->clock.flags); in handleGnssDataEvent()
301 if (sPrevDiscontCount == event->clock.hw_clock_discontinuity_count) { in handleGnssDataEvent()
302 checkTimestamp(event->clock.time_ns, mPrevGnssMeasurementEventTimestampNs); in handleGnssDataEvent()
305 sPrevDiscontCount = event->clock.hw_clock_discontinuity_count; in handleGnssDataEvent()
[all …]
/chre-3.4.0/platform/shared/
Dplatform_wifi.cc104 void PlatformWifi::releaseRangingEvent(struct chreWifiRangingEvent *event) { in releaseRangingEvent() argument
106 mWifiApi->releaseRangingEvent(event); in releaseRangingEvent()
109 void PlatformWifi::releaseScanEvent(struct chreWifiScanEvent *event) { in releaseScanEvent() argument
111 mWifiApi->releaseScanEvent(event); in releaseScanEvent()
115 uint8_t errorCode, struct chreWifiRangingEvent *event) { in rangingEventCallback() argument
117 errorCode, event); in rangingEventCallback()
132 void PlatformWifiBase::scanEventCallback(struct chreWifiScanEvent *event) { in scanEventCallback() argument
134 event); in scanEventCallback()
Dplatform_gnss.cc81 void PlatformGnss::releaseLocationEvent(chreGnssLocationEvent *event) { in releaseLocationEvent() argument
84 mGnssApi->releaseLocationEvent(event); in releaseLocationEvent()
103 struct chreGnssLocationEvent *event) { in locationEventCallback() argument
107 .handleReportEvent(event); in locationEventCallback()
121 void PlatformGnss::releaseMeasurementDataEvent(chreGnssDataEvent *event) { in releaseMeasurementDataEvent() argument
124 mGnssApi->releaseMeasurementDataEvent(event); in releaseMeasurementDataEvent()
147 struct chreGnssDataEvent *event) { in measurementEventCallback() argument
151 .handleReportEvent(event); in measurementEventCallback()
/chre-3.4.0/platform/slpi/qsh/
Dqsh_shim.cc67 bool postEventFromQsh(uint16_t eventType, void *event, uint32_t eventLen, in postEventFromQsh() argument
74 CHRE_ASSERT(event == nullptr); in postEventFromQsh()
75 if (event != nullptr) { in postEventFromQsh()
81 CHRE_ASSERT(event != nullptr); in postEventFromQsh()
82 if (event != nullptr) { in postEventFromQsh()
87 memcpy(eventCopy, event, eventLen); in postEventFromQsh()
/chre-3.4.0/pal/include/chre/pal/
Dwifi.h128 void (*scanEventCallback)(struct chreWifiScanEvent *event);
150 struct chreWifiRangingEvent *event);
270 void (*releaseScanEvent)(struct chreWifiScanEvent *event);
338 void (*releaseRangingEvent)(struct chreWifiRangingEvent *event);
Dgnss.h120 void (*locationEventCallback)(struct chreGnssLocationEvent *event);
149 void (*measurementEventCallback)(struct chreGnssDataEvent *event);
222 void (*releaseLocationEvent)(struct chreGnssLocationEvent *event);
248 void (*releaseMeasurementDataEvent)(struct chreGnssDataEvent *event);
/chre-3.4.0/pal/tests/include/
Dwifi_pal_impl_test.h37 void scanEventCallback(struct chreWifiScanEvent *event);
39 struct chreWifiRangingEvent *event);
51 void validateWifiScanEvent(const chreWifiScanEvent &event);

1234