Home
last modified time | relevance | path

Searched refs:mLightSensor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java62 private Sensor mLightSensor; field in AmbientSensorTest
72 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
81 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_NoCallbacks()
95 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 100)); in testAmbientBrightnessSensorCallback_NoCallbacks()
101 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_CallbacksCalled()
118 verify(mSensorManagerMock).registerListener(captor.capture(), eq(mLightSensor), in testAmbientBrightnessSensorCallback_CallbacksCalled()
121 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, luxValue)); in testAmbientBrightnessSensorCallback_CallbacksCalled()
129 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
DAmbientLuxTest.java64 private Sensor mLightSensor; field in AmbientLuxTest
79 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
84 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in setUp()
85 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java51 private final Sensor mLightSensor; field in DozeScreenBrightness
78 mLightSensor = lightSensor; in DozeScreenBrightness()
158 if (mLightSensor == null) { in updateBrightnessAndReady()
202 if (enabled && !mRegistered && mLightSensor != null) { in setLightSensorEnabled()
204 mRegistered = mSensorManager.registerListener(this, mLightSensor, in setLightSensorEnabled()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java87 private final Sensor mLightSensor; field in AutomaticBrightnessController
273 mLightSensor = lightSensor; in AutomaticBrightnessController()
439 pw.println(" mLightSensor=" + mLightSensor); in dump()
482 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in setLightSensorEnabled()
532 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in adjustLightSensorRate()
DDisplayModeDirector.java817 private Sensor mLightSensor; field in DisplayModeDirector.BrightnessObserver
974 mLightSensor = lightSensor; in restartObserver()
980 mLightSensor = null; in restartObserver()
1064 mLightSensor, LIGHT_SENSOR_RATE_MS * 1000, mHandler); in updateSensorStatus()