Home
last modified time | relevance | path

Searched refs:getSensor (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorList.cpp32 if (handle == si->getSensor().getHandle() && in add()
54 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getName();}, in getName()
74 if (!e.isForDebug && !e.si->getSensor().isDynamicSensor()) { in getUserSensors()
75 sensors.add(e.si->getSensor()); in getUserSensors()
87 if (!e.si->getSensor().isDynamicSensor()) { in getUserDebugSensors()
88 sensors.add(e.si->getSensor()); in getUserDebugSensors()
100 if (!e.isForDebug && e.si->getSensor().isDynamicSensor()) { in getDynamicSensors()
101 sensors.add(e.si->getSensor()); in getDynamicSensors()
114 sensors.add(e.si->getSensor()); in getVirtualSensors()
DSensorService.cpp269 int handle = s->getSensor().getHandle(); in registerSensor()
270 int type = s->getSensor().getType(); in registerSensor()
273 return s->getSensor(); in registerSensor()
383 s->getSensor().getRequiredPermission().isEmpty()) { in dump()
385 result.appendFormat("%s: ", s->getSensor().getName().string()); in dump()
470 si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in cleanupAutoDisabledSensorLocked()
770 return sensor != nullptr && sensor->getSensor().isWakeUpSensor(); in isWakeUpSensorEvent()
994 !canAccessSensor(sensor->getSensor(), "Tried enabling", opPackageName)) { in enable()
1016 if (sensor->getSensor().getReportingMode() == AREPORTING_MODE_ON_CHANGE) { in enable()
1055 nsecs_t minDelayNs = sensor->getSensor().getMinDelayNs(); in enable()
[all …]
DSensorInterface.h43 virtual const Sensor& getSensor() const = 0;
66 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() function
DSensorEventConnection.cpp94 !canAccessSensor(si->getSensor(), "Tried adding", mOpPackageName) || in addSensor()
125 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors()
169 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked()
398 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked()
570 sensor_event.type = si->getSensor().getType(); in handleEvent()
618 const Sensor& sensor = si->getSensor(); in computeMaxCacheSizeLocked()
DLinearAccelerationSensor.cpp34 const Sensor &gsensor = mGravitySensor.getSensor(); in LinearAccelerationSensor()
DSensorList.h110 forEachEntry([&f] (const Entry& e) -> bool { return f(e.si->getSensor());}); in forEachSensor()