Home
last modified time | relevance | path

Searched refs:PointerCoords (Results 1 – 25 of 56) 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/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/brightline/
DPointerCountClassifierTest.java68 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer()
84 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testPass_multiPointerDragDown()
/frameworks/native/libs/input/
DInput.cpp187 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue()
194 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue()
220 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue()
227 void PointerCoords::scale(float globalScaleFactor, float windowXScale, float windowYScale) { in scale()
243 void PointerCoords::scale(float globalScaleFactor) { in scale()
247 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset()
253 status_t PointerCoords::readFromParcel(Parcel* parcel) { in readFromParcel()
267 status_t PointerCoords::writeToParcel(Parcel* parcel) const { in writeToParcel()
278 void PointerCoords::tooManyAxes(int axis) { in tooManyAxes()
283 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()
DInteractionController.java31 import android.view.MotionEvent.PointerCoords;
684 public boolean performMultiPointerGesture(PointerCoords[] ... touches) {
697 PointerCoords[] pointerCoords = new PointerCoords[touches.length];
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java21 import android.view.MotionEvent.PointerCoords;
230 List<PointerCoords> pointerCoordsList = new ArrayList<>(); in unpackMotionEvent()
232 PointerCoords pointerCoords = new PointerCoords(); in unpackMotionEvent()
242 pointerCoordsList.toArray(new PointerCoords[0]), in unpackMotionEvent()
/frameworks/base/core/java/android/view/
DMotionEvent.java1501 private static PointerCoords[] gSharedTempPointerCoords;
1512 gSharedTempPointerCoords = PointerCoords.createArray(capacity); in ensureSharedTempPointerCapacity()
1529 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize()
1532 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch()
1534 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords()
1700 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain()
1746 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain()
1785 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain()
1881 final PointerCoords pc[] = gSharedTempPointerCoords; in obtain()
1990 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords) { in initialize()
[all …]
/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()
DFullScreenMagnificationGestureHandler.java53 import android.view.MotionEvent.PointerCoords;
155 private PointerCoords[] mTempPointerCoords;
316 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { in getTempPointerCoordsWithMinSize()
319 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; in getTempPointerCoordsWithMinSize()
320 mTempPointerCoords = new PointerCoords[size]; in getTempPointerCoordsWithMinSize()
326 mTempPointerCoords[i] = new PointerCoords(); in getTempPointerCoordsWithMinSize()
/frameworks/native/include/input/
DInput.h315 struct PointerCoords { struct
357 bool operator==(const PointerCoords& other) const; argument
358 inline bool operator!=(const PointerCoords& other) const {
362 void copyFrom(const PointerCoords& other);
564 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const;
620 const PointerCoords* getHistoricalRawPointerCoords(
692 const PointerCoords* pointerCoords);
698 const PointerCoords* pointerCoords);
723 inline const PointerCoords* getSamplePointerCoords() const { in getSamplePointerCoords()
751 Vector<PointerCoords> mSamplePointerCoords;
DInputTransport.h138 PointerCoords coords;
303 const PointerCoords* pointerCoords);
439 PointerCoords pointers[MAX_POINTERS];
464 const PointerCoords& getPointerById(uint32_t id) const { in getPointerById()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.h104 PointerCoords pointerCoords[MAX_POINTERS];
112 inline const PointerCoords& pointerCoordsForId(uint32_t id) const { in pointerCoordsForId()
116 inline PointerCoords& editPointerCoordsWithId(uint32_t id) { in editPointerCoordsWithId()
602 PointerCoords currentGestureCoords[MAX_POINTERS];
608 PointerCoords lastGestureCoords[MAX_POINTERS];
668 PointerCoords currentCoords;
670 PointerCoords lastCoords;
748 const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits,
753 bool updateMovedPointers(const PointerProperties* inProperties, const PointerCoords* inCoords,
755 PointerCoords* outCoords, const uint32_t* outIdToIndex,
DJoystickInputMapper.cpp168 if (mAxes.size() > PointerCoords::MAX_AXES) { in configure()
170 getDeviceName().c_str(), mAxes.size(), PointerCoords::MAX_AXES); in configure()
215 while (mAxes.size() > PointerCoords::MAX_AXES && i-- > 0) { in pruneAxes()
317 PointerCoords pointerCoords; in sync()
345 void JoystickInputMapper::setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, in setPointerCoordsAxisValue()
/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()
346 PointerCoords[] coords = new PointerCoords[1]; in clickWithTouchEvents()
347 coords[0] = new PointerCoords(); in clickWithTouchEvents()
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp42 PointerCoords coords; in TEST_F()
49 PointerCoords coords; in TEST_F()
134 for (size_t axis = 4; axis < PointerCoords::MAX_AXES; axis++) { in TEST_F()
137 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
141 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
142 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
148 PointerCoords inCoords; in TEST_F()
150 PointerCoords outCoords; in TEST_F()
245 PointerCoords pointerCoords[2]; in initializeEventWithHistory()
576 PointerCoords pointerCoords[pointerCount]; in TEST_F()
[all …]
DInputPublisherAndConsumer_test.cpp170 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent()
335 PointerCoords pointerCoords[pointerCount]; in TEST_F()
355 PointerCoords pointerCoords[pointerCount]; in TEST_F()
372 PointerCoords pointerCoords[pointerCount]; in TEST_F()
/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/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java349 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[len]; in manyPointerEvent()
351 MotionEvent.PointerCoords pointerCoord = new MotionEvent.PointerCoords(); in manyPointerEvent()
/frameworks/native/services/inputflinger/include/
DPointerControllerInterface.h97 virtual void setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex,
DInputListener.h111 PointerCoords pointerCoords[MAX_POINTERS];
130 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
/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();
482 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords()
627 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
640 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.h175 PointerCoords pointerCoords[MAX_POINTERS];
182 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,

123