/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | TestUtils.java | 20 import android.hardware.SensorEvent; 32 public static SensorEvent createSensorEvent(Sensor sensor, int value) throws Exception { in createSensorEvent() 39 public static SensorEvent createSensorEvent(Sensor sensor, int value, long timestamp) in createSensorEvent() 41 final Constructor<SensorEvent> constructor = in createSensorEvent() 42 SensorEvent.class.getDeclaredConstructor(int.class); in createSensorEvent() 44 final SensorEvent event = constructor.newInstance(1); in createSensorEvent()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | SensorManagerPlugin.java | 51 void onSensorChanged(SensorEvent event); in onSensorChanged() 79 class SensorEvent { class 90 public SensorEvent(Sensor sensor, int vendorType) { in SensorEvent() method in SensorManagerPlugin.SensorEvent 101 public SensorEvent(Sensor sensor, int vendorType, float[] values) { in SensorEvent() method in SensorManagerPlugin.SensorEvent
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/ |
D | ALSProbeTest.java | 32 import android.hardware.SensorEvent; 96 new SensorEvent(mLightSensor, 1, 1, new float[]{4.0f})); in testEnable() 98 new SensorEvent(mLightSensor, 1, 2, new float[]{value})); in testEnable() 141 new SensorEvent(mLightSensor, 1, 1, new float[]{4.0f})); in testDisabledReportsNegativeValue() 153 new SensorEvent(mLightSensor, 1, 1, new float[]{4.0f})); in testWatchDog() 214 new SensorEvent(mLightSensor, 1, 1, new float[]{v})); in testNextLuxWhenAlreadyEnabled() 222 new SensorEvent(mLightSensor, 1, 1, new float[]{v})); in testNextLuxWhenAlreadyEnabled() 227 new SensorEvent(mLightSensor, 1, 1, new float[]{200f})); in testNextLuxWhenAlreadyEnabled() 236 new SensorEvent(mLightSensor, 1, 1, new float[]{12})); in testNextLuxWhenAlreadyEnabled() 265 new SensorEvent(mLightSensor, 1, 1, new float[]{v})); in testNextLuxWhenNotEnabled() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | SensorEvent.java | 60 public class SensorEvent { class 844 SensorEvent(int valueSize) { in SensorEvent() method in SensorEvent 853 public SensorEvent(@NonNull Sensor sensor, int accuracy, long timestamp, float[] values) { in SensorEvent() method in SensorEvent
|
D | SensorEventListener.java | 43 public void onSensorChanged(SensorEvent event); in onSensorChanged()
|
D | SensorEventCallback.java | 30 public void onSensorChanged(SensorEvent event) {} in onSensorChanged()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeSensorManager.java | 24 import android.hardware.SensorEvent; 270 SensorEvent event = createSensorEvent(values.length); in sendSensorEvent() 277 private SensorEvent createSensorEvent(int valuesSize) { in createSensorEvent() 278 SensorEvent event; in createSensorEvent() 280 Constructor<SensorEvent> constr = in createSensorEvent() 281 SensorEvent.class.getDeclaredConstructor(Integer.TYPE); in createSensorEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | DeviceStateProviderImplTest.java | 41 import android.hardware.SensorEvent; 379 SensorEvent event0 = mock(SensorEvent.class); in create_sensor() 392 SensorEvent event1 = mock(SensorEvent.class); in create_sensor() 405 SensorEvent event2 = mock(SensorEvent.class); in create_sensor() 536 SensorEvent event1 = mock(SensorEvent.class); in test_invalidSensorValues() 546 SensorEvent event2 = mock(SensorEvent.class); in test_invalidSensorValues()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | Classifier.java | 20 import android.hardware.SensorEvent; 83 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | FaceDownDetectorTest.java | 29 import android.hardware.SensorEvent; 253 private SensorEvent createTestEvent(float x, float y, float gravity) throws Exception { in createTestEvent() 254 final Constructor<SensorEvent> constructor = in createTestEvent() 255 SensorEvent.class.getDeclaredConstructor(int.class); in createTestEvent() 257 final SensorEvent event = constructor.newInstance(3); in createTestEvent()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceSensorManager.java | 25 import android.hardware.SensorEvent; 200 SensorEvent event = listener.getSensorEvent(sensor); in onInputSensorChanged() 255 private final SparseArray<SensorEvent> mSensorEvents = new SparseArray<>(); 303 SensorEvent event = new SensorEvent(sensor, SensorManager.SENSOR_STATUS_NO_CONTACT, in addSensor() 333 private SensorEvent getSensorEvent(@NonNull Sensor sensor) { in getSensorEvent() 340 public void sendSensorChanged(SensorEvent event) { in sendSensorChanged() 367 SensorEvent event = (SensorEvent) msg.obj; in handleMessage()
|
/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceSensorManagerTest.java | 35 import android.hardware.SensorEvent; 114 private final BlockingQueue<SensorEvent> mEvents = new LinkedBlockingQueue<>(); 119 public SensorEvent waitForSensorEvent() { in waitForSensorEvent() 129 public void onSensorChanged(SensorEvent event) { in onSensorChanged() 234 SensorEvent event = listener.waitForSensorEvent(); in testInputDeviceSensorListener()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 23 import android.hardware.SensorEvent; 73 public final void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/hinge/ |
D | HingeSensorAngleProvider.kt | 18 import android.hardware.SensorEvent 80 override fun onSensorChanged(event: SensorEvent) { in onSensorChanged()
|
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/ |
D | FoldableDeviceStateProvider.java | 33 import android.hardware.SensorEvent; 108 private SensorEvent mLastHingeAngleSensorEvent = null; 110 private SensorEvent mLastHallSensorEvent = null; 328 public void onSensorChanged(SensorEvent event) { in onSensorChanged() 344 private float getSensorValue(@Nullable SensorEvent sensorEvent) { in getSensorValue() 365 private void dumpSensorValues(@Nullable Sensor sensor, @Nullable SensorEvent event) { in dumpSensorValues() 369 private String toSensorValueString(@Nullable Sensor sensor, @Nullable SensorEvent event) { in toSensorValueString()
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | Balls.java | 42 import android.hardware.SensorEvent; 59 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/interaction/ |
D | HingeController.kt | 22 import android.hardware.SensorEvent 73 override fun onSensorChanged(event: SensorEvent) { in onSensorChanged()
|
D | Gyro2dController.kt | 21 import android.hardware.SensorEvent 85 override fun onSensorChanged(event: SensorEvent) { in onSensorChanged() 238 private fun updateGyroRotation(event: SensorEvent) { in updateGyroRotation()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ScreenOffBrightnessSensorController.java | 21 import android.hardware.SensorEvent; 70 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | WindowOrientationListenerTest.java | 28 import android.hardware.SensorEvent; 58 private SensorEvent mFakeSensorEvent; 76 mFakeSensorEvent = new SensorEvent(mFakeSensor, /* accuracy */ 1, /* timestamp */ 1L, in setUp()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 21 import android.hardware.SensorEvent; 118 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 23 import android.hardware.SensorEvent; 79 public final void onSensorChanged(SensorEvent event) { in onSensorChanged()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DeviceStateProviderImpl.java | 29 import android.hardware.SensorEvent; 308 private final Map<Sensor, SensorEvent> mLatestSensorEvent = new ArrayMap<>(); 586 public void onSensorChanged(SensorEvent event) { in onSensorChanged() 610 SensorEvent sensorEvent = mLatestSensorEvent.get(sensor); in dump() 658 SensorEvent latestEvent = mLatestSensorEvent.get(mSensor); in getAsBoolean() 781 SensorEvent sensorEvent = mLatestSensorEvent.get(sensor); in dumpSensorValues() 786 private String toSensorValueString(Sensor sensor, @Nullable SensorEvent event) { in toSensorValueString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | touch_analytics.proto | 60 message SensorEvent { message 131 repeated SensorEvent sensorEvents = 6;
|
/frameworks/base/services/core/java/com/android/server/ |
D | SensorNotificationService.java | 24 import android.hardware.SensorEvent; 106 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
|