Searched refs:ThresholdSensor (Results 1 – 16 of 16) sorted by relevance
47 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()
63 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 …]
37 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()
23 public interface ProximitySensor extends ThresholdSensor {
22 public interface ThresholdSensor { interface
39 public class ThresholdSensorImpl implements ThresholdSensor {318 public ThresholdSensor build() { in build()
37 private final ThresholdSensor.Listener mListener;
44 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()
22 public class FakeThresholdSensor implements ThresholdSensor {53 public void register(ThresholdSensor.Listener listener) { in register()58 public void unregister(ThresholdSensor.Listener listener) { in unregister()
27 ThresholdSensor primary, in FakeProximitySensor()28 ThresholdSensor secondary, in FakeProximitySensor()
63 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE], in setUp()64 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE], in setUp()
241 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 {
117 ThresholdSensor.Listener emptyListener = event -> { }; in testProxDoesntCancelOthers()
233 private static class TestableListener implements ThresholdSensor.Listener {
377 static class TestableListener implements ThresholdSensor.Listener {
39 import com.android.systemui.util.sensors.ThresholdSensor;74 private final ThresholdSensor.Listener mSensorEventListener = this::onProximityEvent;