Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/native/libs/input/tests/
DMotionPredictorMetricsManager_test.cpp71 if (!Matches(FloatNear(target.pressure, epsilon))(arg.pressure)) {
72 *result_listener << "Pressure mismatch. Actual: " << arg.pressure
73 << ", expected: " << target.pressure;
141 .axis(AMOTION_EVENT_AXIS_PRESSURE, groundTruthPoint.pressure); in makeMotionEvent()
156 .axis(AMOTION_EVENT_AXIS_PRESSURE, predictionPoints[0].pressure); in makeMotionEvent()
168 .axis(AMOTION_EVENT_AXIS_PRESSURE, predictionPoints[i].pressure) in makeMotionEvent()
185 .pressure = 0.6f}, in TEST()
194 EXPECT_EQ(groundTruthPoint.pressure, in TEST()
203 predictionPoints{{{.position = Eigen::Vector2f(10.0f, 20.0f), .pressure = 0.6f}, in TEST()
206 {{.position = Eigen::Vector2f(11.0f, 22.0f), .pressure = 0.5f}, in TEST()
[all …]
DTfLiteMotionPredictor_test.cpp91 .pressure = 0, in TEST()
96 .pressure = 0.4, in TEST()
101 .pressure = 0.5, in TEST()
106 .pressure = 0, in TEST()
152 buffers.pushSample(/*timestamp=*/1, {.position = {.x = 100, .y = 200}, .pressure = 0.2}); in TEST()
153 buffers.pushSample(/*timestamp=*/2, {.position = {.x = 150, .y = 250}, .pressure = 0.4}); in TEST()
154 buffers.pushSample(/*timestamp=*/3, {.position = {.x = 180, .y = 280}, .pressure = 0.6}); in TEST()
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dball_physics.rscript21 void touch(float x, float y, float pressure, int id) {
28 touchPressure[id] = pressure;
33 float pressure = 0;
67 pressure += f;
82 pressure += length(pfv);
139 // low pressure ~500, high ~2500
140 pressure *= 12.f;
141 ball->pressure = pressure;
143 //rsDebug("p ", pressure);
146 color.r = pow(pressure, 0.25f) / 12.f;
[all …]
Dballs.rsh6 float pressure;
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DSpotFilter.kt50 var pressure = 0f in filterInto() variable
56 pressure += pi.pressure * wi_press in filterInto()
73 out.pressure = pressure / w_press in filterInto()
DPainting.kt188 val newR = Math.max(1f, powf(adjustPressure(s.pressure), 2f).toFloat() * _brushWidth) in plot()
227 private fun adjustPressure(pressure: Float): Float { in adjustPressure()
228 if (pressure > devicePressureMax) devicePressureMax = pressure in adjustPressure()
229 if (pressure < devicePressureMin) devicePressureMin = pressure in adjustPressure()
230 return invlerp(pressure, devicePressureMin, devicePressureMax) in adjustPressure()
/frameworks/base/core/java/android/hardware/input/
DVirtualStylusMotionEvent.java98 int pressure, int tiltX, int tiltY, long eventTimeNanos) { in VirtualStylusMotionEvent() argument
103 mPressure = pressure; in VirtualStylusMotionEvent()
322 @IntRange(from = PRESSURE_MIN, to = PRESSURE_MAX) int pressure) { in setPressure()
323 if (pressure < PRESSURE_MIN || pressure > PRESSURE_MAX) { in setPressure()
327 mPressure = pressure; in setPressure()
DVirtualTouchEvent.java102 float x, float y, float pressure, float majorAxisSize, long eventTimeNanos) { in VirtualTouchEvent() argument
108 mPressure = pressure; in VirtualTouchEvent()
330 public @NonNull Builder setPressure(@FloatRange(from = 0f) float pressure) { in setPressure()
331 if (pressure < 0f) { in setPressure()
334 mPressure = pressure; in setPressure()
/frameworks/native/services/inputflinger/reader/mapper/
DSingleTouchInputMapper.cpp47 (mRawPointerAxes.pressure.valid && in syncTouch()
55 outPointer.pressure = mSingleTouchMotionAccumulator.getAbsolutePressure(); in syncTouch()
77 getAbsoluteAxisInfo(ABS_PRESSURE, &mRawPointerAxes.pressure); in configureRawPointerAxes()
DExternalStylusInputMapper.cpp87 mStylusState.pressure = (rawPressure - mRawPressureAxis.minValue) / in sync()
90 mStylusState.pressure = mTouchButtonAccumulator.isHovering() ? 0.0f : 1.0f; in sync()
DMultiTouchInputMapper.cpp101 outPointer.pressure = inSlot.getPressure(); in syncTouch()
136 (mRawPointerAxes.pressure.valid && inSlot.getPressure() <= 0)); in syncTouch()
199 getAbsoluteAxisInfo(ABS_MT_PRESSURE, &mRawPointerAxes.pressure); in configureRawPointerAxes()
/frameworks/native/services/vr/virtual_touchpad/
DDvrVirtualTouchpadClient.cpp34 float y, float pressure) { in dvrVirtualTouchpadTouch() argument
35 return FromC(client)->Touch(touchpad, x, y, pressure); in dvrVirtualTouchpadTouch()
DVirtualTouchpadClient.cpp49 status_t Touch(int touchpad, float x, float y, float pressure) override { in Touch() argument
53 return service_->touch(touchpad, x, y, pressure).transactionError(); in Touch()
DVirtualTouchpadEvdev.cpp93 float pressure) { in Touch() argument
100 touchpad.touches = ((touchpad.touches & 1) << 1) | (pressure > 0); in Touch()
101 ALOGV("(%f,%f) %f -> (%" PRId32 ",%" PRId32 ") %d", x, y, pressure, device_x, in Touch()
DVirtualTouchpadService.cpp70 float pressure) { in touch() argument
74 if (const status_t error = touchpad_->Touch(touchpad, x, y, pressure)) { in touch()
/frameworks/base/data/keyboards/
DVendor_05ac_Product_030e.idc20 # We are using raw touch major value as pressure value, so set the Palm
21 # pressure threshold high.
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java343 final float pressure = event.getPressure(); in measureTouchPressure() local
347 mPressureMin = mPressureMax = pressure; in measureTouchPressure()
351 if (pressure < mPressureMin) mPressureMin = pressure; in measureTouchPressure()
352 if (pressure > mPressureMax) mPressureMax = pressure; in measureTouchPressure()
/frameworks/native/services/inputflinger/tests/
DUinputDevice.cpp155 void UinputExternalStylusWithPressure::setPressure(int32_t pressure) { in setPressure() argument
156 injectEvent(EV_ABS, ABS_PRESSURE, pressure); in setPressure()
234 void UinputTouchScreen::sendPressure(int32_t pressure) { in sendPressure() argument
235 injectEvent(EV_ABS, ABS_MT_PRESSURE, pressure); in sendPressure()
/frameworks/native/services/inputflinger/reader/include/
DStylusState.h33 std::optional<float> pressure{};
/frameworks/native/libs/input/
DVirtualInputDevice.cpp319 float locationX, float locationY, float pressure, in writeTouchEvent() argument
352 if (!isnan(pressure)) { in writeTouchEvent()
353 if (!writeInputEvent(EV_ABS, ABS_MT_PRESSURE, pressure, eventTime)) { in writeTouchEvent()
424 int32_t locationY, int32_t pressure, int32_t tiltX, in writeMotionEvent() argument
464 if (!writeInputEvent(EV_ABS, ABS_PRESSURE, pressure, eventTime)) { in writeMotionEvent()
465 ALOGE("Unsupported pressure passed for stylus: %d.", pressure); in writeMotionEvent()
DMotionPredictorMetricsManager.cpp83 .pressure = in onRecord()
126 .pressure = in onPredict()
217 const float pressureError = predictionPoint.pressure - latestGroundTruthPoint.pressure; in updateAggregatedMetrics()
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/
DIVirtualTouchpadService.aidl28 void touch(int touchpad, float x, float y, float pressure) = 2; in touch() argument
/frameworks/base/core/java/android/view/
DMotionEvent.java2161 float x, float y, float pressure, float size, int metaState, in obtain() argument
2163 return obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in obtain()
2201 float x, float y, float pressure, float size, int metaState, in obtain() argument
2215 pc[0].pressure = pressure; in obtain()
2262 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
2264 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
3690 float pressure, float size, int metaState) { in addBatch() argument
3697 pc[0].pressure = pressure; in addBatch()
4320 public float pressure; field in MotionEvent.PointerCoords
4446 pressure = 0; in clear()
[all …]
/frameworks/native/services/vr/virtual_touchpad/include/dvr/
Dvirtual_touchpad_client.h52 float y, float pressure);
/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventAssignerTest.kt34 val pressure = 3f in createMotionEvent() constant
42 return MotionEvent.obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in createMotionEvent()

1234