Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorList.cpp34 if (handle == si->getSensor().getHandle() && in add()
56 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getName();}, in getName()
62 handle, [] (const Entry& e) -> String8 {return e.si->getSensor().getStringType();}, in getStringType()
82 if (!e.isForDebug && !e.si->getSensor().isDynamicSensor()) { in getUserSensors()
83 sensors.add(e.si->getSensor()); in getUserSensors()
95 if (!e.si->getSensor().isDynamicSensor()) { in getUserDebugSensors()
96 sensors.add(e.si->getSensor()); in getUserDebugSensors()
108 if (!e.isForDebug && e.si->getSensor().isDynamicSensor()) { in getDynamicSensors()
109 sensors.add(e.si->getSensor()); in getDynamicSensors()
122 sensors.add(e.si->getSensor()); in getVirtualSensors()
DSensorInterface.h44 virtual const Sensor& getSensor() const = 0;
70 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() function
DSensorService.cpp347 int handle = s->getSensor().getHandle(); in registerSensor()
348 int type = s->getSensor().getType(); in registerSensor()
351 return s->getSensor(); in registerSensor()
472 if (privileged || s->getSensor().getRequiredPermission().isEmpty()) { in dump()
478 result.appendFormat("%s: ", s->getSensor().getName().string()); in dump()
590 i.second->setFormat(privileged || s->getSensor().getRequiredPermission().isEmpty() ? in dumpProtoLocked()
594 std::string(s->getSensor().getName().string())); in dumpProtoLocked()
891 si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in cleanupAutoDisabledSensorLocked()
1183 return sensor != nullptr && sensor->getSensor().isWakeUpSensor(); in isWakeUpSensorEvent()
1693 !canAccessSensor(sensor->getSensor(), "Tried enabling", opPackageName)) { in enable()
[all …]
DSensorEventConnection.cpp166 !canAccessSensor(si->getSensor(), "Add to SensorEventConnection: ", mOpPackageName) || in addSensor()
206 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors()
249 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked()
566 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked()
694 const Sensor& s = si->getSensor(); in enableDisable()
734 const Sensor& s = si->getSensor(); in setEventRate()
862 sensor_event.type = si->getSensor().getType(); in handleEvent()
910 const Sensor& sensor = si->getSensor(); in computeMaxCacheSizeLocked()
DLinearAccelerationSensor.cpp34 const Sensor &gsensor = mGravitySensor.getSensor(); in LinearAccelerationSensor()
DSensorList.h113 forEachEntry([&f] (const Entry& e) -> bool { return f(e.si->getSensor());}); in forEachSensor()
DSensorDirectConnection.cpp160 const Sensor& s = si->getSensor(); in configureChannel()
234 const Sensor& s = si->getSensor(); in capRates()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java63 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl()
74 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor()
86 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor()
87 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor()
DThresholdSensorImplTest.java64 .setSensor(mFakeProximitySensor.getSensor()) in setUp()
65 .setThresholdValue(mFakeProximitySensor.getSensor().getMaximumRange()) in setUp()
320 .setSensor(sensor.getSensor()) in testHysteresis()
DFakeSensorManager.java245 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult()
259 public Sensor getSensor() { in getSensor() method in FakeSensorManager.FakeGenericSensor
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java107 public Sensor getSensor() { in getSensor() method in SensorManagerPlugin.SensorEvent
/frameworks/base/services/core/xsd/device-state-config/schema/
Dcurrent.txt7 …le public java.util.List<com.android.server.policy.devicestate.config.SensorCondition> getSensor();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java105 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setupDozeTriggers()
DDozeScreenBrightnessTest.java111 Optional.of(mSensor.getSensor()), mDozeHost, null /* handler */, in setUp()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java218 List<SensorCondition> sensorConditions = conditions.getSensor(); in setStateConditions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java589 .append(event.getSensor()).append(',') in triggerEventToString()