Home
last modified time | relevance | path

Searched refs:getSensor (Results 1 – 13 of 13) 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.cpp310 int handle = s->getSensor().getHandle(); in registerSensor()
311 int type = s->getSensor().getType(); in registerSensor()
314 return s->getSensor(); in registerSensor()
430 if (privileged || s->getSensor().getRequiredPermission().isEmpty()) { in dump()
436 result.appendFormat("%s: ", s->getSensor().getName().string()); in dump()
685 si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in cleanupAutoDisabledSensorLocked()
973 return sensor != nullptr && sensor->getSensor().isWakeUpSensor(); in isWakeUpSensorEvent()
1397 !canAccessSensor(sensor->getSensor(), "Tried enabling", opPackageName)) { in enable()
1422 if (sensor->getSensor().getReportingMode() == AREPORTING_MODE_ON_CHANGE) { in enable()
1433 if (sensor->getSensor().getReportingMode() == AREPORTING_MODE_ON_CHANGE) { in enable()
[all …]
DSensorInterface.h43 virtual const Sensor& getSensor() const = 0;
66 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() function
DSensorEventConnection.cpp117 !canAccessSensor(si->getSensor(), "Tried adding", mOpPackageName) || in addSensor()
148 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors()
192 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked()
488 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked()
677 sensor_event.type = si->getSensor().getType(); in handleEvent()
725 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()
DSensorDirectConnection.cpp112 const Sensor& s = si->getSensor(); in configureChannel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DAsyncSensorManagerTest.java62 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl()
73 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor()
85 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor()
86 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java107 public Sensor getSensor() { in getSensor() method in SensorManagerPlugin.SensorEvent
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
DFakeSensorManager.java241 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult()
255 public Sensor getSensor() { in getSensor() method in FakeSensorManager.FakeGenericSensor
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java80 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setUp()
DDozeScreenBrightnessTest.java73 mSensor.getSensor(), mHostFake, null /* handler */, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java577 .append(event.getSensor()).append(',') in triggerEventToString()