Home
last modified time | relevance | path

Searched refs:onSensorChanged (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java84 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_rotationResolverDisabled_useSensorResult()
91 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_callbackNotTheLatest_IgnoreResult()
95 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_callbackNotTheLatest_IgnoreResult()
109 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_normalCase1()
118 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testSensorChanged_normalCase2()
164 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_inLockScreen_doNotCallRotationResolver()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java98 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in faceDownFor2Seconds_withMotion_DoesNotTriggerFaceDown()
103 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f * i, 0.0f, -10.0f)); in faceDownFor2Seconds_withMotion_DoesNotTriggerFaceDown()
115 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in faceDownForHalfSecond_DoesNotTriggerFaceDown()
119 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, -10.0f)); in faceDownForHalfSecond_DoesNotTriggerFaceDown()
222 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 1.0f, 0.0f)); in triggerUnflip()
229 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in triggerFaceDown()
233 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, -10.0f)); in triggerFaceDown()
/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 …]
/frameworks/base/core/java/android/view/
DOrientationEventListener.java118 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in OrientationEventListener.SensorEventListenerImpl
139 mOldListener.onSensorChanged(Sensor.TYPE_ACCELEROMETER, event.values); in onSensorChanged()
DOrientationListener.java96 public void onSensorChanged(int sensor, float[] values) { in onSensorChanged() method in OrientationListener
/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/core/java/android/hardware/
DSensorListener.java90 public void onSensorChanged(int sensor, float[] values); in onSensorChanged() method
DSensorEventListener.java43 public void onSensorChanged(SensorEvent event); in onSensorChanged() method
DLegacySensorManager.java258 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in LegacySensorManager.LegacyListener
268 mTarget.onSensorChanged(SensorManager.SENSOR_ORIENTATION_RAW, v); in onSensorChanged()
272 mTarget.onSensorChanged(SensorManager.SENSOR_ORIENTATION, v); in onSensorChanged()
275 mTarget.onSensorChanged(legacyType, v); in onSensorChanged()
DSensorEventCallback.java30 public void onSensorChanged(SensorEvent event) {} in onSensorChanged() method in SensorEventCallback
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DClassifier.java80 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in Classifier
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DDeviceStateProviderImplTest.java279 provider.onSensorChanged(event0); in create_sensor()
291 provider.onSensorChanged(event1); in create_sensor()
303 provider.onSensorChanged(event2); in create_sensor()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java51 void onSensorChanged(SensorEvent event); in onSensorChanged() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java118 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
125 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java73 public final void onSensorChanged(SensorEvent event) { in onSensorChanged() method in MotionSensor
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
DBalls.java59 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in Balls
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java69 verify(mListener).onSensorChanged(any()); in registerListenerImpl()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java79 public final void onSensorChanged(SensorEvent event) { in onSensorChanged() method in MotionSensorWTime
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java474 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()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java106 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in SensorNotificationService
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java208 public void onSensorChanged(SensorEvent event) {
/frameworks/base/services/core/java/com/android/server/wm/
DWindowOrientationListener.java402 public abstract void onSensorChanged(SensorEvent event); in onSensorChanged() method in WindowOrientationListener.OrientationJudge
680 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in WindowOrientationListener.AccelSensorJudge
1141 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in WindowOrientationListener.OrientationSensorJudge
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java137 public void onSensorChanged(SensorEvent event) { in onSensorChanged() method in DozeScreenBrightness
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
DGlassView.kt67 override fun onSensorChanged(event: SensorEvent?) { in onSensorChanged() method

123