Home
last modified time | relevance | path

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

/device/google/contexthub/contexthubhal/
Dnanohubhal_default.cpp30 static const connected_sensor_t mSensors[] = { variable
58 .connected_sensors = mSensors,
59 .num_connected_sensors = sizeof(mSensors) / sizeof(*mSensors),
/device/google/trout/hal/sensors/2.0/
DSensorsSubHal.cpp140 for (const auto& sensor : mSensors) { in getSensorsList()
152 for (auto& sensor : mSensors) { in setOperationMode()
160 auto sensor = mSensors.find(sensorHandle); in activate()
161 if (sensor != mSensors.end()) { in activate()
170 auto sensor = mSensors.find(sensorHandle); in batch()
171 if (sensor != mSensors.end()) { in batch()
179 auto sensor = mSensors.find(sensorHandle); in flush()
180 if (sensor != mSensors.end()) { in flush()
223 for (auto& sensor : mSensors) { in debug()
256 mSensors[sensor->getSensorInfo().sensorHandle] = std::unique_ptr<SensorBase>(sensor); in AddSensor()
DSensorsSubHal.h91 std::map<int32_t, std::unique_ptr<SensorBase>> mSensors; variable
/device/google/contexthub/firmware/os/core/
Dsensors.c32 static struct Sensor mSensors[MAX_REGISTERED_SENSORS]; variable
69 if (mSensors[i].handle == handle) in sensorFindByHandle()
70 return mSensors + i; in sensorFindByHandle()
108 s = mSensors + idx; in sensorRegisterEx()
169 atomicBitsetClearBit(mSensorsUsed, s - mSensors); in sensorUnregister()
564 if (mSensors[i].handle && mSensors[i].si->sensorType == sensorType && !idx--) { in sensorFind()
566 *handleP = mSensors[i].handle; in sensorFind()
567 return mSensors[i].si; in sensorFind()
730 if (mSensors[i].handle) { in sensorFreeAll()
731 s = mSensors + i; in sensorFreeAll()