Home
last modified time | relevance | path

Searched refs:createSensor (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java68 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/
DTestUtils.java69 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
DDisplayPowerProximityStateControllerTest.java181 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()
DScreenOffBrightnessSensorControllerTest.java66 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
DAutomaticBrightnessControllerTest.java113 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
DDisplayPowerControllerTest.java1996 mProxSensor = TestUtils.createSensor(Sensor.TYPE_PROXIMITY, Sensor.STRING_TYPE_PROXIMITY, in setUpSensors()
1998 Sensor screenOffBrightnessSensor = TestUtils.createSensor( in setUpSensors()
DDisplayManagerServiceTest.java2424 Sensor testSensor = TestUtils.createSensor(testSensorType, testSensorName);
2456 Sensor testSensor = TestUtils.createSensor(testSensorType, testSensorName);
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DSensorPowerCalculatorTest.java61 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/
DDozeSensorsTest.java301 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/
DSensorUtilsTest.java51 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/
DAmbientSensorTest.java72 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp()
73 mAmbientColorSensor = TestUtils.createSensor(AMBIENT_COLOR_TYPE, AMBIENT_COLOR_TYPE_STR); in setUp()
DAmbientLuxTest.java100 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/
DFaceDownDetectorTest.java258 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/
DSensorInputMapper.h137 Sensor createSensor(InputDeviceSensorType sensorType, const Axis& axis);
DSensorInputMapper.cpp69 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/
DBrightnessClamperControllerTest.java104 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java1475 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/
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()