Home
last modified time | relevance | path

Searched refs:getSensor (Results 1 – 21 of 21) 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()
84 sensors.add(e.si->getSensor()); in getUserSensors()
96 if (!e.si->getSensor().isDynamicSensor() in getUserDebugSensors()
98 sensors.add(e.si->getSensor()); in getUserDebugSensors()
110 if (!e.isForDebug && e.si->getSensor().isDynamicSensor() in getDynamicSensors()
112 sensors.add(e.si->getSensor()); in getDynamicSensors()
125 sensors.add(e.si->getSensor()); in getVirtualSensors()
[all …]
DSensorEventConnection.cpp165 !mService->canAccessSensor(si->getSensor(), "Add to SensorEventConnection: ", in addSensor()
206 if (si != nullptr && si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in hasOneShotSensors()
249 if (si != nullptr && si->getSensor().isWakeUpSensor()) { in updateLooperRegistrationLocked()
570 bool wakeUpSensor = si->getSensor().isWakeUpSensor(); in sendPendingFlushEventsLocked()
698 const Sensor& s = si->getSensor(); in enableDisable()
738 const Sensor& s = si->getSensor(); in setEventRate()
871 sensor_event.type = si->getSensor().getType(); in handleEvent()
919 const Sensor& sensor = si->getSensor(); in computeMaxCacheSizeLocked()
DSensorService.cpp360 const int handle = s->getSensor().getHandle(); in onFirstRef()
540 const int handle = s->getSensor().getHandle(); in registerSensor()
541 const int type = s->getSensor().getType(); in registerSensor()
631 if (privileged || s->getSensor().getRequiredPermission().empty()) { in dump()
637 result.appendFormat("%s: ", s->getSensor().getName().c_str()); in dump()
761 i.second->setFormat(privileged || s->getSensor().getRequiredPermission().empty() ? in dumpProtoLocked()
765 std::string(s->getSensor().getName().c_str())); in dumpProtoLocked()
1054 si->getSensor().getReportingMode() == AREPORTING_MODE_ONE_SHOT) { in cleanupAutoDisabledSensorLocked()
1435 return sensor != nullptr && sensor->getSensor().isWakeUpSensor(); in isWakeUpSensorEvent()
1573 addSensorIfAccessible(opPackageName, e.si->getSensor(), accessibleSensorList); in getRuntimeSensorList()
[all …]
DSensorInterface.h44 virtual const Sensor& getSensor() const = 0;
67 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() function
DLinearAccelerationSensor.cpp34 const Sensor &gsensor = mGravitySensor.getSensor(); in LinearAccelerationSensor()
DSensorDirectConnection.cpp159 const Sensor& s = si->getSensor(); in configureChannel()
231 const Sensor& s = si->getSensor(); in capRates()
DSensorList.h112 forEachEntry([&f] (const Entry& e) -> bool { return f(e.si->getSensor());}); in forEachSensor()
/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.java65 .setSensor(mFakeProximitySensor.getSensor()) in setUp()
66 .setThresholdValue(mFakeProximitySensor.getSensor().getMaximumRange()) in setUp()
321 .setSensor(sensor.getSensor()) in testHysteresis()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java130 new Optional[]{Optional.of(mSensor.getSensor())}, in setUp()
320 Optional.of(mSensor.getSensor()) /* closed */, in testSensorsSupportPostures_closed()
321 Optional.of(mSensorInner.getSensor()) /* half-opened */, in testSensorsSupportPostures_closed()
322 Optional.of(mSensorInner.getSensor()) /* opened */, in testSensorsSupportPostures_closed()
359 Optional.of(mSensor.getSensor()) /* closed */, in testSensorsSupportPostures_open()
360 Optional.of(mSensorInner.getSensor()) /* half-opened */, in testSensorsSupportPostures_open()
361 Optional.of(mSensorInner.getSensor()) /* opened */, in testSensorsSupportPostures_open()
402 Optional.of(mSensor.getSensor()) /* closed */, in testSensorsSupportPostures_swapPostures()
403 Optional.of(mSensorInner.getSensor()) /* half-opened */, in testSensorsSupportPostures_swapPostures()
404 Optional.of(mSensorInner.getSensor()) /* opened */, in testSensorsSupportPostures_swapPostures()
DDozeTriggersTest.java135 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setupDozeTriggers()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DSensorTest.java150 final Sensor sensor = getSensor(); in onBinderDied_noErrorOnNullClient()
169 final Sensor sensor = getSensor(); in onBinderDied_cancelNonInterruptableClient()
191 private Sensor getSensor() { in getSensor() method in SensorTest
/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/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java251 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult()
265 public Sensor getSensor() { in getSensor() method in FakeSensorManager.FakeGenericSensor
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/
DSensorTest.java162 final Sensor sensor = getSensor(); in onBinderDied_cancelNonInterruptableClient()
184 private Sensor getSensor() { in getSensor() method in SensorTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIndividualSensorPrivacyControllerImpl.java61 params.getSensor(), params.getToggleType(), params.isEnabled()); in init()
/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/core/java/android/hardware/
DSensorPrivacyManager.java306 public @Sensors.Sensor int getSensor() { in getSensor() method in SensorPrivacyManager.OnSensorPrivacyChangedListener.SensorPrivacyChangedParams
528 if (params.getSensor() == sensor) { in addSensorPrivacyListener()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java405 List<SensorCondition> sensorConditions = conditions.getSensor(); in setStateConditions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java825 .append(event.getSensor()).append(',') in triggerEventToString()
/frameworks/base/core/api/
Dsystem-current.txt4870 method public int getSensor();