Home
last modified time | relevance | path

Searched refs:sensorEvent (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DProximityClassifier.java100 public void onSensorEvent(SensorEvent sensorEvent) { in onSensorEvent() argument
101 if (sensorEvent.sensor.getType() == Sensor.TYPE_PROXIMITY) { in onSensorEvent()
102 logDebug("Sensor is: " + (sensorEvent.values[0] < sensorEvent.sensor.getMaximumRange()) in onSensorEvent()
103 + " at time " + sensorEvent.timestamp); in onSensorEvent()
105 sensorEvent.values[0] < sensorEvent.sensor.getMaximumRange(), in onSensorEvent()
106 sensorEvent.timestamp); in onSensorEvent()
DFalsingClassifier.java103 void onSensorEvent(SensorEvent sensorEvent) {}; in onSensorEvent() argument
DBrightLineFalsingManager.java156 private void onSensorEvent(SensorEvent sensorEvent) { in onSensorEvent() argument
159 mClassifiers.forEach((classifier) -> classifier.onSensorEvent(sensorEvent)); in onSensorEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DProximityClassifierTest.java143 SensorEvent sensorEvent = Mockito.mock(SensorEvent.class); in createSensorEvent() local
147 sensorEvent.sensor = sensor; in createSensorEvent()
148 sensorEvent.timestamp = timestampMs * NS_PER_MS; in createSensorEvent()
154 valuesField.set(sensorEvent, sensorValue); in createSensorEvent()
162 return sensorEvent; in createSensorEvent()
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.cpp114 sensors_event_t* sensorEvent = &mQueue[mQueue.size() - 1]; in onEvent() local
116 sensorEvent); in onEvent()