Home
last modified time | relevance | path

Searched refs:ProximitySensor (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorInterface.cpp90 ProximitySensor::ProximitySensor(const sensor_t& sensor, SensorService& service) in ProximitySensor() function in android::ProximitySensor
94 status_t ProximitySensor::activate(void* ident, bool enabled) { in activate()
109 void ProximitySensor::willDisableAllSensors() { in willDisableAllSensors()
115 void ProximitySensor::didEnableAllSensors() { in didEnableAllSensors()
DSensorInterface.h112 class ProximitySensor : public HardwareSensor {
114 explicit ProximitySensor(const sensor_t& sensor, SensorService& service);
DSensorService.cpp207 registerSensor(new ProximitySensor(list[i], *this)); in onFirstRef()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DProximityCheckTest.java52 private ProximitySensor.ProximityCheck mProximityCheck;
61 mProximityCheck = new ProximitySensor.ProximityCheck(mFakeProximitySensor, mFakeExecutor); in setUp()
70 mFakeProximitySensor.setLastEvent(new ProximitySensor.ThresholdSensorEvent(true, 0)); in testCheck()
106 mFakeProximitySensor.setLastEvent(new ProximitySensor.ThresholdSensorEvent(true, 0)); in testNotLoaded()
126 mFakeProximitySensor.setLastEvent(new ProximitySensor.ThresholdSensorEvent(true, 0)); in testProxDoesntCancelOthers()
DProximitySensorSingleTest.java46 private ProximitySensor mProximitySensor;
57 mProximitySensor = new ProximitySensor( in setUp()
218 public void onThresholdCrossed(ProximitySensor.ThresholdSensorEvent proximityEvent) { in testPreventRecursiveAlert()
DFakeProximitySensor.java22 public class FakeProximitySensor extends ProximitySensor {
DProximitySensorDualTest.java44 private ProximitySensor mProximitySensor;
58 mProximitySensor = new ProximitySensor( in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DProximitySensor.java57 public class ProximitySensor implements ThresholdSensor { class
110 public ProximitySensor( in ProximitySensor() method in ProximitySensor
335 private final ProximitySensor mSensor;
342 public ProximityCheck(ProximitySensor sensor, @Main DelayableExecutor delayableExecutor) { in ProximityCheck()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java54 import com.android.systemui.util.sensors.ProximitySensor;
81 private ProximitySensor.ProximityCheck mProximityCheck;
132 mProximitySensor.setLastEvent(new ProximitySensor.ThresholdSensorEvent(true, 1)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
139 mProximitySensor.setLastEvent(new ProximitySensor.ThresholdSensorEvent(false, 2)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
DDozeSensorsTest.java51 import com.android.systemui.util.sensors.ProximitySensor;
87 private ProximitySensor mProximitySensor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollectorImpl.java38 import com.android.systemui.util.sensors.ProximitySensor;
58 private final ProximitySensor mProximitySensor;
132 ProximitySensor proximitySensor, in FalsingCollectorImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java47 import com.android.systemui.util.sensors.ProximitySensor;
91 private final ProximitySensor.ProximityCheck mProxCheck;
178 ProximitySensor proximitySensor, ProximitySensor.ProximityCheck proxCheck, in DozeTriggers()
DDozeSensors.java51 import com.android.systemui.util.sensors.ProximitySensor;
78 private final ProximitySensor mProximitySensor;
108 ProximitySensor proximitySensor, SecureSettings secureSettings, in DozeSensors()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java43 import com.android.systemui.util.sensors.ProximitySensor;
68 private ProximitySensor mProximitySensor;