Home
last modified time | relevance | path

Searched refs:createSensorEvent (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DProximityClassifierTest.java82 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/servicestests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java152 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness()
166 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness()
198 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMaxBrightness()
213 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMaxBrightness()
229 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 1000)); in testUserAddUserDataPoint()
DBrightnessTrackerTest.java293 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testBrightnessEvent()
331 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1000.0f)); in testBrightnessFullPopulatedEvent()
366 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testIgnoreAutomaticBrightnessChange()
400 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testLimitedBufferSize()
403 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testLimitedBufferSize()
426 mInjector.mSensorListener.onSensorChanged(createSensorEvent(i + 1.0f)); in testLimitedSensorEvents()
599 mInjector.mSensorListener.onSensorChanged(createSensorEvent(2000.0f)); in testWriteThenRead()
602 mInjector.mSensorListener.onSensorChanged(createSensorEvent(3000.0f)); in testWriteThenRead()
651 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1000.0f)); in testWritePrunesOldEvents()
653 mInjector.mSensorListener.onSensorChanged(createSensorEvent(2000.0f)); in testWritePrunesOldEvents()
[all …]
DTestUtils.java29 public static SensorEvent createSensorEvent(Sensor sensor, int lux) throws Exception { in createSensorEvent() method in TestUtils
DDisplayModeDirectorTest.java757 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 20 /*lux*/));
767 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 1000 /*lux*/));
805 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 2000));
814 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 9000));
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java95 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/src/com/android/systemui/util/sensors/
DFakeSensorManager.java264 SensorEvent event = createSensorEvent(values.length); in sendSensorEvent()
271 private SensorEvent createSensorEvent(int valuesSize) { in createSensorEvent() method in FakeSensorManager.FakeGenericSensor
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java454 private SensorEvent createSensorEvent(int rotation) throws Exception { in createSensorEvent() method in DisplayRotationTests
474 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testReturnsSensorRotation_RotationThawed()
495 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testUpdatesRotationWhenSensorUpdates_RotationThawed()
510 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testNotifiesChoiceWhenSensorUpdates_RotationLocked()
525 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_180)); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed()
543 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_180)); in testReturnsUserRotation_SensorEnabled_RotationLocked()