Home
last modified time | relevance | path

Searched refs:eventData (Results 1 – 25 of 106) 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_sensor_test_base.cc330 uint16_t eventType, const chreSensorThreeAxisData *eventData) { in handleBiasEvent() argument
345 sanityCheckHeader(&eventData->header, false, getEventDuration(eventData)); in handleBiasEvent()
352 const chreSensorSamplingStatusEvent* eventData) { in handleSamplingChangeEvent() argument
353 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent()
355 &eventData->sensorHandle); in handleSamplingChangeEvent()
365 if (mDoneWithPassiveConfigure && !eventData->status.enabled) { in handleSamplingChangeEvent()
369 if ((mNewStatus.interval != eventData->status.interval) || in handleSamplingChangeEvent()
370 (mNewStatus.latency != eventData->status.latency)) { in handleSamplingChangeEvent()
377 void BasicSensorTestBase::handleSensorDataEvent(const void* eventData) { in handleSensorDataEvent() argument
385 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;
118 const chreSensorThreeAxisData* eventData);
120 const chreSensorSamplingStatusEvent* eventData);
121 void handleSensorDataEvent(const void* eventData);
Dtest.cc42 const void *eventData) { in testHandleEvent() argument
44 handleEvent(senderInstanceId, eventType, eventData); in testHandleEvent()
54 uint16_t eventType, const void* eventData, in getMessageDataFromHostEvent() argument
63 if (eventData == nullptr) { in getMessageDataFromHostEvent()
66 auto data = static_cast<const chreMessageFromHostData*>(eventData); in getMessageDataFromHostEvent()
Dheap_exhaustion_stability_test.cc214 const void* eventData) { in handleEvent() argument
222 handleTimer(senderInstanceId, eventData); in handleEvent()
224 handleSelfEvent(senderInstanceId, eventData); in handleEvent()
232 const void *eventData) { in handleTimer() argument
237 if (eventData == &kShortDuration) { in handleTimer()
241 } else if (eventData == &kExhaustionDuration) { in handleTimer()
256 const void *eventData) { in handleSelfEvent() argument
261 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.h35 const void *eventData);
73 uint32_t senderInstanceId, uint16_t eventType, const void* eventData,
78 const void* eventData) = 0;
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);
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()
Dwwan_cell_info_test.h34 const void *eventData) override;
40 void validateCellInfoResult(const void *eventData) const;
Dnanoapp_info_events_test_observer.cc36 const void *eventData) { in handleEvent() argument
42 static_cast<const struct chreNanoappInfo *>(eventData); in handleEvent()
54 senderInstanceId, eventType, eventData, in handleEvent()
/system/chre/apps/chqts/src/busy_startup/
Dbusy_startup.cc87 static void checkSelfEvent(uint16_t eventType, const uint32_t *eventData) { in checkSelfEvent() argument
92 if (eventData == nullptr) { in checkSelfEvent()
95 if (*eventData != gInstanceId) { in checkSelfEvent()
96 sendFatalFailureToHost("Event from self, bad data:", eventData); in checkSelfEvent()
101 static void checkTimerEvent(const uint32_t *eventData) { in checkTimerEvent() argument
102 if (eventData == nullptr) { in checkTimerEvent()
105 if (*eventData != gInstanceId) { in checkTimerEvent()
106 sendFatalFailureToHost("TimerEvent, bad data:", eventData); in checkTimerEvent()
111 static void checkSensorEvent(const void *eventData) { in checkSensorEvent() argument
113 static_cast<const chreSensorDataHeader *>(eventData); in checkSensorEvent()
[all …]
/system/chre/apps/timer_world/
Dtimer_world.cc46 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument
47 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent()
61 const void *eventData) { in nanoappHandleEvent() argument
64 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/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()
278 const void *eventData) { in nanoappHandleEvent() argument
281 handleGnssAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in nanoappHandleEvent()
285 static_cast<const chreGnssLocationEvent *>(eventData)); in nanoappHandleEvent()
288 handleGnssDataEvent(static_cast<const chreGnssDataEvent *>(eventData)); in nanoappHandleEvent()
291 handleTimerEvent(eventData); in nanoappHandleEvent()
/system/core/liblog/tests/
Dliblog_test.cpp247 android_log_event_long_t* eventData; in TEST() local
248 eventData = reinterpret_cast<android_log_event_long_t*>(log_msg.msg()); in TEST()
250 if (!eventData || (eventData->payload.type != EVENT_TYPE_LONG)) { in TEST()
254 log_time tx(reinterpret_cast<char*>(&eventData->payload.data)); in TEST()
366 android_log_event_long_t* eventData; in TEST() local
367 eventData = reinterpret_cast<android_log_event_long_t*>(log_msg.msg()); in TEST()
369 if (!eventData || (eventData->payload.type != EVENT_TYPE_LONG)) { in TEST()
373 log_time tx(reinterpret_cast<char*>(&eventData->payload.data)); in TEST()
471 android_log_event_string_t* eventData; in bswrite_test() local
472 eventData = reinterpret_cast<android_log_event_string_t*>(log_msg.msg()); in bswrite_test()
[all …]
/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()
108 void *eventData) { in freeCellInfoResultCallback() argument
109 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()
273 const void *eventData) { in nanoappHandleEvent() argument
276 handleWifiAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in nanoappHandleEvent()
279 handleWifiScanEvent(static_cast<const chreWifiScanEvent *>(eventData)); in nanoappHandleEvent()
282 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