Searched refs:mThresholdSensor (Results 1 – 2 of 2) sorted by relevance
48 private ThresholdSensorImpl mThresholdSensor; field in ThresholdSensorImplTest64 mThresholdSensor = (ThresholdSensorImpl) thresholdSensorBuilder in setUp()147 assertFalse(mThresholdSensor.isRegistered()); in testSingleListener()148 mThresholdSensor.register(listener); in testSingleListener()150 assertTrue(mThresholdSensor.isRegistered()); in testSingleListener()160 mThresholdSensor.unregister(listener); in testSingleListener()169 assertFalse(mThresholdSensor.isRegistered()); in testMultiListener()171 mThresholdSensor.register(listenerA); in testMultiListener()173 assertTrue(mThresholdSensor.isRegistered()); in testMultiListener()174 mThresholdSensor.register(listenerB); in testMultiListener()[all …]
48 private FakeThresholdSensor mThresholdSensor; field in ProximitySensorImplSingleTest54 mThresholdSensor = new FakeThresholdSensor(); in setUp()55 mThresholdSensor.setLoaded(true); in setUp()58 mThresholdSensor, new FakeThresholdSensor(), mFakeExecutor, new FakeExecution()); in setUp()70 mThresholdSensor.triggerEvent(false, 0); in testSingleListener()73 mThresholdSensor.triggerEvent(true, 0); in testSingleListener()94 mThresholdSensor.triggerEvent(false, 0); in testMultiListener()99 mThresholdSensor.triggerEvent(true, 1); in testMultiListener()121 mThresholdSensor.triggerEvent(false, 0); in testDuplicateListener()124 mThresholdSensor.triggerEvent(true, 1); in testDuplicateListener()[all …]