Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DEllipseOverlapDetector.kt43 touchData: NormalizedTouchData, in isGoodOverlap()
48 if (touchData.isWithinBounds(nativeSensorBounds)) { in isGoodOverlap()
53 if (!touchData.isWithinBounds(nativeOverlayBounds)) { in isGoodOverlap()
76 if (checkPoint(Point(x, y), touchData)) { in isGoodOverlap()
115 private fun checkPoint(point: Point, touchData: NormalizedTouchData): Boolean { in checkPoint()
119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x) in checkPoint()
120 val b: Float = sin(touchData.orientation) * (point.y - touchData.y) in checkPoint()
121 val c: Float = sin(touchData.orientation) * (point.x - touchData.x) in checkPoint()
122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y) in checkPoint()
124 (a + b) * (a + b) / ((touchData.minor / 2) * (touchData.minor / 2)) + in checkPoint()
[all …]
DBoundingBoxOverlapDetector.kt31 touchData: NormalizedTouchData, in isGoodOverlap()
44 return touchData.isWithinBounds(scaledSensorBounds) in isGoodOverlap()
DSinglePointerTouchProcessor.kt46 val touchData = List(event.pointerCount) { event.normalize(it, overlayParams) } in processTouch() constant
48 touchData in processTouch()
57 return PreprocessedTouch(touchData, previousPointerOnSensorId, pointersOnSensor) in processTouch()
DOverlapDetector.kt24 touchData: NormalizedTouchData,
DTouchProcessorResult.kt37 val touchData: NormalizedTouchData constant in com.android.systemui.biometrics.udfps.TouchProcessorResult.ProcessedTouch
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/udfps/
DFakeOverlapDetector.kt25 touchData: NormalizedTouchData, in isGoodOverlap()
29 return shouldReturn[touchData.pointerId] in isGoodOverlap()
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java361 final JSONObject touchData = new JSONObject( in syncTouchPressure() local
363 if (touchData.has("min")) { in syncTouchPressure()
364 mPressureMin = Math.min(mPressureMin, touchData.getDouble("min")); in syncTouchPressure()
366 if (touchData.has("max")) { in syncTouchPressure()
367 mPressureMax = Math.max(mPressureMax, touchData.getDouble("max")); in syncTouchPressure()
370 touchData.put("min", mPressureMin); in syncTouchPressure()
371 touchData.put("max", mPressureMax); in syncTouchPressure()
374 touchData.toString()); in syncTouchPressure()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt217 val touchData = JSONObject( in loadDevicePressureData() constant
219 if (touchData.has("min")) devicePressureMin = touchData.getDouble("min").toFloat() in loadDevicePressureData()
220 if (touchData.has("max")) devicePressureMax = touchData.getDouble("max").toFloat() in loadDevicePressureData()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
DNormalizedTouchDataTest.kt19 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) in <lambda>() constant
20 val actual = touchData.isWithinBounds(SENSOR) in <lambda>()
DBoundingBoxOverlapDetectorTest.kt36 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) in <lambda>() constant
37 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY) in <lambda>()
DEllipseOverlapDetectorTest.kt40 val touchData = in <lambda>() constant
47 val actual = underTest.isGoodOverlap(touchData, SENSOR, OVERLAY) in <lambda>()
DSinglePointerTouchProcessorTest.kt654 touchData = expectedTouchData, in genPositiveTestCases()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerTest.java662 NormalizedTouchData touchData = new NormalizedTouchData(pointerId, displayWidth, in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized() local
665 InteractionEvent.DOWN, 1, touchData); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
751 final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, in fingerDownParameterized() local
754 InteractionEvent.DOWN, 1 /* pointerId */, touchData); in fingerDownParameterized()
1148 final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, in givenFingerEvent() local
1151 event1, 1 /* pointerId */, touchData); in givenFingerEvent()
1153 event2, 1 /* pointerId */, touchData); in givenFingerEvent()
1178 final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, in onTouch_forwardToKeyguard() local
1181 InteractionEvent.UNCHANGED, -1 /* pointerOnSensorId */, touchData); in onTouch_forwardToKeyguard()
1228 final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, in onTouch_doNotPilferPointer() local
[all …]