Searched refs:ThresholdSensor (Results 1 – 16 of 16) sorted by relevance
39 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()
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 …]
23 public interface ProximitySensor extends ThresholdSensor {
22 public interface ThresholdSensor { interface
37 private final ThresholdSensor.Listener mListener;
39 public class ThresholdSensorImpl implements ThresholdSensor {318 public ThresholdSensor build() { in build()
62 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()
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 {
378 static class TestableListener implements ThresholdSensor.Listener {
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()
54 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()
50 import com.android.systemui.util.sensors.ThresholdSensor;105 private final ThresholdSensor.Listener mSensorEventListener = this::onProximityEvent;