Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
H A 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()
H A 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 …]
H A DPostureDependentProximitySensor.java37 private final ThresholdSensor[] mPostureToPrimaryProxSensorMap;
38 private final ThresholdSensor[] mPostureToSecondaryProxSensorMap;
42 @PrimaryProxSensor ThresholdSensor[] postureToPrimaryProxSensorMap, in PostureDependentProximitySensor()
43 @SecondaryProxSensor ThresholdSensor[] postureToSecondaryProxSensorMap, in PostureDependentProximitySensor()
69 ThresholdSensor newPrimaryProx = mPostureToPrimaryProxSensorMap[mDevicePosture]; in chooseSensors()
70 ThresholdSensor newSecondaryProx = mPostureToSecondaryProxSensorMap[mDevicePosture]; in chooseSensors()
H A DProximitySensor.java23 public interface ProximitySensor extends ThresholdSensor {
H A DThresholdSensor.java22 public interface ThresholdSensor { interface
H A DThresholdSensorImpl.java39 public class ThresholdSensorImpl implements ThresholdSensor {
318 public ThresholdSensor build() { in build()
H A DProximityCheck.java37 private final ThresholdSensor.Listener mListener;
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DFalsingCollectorImplTest.java44 import com.android.systemui.util.sensors.ThresholdSensor;
95 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testRegisterSensor()
133 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor()
141 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_QS()
143 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_QS()
151 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_Bouncer()
153 verify(mProximitySensor).register(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_Bouncer()
165 verify(mProximitySensor).unregister(any(ThresholdSensor.Listener.class)); in testUnregisterSensor_StateTransition()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
H A 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()
H A DFakeProximitySensor.java27 ThresholdSensor primary, in FakeProximitySensor()
28 ThresholdSensor secondary, in FakeProximitySensor()
H A DPostureDependentProximitySensorTest.java63 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE], in setUp()
64 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE], in setUp()
H A 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 {
H A DProximityCheckTest.java117 ThresholdSensor.Listener emptyListener = event -> { }; in testProxDoesntCancelOthers()
H A DProximitySensorImplSingleTest.java233 private static class TestableListener implements ThresholdSensor.Listener {
H A DThresholdSensorImplTest.java377 static class TestableListener implements ThresholdSensor.Listener {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingCollectorImpl.java39 import com.android.systemui.util.sensors.ThresholdSensor;
74 private final ThresholdSensor.Listener mSensorEventListener = this::onProximityEvent;