Home
last modified time | relevance | path

Searched refs:touchData (Results 1 – 13 of 13) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
H A DEllipseOverlapDetector.kt43 touchData: NormalizedTouchData,
48 if (touchData.isWithinBounds(nativeSensorBounds)) {
53 if (!touchData.isWithinBounds(nativeOverlayBounds)) {
76 if (checkPoint(Point(x, y), touchData)) {
115 private fun checkPoint(point: Point, touchData: NormalizedTouchData): Boolean {
119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x)
120 val b: Float = sin(touchData.orientation) * (point.y - touchData.y)
121 val c: Float = sin(touchData.orientation) * (point.x - touchData.x)
122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y)
124 (a + b) * (a + b) / ((touchData.minor / 2) * (touchData.minor / 2)) +
[all …]
H A DBoundingBoxOverlapDetector.kt31 touchData: NormalizedTouchData,
44 return touchData.isWithinBounds(scaledSensorBounds)
H A DSinglePointerTouchProcessor.kt46 val touchData = List(event.pointerCount) { event.normalize(it, overlayParams) } regex
48 touchData
57 return PreprocessedTouch(touchData, previousPointerOnSensorId, pointersOnSensor)
H A DOverlapDetector.kt24 touchData: NormalizedTouchData,
H A DTouchProcessorResult.kt37 val touchData: NormalizedTouchData
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/udfps/
H A DFakeOverlapDetector.kt25 touchData: NormalizedTouchData,
29 return shouldReturn[touchData.pointerId]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java362 final JSONObject touchData = new JSONObject( in syncTouchPressure() local
364 if (touchData.has("min")) { in syncTouchPressure()
365 mPressureMin = Math.min(mPressureMin, touchData.getDouble("min")); in syncTouchPressure()
367 if (touchData.has("max")) { in syncTouchPressure()
368 mPressureMax = Math.max(mPressureMax, touchData.getDouble("max")); in syncTouchPressure()
371 touchData.put("min", mPressureMin); in syncTouchPressure()
372 touchData.put("max", mPressureMax); in syncTouchPressure()
375 touchData.toString()); in syncTouchPressure()
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
H A DPainting.kt217 val touchData = JSONObject( regex
219 if (touchData.has("min")) devicePressureMin = touchData.getDouble("min").toFloat()
220 if (touchData.has("max")) devicePressureMax = touchData.getDouble("max").toFloat()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DUdfpsControllerTest.java1322 InteractionEvent.DOWN, 1 /* pointerId */, touchData); in givenAcceptFingerDownEvent()
1324 InteractionEvent.UP, 1 /* pointerId */, touchData); in givenAcceptFingerDownEvent()
1391 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_ignoreIfAuthPaused()
1435 0 /* pointerId */, touchData); in onTouch_withNewTouchDetection_ignoreAuthPauseIfFingerDown()
1438 -1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_ignoreAuthPauseIfFingerDown()
1494 InteractionEvent.DOWN, 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_pilferPointer()
1524 InteractionEvent.UNCHANGED, 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_pilferPointer()
1542 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_doNotPilferPointer()
1581 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_pilferPointerWhenAltBouncerShowing()
1621 1 /* pointerId */, touchData); in onTouch_withNewTouchDetection_qsDrag_processesTouchWhenAlternateBouncerVisible()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
H A DNormalizedTouchDataTest.kt18 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) regex
19 val actual = touchData.isWithinBounds(SENSOR)
H A DBoundingBoxOverlapDetectorTest.kt35 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) regex
36 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY)
H A DEllipseOverlapDetectorTest.kt39 val touchData = regex
46 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY)
H A DSinglePointerTouchProcessorTest.kt629 touchData = expectedTouchData,