/system/chre/apps/test/chqts/src/general_test/ |
D | basic_sensor_tests.cc | 46 static void verifyThreeAxisData(const void *eventData, float extremeLow, in verifyThreeAxisData() argument 48 auto data = static_cast<const chreSensorThreeAxisData *>(eventData); in verifyThreeAxisData() 57 static void verifyFloatData(const void *eventData, float extremeLow, in verifyFloatData() argument 59 auto data = static_cast<const chreSensorFloatData *>(eventData); in verifyFloatData() 66 void BasicAccelerometerTest::confirmDataIsSane(const void *eventData) { in confirmDataIsSane() argument 68 verifyThreeAxisData(eventData, -kExtreme, kExtreme); in confirmDataIsSane() 71 void BasicInstantMotionDetectTest::confirmDataIsSane(const void *eventData) { in confirmDataIsSane() argument 72 UNUSED_VAR(eventData); in confirmDataIsSane() 76 void BasicStationaryDetectTest::confirmDataIsSane(const void *eventData) { in confirmDataIsSane() argument 77 UNUSED_VAR(eventData); in confirmDataIsSane() [all …]
|
D | basic_flush_async_test.cc | 87 const void *eventData) { in handleEvent() argument 93 static_cast<const struct chreSensorThreeAxisData *>(eventData)); in handleEvent() 98 static_cast<const struct chreSensorFlushCompleteEvent *>(eventData)); in handleEvent() 102 handleTimerExpired(static_cast<const uint32_t *>(eventData)); in handleEvent() 147 const struct chreSensorThreeAxisData *eventData) { in handleDataReceived() argument 149 mLatestSensorDataTimestamp = eventData->header.baseTimestamp; in handleDataReceived() 150 for (int i = 0; i < eventData->header.readingCount; ++i) { in handleDataReceived() 151 mLatestSensorDataTimestamp += eventData->readings[i].timestampDelta; in handleDataReceived() 156 const struct chreSensorFlushCompleteEvent *eventData) { in handleFlushComplete() argument 175 ASSERT_NE(eventData, nullptr, "null event data"); in handleFlushComplete() [all …]
|
D | basic_wifi_test.cc | 348 uint16_t eventType, const void *eventData) { in handleEvent() argument 349 ASSERT_NE(eventData, nullptr, "Received null eventData"); in handleEvent() 353 handleChreWifiAsyncEvent(static_cast<const chreAsyncResult *>(eventData)); in handleEvent() 359 const auto *result = static_cast<const chreWifiScanEvent *>(eventData); in handleEvent() 388 const auto *result = static_cast<const chreWifiRangingEvent *>(eventData); in handleEvent() 406 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleEvent() 471 bool BasicWifiTest::isActiveWifiScanType(const chreWifiScanEvent *eventData) { in isActiveWifiScanType() argument 472 return (eventData->scanType == CHRE_WIFI_SCAN_TYPE_ACTIVE); in isActiveWifiScanType() 539 void BasicWifiTest::validateWifiScanEvent(const chreWifiScanEvent *eventData) { in validateWifiScanEvent() argument 540 if (eventData->version != CHRE_WIFI_SCAN_EVENT_VERSION) { in validateWifiScanEvent() [all …]
|
D | basic_sensor_test_base.cc | 423 uint16_t eventType, const chreSensorThreeAxisData *eventData) { in handleBiasEvent() argument 439 verifyEventHeader(&eventData->header, eventType, getEventDuration(eventData)); in handleBiasEvent() 446 const chreSensorSamplingStatusEvent *eventData) { in handleSamplingChangeEvent() argument 448 (mPrevSensorHandle.value() == eventData->sensorHandle)) { in handleSamplingChangeEvent() 454 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent() 456 &eventData->sensorHandle); in handleSamplingChangeEvent() 465 if (!eventData->status.enabled) { in handleSamplingChangeEvent() 469 if ((mNewStatus.interval != eventData->status.interval) || in handleSamplingChangeEvent() 470 (mNewStatus.latency != eventData->status.latency)) { in handleSamplingChangeEvent() 479 const void *eventData) { in handleSensorDataEvent() argument [all …]
|
D | basic_sensor_tests.h | 40 void confirmDataIsSane(const void *eventData) override; 57 void confirmDataIsSane(const void *eventData) override; 74 void confirmDataIsSane(const void *eventData) override; 91 void confirmDataIsSane(const void *eventData) override; 108 void confirmDataIsSane(const void *eventData) override; 125 void confirmDataIsSane(const void *eventData) override; 142 void confirmDataIsSane(const void *eventData) override; 159 void confirmDataIsSane(const void *eventData) override;
|
D | app.cc | 107 const void *eventData); 109 void createTest(const void *eventData); 151 const void *eventData) { in handleEvent() argument 158 auto data = static_cast<const chreMessageFromHostData *>(eventData); in handleEvent() 160 eventData = &adjustedData; in handleEvent() 165 mCurrentTest->testHandleEvent(senderInstanceId, eventType, eventData); in handleEvent() 180 createTest(eventData); in handleEvent() 183 void App::createTest(const void *eventData) { in createTest() argument 188 auto data = static_cast<const chreMessageFromHostData *>(eventData); in createTest() 264 uint16_t eventType, const void *eventData) { in nanoappHandleEvent() argument [all …]
|
D | basic_sensor_test_base.h | 42 const void *eventData) override; 83 virtual void confirmDataIsSane(const void *eventData) = 0; 121 const chreSensorThreeAxisData *eventData); 123 const chreSensorSamplingStatusEvent *eventData); 124 void handleSensorDataEvent(uint16_t eventType, const void *eventData);
|
D | heap_exhaustion_stability_test.cc | 214 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()
|
D | basic_wifi_test.h | 55 const void *eventData) override; 89 bool isActiveWifiScanType(const chreWifiScanEvent *eventData); 116 void validateWifiScanEvent(const chreWifiScanEvent *eventData); 135 void validateRangingEvent(const chreWifiRangingEvent *eventData);
|
D | event_between_apps_test.cc | 54 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 94 senderInstanceId, eventType, eventData, MessageType::kContinue, in handleEvent() 115 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
|
/system/chre/apps/test/chqts/src/busy_startup/ |
D | busy_startup.cc | 84 static void checkSelfEvent(uint16_t eventType, const uint32_t *eventData) { in checkSelfEvent() argument 89 if (eventData == nullptr) { in checkSelfEvent() 92 if (*eventData != gInstanceId) { in checkSelfEvent() 93 sendFatalFailureToHost("Event from self, bad data:", eventData); in checkSelfEvent() 98 static void checkTimerEvent(const uint32_t *eventData) { in checkTimerEvent() argument 99 if (eventData == nullptr) { in checkTimerEvent() 102 if (*eventData != gInstanceId) { in checkTimerEvent() 103 sendFatalFailureToHost("TimerEvent, bad data:", eventData); in checkTimerEvent() 108 static void checkSensorEvent(const void *eventData) { in checkSensorEvent() argument 110 static_cast<const chreSensorDataHeader *>(eventData); in checkSensorEvent() [all …]
|
/system/chre/apps/power_test/common/ |
D | power_test.cc | 42 const void *eventData) { in nanoappHandleEvent() argument 47 auto *msg = static_cast<const chreMessageFromHostData *>(eventData); in nanoappHandleEvent() 52 RequestManagerSingleton::get()->handleTimerEvent(eventData); in nanoappHandleEvent() 56 static_cast<const struct chreWifiNanIdentifierEvent *>(eventData); in nanoappHandleEvent() 62 static_cast<const struct chreWifiNanDiscoveryEvent *>(eventData); in nanoappHandleEvent() 70 static_cast<const struct chreWifiNanSessionLostEvent *>(eventData); in nanoappHandleEvent() 78 eventData); in nanoappHandleEvent() 85 static_cast<const struct chreAsyncResult *>(eventData); in nanoappHandleEvent() 92 static_cast<const struct chreWifiScanEvent *>(eventData); in nanoappHandleEvent() 99 auto *event = static_cast<const struct chreWifiRangingEvent *>(eventData); in nanoappHandleEvent() [all …]
|
/system/chre/util/pigweed/ |
D | rpc_server.cc | 76 const void *eventData) { in handleEvent() argument 79 return handleMessageFromHost(eventData); in handleEvent() 81 return handleMessageFromNanoapp(senderInstanceId, eventData); in handleEvent() 83 handleHostClientNotification(eventData); in handleEvent() 86 handleNanoappStopped(eventData); in handleEvent() 93 bool RpcServer::handleMessageFromHost(const void *eventData) { in handleMessageFromHost() argument 94 auto *hostMessage = static_cast<const chreMessageFromHostData *>(eventData); in handleMessageFromHost() 139 const void *eventData) { in handleMessageFromNanoapp() argument 140 const auto data = static_cast<const ChrePigweedNanoappMessage *>(eventData); in handleMessageFromNanoapp() 168 void RpcServer::handleHostClientNotification(const void *eventData) { in handleHostClientNotification() argument [all …]
|
D | rpc_client.cc | 34 const void *eventData) { in handleEvent() argument 37 return handleMessageFromServer(senderInstanceId, eventData); in handleEvent() 39 handleNanoappStopped(eventData); in handleEvent() 62 const void *eventData) { in handleMessageFromServer() argument 63 auto data = static_cast<const chre::ChrePigweedNanoappMessage *>(eventData); in handleMessageFromServer() 86 void RpcClient::handleNanoappStopped(const void *eventData) { in handleNanoappStopped() argument 87 auto info = static_cast<const struct chreNanoappInfo *>(eventData); in handleNanoappStopped()
|
/system/chre/test/simulation/ |
D | wifi_nan_test.cc | 76 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 81 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 91 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 127 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 133 static_cast<const chreWifiNanIdentifierEvent *>(eventData); in TEST_F() 143 static_cast<const chreWifiNanDiscoveryEvent *>(eventData); in TEST_F() 150 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 193 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 199 static_cast<const chreWifiNanIdentifierEvent *>(eventData); in TEST_F() 208 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() [all …]
|
D | ble_test.cc | 50 const void *eventData) { in TEST_F() 53 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 114 const void *eventData) { in TEST_F() 117 auto *event = static_cast<const struct chreAsyncResult *>(eventData); in TEST_F() 135 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 179 const void *eventData) { in TEST_F() 182 auto *event = static_cast<const struct chreAsyncResult *>(eventData); in TEST_F() 191 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 231 const void *eventData) { in TEST_F() 234 auto *event = static_cast<const struct chreAsyncResult *>(eventData); in TEST_F() [all …]
|
D | audio_test.cc | 54 const void *eventData) { in TEST_F() 60 static_cast<const struct chreAudioDataEvent *>(eventData); in TEST_F() 72 static_cast<const struct chreAudioSourceStatusEvent *>(eventData); in TEST_F() 81 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 122 const void *eventData) { in TEST_F() 126 static_cast<const struct chreAudioSourceStatusEvent *>(eventData); in TEST_F() 135 auto event = static_cast<const TestEvent *>(eventData); in TEST_F()
|
D | gnss_test.cc | 74 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 78 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 94 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 180 const void *eventData) { in TEST_F() 184 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 194 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 252 const void *eventData) { in TEST_F() 256 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 266 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 315 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() [all …]
|
D | wifi_test.cc | 48 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 53 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 63 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 111 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 116 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 126 auto event = static_cast<const TestEvent *>(eventData); in TEST_F() 171 [](uint32_t, uint16_t eventType, const void *eventData) { in TEST_F() 176 auto *event = static_cast<const chreAsyncResult *>(eventData); in TEST_F() 186 auto event = static_cast<const TestEvent *>(eventData); in TEST_F()
|
/system/chre/util/include/chre/util/pigweed/ |
D | rpc_server.h | 117 const void *eventData); 129 bool handleMessageFromHost(const void *eventData); 141 const void *eventData); 148 void handleHostClientNotification(const void *eventData); 156 void handleNanoappStopped(const void *eventData);
|
/system/chre/apps/test/common/chre_stress_test/src/ |
D | chre_stress_test_manager.cc | 85 const void *eventData) { in handleEvent() argument 89 static_cast<const chreMessageFromHostData *>(eventData)); in handleEvent() 91 handleDataFromChre(eventType, eventData); in handleEvent() 185 void Manager::handleDataFromChre(uint16_t eventType, const void *eventData) { in handleDataFromChre() argument 188 handleTimerEvent(static_cast<const uint32_t *>(eventData)); in handleDataFromChre() 192 handleWifiAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in handleDataFromChre() 196 handleWifiScanEvent(static_cast<const chreWifiScanEvent *>(eventData)); in handleDataFromChre() 200 handleGnssAsyncResult(static_cast<const chreAsyncResult *>(eventData)); in handleDataFromChre() 205 static_cast<const chreGnssLocationEvent *>(eventData)); in handleDataFromChre() 209 handleGnssDataEvent(static_cast<const chreGnssDataEvent *>(eventData)); in handleDataFromChre() [all …]
|
/system/chre/apps/timer_world/ |
D | timer_world.cc | 48 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument 49 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() 62 const void *eventData) { in nanoappHandleEvent() argument 67 handleTimerEvent(eventData); in nanoappHandleEvent()
|
/system/chre/apps/host_awake_world/ |
D | host_awake_world.cc | 46 void handleTimerEvent(const void *eventData) { in handleTimerEvent() argument 47 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() 60 const void *eventData) { in nanoappHandleEvent() argument 65 handleTimerEvent(eventData); in nanoappHandleEvent()
|
/system/chre/core/ |
D | host_endpoint_manager.cc | 48 auto *eventData = memoryAlloc<struct chreHostEndpointNotification>(); in hostNotificationCallback() local 50 if (eventData == nullptr) { in hostNotificationCallback() 53 eventData->hostEndpointId = hostEndpointId; in hostNotificationCallback() 54 eventData->notificationType = in hostNotificationCallback() 56 eventData->reserved = 0; in hostNotificationCallback() 59 eventType, eventData, freeEventDataCallback, kBroadcastInstanceId); in hostNotificationCallback()
|
/system/chre/core/include/chre/core/ |
D | event.h | 56 eventData(eventData_), in eventType() 73 eventData(eventData_), in Event() 112 systemEventCallback(eventType, eventData, extraData); in invokeFreeCallback() 114 freeCallback(eventType, eventData); in invokeFreeCallback() 123 void *const eventData; variable
|