Searched refs:createSensorEvent (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ProximityClassifierTest.java | 78 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testPass_mostlyUncovered() 79 mClassifier.onProximityEvent(createSensorEvent(false, 2)); in testPass_mostlyUncovered() 88 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testPass_quickSettings() 89 mClassifier.onProximityEvent(createSensorEvent(false, 11)); in testPass_quickSettings() 97 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testFail_covered() 98 mClassifier.onProximityEvent(createSensorEvent(false, 11)); in testFail_covered() 106 mClassifier.onProximityEvent(createSensorEvent(true, 1)); in testFail_mostlyCovered() 107 mClassifier.onProximityEvent(createSensorEvent(true, 95)); in testFail_mostlyCovered() 108 mClassifier.onProximityEvent(createSensorEvent(true, 96)); in testFail_mostlyCovered() 109 mClassifier.onProximityEvent(createSensorEvent(false, 100)); in testFail_mostlyCovered() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 128 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness() 143 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness() 174 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMaxBrightness() 189 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMaxBrightness()
|
D | BrightnessTrackerTest.java | 258 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testBrightnessEvent() 291 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1000.0f)); in testBrightnessFullPopulatedEvent() 325 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testIgnoreAutomaticBrightnessChange() 359 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testLimitedBufferSize() 362 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1.0f)); in testLimitedBufferSize() 385 mInjector.mSensorListener.onSensorChanged(createSensorEvent(i + 1.0f)); in testLimitedSensorEvents() 541 mInjector.mSensorListener.onSensorChanged(createSensorEvent(2000.0f)); in testWriteThenRead() 544 mInjector.mSensorListener.onSensorChanged(createSensorEvent(3000.0f)); in testWriteThenRead() 589 mInjector.mSensorListener.onSensorChanged(createSensorEvent(1000.0f)); in testWritePrunesOldEvents() 591 mInjector.mSensorListener.onSensorChanged(createSensorEvent(2000.0f)); in testWritePrunesOldEvents() [all …]
|
D | TestUtils.java | 29 public static SensorEvent createSensorEvent(Sensor sensor, int lux) throws Exception { in createSensorEvent() method in TestUtils
|
/frameworks/base/services/tests/servicestests/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/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 405 private SensorEvent createSensorEvent(int rotation) throws Exception { in createSensorEvent() method in DisplayRotationTests 425 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testReturnsSensorRotation_RotationThawed() 446 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testUpdatesRotationWhenSensorUpdates_RotationThawed() 461 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testNotifiesChoiceWhenSensorUpdates_RotationLocked() 476 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_180)); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() 494 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_180)); in testReturnsUserRotation_SensorEnabled_RotationLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 260 SensorEvent event = createSensorEvent(values.length); in sendSensorEvent() 267 private SensorEvent createSensorEvent(int valuesSize) { in createSensorEvent() method in FakeSensorManager.FakeGenericSensor
|