/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeSensorManager.java | 68 createSensor(Sensor.TYPE_PROXIMITY, null, 1 /* SENSOR_FLAG_WAKE_UP_SENSOR */); in FakeSensorManager() 73 mFakeLightSensor = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT, null)), in FakeSensorManager() 74 mFakeTapSensor = new FakeGenericSensor(createSensor(99, TAP_SENSOR_TYPE)), in FakeSensorManager() 75 mFakeLightSensor2 = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT, null)) in FakeSensorManager() 204 private Sensor createSensor(int type, @Nullable String stringType) throws Exception { in createSensor() method in FakeSensorManager 205 return createSensor(type, stringType, 0 /* flags */); in createSensor() 208 private Sensor createSensor(int type, @Nullable String stringType, int flags) throws Exception { in createSensor() method in FakeSensorManager
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | TestUtils.java | 69 public static Sensor createSensor(int type, String strType) throws Exception { in createSensor() method in TestUtils 77 public static Sensor createSensor(int type, String strType, float maximumRange) in createSensor() method in TestUtils 87 public static Sensor createSensor(String type, String name) { in createSensor() method in TestUtils
|
D | DisplayPowerProximityStateControllerTest.java | 181 TestUtils.createSensor(Sensor.TYPE_PROXIMITY, "proximity")); in isProximitySensorAvailableReturnsTrueWhenNotAvailableAndHasDefault() 194 TestUtils.createSensor(Sensor.TYPE_PROXIMITY, "proximity")); in isProximitySensorAvailableReturnsFalseWhenNotAvailableHasDefaultNonDefaultDisplay() 206 TestUtils.createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_PROXIMITY)); in isProximitySensorAvailableReturnsTrueWhenNoSensorConfigured() 220 Sensor newProxSensor = TestUtils.createSensor( in notifyDisplayDeviceChangedReloadsTheProximitySensor() 357 mProximitySensor = TestUtils.createSensor( in setUpProxSensor()
|
D | ScreenOffBrightnessSensorControllerTest.java | 66 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
|
D | AutomaticBrightnessControllerTest.java | 113 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
|
D | DisplayPowerControllerTest.java | 1996 mProxSensor = TestUtils.createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_PROXIMITY, in setUpSensors() 1998 Sensor screenOffBrightnessSensor = TestUtils.createSensor( in setUpSensors()
|
D | DisplayManagerServiceTest.java | 2424 Sensor testSensor = TestUtils.createSensor(testSensorType, testSensorName); 2456 Sensor testSensor = TestUtils.createSensor(testSensorType, testSensorName);
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | SensorPowerCalculatorTest.java | 61 Sensor sensor1 = createSensor(SENSOR_HANDLE_1, Sensor.TYPE_AMBIENT_TEMPERATURE, 360); in testTimerBasedModel() 62 Sensor sensor2 = createSensor(SENSOR_HANDLE_2, Sensor.TYPE_STEP_COUNTER, 720); in testTimerBasedModel() 95 private Sensor createSensor(int handle, int type, float power) { in createSensor() method in SensorPowerCalculatorTest
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSensorsTest.java | 301 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureStartStateClosed_registersCorrectSensor() 302 Sensor openedSensor = createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_LIGHT); in testPostureStartStateClosed_registersCorrectSensor() 322 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureChange_registersCorrectSensor() 323 Sensor openedSensor = createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_LIGHT); in testPostureChange_registersCorrectSensor() 351 Sensor closedSensor = createSensor(Sensor.TYPE_LIGHT, Sensor.STRING_TYPE_LIGHT); in testPostureChange_noSensorChange() 352 Sensor openedSensor = createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_LIGHT); in testPostureChange_noSensorChange() 380 createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_PROXIMITY); in testFindSensor() 624 public static Sensor createSensor(int type, String strType) throws Exception { in createSensor() method in DozeSensorsTest
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/ |
D | SensorUtilsTest.java | 51 private static final Sensor TEST_SENSOR = createSensor(); 133 private static Sensor createSensor() { in createSensor() method in SensorUtilsTest
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/ |
D | AmbientSensorTest.java | 72 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp() 73 mAmbientColorSensor = TestUtils.createSensor(AMBIENT_COLOR_TYPE, AMBIENT_COLOR_TYPE_STR); in setUp()
|
D | AmbientLuxTest.java | 100 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp() 101 mAmbientColorSensor = TestUtils.createSensor(AMBIENT_COLOR_TYPE, AMBIENT_COLOR_TYPE_STR); in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | FaceDownDetectorTest.java | 258 event.sensor = createSensor(Sensor.TYPE_ACCELEROMETER, Sensor.STRING_TYPE_ACCELEROMETER); in createTestEvent() 274 private Sensor createSensor(int type, String strType) throws Exception { in createSensor() method in FaceDownDetectorTest
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | SensorInputMapper.h | 137 Sensor createSensor(InputDeviceSensorType sensorType, const Axis& axis);
|
D | SensorInputMapper.cpp | 69 Sensor sensor = createSensor(sensorType, axis); in parseSensorConfiguration() 196 SensorInputMapper::Sensor SensorInputMapper::createSensor(InputDeviceSensorType sensorType, in createSensor() function in android::SensorInputMapper
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | BrightnessClamperControllerTest.java | 104 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 1475 private Sensor createSensor(int type) throws Exception { in createSensor() method in DisplayRotationTests.DisplayRotationBuilder 1575 mFakeOrientationSensor = createSensor(Sensor.TYPE_DEVICE_ORIENTATION); in build()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayModeDirectorTest.java | 3281 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()
|