Home
last modified time | relevance | path

Searched refs:sensorEvent (Results 1 – 4 of 4) sorted by relevance

/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/src/
Dsensor_event_callback.cpp33 struct SensorEvent sensorEvent = { in OnDataEvent() local
41 sensorEvent.data = new uint8_t[SENSOR_DATA_LENGHT]; in OnDataEvent()
43 sensorEvent.data[i] = event.data[i]; in OnDataEvent()
51 (void)(reportDataCallback_->*(reportDataCb_))(&sensorEvent, reportDataCallback_); in OnDataEvent()
Dcompatible_connection.cpp132 struct SensorEvent sensorEvent = { in SensorDataCallback() local
140 sensorEvent.data = new uint8_t[SENSOR_DATA_LENGHT]; in SensorDataCallback()
141 if (memcpy_s(sensorEvent.data, event->dataLen, event->data, event->dataLen) != EOK) { in SensorDataCallback()
146 (void)(reportDataCache_->*cacheData_)(&sensorEvent, reportDataCache_); in SensorDataCallback()
/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_native_test.cpp268 SensorEvent sensorEvent; variable
271 sensorEvent.sensorTypeId = SENSOR_TYPE_ID_PROXIMITY;
272 sensorEvent.data = reinterpret_cast<uint8_t*>(&data);
273 runningLockMgrController->RecordSensorCallback(&sensorEvent);
275 runningLockMgrController->RecordSensorCallback(&sensorEvent);
277 runningLockMgrController->RecordSensorCallback(&sensorEvent);
278 sensorEvent.sensorTypeId = TIMEOUTMS;
279 runningLockMgrController->RecordSensorCallback(&sensorEvent);
/base/sensors/sensor_lite/frameworks/src/
Dsensor_agent_proxy.c193 void DispatchData(SensorEvent *sensorEvent) in DispatchData() argument
196 if (sensorEvent == NULL) { in DispatchData()
200 int32_t sensorId = sensorEvent->sensorTypeId; in DispatchData()
203 node->callback(sensorEvent); in DispatchData()