/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 158 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/ |
D | FoldableDeviceStateProviderTest.java | 194 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 …]
|
D | BookStyleDeviceStatePolicyTest.java | 675 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/ |
D | SensorControllerTest.java | 140 () -> 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/ |
D | ThresholdSensorImplTest.java | 334 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/ |
D | SensorManagerInternal.java | 82 public abstract boolean sendSensorEvent(int handle, int type, long timestampNanos, in sendSensorEvent() method in SensorManagerInternal
|
D | SensorService.java | 121 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/ |
D | FakeSensorManager.java | 251 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/ |
D | VirtualSensor.java | 142 mVirtualDevice.sendSensorEvent(mToken, event); in sendEvent()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | SensorController.java | 155 boolean sendSensorEvent(@NonNull IBinder token, @NonNull VirtualSensorEvent event) { in sendSensorEvent() method in SensorController 163 return mSensorManagerInternal.sendSensorEvent( in sendSensorEvent()
|
D | VirtualDeviceImpl.java | 999 public boolean sendSensorEvent(@NonNull IBinder token, @NonNull VirtualSensorEvent event) { 1003 return mSensorController.sendSensorEvent(token, event);
|
/frameworks/base/core/java/android/companion/virtual/ |
D | IVirtualDevice.aidl | 230 boolean sendSensorEvent(IBinder token, in VirtualSensorEvent event); in sendSensorEvent() method
|