/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
H A D | EllipseOverlapDetector.kt | 43 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 D | BoundingBoxOverlapDetector.kt | 31 touchData: NormalizedTouchData, 44 return touchData.isWithinBounds(scaledSensorBounds)
|
H A D | SinglePointerTouchProcessor.kt | 46 val touchData = List(event.pointerCount) { event.normalize(it, overlayParams) } regex 48 touchData 57 return PreprocessedTouch(touchData, previousPointerOnSensorId, pointersOnSensor)
|
H A D | OverlapDetector.kt | 24 touchData: NormalizedTouchData,
|
H A D | TouchProcessorResult.kt | 37 val touchData: NormalizedTouchData
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/udfps/ |
H A D | FakeOverlapDetector.kt | 25 touchData: NormalizedTouchData, 29 return shouldReturn[touchData.pointerId]
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 362 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 D | Painting.kt | 217 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 D | UdfpsControllerTest.java | 1322 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 D | NormalizedTouchDataTest.kt | 18 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) regex 19 val actual = touchData.isWithinBounds(SENSOR)
|
H A D | BoundingBoxOverlapDetectorTest.kt | 35 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) regex 36 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY)
|
H A D | EllipseOverlapDetectorTest.kt | 39 val touchData = regex 46 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY)
|
H A D | SinglePointerTouchProcessorTest.kt | 629 touchData = expectedTouchData,
|