Home
last modified time | relevance | path

Searched refs:eventType (Results 1 – 25 of 206) sorted by relevance

123456789

/system/chre/test/simulation/inc/
Dtest_event_queue.h63 void pushEvent(uint16_t eventType) { in pushEvent() argument
64 mQueue.push({eventType}); in pushEvent()
81 void pushEvent(uint16_t eventType, T eventData) { in pushEvent() argument
86 mQueue.push({eventType, static_cast<void *>(ptr)}); in pushEvent()
90 void waitForEvent(uint16_t eventType) { in waitForEvent() argument
91 LOGD("Waiting for event type 0x%" PRIx16, eventType); in waitForEvent()
96 << "Timeout waiting for event " << eventType; in waitForEvent()
98 if (event.type == eventType) { in waitForEvent()
106 void waitForEvent(uint16_t eventType, T *data) { in waitForEvent() argument
108 LOGD("Waiting for event type 0x%" PRIx16, eventType); in waitForEvent()
[all …]
Dtest_base.h61 void waitForEvent(uint16_t eventType) { in waitForEvent() argument
62 TestEventQueueSingleton::get()->waitForEvent(eventType); in waitForEvent()
75 void waitForEvent(uint16_t eventType, T *eventData) { in waitForEvent() argument
76 TestEventQueueSingleton::get()->waitForEvent(eventType, eventData); in waitForEvent()
/system/chre/apps/test/chqts/src/general_test/
Dnanoapp_info_events_test_observer.cc34 uint16_t eventType, in handleEvent() argument
37 ((eventType == CHRE_EVENT_NANOAPP_STARTED) || in handleEvent()
38 (eventType == CHRE_EVENT_NANOAPP_STOPPED))) { in handleEvent()
44 mStartStopHistory[mHistoryIndex].eventType = eventType; in handleEvent()
47 (eventType == CHRE_EVENT_MESSAGE_FROM_HOST)) { in handleEvent()
51 senderInstanceId, eventType, eventData, in handleEvent()
61 unexpectedEvent(eventType); in handleEvent()
79 if (data.eventType == CHRE_EVENT_NANOAPP_STARTED) { in processStartStopHistory()
86 eventsOrdered = (data.eventType == CHRE_EVENT_NANOAPP_STARTED); in processStartStopHistory()
Dbasic_sensor_test_base.cc72 bool isBiasEventType(uint16_t eventType) { in isBiasEventType() argument
73 return (eventType == CHRE_EVENT_SENSOR_ACCELEROMETER_BIAS_INFO) || in isBiasEventType()
74 (eventType == CHRE_EVENT_SENSOR_GYROSCOPE_BIAS_INFO) || in isBiasEventType()
75 (eventType == CHRE_EVENT_SENSOR_GEOMAGNETIC_FIELD_BIAS_INFO); in isBiasEventType()
347 uint16_t eventType, in verifyEventHeader() argument
358 if (!isOnChangeSensor() && !isBiasEventType(eventType)) { in verifyEventHeader()
423 uint16_t eventType, const chreSensorThreeAxisData *eventData) { in handleBiasEvent() argument
425 uint32_t eType = eventType; in handleBiasEvent()
426 if (eventType == CHRE_EVENT_SENSOR_GYROSCOPE_BIAS_INFO) { in handleBiasEvent()
428 } else if (eventType == CHRE_EVENT_SENSOR_GEOMAGNETIC_FIELD_BIAS_INFO) { in handleBiasEvent()
[all …]
Dsend_event_stress_test.cc99 uint16_t eventType, in handleEvent() argument
110 verifyEvent(eventType, eventData, 0); in handleEvent()
120 void SendEventStressTest::verifyEvent(uint16_t eventType, const void *data, in verifyEvent() argument
122 if (eventType != kEventType) { in verifyEvent()
123 unexpectedEvent(eventType); in verifyEvent()
131 void SendEventStressTest::completeCallback(uint16_t eventType, void *data) { in completeCallback() argument
137 verifyEvent(eventType, data, 1); in completeCallback()
146 verifyEvent(eventType, data, 1); in completeCallback()
Dsend_event_test.cc69 void SendEventTest::completeCallback(uint16_t eventType, void *data) { in completeCallback() argument
101 if (expectedEventType != eventType) { in completeCallback()
121 void SendEventTest::completeCallback0(uint16_t eventType, void *data) { in completeCallback0() argument
122 completeCallback<0>(eventType, data); in completeCallback0()
125 void SendEventTest::completeCallback1(uint16_t eventType, void *data) { in completeCallback1() argument
126 completeCallback<1>(eventType, data); in completeCallback1()
186 void SendEventTest::handleEvent(uint32_t senderInstanceId, uint16_t eventType, in handleEvent() argument
224 if (expectedEventType != eventType) { in handleEvent()
232 if (eventType != kEventTypeCallback) { in handleEvent()
Dtest.cc46 void Test::testHandleEvent(uint32_t senderInstanceId, uint16_t eventType, in testHandleEvent() argument
49 handleEvent(senderInstanceId, eventType, eventData); in testHandleEvent()
53 void Test::unexpectedEvent(uint16_t eventType) { in unexpectedEvent() argument
54 uint32_t localEvent = eventType; in unexpectedEvent()
90 uint32_t senderInstanceId, uint16_t eventType, const void *eventData, in getMessageDataFromHostEvent() argument
96 if (eventType != CHRE_EVENT_MESSAGE_FROM_HOST) { in getMessageDataFromHostEvent()
97 unexpectedEvent(eventType); in getMessageDataFromHostEvent()
Devent_between_apps_test.cc54 uint16_t eventType, const void *eventData) { in handleEvent() argument
57 senderInstanceId, eventType, eventData, MessageType::kContinue, in handleEvent()
91 uint16_t eventType, const void *eventData) { in handleEvent() argument
92 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
94 senderInstanceId, eventType, eventData, MessageType::kContinue, in handleEvent()
105 } else if (eventType == EventBetweenApps0::kEventType) { in handleEvent()
121 unexpectedEvent(eventType); in handleEvent()
Dsend_event_test.h38 void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
50 static void completeCallback(uint16_t eventType, void *data);
52 static void completeCallback0(uint16_t eventType, void *data);
53 static void completeCallback1(uint16_t eventType, void *data);
Dtest.h34 void testHandleEvent(uint32_t senderInstanceId, uint16_t eventType,
47 static void unexpectedEvent(uint16_t eventType);
110 uint32_t senderInstanceId, uint16_t eventType, const void *eventData,
114 virtual void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
Dbasic_sensor_test_base.h41 void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
120 void handleBiasEvent(uint16_t eventType,
124 void handleSensorDataEvent(uint16_t eventType, const void *eventData);
125 void verifyEventHeader(const chreSensorDataHeader *header, uint16_t eventType,
Dapp.cc106 void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
150 void App::handleEvent(uint32_t senderInstanceId, uint16_t eventType, in handleEvent() argument
157 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
165 mCurrentTest->testHandleEvent(senderInstanceId, eventType, eventData); in handleEvent()
171 if (eventType != CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
172 uint32_t localEventType = eventType; in handleEvent()
264 uint16_t eventType, const void *eventData) { in nanoappHandleEvent() argument
265 gApp.handleEvent(senderInstanceId, eventType, eventData); in nanoappHandleEvent()
Dsend_event_stress_test.h34 void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
46 static void completeCallback(uint16_t eventType, void *data);
48 static void verifyEvent(uint16_t eventType, const void *data, uint32_t num);
/system/chre/apps/test/chqts/src/busy_startup/
Dbusy_startup.cc84 static void checkSelfEvent(uint16_t eventType, const uint32_t *eventData) { in checkSelfEvent() argument
85 if (eventType != kEventType) { in checkSelfEvent()
86 uint32_t e = eventType; in checkSelfEvent()
138 uint16_t eventType, const void *eventData) { in nanoappHandleEvent() argument
145 checkSelfEvent(eventType, intData); in nanoappHandleEvent()
148 if (eventType == CHRE_EVENT_TIMER) { in nanoappHandleEvent()
150 } else if (eventType == CHRE_EVENT_SENSOR_ACCELEROMETER_DATA) { in nanoappHandleEvent()
152 } else if (eventType == CHRE_EVENT_SENSOR_SAMPLING_CHANGE || in nanoappHandleEvent()
153 eventType == CHRE_EVENT_SENSOR_ACCELEROMETER_BIAS_INFO) { in nanoappHandleEvent()
157 uint32_t e = eventType; in nanoappHandleEvent()
/system/chre/apps/spammer/
Dspammer.cc48 void messageSentEventFreeCallback(uint16_t eventType, void *data) { in messageSentEventFreeCallback() argument
50 CHRE_ASSERT(eventType == kMessageSentEvent); in messageSentEventFreeCallback()
65 void repeatedEventFreeCallback(uint16_t eventType, void *data) { in repeatedEventFreeCallback() argument
67 CHRE_ASSERT(eventType == kRepeatedEvent); in repeatedEventFreeCallback()
92 void nanoappHandleEvent(uint32_t /* senderInstanceId */, uint16_t eventType, in nanoappHandleEvent() argument
96 if (eventType == kMessageSentEvent) { in nanoappHandleEvent()
105 } else if (eventType == kRepeatedEvent) { in nanoappHandleEvent()
111 } else if (eventType == kEmptyEvent) { in nanoappHandleEvent()
/system/chre/core/
Dsensor_type_helpers.cc62 uint16_t *eventType) { in getBiasEventType() argument
63 CHRE_ASSERT(eventType != nullptr); in getBiasEventType()
66 return getVendorSensorBiasEventType(sensorType, eventType); in getBiasEventType()
72 *eventType = CHRE_EVENT_SENSOR_ACCELEROMETER_BIAS_INFO; in getBiasEventType()
75 *eventType = CHRE_EVENT_SENSOR_GYROSCOPE_BIAS_INFO; in getBiasEventType()
78 *eventType = CHRE_EVENT_SENSOR_GEOMAGNETIC_FIELD_BIAS_INFO; in getBiasEventType()
81 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_ACCELEROMETER_BIAS_INFO; in getBiasEventType()
84 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_GYROSCOPE_BIAS_INFO; in getBiasEventType()
87 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_GEOMAGNETIC_FIELD_BIAS_INFO; in getBiasEventType()
Dnanoapp.cc59 uint16_t eventType = event->eventType; in isRegisteredForBroadcastEvent() local
64 if (eventType == CHRE_EVENT_HOST_ENDPOINT_NOTIFICATION) { in isRegisteredForBroadcastEvent()
69 size_t foundIndex = registrationIndex(eventType); in isRegisteredForBroadcastEvent()
80 void Nanoapp::registerForBroadcastEvent(uint16_t eventType, in registerForBroadcastEvent() argument
82 size_t foundIndex = registrationIndex(eventType); in registerForBroadcastEvent()
86 EventRegistration(eventType, groupIdMask))) { in registerForBroadcastEvent()
91 void Nanoapp::unregisterForBroadcastEvent(uint16_t eventType, in unregisterForBroadcastEvent() argument
93 size_t foundIndex = registrationIndex(eventType); in unregisterForBroadcastEvent()
145 if (event->eventType == CHRE_EVENT_GNSS_DATA) { in processEvent()
148 handleEvent(event->senderInstanceId, event->eventType, event->eventData); in processEvent()
[all …]
Devent_loop.cc302 uint16_t eventType, in deliverEventSync() argument
304 Event event(eventType, eventData, in deliverEventSync()
321 void EventLoop::postEventOrDie(uint16_t eventType, void *eventData, in postEventOrDie() argument
327 !allocateAndPostEvent(eventType, eventData, freeCallback, in postEventOrDie()
330 FATAL_ERROR("Failed to post critical system event 0x%" PRIx16, eventType); in postEventOrDie()
333 freeCallback(eventType, eventData); in postEventOrDie()
337 bool EventLoop::postSystemEvent(uint16_t eventType, void *eventData, in postSystemEvent() argument
348 eventType); in postSystemEvent()
351 Event *event = mEventPool.allocate(eventType, eventData, callback, extraData); in postSystemEvent()
355 eventType); in postSystemEvent()
[all …]
/system/chre/apps/unload_tester/
Dunload_tester.cc78 void nanoappHandleEvent(uint32_t senderInstanceId, uint16_t eventType, in nanoappHandleEvent() argument
80 if (eventType == CHRE_EVENT_FIRST_USER_VALUE && in nanoappHandleEvent()
86 } else if (eventType == CHRE_EVENT_TIMER) { in nanoappHandleEvent()
91 } else if (eventType == CHRE_EVENT_NANOAPP_STARTED || in nanoappHandleEvent()
92 eventType == CHRE_EVENT_NANOAPP_STOPPED) { in nanoappHandleEvent()
96 (eventType == CHRE_EVENT_NANOAPP_STARTED) ? "start" : "stop", in nanoappHandleEvent()
/system/chre/core/include/chre/core/
Devent.h54 : eventType(eventType_), in eventType() function
71 : eventType(eventType_), in Event()
112 systemEventCallback(eventType, eventData, extraData); in invokeFreeCallback()
114 freeCallback(eventType, eventData); in invokeFreeCallback()
118 const uint16_t eventType; variable
Devent_loop.h192 uint16_t eventType,
217 void postEventOrDie(uint16_t eventType, void *eventData,
244 uint16_t eventType, void *eventData,
272 bool postSystemEvent(uint16_t eventType, void *eventData,
459 bool allocateAndPostEvent(uint16_t eventType, void *eventData,
542 void notifyAppStatusChange(uint16_t eventType, const Nanoapp &nanoapp);
/system/chre/test/simulation/
Dble_test.cc52 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
54 switch (eventType) { in TEST_F()
120 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
122 switch (eventType) { in TEST_F()
186 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
188 switch (eventType) { in TEST_F()
239 void handleEvent(uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() argument
240 switch (eventType) { in TEST_F()
312 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
314 switch (eventType) { in TEST_F()
[all …]
Dwifi_nan_test.cc79 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
83 switch (eventType) { in TEST_F()
131 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
135 switch (eventType) { in TEST_F()
197 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
201 switch (eventType) { in TEST_F()
258 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
262 switch (eventType) { in TEST_F()
314 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
318 switch (eventType) { in TEST_F()
[all …]
Dgnss_test.cc76 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
78 switch (eventType) { in TEST_F()
186 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
188 switch (eventType) { in TEST_F()
263 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
265 switch (eventType) { in TEST_F()
332 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
335 switch (eventType) { in TEST_F()
411 void handleEvent(uint32_t, uint16_t eventType, in TEST_F() argument
413 switch (eventType) { in TEST_F()
[all …]
/system/chre/apps/debug_dump_world/
Ddebug_dump_world.cc67 void nanoappHandleEvent(uint32_t senderInstanceId, uint16_t eventType, in nanoappHandleEvent() argument
72 switch (eventType) { in nanoappHandleEvent()
79 eventType, senderInstanceId); in nanoappHandleEvent()

123456789