Searched refs:ProximitySensor (Results 1 – 16 of 16) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | BrightLineFalsingManagerTest.java | 38 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()
|
D | ProximityClassifierTest.java | 32 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/ |
D | ProximityCheckTest.java | 49 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()
|
D | ProximitySensorTest.java | 41 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()
|
D | FakeProximitySensor.java | 21 public class FakeProximitySensor extends ProximitySensor {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeFactory.java | 39 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()
|
D | DozeTriggers.java | 46 import com.android.systemui.util.sensors.ProximitySensor; 88 private final ProximitySensor.ProximityCheck mProxCheck; 156 ProximitySensor proximitySensor, ProximitySensor.ProximityCheck proxCheck, in DozeTriggers()
|
D | DozeSensors.java | 51 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/ |
D | ProximitySensor.java | 42 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/ |
D | FalsingClassifier.java | 22 import com.android.systemui.util.sensors.ProximitySensor; 99 void onProximityEvent(ProximitySensor.ProximityEvent proximityEvent) {}; in onProximityEvent()
|
D | ProximityClassifier.java | 26 import com.android.systemui.util.sensors.ProximitySensor; 104 ProximitySensor.ProximityEvent proximityEvent) { in onProximityEvent()
|
D | BrightLineFalsingManager.java | 39 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/ |
D | DozeTriggersTest.java | 47 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()
|
D | DozeSensorsTest.java | 50 import com.android.systemui.util.sensors.ProximitySensor; 87 private ProximitySensor mProximitySensor;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingManagerProxy.java | 45 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/ |
D | FalsingManagerProxyTest.java | 43 import com.android.systemui.util.sensors.ProximitySensor; 59 ProximitySensor mProximitySensor;
|