Home
last modified time | relevance | path

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

12345

/system/chre/apps/chqts/src/general_test/
Dnanoapp_info_events_test_observer.cc35 uint16_t eventType, in handleEvent() argument
38 && ((eventType == CHRE_EVENT_NANOAPP_STARTED) in handleEvent()
39 || (eventType == CHRE_EVENT_NANOAPP_STOPPED))) { in handleEvent()
47 mStartStopHistory[mHistoryIndex].eventType = eventType; in handleEvent()
50 && (eventType == CHRE_EVENT_MESSAGE_FROM_HOST)) { in handleEvent()
54 senderInstanceId, eventType, eventData, in handleEvent()
64 unexpectedEvent(eventType); in handleEvent()
82 if (data.eventType == CHRE_EVENT_NANOAPP_STARTED) { in processStartStopHistory()
89 eventsOrdered = (data.eventType == CHRE_EVENT_NANOAPP_STARTED); in processStartStopHistory()
Dsend_event_stress_test.cc98 uint16_t eventType, in handleEvent() argument
109 sanityCheck(eventType, eventData, 0); in handleEvent()
119 void SendEventStressTest::sanityCheck(uint16_t eventType, const void *data, in sanityCheck() argument
121 if (eventType != kEventType) { in sanityCheck()
122 unexpectedEvent(eventType); in sanityCheck()
131 void SendEventStressTest::completeCallback(uint16_t eventType, void *data) { in completeCallback() argument
137 sanityCheck(eventType, data, 1); in completeCallback()
146 sanityCheck(eventType, data, 1); in completeCallback()
Dsend_event_test.cc69 void SendEventTest::completeCallback(uint16_t eventType, void *data) { in completeCallback() argument
102 if (expectedEventType != eventType) { in completeCallback()
122 void SendEventTest::completeCallback0(uint16_t eventType, void *data) { in completeCallback0() argument
123 completeCallback<0>(eventType, data); in completeCallback0()
126 void SendEventTest::completeCallback1(uint16_t eventType, void *data) { in completeCallback1() argument
127 completeCallback<1>(eventType, data); in completeCallback1()
191 uint16_t eventType, const void* eventData) { in handleEvent() argument
228 if (expectedEventType != eventType) { in handleEvent()
237 if (eventType != kEventTypeCallback) { in handleEvent()
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
97 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
99 getMessageDataFromHostEvent(senderInstanceId, eventType, eventData, in handleEvent()
112 } else if (eventType == EventBetweenApps0::kEventType) { in handleEvent()
128 unexpectedEvent(eventType); in handleEvent()
Dtest.cc43 void Test::testHandleEvent(uint32_t senderInstanceId, uint16_t eventType, in testHandleEvent() argument
46 handleEvent(senderInstanceId, eventType, eventData); in testHandleEvent()
50 void Test::unexpectedEvent(uint16_t eventType) { in unexpectedEvent() argument
51 uint32_t localEvent = eventType; in unexpectedEvent()
88 uint16_t eventType, const void* eventData, in getMessageDataFromHostEvent() argument
94 if (eventType != CHRE_EVENT_MESSAGE_FROM_HOST) { in getMessageDataFromHostEvent()
95 unexpectedEvent(eventType); in getMessageDataFromHostEvent()
Dbasic_gnss_test.cc70 uint16_t eventType, in handleEvent() argument
72 if (eventType != CHRE_EVENT_GNSS_ASYNC_RESULT in handleEvent()
73 && eventType != CHRE_EVENT_GNSS_LOCATION) { in handleEvent()
74 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);
Dbasic_sensor_test_base.cc340 uint16_t eventType, const chreSensorThreeAxisData *eventData) { in handleBiasEvent() argument
342 uint32_t eType = eventType; in handleBiasEvent()
343 if (eventType == CHRE_EVENT_SENSOR_GYROSCOPE_BIAS_INFO) { in handleBiasEvent()
345 } else if (eventType == CHRE_EVENT_SENSOR_GEOMAGNETIC_FIELD_BIAS_INFO) { in handleBiasEvent()
413 uint32_t senderInstanceId, uint16_t eventType, const void* eventData) { in handleEvent() argument
423 if ((eventType == kStartEvent) && (mState == State::kPreStart)) { in handleEvent()
428 unexpectedEvent(eventType); in handleEvent()
435 uint32_t eType = eventType; in handleEvent()
438 } else if (eventType == dataEventType) { in handleEvent()
441 } else if (eventType == CHRE_EVENT_SENSOR_SAMPLING_CHANGE) { in handleEvent()
[all …]
Dtest.h34 void testHandleEvent(uint32_t senderInstanceId, uint16_t eventType,
46 static void unexpectedEvent(uint16_t eventType);
106 uint32_t senderInstanceId, uint16_t eventType, const void* eventData,
110 virtual void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
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 sanityCheck(uint16_t eventType, const void *data, uint32_t num);
Dapp.cc102 void handleEvent(uint32_t senderInstanceId, uint16_t eventType,
148 void App::handleEvent(uint32_t senderInstanceId, uint16_t eventType, in handleEvent() argument
155 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
163 mCurrentTest->testHandleEvent(senderInstanceId, eventType, eventData); in handleEvent()
169 if (eventType != CHRE_EVENT_MESSAGE_FROM_HOST) { in handleEvent()
170 uint32_t localEventType = eventType; in handleEvent()
263 uint16_t eventType, in nanoappHandleEvent() argument
265 gApp.handleEvent(senderInstanceId, eventType, eventData); in nanoappHandleEvent()
Dhello_world_test.cc40 uint16_t eventType, in handleEvent() argument
42 unexpectedEvent(eventType); in handleEvent()
Destimated_host_time_test.cc49 uint16_t eventType, in handleEvent() argument
51 if (eventType == CHRE_EVENT_TIMER) { in handleEvent()
62 getMessageDataFromHostEvent(senderInstanceId, eventType, in handleEvent()
Dhost_awake_suspend_test.cc52 uint16_t eventType, in handleEvent() argument
54 unexpectedEvent(eventType); in handleEvent()
/system/chre/platform/slpi/
Dplatform_nanoapp.cc38 void rewriteToChreEventType(uint16_t *eventType) { in rewriteToChreEventType() argument
39 CHRE_ASSERT(eventType); in rewriteToChreEventType()
58 if (*eventType == kAccelBigImageEventType) { in rewriteToChreEventType()
59 *eventType = CHRE_EVENT_SENSOR_ACCELEROMETER_DATA; in rewriteToChreEventType()
60 } else if (*eventType == kUncalAccelBigImageEventType) { in rewriteToChreEventType()
61 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_ACCELEROMETER_DATA; in rewriteToChreEventType()
62 } else if (*eventType == kUncalGyroBigImageEventType) { in rewriteToChreEventType()
63 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_GYROSCOPE_DATA; in rewriteToChreEventType()
64 } else if (*eventType == kUncalMagBigImageEventType) { in rewriteToChreEventType()
65 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_GEOMAGNETIC_FIELD_DATA; in rewriteToChreEventType()
[all …]
/system/chre/apps/spammer/
Dspammer.cc46 void messageSentEventFreeCallback(uint16_t eventType, void *data) { in messageSentEventFreeCallback() argument
48 CHRE_ASSERT(eventType == kMessageSentEvent); in messageSentEventFreeCallback()
60 void repeatedEventFreeCallback(uint16_t eventType, void *data) { in repeatedEventFreeCallback() argument
62 CHRE_ASSERT(eventType == kRepeatedEvent); in repeatedEventFreeCallback()
88 uint16_t eventType, in nanoappHandleEvent() argument
92 if (eventType == kMessageSentEvent) { in nanoappHandleEvent()
101 } else if (eventType == kRepeatedEvent) { in nanoappHandleEvent()
107 } else if (eventType == kEmptyEvent) { in nanoappHandleEvent()
/system/chre/apps/chqts/src/busy_startup/
Dbusy_startup.cc81 static void checkSelfEvent(uint16_t eventType, const uint32_t *eventData) { in checkSelfEvent() argument
82 if (eventType != kEventType) { in checkSelfEvent()
83 uint32_t e = eventType; in checkSelfEvent()
135 uint16_t eventType, in nanoappHandleEvent() argument
143 checkSelfEvent(eventType, intData); in nanoappHandleEvent()
146 if (eventType == CHRE_EVENT_TIMER) { in nanoappHandleEvent()
148 } else if (eventType == CHRE_EVENT_SENSOR_ACCELEROMETER_DATA) { in nanoappHandleEvent()
150 } else if (eventType == CHRE_EVENT_SENSOR_SAMPLING_CHANGE) { in nanoappHandleEvent()
154 uint32_t e = eventType; in nanoappHandleEvent()
/system/chre/apps/unload_tester/
Dunload_tester.cc76 uint16_t eventType, in nanoappHandleEvent() argument
78 if (eventType == CHRE_EVENT_FIRST_USER_VALUE in nanoappHandleEvent()
84 } else if (eventType == CHRE_EVENT_TIMER) { in nanoappHandleEvent()
89 } else if (eventType == CHRE_EVENT_NANOAPP_STARTED in nanoappHandleEvent()
90 || eventType == CHRE_EVENT_NANOAPP_STOPPED) { in nanoappHandleEvent()
94 (eventType == CHRE_EVENT_NANOAPP_STARTED) ? "start" : "stop", in nanoappHandleEvent()
/system/chre/core/
Dsensor_type.cc92 SensorType getSensorTypeForSampleEventType(uint16_t eventType) { in getSensorTypeForSampleEventType() argument
94 static_cast<uint8_t>(eventType - CHRE_EVENT_SENSOR_DATA_EVENT_BASE)); in getSensorTypeForSampleEventType()
318 uint16_t eventType; in sensorTypeReportsBias() local
319 return getSensorBiasEventType(sensorType, &eventType); in sensorTypeReportsBias()
322 bool getSensorBiasEventType(SensorType sensorType, uint16_t *eventType) { in getSensorBiasEventType() argument
323 CHRE_ASSERT(eventType != nullptr); in getSensorBiasEventType()
325 if (eventType != nullptr) { in getSensorBiasEventType()
329 *eventType = CHRE_EVENT_SENSOR_ACCELEROMETER_BIAS_INFO; in getSensorBiasEventType()
332 *eventType = CHRE_EVENT_SENSOR_UNCALIBRATED_ACCELEROMETER_BIAS_INFO; in getSensorBiasEventType()
335 *eventType = CHRE_EVENT_SENSOR_GYROSCOPE_BIAS_INFO; in getSensorBiasEventType()
[all …]
Devent_loop.cc247 bool EventLoop::postEventOrDie(uint16_t eventType, void *eventData, in postEventOrDie() argument
253 success = allocateAndPostEvent(eventType, eventData, freeCallback, in postEventOrDie()
259 FATAL_ERROR("Failed to allocate system event type %" PRIu16, eventType); in postEventOrDie()
267 uint16_t eventType, void *eventData, in postLowPriorityEventOrFree() argument
274 success = allocateAndPostEvent(eventType, eventData, freeCallback, in postLowPriorityEventOrFree()
279 freeCallback(eventType, eventData); in postLowPriorityEventOrFree()
282 eventType, targetInstanceId); in postLowPriorityEventOrFree()
338 bool EventLoop::allocateAndPostEvent(uint16_t eventType, void *eventData, in allocateAndPostEvent() argument
348 Event *event = mEventPool.allocate(eventType, receivedTimeMillis, eventData, in allocateAndPostEvent()
388 && app->isRegisteredForBroadcastEvent(event->eventType)) in distributeEvent()
[all …]
Dnanoapp.cc33 bool Nanoapp::isRegisteredForBroadcastEvent(uint16_t eventType) const { in isRegisteredForBroadcastEvent()
34 return (mRegisteredEvents.find(eventType) != mRegisteredEvents.size()); in isRegisteredForBroadcastEvent()
84 handleEvent(event->senderInstanceId, event->eventType, event->eventData); in processNextEvent()
/system/chre/util/nanoapp/
Dsensor.cc24 const char *getSensorNameForEventType(uint16_t eventType) { in getSensorNameForEventType() argument
25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); in getSensorNameForEventType()
/system/chre/core/include/chre/core/
Devent_loop.h149 bool postEventOrDie(uint16_t eventType, void *eventData,
172 uint16_t eventType, void *eventData,
326 bool allocateAndPostEvent(uint16_t eventType, void *eventData,
408 void notifyAppStatusChange(uint16_t eventType, const Nanoapp& nanoapp);
/system/chre/apps/hello_world/
Dhello_world.cc39 uint16_t eventType, in nanoappHandleEvent() argument
42 "time %" PRIu64, eventType, senderInstanceId, chreGetTime()); in nanoappHandleEvent()
/system/chre/apps/chqts/src/who_am_i/
Dwho_am_i.cc42 uint16_t eventType, in nanoappHandleEvent() argument
44 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in nanoappHandleEvent()

12345