Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DTestUtils.java20 import android.hardware.SensorEvent;
29 public static SensorEvent createSensorEvent(Sensor sensor, int lux) throws Exception { in createSensorEvent()
30 final Constructor<SensorEvent> constructor = in createSensorEvent()
31 SensorEvent.class.getDeclaredConstructor(int.class); in createSensorEvent()
33 final SensorEvent event = constructor.newInstance(1); in createSensorEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
DSensorLoggerSession.java21 import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.SensorEvent;
44 private ArrayList<SensorEvent> mSensorEvents = new ArrayList<>();
75 public void addSensorEvent(android.hardware.SensorEvent eventOrig, long systemTimeNanos) { in addSensorEvent()
76 SensorEvent event = sensorEventToProto(eventOrig, systemTimeNanos); in addSensorEvent()
125 private SensorEvent sensorEventToProto(android.hardware.SensorEvent ev, long sysTimeNanos) { in sensorEventToProto()
126 SensorEvent proto = new SensorEvent(); in sensorEventToProto()
/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/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
DFakeSensorManager.java24 import android.hardware.SensorEvent;
260 SensorEvent event = createSensorEvent(values.length); in sendSensorEvent()
267 private SensorEvent createSensorEvent(int valuesSize) { in createSensorEvent()
268 SensorEvent event; in createSensorEvent()
270 Constructor<SensorEvent> constr = in createSensorEvent()
271 SensorEvent.class.getDeclaredConstructor(Integer.TYPE); in createSensorEvent()
/frameworks/base/core/java/android/hardware/
DSensorEvent.java58 public class SensorEvent { class
655 SensorEvent(int valueSize) { in SensorEvent() method in SensorEvent
DSensorEventListener.java43 public void onSensorChanged(SensorEvent event); in onSensorChanged()
DSensorEventCallback.java30 public void onSensorChanged(SensorEvent event) {} in onSensorChanged()
DSystemSensorManager.java780 private final SparseArray<SensorEvent> mSensorsEvents = new SparseArray<SensorEvent>();
790 SensorEvent t = new SensorEvent(Sensor.getMaxLengthValuesArray(sensor, in addSensorEvent()
815 SensorEvent t = null; in dispatchSensorEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DClassifier.java20 import android.hardware.SensorEvent;
70 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
DProximityClassifier.java20 import android.hardware.SensorEvent;
43 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
DHumanInteractionClassifier.java21 import android.hardware.SensorEvent;
209 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DProximitySensor.java22 import android.hardware.SensorEvent;
48 public synchronized void onSensorChanged(SensorEvent event) {
168 private void onSensorEvent(SensorEvent event) { in onSensorEvent()
/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/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/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/
DSensorNotificationService.java26 import android.hardware.SensorEvent;
108 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
DGestureLauncherService.java28 import android.hardware.SensorEvent;
463 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
488 private void trackCameraLaunchEvent(SensorEvent event) { in trackCameraLaunchEvent()
/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/display/whitebalance/
DAmbientSensor.java22 import android.hardware.SensorEvent;
207 public void onSensorChanged(SensorEvent event) {
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java22 import android.hardware.SensorEvent;
171 public void onSensorChanged(SensorEvent event) { in createWithProxSensor()
DWindowOrientationListener.java24 import android.hardware.SensorEvent;
348 public abstract void onSensorChanged(SensorEvent event); in onSensorChanged()
626 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
1048 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java102 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
109 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java24 import android.hardware.SensorEvent;
135 public void onSensorChanged(SensorEvent event) { in onSensorChanged()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java50 import android.hardware.SensorEvent;
405 private SensorEvent createSensorEvent(int rotation) throws Exception { in createSensorEvent()
406 final Constructor<SensorEvent> constructor = in createSensorEvent()
407 SensorEvent.class.getDeclaredConstructor(int.class); in createSensorEvent()
409 final SensorEvent event = constructor.newInstance(1); in createSensorEvent()

12