Home
last modified time | relevance | path

Searched refs:eventData (Results 1 – 25 of 111) sorted by relevance

12345

/system/chre/apps/chqts/src/general_test/
Dbasic_sensor_tests.cc44 static void sanityCheckThreeAxisData(const void *eventData, float extremeLow, in sanityCheckThreeAxisData() argument
46 auto data = static_cast<const chreSensorThreeAxisData*>(eventData); in sanityCheckThreeAxisData()
55 static void sanityCheckFloatData(const void *eventData, float extremeLow, in sanityCheckFloatData() argument
57 auto data = static_cast<const chreSensorFloatData*>(eventData); in sanityCheckFloatData()
64 void BasicAccelerometerTest::confirmDataIsSane(const void* eventData) { in confirmDataIsSane() argument
66 sanityCheckThreeAxisData(eventData, -kExtreme, kExtreme); in confirmDataIsSane()
69 void BasicInstantMotionDetectTest::confirmDataIsSane(const void* eventData) { in confirmDataIsSane() argument
73 void BasicStationaryDetectTest::confirmDataIsSane(const void* eventData) { in confirmDataIsSane() argument
77 void BasicGyroscopeTest::confirmDataIsSane(const void* eventData) { in confirmDataIsSane() argument
79 sanityCheckThreeAxisData(eventData, -kExtreme, kExtreme); in confirmDataIsSane()
[all …]
Dbasic_wifi_test.cc180 const void *eventData) { in handleEvent() argument
181 if (eventData == nullptr) { in handleEvent()
187 static_cast<const chreAsyncResult *>(eventData)); in handleEvent()
191 const auto *result = static_cast<const chreWifiScanEvent *>(eventData); in handleEvent()
244 bool BasicWifiTest::isActiveWifiScanType(const chreWifiScanEvent *eventData) { in isActiveWifiScanType() argument
245 return (eventData->scanType == CHRE_WIFI_SCAN_TYPE_ACTIVE); in isActiveWifiScanType()
286 void BasicWifiTest::validateWifiScanEvent(const chreWifiScanEvent *eventData) { in validateWifiScanEvent() argument
287 if (eventData->version != CHRE_WIFI_SCAN_EVENT_VERSION) { in validateWifiScanEvent()
289 "Got unexpected scan event version %d", eventData->version); in validateWifiScanEvent()
292 if (mNextExpectedIndex != eventData->eventIndex) { in validateWifiScanEvent()
[all …]
Dbasic_sensor_test_base.cc340 uint16_t eventType, const chreSensorThreeAxisData *eventData) { in handleBiasEvent() argument
355 sanityCheckHeader(&eventData->header, false, getEventDuration(eventData)); in handleBiasEvent()
362 const chreSensorSamplingStatusEvent* eventData) { in handleSamplingChangeEvent() argument
363 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent()
365 &eventData->sensorHandle); in handleSamplingChangeEvent()
375 if (!eventData->status.enabled) { in handleSamplingChangeEvent()
379 if ((mNewStatus.interval != eventData->status.interval) || in handleSamplingChangeEvent()
380 (mNewStatus.latency != eventData->status.latency)) { in handleSamplingChangeEvent()
387 void BasicSensorTestBase::handleSensorDataEvent(const void* eventData) { in handleSensorDataEvent() argument
395 static_cast<const chreSensorThreeAxisData *>(eventData)); in handleSensorDataEvent()
[all …]
Dbasic_sensor_tests.h38 void confirmDataIsSane(const void* eventData) override;
53 void confirmDataIsSane(const void* eventData) override;
68 void confirmDataIsSane(const void* eventData) override;
83 void confirmDataIsSane(const void* eventData) override;
98 void confirmDataIsSane(const void* eventData) override;
113 void confirmDataIsSane(const void* eventData) override;
128 void confirmDataIsSane(const void* eventData) override;
143 void confirmDataIsSane(const void* eventData) override;
Dapp.cc103 const void *eventData);
105 void createTest(const void *eventData);
149 const void* eventData) { in handleEvent() argument
156 auto data = static_cast<const chreMessageFromHostData *>(eventData); in handleEvent()
158 eventData = &adjustedData; in handleEvent()
163 mCurrentTest->testHandleEvent(senderInstanceId, eventType, eventData); in handleEvent()
180 createTest(eventData); in handleEvent()
183 void App::createTest(const void *eventData) { in createTest() argument
189 auto data = static_cast<const chreMessageFromHostData *>(eventData); in createTest()
264 const void* eventData) { in nanoappHandleEvent() argument
[all …]
Dbasic_sensor_test_base.h41 const void* eventData) override;
87 virtual void confirmDataIsSane(const void* eventData) = 0;
117 const chreSensorThreeAxisData* eventData);
119 const chreSensorSamplingStatusEvent* eventData);
120 void handleSensorDataEvent(const void* eventData);
Dheap_exhaustion_stability_test.cc215 const void* eventData) { in handleEvent() argument
223 handleTimer(senderInstanceId, eventData); in handleEvent()
225 handleSelfEvent(senderInstanceId, eventData); in handleEvent()
233 const void *eventData) { in handleTimer() argument
238 if (eventData == &kShortDuration) { in handleTimer()
242 } else if (eventData == &kExhaustionDuration) { in handleTimer()
257 const void *eventData) { in handleSelfEvent() argument
262 if (eventData != nullptr) { in handleSelfEvent()
Devent_between_apps_test.cc56 uint16_t eventType, const void* eventData) { in handleEvent() argument
59 getMessageDataFromHostEvent(senderInstanceId, eventType, eventData, in handleEvent()
96 uint16_t eventType, const void* eventData) { in handleEvent() argument
99 getMessageDataFromHostEvent(senderInstanceId, eventType, eventData, in handleEvent()
122 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
Dtest.cc44 const void *eventData) { in testHandleEvent() argument
46 handleEvent(senderInstanceId, eventType, eventData); in testHandleEvent()
88 uint16_t eventType, const void* eventData, in getMessageDataFromHostEvent() argument
97 if (eventData == nullptr) { in getMessageDataFromHostEvent()
100 auto data = static_cast<const chreMessageFromHostData*>(eventData); in getMessageDataFromHostEvent()
Dheap_exhaustion_stability_test.h40 const void* eventData) override;
63 void handleTimer(uint32_t senderInstanceId, const void *eventData);
64 void handleSelfEvent(uint32_t senderInstanceId, const void *eventData);
Dtest.h35 const void *eventData);
106 uint32_t senderInstanceId, uint16_t eventType, const void* eventData,
111 const void* eventData) = 0;
Dbasic_wifi_test.h53 const void *eventData) override;
79 bool isActiveWifiScanType(const chreWifiScanEvent *eventData);
106 void validateWifiScanEvent(const chreWifiScanEvent *eventData);
Dwwan_cell_info_test.cc64 const void *eventData) { in handleEvent() argument
72 validateCellInfoResult(eventData); in handleEvent()
145 void WwanCellInfoTest::validateCellInfoResult(const void *eventData) const { in validateCellInfoResult()
147 static_cast<const chreWwanCellInfoResult *>(eventData); in validateCellInfoResult()
149 if (eventData == nullptr) { in validateCellInfoResult()
/system/chre/apps/chqts/src/busy_startup/
Dbusy_startup.cc81 static void checkSelfEvent(uint16_t eventType, const uint32_t *eventData) { in checkSelfEvent() argument
86 if (eventData == nullptr) { in checkSelfEvent()
89 if (*eventData != gInstanceId) { in checkSelfEvent()
90 sendFatalFailureToHost("Event from self, bad data:", eventData); in checkSelfEvent()
95 static void checkTimerEvent(const uint32_t *eventData) { in checkTimerEvent() argument
96 if (eventData == nullptr) { in checkTimerEvent()
99 if (*eventData != gInstanceId) { in checkTimerEvent()
100 sendFatalFailureToHost("TimerEvent, bad data:", eventData); in checkTimerEvent()
105 static void checkSensorEvent(const void *eventData) { in checkSensorEvent() argument
107 static_cast<const chreSensorDataHeader *>(eventData); in checkSensorEvent()
[all …]
/system/chre/apps/timer_world/
Dtimer_world.cc47 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
48 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent()
62 const void *eventData) { in nanoappHandleEvent() argument
65 handleTimerEvent(eventData); in nanoappHandleEvent()
/system/chre/apps/host_awake_world/
Dhost_awake_world.cc47 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
48 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent()
62 const void *eventData) { in nanoappHandleEvent() argument
65 handleTimerEvent(eventData); in nanoappHandleEvent()
/system/chre/build/app_support/qcom_nanohub/
Dapp_support.cc97 static void chreappHandle(uint32_t eventTypeAndTid, const void *eventData);
131 static void chreappHandle(uint32_t eventTypeAndTid, const void *eventData) in chreappHandle() argument
135 const void *data = eventData; in chreappHandle()
144 data = ((struct TimerEvent *)eventData)->data; in chreappHandle()
149 u.msg.message = (uint8_t*)eventData + 1; in chreappHandle()
152 u.msg.messageSize = *(uint8_t*)eventData; in chreappHandle()
/system/chre/platform/shared/
Dplatform_sensor_util.cc28 void updateLastEvent(SensorType sensorType, const void *eventData) { in updateLastEvent() argument
29 CHRE_ASSERT(eventData); in updateLastEvent()
31 auto *header = static_cast<const chreSensorDataHeader *>(eventData); in updateLastEvent()
46 callbackData->event = static_cast<const ChreSensorData *>(eventData); in updateLastEvent()
/system/core/liblog/tests/
Dliblog_test.cpp232 android_log_event_long_t* eventData; in TEST() local
233 eventData = reinterpret_cast<android_log_event_long_t*>(log_msg.msg()); in TEST()
235 if (!eventData || (eventData->payload.type != EVENT_TYPE_LONG)) { in TEST()
239 log_time tx(reinterpret_cast<char*>(&eventData->payload.data)); in TEST()
346 android_log_event_long_t* eventData; in TEST() local
347 eventData = reinterpret_cast<android_log_event_long_t*>(log_msg.msg()); in TEST()
349 if (!eventData || (eventData->payload.type != EVENT_TYPE_LONG)) { in TEST()
353 log_time tx(reinterpret_cast<char*>(&eventData->payload.data)); in TEST()
451 android_log_event_string_t* eventData; in bswrite_test() local
452 eventData = reinterpret_cast<android_log_event_string_t*>(log_msg.msg()); in bswrite_test()
[all …]
/system/chre/apps/gnss_world/
Dgnss_world.cc120 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
129 if (eventData == &kLocationSessionCookie) { in handleTimerEvent()
135 } else if (eventData == &kMeasurementSessionCookie) { in handleTimerEvent()
291 const void *eventData) { in nanoappHandleEvent() argument
294 handleGnssAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in nanoappHandleEvent()
298 static_cast<const chreGnssLocationEvent *>(eventData)); in nanoappHandleEvent()
301 handleGnssDataEvent(static_cast<const chreGnssDataEvent *>(eventData)); in nanoappHandleEvent()
304 handleTimerEvent(eventData); in nanoappHandleEvent()
/system/chre/core/
Dwifi_request_manager.cc176 auto callback = [](uint16_t /* eventType */, void *eventData) { in handleScanMonitorStateChange() argument
177 auto *state = static_cast<CallbackState *>(eventData); in handleScanMonitorStateChange()
202 auto callback = [](uint16_t /* eventType */, void *eventData) { in handleScanResponse() argument
203 auto *state = static_cast<CallbackState *>(eventData); in handleScanResponse()
222 void *eventData; in handleRangingEvent() member
226 auto errorCb = [](uint16_t /* eventType */, void *eventData) { in handleRangingEvent() argument
228 cbErrorCode.eventData = eventData; in handleRangingEvent()
236 SystemCallbackType::WifiHandleFailedRanging, error.eventData, errorCb); in handleRangingEvent()
238 auto successCb = [](uint16_t /* eventType */, void *eventData) { in handleRangingEvent() argument
239 auto *rttEvent = static_cast<struct chreWifiRangingEvent *>(eventData); in handleRangingEvent()
[all …]
Dwwan_request_manager.cc54 auto callback = [](uint16_t /* eventType */, void *eventData) { in handleCellInfoResult() argument
55 auto *cellInfoResult = static_cast<chreWwanCellInfoResult *>(eventData); in handleCellInfoResult()
107 void *eventData) { in freeCellInfoResultCallback() argument
108 auto *result = static_cast<chreWwanCellInfoResult *>(eventData); in freeCellInfoResultCallback()
/system/chre/apps/spammer/
Dspammer.cc89 const void *eventData) { in nanoappHandleEvent() argument
93 CHRE_ASSERT(eventData == kMessageSentEventData); in nanoappHandleEvent()
102 CHRE_ASSERT(eventData == kRepeatedEventData); in nanoappHandleEvent()
108 CHRE_ASSERT(eventData == nullptr); in nanoappHandleEvent()
/system/chre/apps/wifi_world/
Dwifi_world.cc211 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
212 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent()
253 const void *eventData) { in nanoappHandleEvent() argument
256 handleWifiAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in nanoappHandleEvent()
259 handleWifiScanEvent(static_cast<const chreWifiScanEvent *>(eventData)); in nanoappHandleEvent()
262 handleTimerEvent(eventData); in nanoappHandleEvent()
/system/chre/apps/wwan_world/
Dwwan_world.cc46 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
47 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent()
159 const void *eventData) { in nanoappHandleEvent() argument
162 handleTimerEvent(eventData); in nanoappHandleEvent()
166 static_cast<const chreWwanCellInfoResult *>(eventData)); in nanoappHandleEvent()

12345