Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensor.java39 private final ThresholdSensor[] mPostureToPrimaryProxSensorMap;
40 private final ThresholdSensor[] mPostureToSecondaryProxSensorMap;
47 @PrimaryProxSensor ThresholdSensor[] postureToPrimaryProxSensorMap, in PostureDependentProximitySensor()
48 @SecondaryProxSensor ThresholdSensor[] postureToSecondaryProxSensorMap, in PostureDependentProximitySensor()
76 public void register(ThresholdSensor.Listener listener) { in register()
86 public void unregister(ThresholdSensor.Listener listener) { in unregister()
102 ThresholdSensor newPrimaryProx = mPostureToPrimaryProxSensorMap[mDevicePosture]; in chooseSensors()
103 ThresholdSensor newSecondaryProx = mPostureToSecondaryProxSensorMap[mDevicePosture]; in chooseSensors()
DSensorModule.java47 static ThresholdSensor providePrimaryProximitySensor( in providePrimaryProximitySensor()
70 static ThresholdSensor provideSecondaryProximitySensor( in provideSecondaryProximitySensor()
118 static ThresholdSensor[] providePostureToProximitySensorMapping( in providePostureToProximitySensorMapping()
133 static ThresholdSensor[] providePostureToSecondaryProximitySensorMapping( in providePostureToSecondaryProximitySensorMapping()
166 private static ThresholdSensor[] createPostureToSensorMapping( in createPostureToSensorMapping()
173 ThresholdSensor noProxSensor = thresholdSensorImplBuilderFactory in createPostureToSensorMapping()
179 final ThresholdSensor[] sensorMap = in createPostureToSensorMapping()
180 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in createPostureToSensorMapping()
191 Map<String, ThresholdSensor> typeToSensorMap = new HashMap<>(); in createPostureToSensorMapping()
DProximitySensorImpl.java63 ThresholdSensor mPrimaryThresholdSensor;
64 ThresholdSensor mSecondaryThresholdSensor;
67 private final List<ThresholdSensor.Listener> mListeners = new ArrayList<>();
80 final ThresholdSensor.Listener mPrimaryEventListener = this::onPrimarySensorEvent;
82 final ThresholdSensor.Listener mSecondaryEventListener =
83 new ThresholdSensor.Listener() {
121 @PrimaryProxSensor ThresholdSensor primary, in ProximitySensorImpl()
122 @SecondaryProxSensor ThresholdSensor secondary, in ProximitySensorImpl()
194 public void register(ThresholdSensor.Listener listener) { in register()
246 public void unregister(ThresholdSensor.Listener listener) { in unregister()
[all …]
DProximitySensor.java23 public interface ProximitySensor extends ThresholdSensor {
DThresholdSensor.java22 public interface ThresholdSensor { interface
DProximityCheck.java37 private final ThresholdSensor.Listener mListener;
DThresholdSensorImpl.java39 public class ThresholdSensorImpl implements ThresholdSensor {
318 public ThresholdSensor build() { in build()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensorTest.java62 private ThresholdSensor[] mPrimaryProxSensors;
63 private ThresholdSensor[] mSecondaryProxSensors;
89 mPrimaryProxSensors = new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in setupProximitySensors()
91 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in setupProximitySensors()
147 mPostureDependentProximitySensor.register(mock(ThresholdSensor.Listener.class)); in proxSensorRegisters_proxSensorValid()
157 mPostureDependentProximitySensor.register(mock(ThresholdSensor.Listener.class)); in proxSensorReregisters_postureChangesAndNewlySupportsProx()
DProximitySensorImplDualTest.java241 ThresholdSensor.Listener listenerA = event -> mProximitySensor.pause(); in testUnregisterDuringCallback()
343 ThresholdSensor.Listener cancelingListener = event -> mProximitySensor.pause(); in testSecondaryCancelsSecondary()
432 private static class TestableListener implements ThresholdSensor.Listener {
DProximityCheckTest.java117 ThresholdSensor.Listener emptyListener = event -> { }; in testProxDoesntCancelOthers()
DProximitySensorImplSingleTest.java233 private static class TestableListener implements ThresholdSensor.Listener {
DThresholdSensorImplTest.java378 static class TestableListener implements ThresholdSensor.Listener {
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeThresholdSensor.java22 public class FakeThresholdSensor implements ThresholdSensor {
53 public void register(ThresholdSensor.Listener listener) { in register()
58 public void unregister(ThresholdSensor.Listener listener) { in unregister()
DFakeProximitySensor.java27 ThresholdSensor primary, in FakeProximitySensor()
28 ThresholdSensor secondary, in FakeProximitySensor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java54 import com.android.systemui.util.sensors.ThresholdSensor;
137 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testRegisterSensor()
175 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor()
183 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_QS()
185 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_QS()
193 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_Bouncer()
195 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_Bouncer()
207 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_StateTransition()
222 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testRegisterSensor_OccludingActivity_sceneContainerDisabled()
237 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testRegisterSensor_OccludingActivity_sceneContainerEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollectorImpl.java50 import com.android.systemui.util.sensors.ThresholdSensor;
105 private final ThresholdSensor.Listener mSensorEventListener = this::onProximityEvent;