Home
last modified time | relevance | path

Searched refs:sendSensorEvent (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java158 mSensor.sendSensorEvent(3); in testAod_usesDebugValue()
197 mSensor.sendSensorEvent(3); in doze_doesNotUseLightSensor()
212 mSensor.sendSensorEvent(3); in dozeSuspendTriggers_doesNotUseLightSensor()
227 mSensor.sendSensorEvent(3); in aod_usesLightSensor()
242 mSensor.sendSensorEvent(3); in docked_usesLightSensor()
281 mSensor.sendSensorEvent(1); in testScreenOffAfterPulsing_pausesLightSensor()
339 mSensor.sendSensorEvent(3); // CLOSED sensor in testSensorsSupportPostures_closed()
340 mSensorInner.sendSensorEvent(4); // OPENED sensor in testSensorsSupportPostures_closed()
378 mSensorInner.sendSensorEvent(4); // OPENED sensor in testSensorsSupportPostures_open()
379 mSensor.sendSensorEvent(3); // CLOSED sensor in testSensorsSupportPostures_open()
[all …]
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/
DFoldableDeviceStateProviderTest.java194 sendSensorEvent(mHingeAngleSensor, /* value= */ 100f); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState()
212 sendSensorEvent(mHallSensor, /* value= */ 1f); in test_hallSensorUpdatedFirstTime_switchesToMatchingState()
224 sendSensorEvent(mHingeAngleSensor, /* value= */ 30f); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState()
231 sendSensorEvent(mHingeAngleSensor, /* value= */ 100f); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState()
243 sendSensorEvent(mHallSensor, /* value= */ 0f); in test_hallSensorUpdatedSecondTime_switchesToMatchingState()
251 sendSensorEvent(mHallSensor, /* value= */ 1f); in test_hallSensorUpdatedSecondTime_switchesToMatchingState()
268 sendSensorEvent(mHingeAngleSensor, /* value= */ 100f); in test_invalidSensorValues_onStateChangedIsNotTriggered()
411 sendSensorEvent(mHingeAngleSensor, /* value= */ 0f); in test_previousStateBasedPredicate()
422 sendSensorEvent(mHingeAngleSensor, /* value= */ 180f); in test_previousStateBasedPredicate()
429 sendSensorEvent(mHingeAngleSensor, /* value= */ 180f); in test_previousStateBasedPredicate()
[all …]
DBookStyleDeviceStatePolicyTest.java675 sendSensorEvent(mHingeAngleSensor, new float[]{angle}); in sendHingeAngle()
679 sendSensorEvent(mOrientationSensor, new float[]{orientation}); in sendDeviceOrientation()
706 sendSensorEvent(sensor, values); in sendAccelerometerFlatEvents()
716 private void sendSensorEvent(Sensor sensor, float[] values) { in sendSensorEvent() method in BookStyleDeviceStatePolicyTest
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DSensorControllerTest.java140 () -> sensorController.sendSensorEvent( in sendSensorEvent_invalidToken_throwsException()
151 sensorController.sendSensorEvent(token, mSensorEvent); in sendSensorEvent_success()
152 verify(mSensorManagerInternalMock).sendSensorEvent( in sendSensorEvent_success()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DThresholdSensorImplTest.java334 sensor.sendSensorEvent(lowValue - 1); in testHysteresis()
339 sensor.sendSensorEvent(lowValue + 1); in testHysteresis()
344 sensor.sendSensorEvent(highValue); in testHysteresis()
349 sensor.sendSensorEvent(highValue - 1); in testHysteresis()
355 sensor.sendSensorEvent(lowValue - 1); in testHysteresis()
/frameworks/base/services/core/java/com/android/server/sensors/
DSensorManagerInternal.java82 public abstract boolean sendSensorEvent(int handle, int type, long timestampNanos, in sendSensorEvent() method in SensorManagerInternal
DSensorService.java121 public boolean sendSensorEvent(int handle, int type, long timestampNanos, in sendSensorEvent() method in SensorService.LocalService
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java251 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult()
269 public void sendSensorEvent(float... values) { in sendSensorEvent() method in FakeSensorManager.FakeGenericSensor
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensor.java142 mVirtualDevice.sendSensorEvent(mToken, event); in sendEvent()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DSensorController.java155 boolean sendSensorEvent(@NonNull IBinder token, @NonNull VirtualSensorEvent event) { in sendSensorEvent() method in SensorController
163 return mSensorManagerInternal.sendSensorEvent( in sendSensorEvent()
DVirtualDeviceImpl.java999 public boolean sendSensorEvent(@NonNull IBinder token, @NonNull VirtualSensorEvent event) {
1003 return mSensorController.sendSensorEvent(token, event);
/frameworks/base/core/java/android/companion/virtual/
DIVirtualDevice.aidl230 boolean sendSensorEvent(IBinder token, in VirtualSensorEvent event); in sendSensorEvent() method