Home
last modified time | relevance | path

Searched refs:mProximitySensor (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DProximitySensorTest.java41 private ProximitySensor mProximitySensor; field in ProximitySensorTest
50 mProximitySensor = new ProximitySensor(getContext().getResources(), asyncSensorManager); in setUp()
57 assertFalse(mProximitySensor.isRegistered()); in testSingleListener()
58 mProximitySensor.register(listener); in testSingleListener()
60 assertTrue(mProximitySensor.isRegistered()); in testSingleListener()
70 mProximitySensor.unregister(listener); in testSingleListener()
79 assertFalse(mProximitySensor.isRegistered()); in testMultiListener()
81 mProximitySensor.register(listenerA); in testMultiListener()
83 assertTrue(mProximitySensor.isRegistered()); in testMultiListener()
84 mProximitySensor.register(listenerB); in testMultiListener()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DBrightLineFalsingManagerTest.java55 private ProximitySensor mProximitySensor; field in BrightLineFalsingManagerTest
74 mKeyguardUpdateMonitor, mProximitySensor, deviceConfigProxy, dockManager, in setup()
81 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testRegisterSensor()
87 reset(mProximitySensor); in testUnregisterSensor()
89 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor()
95 reset(mProximitySensor); in testUnregisterSensor_QS()
97 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()
99 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()
105 reset(mProximitySensor); in testUnregisterSensor_Bouncer()
107 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_Bouncer()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java78 private FakeProximitySensor mProximitySensor; field in DozeTriggersTest
90 mProximitySensor = new FakeProximitySensor(getContext().getResources(), asyncSensorManager); in setUp()
93 asyncSensorManager, wakeLock, true, mDockManager, mProximitySensor, in setUp()
108 mProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(true, 1)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
110 mProximitySensor.alertListeners(); in testOnNotification_stillWorksAfterOneFailedProxCheck()
115 mProximitySensor.setLastEvent(new ProximitySensor.ProximityEvent(false, 2)); in testOnNotification_stillWorksAfterOneFailedProxCheck()
117 mProximitySensor.alertListeners(); in testOnNotification_stillWorksAfterOneFailedProxCheck()
167 mProximitySensor.setSensorAvailable(false); in testProximitySensorNotAvailablel()
DDozeSensorsTest.java87 private ProximitySensor mProximitySensor; field in DozeSensorsTest
107 assertFalse(mProximitySensor.isRegistered()); in testRegisterProx()
109 verify(mProximitySensor).resume(); in testRegisterProx()
173 mProximitySensor); in TestableDozeSensors() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java79 private final ProximitySensor mProximitySensor; field in DozeSensors
115 mProximitySensor = proximitySensor; in DozeSensors()
179 mProximitySensor.register( in DozeSensors()
195 mProximitySensor.pause(); in destroy()
284 if (mProximitySensor.isRegistered() && listen) { in setProxListening()
285 mProximitySensor.alertListeners(); in setProxListening()
288 mProximitySensor.resume(); in setProxListening()
290 mProximitySensor.pause(); in setProxListening()
325 pw.println(" ProxSensor: " + mProximitySensor.toString()); in dump()
332 return mProximitySensor.isNear(); in isProximityCurrentlyNear()
DDozeFactory.java57 private final ProximitySensor mProximitySensor; field in DozeFactory
85 mProximitySensor = proximitySensor; in DozeFactory()
147 mProximitySensor, proximityCheck, dozeLog, mBroadcastDispatcher); in createDozeTriggers()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingManagerProxyTest.java59 ProximitySensor mProximitySensor; field in FalsingManagerProxyTest
90 mProximitySensor, mDeviceConfig, mDockManager, mKeyguardUpdateMonitor, in test_brightLineFalsingManagerDisabled()
101 mProximitySensor, mDeviceConfig, mDockManager, mKeyguardUpdateMonitor, in test_brightLineFalsingManagerEnabled()
109 mProximitySensor, mDeviceConfig, mDockManager, mKeyguardUpdateMonitor, in test_brightLineFalsingManagerToggled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerProxy.java64 private final ProximitySensor mProximitySensor; field in FalsingManagerProxy
84 mProximitySensor = proximitySensor; in FalsingManagerProxy()
89 mProximitySensor.setTag(PROXIMITY_SENSOR_TAG); in FalsingManagerProxy()
90 mProximitySensor.setSensorDelay(SensorManager.SENSOR_DELAY_GAME); in FalsingManagerProxy()
148 mProximitySensor, in setupFalsingManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DBrightLineFalsingManager.java63 private final ProximitySensor mProximitySensor; field in BrightLineFalsingManager
112 mProximitySensor = proximitySensor; in BrightLineFalsingManager()
134 mProximitySensor.register(mSensorEventListener); in registerSensors()
138 mProximitySensor.unregister(mSensorEventListener); in unregisterSensors()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java175 private Sensor mProximitySensor; field in DisplayPowerController
529 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in DisplayPowerController()
530 if (mProximitySensor != null) { in DisplayPowerController()
531 mProximityThreshold = Math.min(mProximitySensor.getMaximumRange(), in DisplayPowerController()
575 return mProximitySensor != null; in isProximitySensorAvailable()
823 if (mProximitySensor != null) { in updatePowerState()
1532 mSensorManager.registerListener(mProximitySensorListener, mProximitySensor, in setProximitySensorEnabled()
1803 pw.println(" mProximitySensor=" + mProximitySensor); in dumpLocal()