Searched refs:getSensor (Results 1 – 10 of 10) sorted by relevance
/frameworks/native/services/sensorservice/ |
D | SensorList.cpp | 32 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()
|
D | SensorInterface.h | 43 virtual const Sensor& getSensor() const = 0; 66 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() function
|
D | SensorService.cpp | 306 int handle = s->getSensor().getHandle(); in registerSensor() 307 int type = s->getSensor().getType(); in registerSensor() 310 return s->getSensor(); in registerSensor() 439 if (privileged || s->getSensor().getRequiredPermission().isEmpty()) { in dump() 445 result.appendFormat("%s: ", s->getSensor().getName().string()); in dump() 605 si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in cleanupAutoDisabledSensorLocked() 904 return sensor != nullptr && sensor->getSensor().isWakeUpSensor(); in isWakeUpSensorEvent() 1317 !canAccessSensor(sensor->getSensor(), "Tried enabling", opPackageName)) { in enable() 1339 if (sensor->getSensor().getReportingMode() == AREPORTING_MODE_ON_CHANGE) { in enable() 1379 nsecs_t maxDelayNs = sensor->getSensor().getMaxDelay() * 1000LL; in enable() [all …]
|
D | SensorEventConnection.cpp | 109 !canAccessSensor(si->getSensor(), "Tried adding", mOpPackageName) || in addSensor() 140 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors() 184 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked() 440 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked() 629 sensor_event.type = si->getSensor().getType(); in handleEvent() 677 const Sensor& sensor = si->getSensor(); in computeMaxCacheSizeLocked()
|
D | LinearAccelerationSensor.cpp | 34 const Sensor &gsensor = mGravitySensor.getSensor(); in LinearAccelerationSensor()
|
D | SensorList.h | 110 forEachEntry([&f] (const Entry& e) -> bool { return f(e.si->getSensor());}); in forEachSensor()
|
D | SensorDirectConnection.cpp | 112 const Sensor& s = si->getSensor(); in configureChannel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | AsyncSensorManagerTest.java | 56 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl() 67 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor() 79 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor() 80 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 228 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult() 242 public Sensor getSensor() { in getSensor() method in FakeSensorManager.FakeGenericSensor
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 68 mSensor.getSensor(), mHostFake, null /* handler */, in setUp()
|