Home
last modified time | relevance | path

Searched refs:g_sensorLists (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/sensors/sensor_lite/services/src/
H A Dsensor_service_impl.c25 static struct SensorInformation *g_sensorLists; variable
42 int32_t ret = g_sensorDevice->GetAllSensors(&g_sensorLists, &g_sensorListsLength); in InitSensorList()
43 if ((ret != 0) || (g_sensorLists == NULL)) { in InitSensorList()
129 if ((g_sensorLists == NULL) || (g_sensorListsLength <= 0)) { in GetAllSensorsImpl()
136 *sensorInfo = (SensorInfo *)g_sensorLists; in GetAllSensorsImpl()
/ohos5.0/base/sensors/sensor_lite/frameworks/src/
H A Dsensor_agent_proxy.c24 static SensorInfo *g_sensorLists; variable
320 .sensorInfo = &g_sensorLists, in InitSensorList()
342 if (g_sensorLists == NULL) { in GetAllSensorsByProxy()
350 *sensorInfo = g_sensorLists; in GetAllSensorsByProxy()
422 if ((g_sensorLists == NULL) || (g_sensorListsLength == 0)) { in CheckSensorTypeId()
427 if ((g_sensorLists + i)->sensorId == sensorTypeId) { in CheckSensorTypeId()