/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ProximityClassifierTest.java | 82 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testPass_mostlyUncovered() 83 mClassifier.onProximityEvent(createSensorEvent(false, 2)); in testPass_mostlyUncovered() 91 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testPass_quickSettings() 92 mClassifier.onProximityEvent(createSensorEvent(false, 11)); in testPass_quickSettings() 100 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testPass_brightnessSlider() 101 mClassifier.onProximityEvent(createSensorEvent(false, 11)); in testPass_brightnessSlider() 110 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testFail_covered() 111 mClassifier.onProximityEvent(createSensorEvent(false, 11)); in testFail_covered() 119 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testFail_mostlyCovered() 120 mClassifier.onProximityEvent(createSensorEvent(true, 95)); in testFail_mostlyCovered() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 226 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness() 240 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness() 269 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, (int) lux1)); in testNoHysteresisAtMaxBrightness() 284 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, (int) lux2)); in testNoHysteresisAtMaxBrightness() 297 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 1000)); in testUserAddUserDataPoint() 319 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, currentLux)); in testRecalculateSplines() 356 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 123)); in testShortTermModelTimesOut() 370 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 1000)); in testShortTermModelTimesOut() 396 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 123)); in testShortTermModelDoesntTimeOut() 415 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 678910)); in testShortTermModelDoesntTimeOut() [all …]
|
D | ScreenOffBrightnessSensorControllerTest.java | 98 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 0)); in testBrightness() 104 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness() 111 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness() 118 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness() 125 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness() 131 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, sensorValue)); in testBrightness() 148 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 1)); in testSensorValueValidTime()
|
D | TestUtils.java | 32 public static SensorEvent createSensorEvent(Sensor sensor, int value) throws Exception { in createSensorEvent() method in TestUtils 33 return createSensorEvent(sensor, value, SystemClock.elapsedRealtimeNanos()); in createSensorEvent() 39 public static SensorEvent createSensorEvent(Sensor sensor, int value, long timestamp) in createSensorEvent() method in TestUtils
|
D | DisplayPowerProximityStateControllerTest.java | 368 mSensorEventListener.onSensorChanged(TestUtils.createSensorEvent(mProximitySensor, 4)); in emitAndValidatePositiveProximityEvent()
|
D | BrightnessTrackerTest.java | 760 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testBackgroundHandlerDelay() 805 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1000.0f)); in testDisplayIdChange() 915 private SensorEvent createSensorEvent(float lux) { in createSensorEvent() method in BrightnessTrackerTest
|
D | DisplayPowerControllerTest.java | 235 listener.onSensorChanged(TestUtils.createSensorEvent(mProxSensor, /* value= */ 5)); in testReleaseProxSuspendBlockersOnExit() 265 listener.onSensorChanged(TestUtils.createSensorEvent(mProxSensor, /* value= */ 1)); in testScreenOffBecauseOfProximity() 275 listener.onSensorChanged(TestUtils.createSensorEvent(mProxSensor, in testScreenOffBecauseOfProximity() 308 listener.onSensorChanged(TestUtils.createSensorEvent(mProxSensor, /* value= */ 1)); in testScreenOffBecauseOfProximity_ProxSensorGone()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 563 private SensorEvent createSensorEvent(int rotation) throws Exception { in createSensorEvent() method in DisplayRotationTests 564 return createSensorEvent(mFakeOrientationSensor, rotation); in createSensorEvent() 567 private SensorEvent createSensorEvent(Sensor sensor, int value) throws Exception { in createSensorEvent() method in DisplayRotationTests 587 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testReturnsSensorRotation_RotationThawed() 605 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testReverseRotation() 609 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_270)); in testReverseRotation() 613 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_0)); in testReverseRotation() 617 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_180)); in testReverseRotation() 662 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testUpdatesRotationWhenSensorUpdates_RotationThawed() 677 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testNotifiesChoiceWhenSensorUpdates_RotationLocked() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/ |
D | AmbientSensorTest.java | 95 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 100)); in testAmbientBrightnessSensorCallback_NoCallbacks() 121 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, luxValue)); in testAmbientBrightnessSensorCallback_CallbacksCalled() 154 listener.onSensorChanged(TestUtils.createSensorEvent(mAmbientColorSensor, colorTempValue)); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeSensorManager.java | 270 SensorEvent event = createSensorEvent(values.length); in sendSensorEvent() 277 private SensorEvent createSensorEvent(int valuesSize) { in createSensorEvent() method in FakeSensorManager.FakeGenericSensor
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | BrightnessClamperControllerTest.java | 280 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 50, mClock.now())); in testAmbientLuxChanges() 283 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 300, mClock.now())); in testAmbientLuxChanges()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayModeDirectorTest.java | 1329 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 20 /*lux*/)); 1343 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 1000 /*lux*/)); 1408 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, /* lux= */ 20)); 1422 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, /* lux= */ 1000)); 1468 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 2000)); 1479 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 9000)); 1530 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 5)); 1537 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 8)); 1547 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 5)); 1553 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 50)); [all …]
|