Home
last modified time | relevance | path

Searched refs:SensorEvent (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DTestUtils.java20 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/
DSensorManagerPlugin.java51 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/
DALSProbeTest.java32 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/
DSensorEvent.java60 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
DSensorEventListener.java43 public void onSensorChanged(SensorEvent event); in onSensorChanged()
DSensorEventCallback.java30 public void onSensorChanged(SensorEvent event) {} in onSensorChanged()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java24 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/
DDeviceStateProviderImplTest.java41 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/
DClassifier.java20 import android.hardware.SensorEvent;
83 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java29 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/
DInputDeviceSensorManager.java25 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/
DInputDeviceSensorManagerTest.java35 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/
DMotionSensor.java23 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/
DHingeSensorAngleProvider.kt18 import android.hardware.SensorEvent
80 override fun onSensorChanged(event: SensorEvent) { in onSensorChanged()
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/
DFoldableDeviceStateProvider.java33 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/
DBalls.java42 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/
DHingeController.kt22 import android.hardware.SensorEvent
73 override fun onSensorChanged(event: SensorEvent) { in onSensorChanged()
DGyro2dController.kt21 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/
DScreenOffBrightnessSensorController.java21 import android.hardware.SensorEvent;
70 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java28 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/
DOrientationEventListener.java21 import android.hardware.SensorEvent;
118 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java23 import android.hardware.SensorEvent;
79 public final void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java29 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/
Dtouch_analytics.proto60 message SensorEvent { message
131 repeated SensorEvent sensorEvents = 6;
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java24 import android.hardware.SensorEvent;
106 public void onSensorChanged(SensorEvent event) { in onSensorChanged()

123