Home
last modified time | relevance | path

Searched refs:PointerCoords (Results 1 – 25 of 50) sorted by relevance

12

/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DGestureHelper.java26 import android.view.MotionEvent.PointerCoords;
44 @Nullable private PointerCoords mPrimaryPtrCoord;
72 PointerCoords ptrCoord = getPointerCoord(point.x, point.y, 1, 1); in tap()
108 PointerCoords[] ptrCoords = new PointerCoords[] { ptrCoord }; in dragWithoutRelease()
159 PointerCoords[] ptrCoords = new PointerCoords[] { in pinch()
186 @NonNull PointerCoords coord, long downTime) { in primaryPointerDown()
188 new PointerProperties[]{ prop }, new PointerCoords[]{ coord }); in primaryPointerDown()
194 @NonNull PointerCoords[] coords, long downTime, int index) { in nonPrimaryPointerDown()
256 @NonNull PointerCoords coord, long downTime) { in primaryPointerUp()
266 @NonNull PointerCoords[] coords, long downTime, int index) { in nonPrimaryPointerUp()
[all …]
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
H A DSpotFilter.kt24 val spots = LinkedList<MotionEvent.PointerCoords>() // newest at front
25 val tmpSpot = MotionEvent.PointerCoords()
32 fun plot(s: MotionEvent.PointerCoords)
40 fun filterInto(out: MotionEvent.PointerCoords, tool: Int): MotionEvent.PointerCoords {
78 protected fun addInternal(c: MotionEvent.PointerCoords, tool: Int) {
83 MotionEvent.PointerCoords()
93 fun add(cv: List<MotionEvent.PointerCoords>, tool: Int) {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
H A DTouchEventGenerator.java83 final MotionEvent.PointerCoords[] pointerCoordsArray = in generateMultiplePointersEvent()
84 new MotionEvent.PointerCoords[length]; in generateMultiplePointersEvent()
88 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in generateMultiplePointersEvent()
153 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[pointerCount]; in movePointer()
155 MotionEvent.PointerCoords pointerCoord = new MotionEvent.PointerCoords(); in movePointer()
H A DGestureLogParser.java36 final MotionEvent.PointerCoords[] pointerCoords; in getMotionEventFromLogLine()
94 private static MotionEvent.PointerCoords[] findCoordinates(String eventText, int pointerCount) { in findCoordinates()
99 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in findCoordinates()
107 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in findCoordinates()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DMotionEventTest.java32 import android.view.MotionEvent.PointerCoords;
54 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId()
56 final PointerCoords c = new PointerCoords(); in testObtainWithDisplayId()
129 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents()
136 coords[i] = new PointerCoords(); in testCalculatesCursorPositionForMultiTouchMouseEvents()
H A DPinchZoomAction.java70 final MotionEvent.PointerCoords pc1 = new MotionEvent.PointerCoords(); in sendPinchZoomAction()
75 final MotionEvent.PointerCoords pc2 = new MotionEvent.PointerCoords(); in sendPinchZoomAction()
83 final MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[]{pc1, pc2}; in sendPinchZoomAction()
H A DViewGroupTest.java73 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[2]; in testDispatchMouseEventsUnderCursor()
74 coords[0] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
77 coords[1] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DPointerCountClassifierTest.java72 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer()
89 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testPass_multiPointerDragDown()
H A DClassifierTest.java159 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; in appendTrackpadMotionEvent()
177 private static MotionEvent.PointerCoords getPointerCoords(float x, float y) { in getPointerCoords()
178 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getPointerCoords()
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java24 import android.view.MotionEvent.PointerCoords;
1022 PointerCoords[] points1 = new PointerCoords[steps + 2]; in performTwoPointerGesture()
1023 PointerCoords[] points2 = new PointerCoords[steps + 2]; in performTwoPointerGesture()
1027 PointerCoords p1 = new PointerCoords(); in performTwoPointerGesture()
1034 PointerCoords p2 = new PointerCoords(); in performTwoPointerGesture()
1048 PointerCoords p1 = new PointerCoords(); in performTwoPointerGesture()
1055 PointerCoords p2 = new PointerCoords(); in performTwoPointerGesture()
1087 public boolean performMultiPointerGesture(PointerCoords[] ...touches) { in performMultiPointerGesture()
H A DInteractionController.java31 import android.view.MotionEvent.PointerCoords;
684 public boolean performMultiPointerGesture(PointerCoords[] ... touches) {
697 PointerCoords[] pointerCoords = new PointerCoords[touches.length];
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
H A DEventDispatcher.java27 import android.view.MotionEvent.PointerCoords;
202 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent()
324 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in computeInjectionDownEvent()
331 coords[i] = new MotionEvent.PointerCoords(); in computeInjectionDownEvent()
423 PointerCoords[] coords = new PointerCoords[1]; in clickWithTouchEvents()
424 coords[0] = new PointerCoords(); in clickWithTouchEvents()
/aosp14/frameworks/base/core/java/android/view/
H A DMotionEvent.java1664 private static PointerCoords[] gSharedTempPointerCoords;
1695 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch()
2090 final PointerCoords pc[] = gSharedTempPointerCoords; in obtain()
3500 PointerCoords outPointerCoords) { in getHistoricalPointerCoords()
4233 public static final class PointerCoords { class in MotionEvent
4243 public PointerCoords() { in PointerCoords() method in MotionEvent.PointerCoords
4252 public PointerCoords(PointerCoords other) { in PointerCoords() method in MotionEvent.PointerCoords
4258 public static PointerCoords[] createArray(int size) { in createArray()
4259 PointerCoords[] array = new PointerCoords[size]; in createArray()
4261 array[i] = new PointerCoords(); in createArray()
[all …]
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java31 import android.view.MotionEvent.PointerCoords;
258 private PointerCoords mAnchorCoords;
267 private PointerCoords mTempPointerCoords[];
275 mAnchorCoords = new PointerCoords(); in ClickScheduler()
424 mTempPointerCoords = new PointerCoords[1]; in sendClick()
425 mTempPointerCoords[0] = new PointerCoords(); in sendClick()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingDataProvider.java24 import android.view.MotionEvent.PointerCoords;
336 List<PointerCoords> pointerCoordsList = new ArrayList<>();
338 PointerCoords pointerCoords = new PointerCoords();
348 pointerCoordsList.toArray(new PointerCoords[0]),
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DMotionPredictorTest.kt26 import android.view.MotionEvent.PointerCoords
53 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount)
59 coords[i] = PointerCoords()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/input/
H A DMotionPredictorBenchmark.kt27 import android.view.MotionEvent.PointerCoords
54 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount)
60 coords[i] = PointerCoords()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
H A DDividerViewTest.java103 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getMotionEvent()
111 new MotionEvent.PointerCoords[]{coords}, 0, 0, 1.0f, 1.0f, 0, 0, in getMotionEvent()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipResizeGestureHandlerTest.java264 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[2]; in obtainMotionEvent()
266 MotionEvent.PointerCoords pointerCoord = new MotionEvent.PointerCoords(); in obtainMotionEvent()
/aosp14/frameworks/base/libs/input/
H A DTouchSpotController.cpp86 void TouchSpotController::setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex, in setSpots()
93 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
107 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java41 import android.view.MotionEvent.PointerCoords;
79 private PointerCoords mCoords = new PointerCoords();
150 private final PointerCoords mTempCoords = new PointerCoords();
504 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords()
643 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
656 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DPointerIconTest.java294 MotionEvent.PointerCoords[] coords = MotionEvent.PointerCoords.createArray(1); in createHoverEvent()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/view/
H A DHandwritingInitiatorPerfTest.java216 MotionEvent.PointerCoords[] coords = MotionEvent.PointerCoords.createArray(1); in createMotionEvent()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DFullScreenMagnificationGestureHandler.java59 import android.view.MotionEvent.PointerCoords;
147 private PointerCoords[] mTempPointerCoords;
293 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { in getTempPointerCoordsWithMinSize()
296 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; in getTempPointerCoordsWithMinSize()
297 mTempPointerCoords = new PointerCoords[size]; in getTempPointerCoordsWithMinSize()
303 mTempPointerCoords[i] = new PointerCoords(); in getTempPointerCoordsWithMinSize()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DQuickSettingsControllerTest.java450 new MotionEvent.PointerCoords[] { in createMultitouchMotionEvent()
451 new MotionEvent.PointerCoords(), in createMultitouchMotionEvent()
452 new MotionEvent.PointerCoords() in createMultitouchMotionEvent()

12