Home
last modified time | relevance | path

Searched refs:TYPE_LIGHT (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
DSensorUtilsTest.java62 Sensor result = SensorUtils.findSensor(mSensorManager, null, Sensor.TYPE_LIGHT); in testNoSensorData()
68 Sensor result = SensorUtils.findSensor(null, new SensorData(), Sensor.TYPE_LIGHT); in testNoSensorManager()
77 {null, null, Sensor.TYPE_LIGHT, in findSensorData()
80 {TEST_SENSOR_NAME, TEST_SENSOR_TYPE, Sensor.TYPE_LIGHT, in findSensorData()
83 {TEST_SENSOR_NAME, null, Sensor.TYPE_LIGHT, in findSensorData()
86 {"not_matching_name", null, Sensor.TYPE_LIGHT, in findSensorData()
89 {null, TEST_SENSOR_TYPE, Sensor.TYPE_LIGHT, in findSensorData()
92 {null, "not_matching_type", Sensor.TYPE_LIGHT, in findSensorData()
95 {TEST_SENSOR_NAME, "not_matching_type", Sensor.TYPE_LIGHT, in findSensorData()
98 {"not_matching_name", TEST_SENSOR_TYPE, Sensor.TYPE_LIGHT, in findSensorData()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java72 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
81 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_NoCallbacks()
101 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_CallbacksCalled()
DAmbientLuxTest.java100 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
105 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in setUp()
/frameworks/base/core/java/android/service/controls/
DDeviceTypes.java56 public static final @DeviceType int TYPE_LIGHT = 13; field in DeviceTypes
147 TYPE_LIGHT,
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DALSProbeTest.java75 new InputSensorInfo("", "", 0, 0, Sensor.TYPE_LIGHT, 0, 0, 0, 0, 0, 0,
83 when(mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in setup()
349 when(mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(null); in testAwaitLuxWhenNoLightSensor()
DBiometricLoggerTest.java82 when(mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn( in setUp()
83 new Sensor(new InputSensorInfo("", "", 0, 0, Sensor.TYPE_LIGHT, 0, 0, 0, 0, 0, 0, in setUp()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java73 mFakeLightSensor = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT, null)), in FakeSensorManager()
75 mFakeLightSensor2 = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT, null)) in FakeSensorManager()
/frameworks/native/libs/sensor/include/sensor/
DSensor.h51 TYPE_LIGHT = ASENSOR_TYPE_LIGHT, enumerator
/frameworks/base/core/java/android/hardware/
DSensor.java107 public static final int TYPE_LIGHT = 5; field in Sensor
1328 case TYPE_LIGHT: in setType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DRenderInfo.kt95 DeviceTypes.TYPE_LIGHT
115 DeviceTypes.TYPE_LIGHT to R.drawable.ic_device_light,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java301 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureStartStateClosed_registersCorrectSensor()
322 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureChange_registersCorrectSensor()
351 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureChange_noSensorChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestDialogTest.kt106 .setDeviceType(DeviceTypes.TYPE_LIGHT) in setUp()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DScreenOffBrightnessSensorControllerTest.java66 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
DAutomaticBrightnessControllerTest.java113 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DALSProbe.java99 ? sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) : null; in ALSProbe()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java252 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AmbientBrightnessSensor()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DCameraPrivacyLightController.java155 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in CameraPrivacyLightController()
/frameworks/base/services/core/java/com/android/server/input/
DAmbientKeyboardBacklightController.java270 ambientSensor.sensorName, Sensor.TYPE_LIGHT); in getAmbientLightSensor()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DCameraPrivacyLightControllerTest.java153 doReturn(mLightSensor).when(mSensorManager).getDefaultSensor(Sensor.TYPE_LIGHT); in prepareCameraPrivacyLightController()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessClamperControllerTest.java104 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessClamperController.java340 name, Sensor.TYPE_LIGHT); in getLightSensor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsControllerImplTest.kt967 deviceType = DeviceTypes.TYPE_LIGHT, in <lambda>()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DDisplayModeDirectorTest.java3281 Sensor lightSensorOne = TestUtils.createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testSensorReloadOnDeviceSwitch()
3282 Sensor lightSensorTwo = TestUtils.createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testSensorReloadOnDeviceSwitch()
3622 return TestUtils.createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in createLightSensor()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java2217 ? Sensor.TYPE_LIGHT : SensorUtils.NO_FALLBACK; in loadAmbientLightSensor()
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java2235 mLightSensorName, Sensor.TYPE_LIGHT); in getLightSensor()

12