Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DBrightLineFalsingManagerTest.java38 import com.android.systemui.util.sensors.ProximitySensor;
55 private ProximitySensor mProximitySensor;
81 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testRegisterSensor()
89 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor()
97 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()
99 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()
107 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_Bouncer()
109 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_Bouncer()
117 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_StateTransition()
DProximityClassifierTest.java32 import com.android.systemui.util.sensors.ProximitySensor;
139 private ProximitySensor.ProximityEvent createSensorEvent(boolean covered, long timestampMs) { in createSensorEvent()
140 return new ProximitySensor.ProximityEvent(covered, timestampMs * NS_PER_MS); in createSensorEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DProximityCheckTest.java49 private ProximitySensor.ProximityCheck mProximityCheck;
57 mProximityCheck = new ProximitySensor.ProximityCheck(mFakeProximitySensor, mFakeExecutor); in setUp()
66 mFakeProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(true, 0)); in testCheck()
88 ProximitySensor.ProximitySensorListener emptyListener = event -> { }; in testProxDoesntCancelOthers()
97 mFakeProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(true, 0)); in testProxDoesntCancelOthers()
DProximitySensorTest.java41 private ProximitySensor mProximitySensor;
50 mProximitySensor = new ProximitySensor(getContext().getResources(), asyncSensorManager); in setUp()
226 public void onSensorEvent(ProximitySensor.ProximityEvent proximityEvent) { in testPreventRecursiveAlert()
242 class TestableListener implements ProximitySensor.ProximitySensorListener {
243 ProximitySensor.ProximityEvent mLastEvent;
247 public void onSensorEvent(ProximitySensor.ProximityEvent proximityEvent) { in onSensorEvent()
DFakeProximitySensor.java21 public class FakeProximitySensor extends ProximitySensor {
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java39 import com.android.systemui.util.sensors.ProximitySensor;
57 private final ProximitySensor mProximitySensor;
58 private final ProximitySensor.ProximityCheck mProximityCheck;
71 ProximitySensor proximitySensor, ProximitySensor.ProximityCheck proximityCheck, in DozeFactory()
143 ProximitySensor.ProximityCheck proximityCheck) { in createDozeTriggers()
DDozeTriggers.java46 import com.android.systemui.util.sensors.ProximitySensor;
88 private final ProximitySensor.ProximityCheck mProxCheck;
156 ProximitySensor proximitySensor, ProximitySensor.ProximityCheck proxCheck, in DozeTriggers()
DDozeSensors.java51 import com.android.systemui.util.sensors.ProximitySensor;
79 private final ProximitySensor mProximitySensor;
105 ProximitySensor proximitySensor) { in DozeSensors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DProximitySensor.java42 public class ProximitySensor { class
69 public ProximitySensor(@Main Resources resources, in ProximitySensor() method in ProximitySensor
249 private final ProximitySensor mSensor;
252 private final ProximitySensor.ProximitySensorListener mListener;
256 public ProximityCheck(ProximitySensor sensor, @Main DelayableExecutor delayableExecutor) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingClassifier.java22 import com.android.systemui.util.sensors.ProximitySensor;
99 void onProximityEvent(ProximitySensor.ProximityEvent proximityEvent) {}; in onProximityEvent()
DProximityClassifier.java26 import com.android.systemui.util.sensors.ProximitySensor;
104 ProximitySensor.ProximityEvent proximityEvent) { in onProximityEvent()
DBrightLineFalsingManager.java39 import com.android.systemui.util.sensors.ProximitySensor;
63 private final ProximitySensor mProximitySensor;
79 private ProximitySensor.ProximitySensorListener mSensorEventListener = this::onProximityEvent;
107 KeyguardUpdateMonitor keyguardUpdateMonitor, ProximitySensor proximitySensor, in BrightLineFalsingManager()
243 private void onProximityEvent(ProximitySensor.ProximityEvent proximityEvent) { in onProximityEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java47 import com.android.systemui.util.sensors.ProximitySensor;
74 private ProximitySensor.ProximityCheck mProximityCheck;
108 mProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(true, 1)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
115 mProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(false, 2)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
DDozeSensorsTest.java50 import com.android.systemui.util.sensors.ProximitySensor;
87 private ProximitySensor mProximitySensor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerProxy.java45 import com.android.systemui.util.sensors.ProximitySensor;
64 private final ProximitySensor mProximitySensor;
77 DisplayMetrics displayMetrics, ProximitySensor proximitySensor, in FalsingManagerProxy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingManagerProxyTest.java43 import com.android.systemui.util.sensors.ProximitySensor;
59 ProximitySensor mProximitySensor;