Home
last modified time | relevance | path

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

123

/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DSpotFilter.kt24 val spots = LinkedList<MotionEvent.PointerCoords>() // newest at front
25 val tmpSpot = MotionEvent.PointerCoords()
32 fun plot(s: MotionEvent.PointerCoords) in plot()
40 fun filterInto(out: MotionEvent.PointerCoords, tool: Int): MotionEvent.PointerCoords { in filterInto()
78 protected fun addInternal(c: MotionEvent.PointerCoords, tool: Int) { in addInternal()
83 MotionEvent.PointerCoords() in addInternal()
93 fun add(cv: List<MotionEvent.PointerCoords>, tool: Int) { in add()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
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()
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()
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java29 import android.view.MotionEvent.PointerCoords;
50 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId()
52 final PointerCoords c = new PointerCoords(); in testObtainWithDisplayId()
125 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents()
132 coords[i] = new PointerCoords(); in testCalculatesCursorPositionForMultiTouchMouseEvents()
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()
DViewGroupTest.java72 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[2]; in testDispatchMouseEventsUnderCursor()
73 coords[0] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
76 coords[1] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DPointerCountClassifierTest.java72 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer()
89 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testPass_multiPointerDragDown()
/frameworks/native/libs/input/
DInput.cpp264 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue()
271 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue()
297 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue()
304 void PointerCoords::scale(float globalScaleFactor, float windowXScale, float windowYScale) { in scale()
320 void PointerCoords::scale(float globalScaleFactor) { in scale()
324 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset()
330 status_t PointerCoords::readFromParcel(Parcel* parcel) { in readFromParcel()
344 status_t PointerCoords::writeToParcel(Parcel* parcel) const { in writeToParcel()
355 void PointerCoords::tooManyAxes(int axis) { in tooManyAxes()
360 bool PointerCoords::operator==(const PointerCoords& other) const { in operator ==()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
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()
420 PointerCoords[] coords = new PointerCoords[1]; in clickWithTouchEvents()
421 coords[0] = new PointerCoords(); in clickWithTouchEvents()
/frameworks/base/core/java/android/view/
DMotionEvent.java1528 private static PointerCoords[] gSharedTempPointerCoords;
1539 gSharedTempPointerCoords = PointerCoords.createArray(capacity); in ensureSharedTempPointerCapacity()
1556 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize()
1559 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch()
1561 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords()
1729 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain()
1775 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain()
1814 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain()
1910 final PointerCoords pc[] = gSharedTempPointerCoords; in obtain()
2019 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords) { in initialize()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.h105 PointerCoords pointerCoords[MAX_POINTERS];
113 inline const PointerCoords& pointerCoordsForId(uint32_t id) const { in pointerCoordsForId()
117 inline PointerCoords& editPointerCoordsWithId(uint32_t id) { in editPointerCoordsWithId()
628 PointerCoords currentGestureCoords[MAX_POINTERS];
634 PointerCoords lastGestureCoords[MAX_POINTERS];
694 PointerCoords currentCoords;
696 PointerCoords lastCoords;
777 const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits,
782 bool updateMovedPointers(const PointerProperties* inProperties, const PointerCoords* inCoords,
784 PointerCoords* outCoords, const uint32_t* outIdToIndex,
[all …]
DJoystickInputMapper.cpp137 if (mAxes.size() > PointerCoords::MAX_AXES) { in configure()
139 getDeviceName().c_str(), mAxes.size(), PointerCoords::MAX_AXES); in configure()
220 while (mAxes.size() > PointerCoords::MAX_AXES) { in pruneAxes()
322 PointerCoords pointerCoords; in sync()
350 void JoystickInputMapper::setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, in setPointerCoordsAxisValue()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java30 import android.view.MotionEvent.PointerCoords;
247 private PointerCoords mAnchorCoords;
256 private PointerCoords mTempPointerCoords[];
264 mAnchorCoords = new PointerCoords(); in ClickScheduler()
413 mTempPointerCoords = new PointerCoords[1]; in sendClick()
414 mTempPointerCoords[0] = new PointerCoords(); in sendClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java21 import android.view.MotionEvent.PointerCoords;
278 List<PointerCoords> pointerCoordsList = new ArrayList<>(); in unpackMotionEvent()
280 PointerCoords pointerCoords = new PointerCoords(); in unpackMotionEvent()
290 pointerCoordsList.toArray(new PointerCoords[0]), in unpackMotionEvent()
/frameworks/native/include/input/
DInput.h366 struct PointerCoords { struct
412 bool operator==(const PointerCoords& other) const; argument
413 inline bool operator!=(const PointerCoords& other) const {
417 void copyFrom(const PointerCoords& other);
623 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const;
696 const PointerCoords* getHistoricalRawPointerCoords(
773 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords);
779 const PointerCoords* pointerCoords);
808 inline const PointerCoords* getSamplePointerCoords() const { in getSamplePointerCoords()
835 Vector<PointerCoords> mSamplePointerCoords;
DInputTransport.h151 PointerCoords coords;
361 const PointerCoords* pointerCoords);
539 PointerCoords pointers[MAX_POINTERS];
564 const PointerCoords& getPointerById(uint32_t id) const { in getPointerById()
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp44 PointerCoords coords; in TEST_F()
51 PointerCoords coords; in TEST_F()
136 for (size_t axis = 4; axis < PointerCoords::MAX_AXES; axis++) { in TEST_F()
139 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
143 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
144 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
150 PointerCoords inCoords; in TEST_F()
152 PointerCoords outCoords; in TEST_F()
270 PointerCoords pointerCoords[2]; in initializeEventWithHistory()
601 PointerCoords pointerCoords[pointerCount]; in TEST_F()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipResizeGestureHandlerTest.java197 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[2]; in obtainMotionEvent()
199 MotionEvent.PointerCoords pointerCoord = new MotionEvent.PointerCoords(); in obtainMotionEvent()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp35 PointerCoords coords; in generateBasicMotionArgs()
53 static float getMotionEventAxis(common::V1_0::PointerCoords coords, in getMotionEventAxis()
/frameworks/base/libs/input/
DTouchSpotController.cpp79 void TouchSpotController::setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex, in setSpots()
86 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
100 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
/frameworks/native/services/inputflinger/include/
DPointerControllerInterface.h97 virtual void setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex,
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationManagerTest.java434 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[len]; in generatePointersDownEvent()
436 MotionEvent.PointerCoords pointerCoord = new MotionEvent.PointerCoords(); in generatePointersDownEvent()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java38 import android.view.MotionEvent.PointerCoords;
74 private PointerCoords mCoords = new PointerCoords();
148 private final PointerCoords mTempCoords = new PointerCoords();
485 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords()
630 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
643 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandler.java55 import android.view.MotionEvent.PointerCoords;
140 private PointerCoords[] mTempPointerCoords;
238 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { in getTempPointerCoordsWithMinSize()
241 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; in getTempPointerCoordsWithMinSize()
242 mTempPointerCoords = new PointerCoords[size]; in getTempPointerCoordsWithMinSize()
248 mTempPointerCoords[i] = new PointerCoords(); in getTempPointerCoordsWithMinSize()

123