/system/chre/apps/chqts/src/general_test/ |
D | nanoapp_info_events_test_observer.cc | 35 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()
|
D | send_event_stress_test.cc | 98 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()
|
D | send_event_test.cc | 69 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()
|
D | event_between_apps_test.cc | 56 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()
|
D | test.cc | 43 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()
|
D | basic_gnss_test.cc | 70 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()
|
D | send_event_test.h | 38 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);
|
D | basic_sensor_test_base.cc | 340 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 …]
|
D | test.h | 34 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,
|
D | send_event_stress_test.h | 34 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);
|
D | app.cc | 102 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()
|
D | hello_world_test.cc | 40 uint16_t eventType, in handleEvent() argument 42 unexpectedEvent(eventType); in handleEvent()
|
D | estimated_host_time_test.cc | 49 uint16_t eventType, in handleEvent() argument 51 if (eventType == CHRE_EVENT_TIMER) { in handleEvent() 62 getMessageDataFromHostEvent(senderInstanceId, eventType, in handleEvent()
|
D | host_awake_suspend_test.cc | 52 uint16_t eventType, in handleEvent() argument 54 unexpectedEvent(eventType); in handleEvent()
|
/system/chre/platform/slpi/ |
D | platform_nanoapp.cc | 38 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/ |
D | spammer.cc | 46 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/ |
D | busy_startup.cc | 81 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/ |
D | unload_tester.cc | 76 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/ |
D | sensor_type.cc | 92 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 …]
|
D | event_loop.cc | 247 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 …]
|
D | nanoapp.cc | 33 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/ |
D | sensor.cc | 24 const char *getSensorNameForEventType(uint16_t eventType) { in getSensorNameForEventType() argument 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); in getSensorNameForEventType()
|
/system/chre/core/include/chre/core/ |
D | event_loop.h | 149 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/ |
D | hello_world.cc | 39 uint16_t eventType, in nanoappHandleEvent() argument 42 "time %" PRIu64, eventType, senderInstanceId, chreGetTime()); in nanoappHandleEvent()
|
/system/chre/apps/chqts/src/who_am_i/ |
D | who_am_i.cc | 42 uint16_t eventType, in nanoappHandleEvent() argument 44 if (eventType == CHRE_EVENT_MESSAGE_FROM_HOST) { in nanoappHandleEvent()
|