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.java65 private Sensor mLightSensor; field in AmbientLuxTest
82 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
87 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in setUp()
88 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java52 private final Sensor mLightSensor; field in DozeScreenBrightness
81 mLightSensor = lightSensor; in DozeScreenBrightness()
164 if (mLightSensor == null) { in updateBrightnessAndReady()
208 if (enabled && !mRegistered && mLightSensor != null) { in setLightSensorEnabled()
210 mRegistered = mSensorManager.registerListener(this, mLightSensor, in setLightSensorEnabled()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java86 private final Sensor mLightSensor; field in AutomaticBrightnessController
266 mLightSensor = lightSensor; in AutomaticBrightnessController()
432 pw.println(" mLightSensor=" + mLightSensor); in dump()
475 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in setLightSensorEnabled()
525 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in adjustLightSensorRate()
DDisplayModeDirector.java1085 private Sensor mLightSensor; field in DisplayModeDirector.BrightnessObserver
1245 mLightSensor = lightSensor; in restartObserver()
1251 mLightSensor = null; in restartObserver()
1335 mLightSensor, LIGHT_SENSOR_RATE_MS * 1000, mHandler); in updateSensorStatus()