Home
last modified time | relevance | path

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

12

/frameworks/native/libs/input/
DInput.cpp91 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue()
98 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue()
124 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue()
131 void PointerCoords::scale(float scaleFactor) { in scale()
142 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset()
148 status_t PointerCoords::readFromParcel(Parcel* parcel) { in readFromParcel()
162 status_t PointerCoords::writeToParcel(Parcel* parcel) const { in writeToParcel()
173 void PointerCoords::tooManyAxes(int axis) { in tooManyAxes()
178 bool PointerCoords::operator==(const PointerCoords& other) const { in operator ==()
191 void PointerCoords::copyFrom(const PointerCoords& other) { in copyFrom()
[all …]
DInputTransport.cpp303 const PointerCoords* pointerCoords) { in publishMotionEvent()
668 PointerCoords& msgCoords = msg->body.motion.pointers[i].coords; in rewriteMessage()
669 const PointerCoords& resampleCoords = state.lastResample.getPointerById(id); in rewriteMessage()
777 PointerCoords& resampledCoords = touchState.lastResample.pointers[i]; in resampleTouchState()
778 const PointerCoords& currentCoords = current->getPointerById(id); in resampleTouchState()
781 const PointerCoords& otherCoords = other->getPointerById(id); in resampleTouchState()
917 PointerCoords pointerCoords[pointerCount]; in initializeMotionEvent()
945 PointerCoords pointerCoords[pointerCount]; in addSample()
/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;
686 public boolean performMultiPointerGesture(PointerCoords[] ... touches) {
699 PointerCoords[] pointerCoords = new PointerCoords[touches.length];
/frameworks/native/include/input/
DInput.h219 struct PointerCoords { struct
256 bool operator==(const PointerCoords& other) const; argument
257 inline bool operator!=(const PointerCoords& other) const {
261 void copyFrom(const PointerCoords& other);
435 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const;
491 const PointerCoords* getHistoricalRawPointerCoords(
573 const PointerCoords* pointerCoords);
579 const PointerCoords* pointerCoords);
604 inline const PointerCoords* getSamplePointerCoords() const { in getSamplePointerCoords()
625 Vector<PointerCoords> mSamplePointerCoords;
DInputTransport.h101 PointerCoords coords;
249 const PointerCoords* pointerCoords);
368 PointerCoords pointers[MAX_POINTERS];
381 const PointerCoords& getPointerById(uint32_t id) const { in getPointerById()
/frameworks/base/core/java/android/view/
DMotionEvent.java1419 private static PointerCoords[] gSharedTempPointerCoords;
1430 gSharedTempPointerCoords = PointerCoords.createArray(capacity); in ensureSharedTempPointerCapacity()
1446 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize()
1451 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch()
1488 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords()
1561 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain()
1604 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain()
1659 final PointerCoords pc[] = gSharedTempPointerCoords; in obtain()
2280 public final void getPointerCoords(int pointerIndex, PointerCoords outPointerCoords) { in getPointerCoords()
2820 PointerCoords outPointerCoords) { in getHistoricalPointerCoords()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DDocumentHolderTest.java28 import android.view.MotionEvent.PointerCoords;
81 PointerCoords coords[] = new PointerCoords[] { in createEvent()
82 new PointerCoords() in createEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java32 import android.view.MotionEvent.PointerCoords;
269 private PointerCoords mAnchorCoords;
278 private PointerCoords mTempPointerCoords[];
286 mAnchorCoords = new PointerCoords(); in ClickScheduler()
435 mTempPointerCoords = new PointerCoords[1]; in sendClick()
436 mTempPointerCoords[0] = new PointerCoords(); in sendClick()
DMotionEventInjector.java55 private MotionEvent.PointerCoords[] mPointerCoords =
56 new MotionEvent.PointerCoords[MAX_POINTERS];
156 mPointerCoords = new MotionEvent.PointerCoords[numPointers]; in injectEventsMainThread()
161 mPointerCoords[j] = new MotionEvent.PointerCoords(); in injectEventsMainThread()
DMagnificationGestureHandler.java30 import android.view.MotionEvent.PointerCoords;
107 private PointerCoords[] mTempPointerCoords;
245 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); in dispatchTransformedEvent()
262 private PointerCoords[] getTempPointerCoordsWithMinSize(int size) { in getTempPointerCoordsWithMinSize()
265 PointerCoords[] oldTempPointerCoords = mTempPointerCoords; in getTempPointerCoordsWithMinSize()
266 mTempPointerCoords = new PointerCoords[size]; in getTempPointerCoordsWithMinSize()
272 mTempPointerCoords[i] = new PointerCoords(); in getTempPointerCoordsWithMinSize()
DTouchExplorer.java26 import android.view.MotionEvent.PointerCoords;
425 PointerCoords[] coords = new PointerCoords[1]; in onDoubleTap()
426 coords[0] = new PointerCoords(); in onDoubleTap()
990 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent()
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp37 PointerCoords coords; in TEST_F()
45 PointerCoords coords; in TEST_F()
130 for (size_t axis = 4; axis < PointerCoords::MAX_AXES; axis++) { in TEST_F()
133 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
137 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
138 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
144 PointerCoords inCoords; in TEST_F()
146 PointerCoords outCoords; in TEST_F()
230 PointerCoords pointerCoords[2]; in initializeEventWithHistory()
549 PointerCoords pointerCoords[pointerCount]; in TEST_F()
DInputPublisherAndConsumer_test.cpp149 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent()
257 PointerCoords pointerCoords[pointerCount]; in TEST_F()
269 PointerCoords pointerCoords[pointerCount]; in TEST_F()
DStructLayout_test.cpp27 PointerCoords coords;
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java26 import android.view.MotionEvent.PointerCoords;
341 private static PointerCoords[] sPointerCoords;
400 private static PointerCoords[] getPointerCoords(int requiredCapacity) { in getPointerCoords()
402 sPointerCoords = new PointerCoords[requiredCapacity]; in getPointerCoords()
404 sPointerCoords[i] = new PointerCoords(); in getPointerCoords()
491 PointerCoords[] pointerCoords = getPointerCoords(touchPointsSize); in obtainMotionEvent()
/frameworks/native/services/inputflinger/
DInputListener.h95 PointerCoords pointerCoords[MAX_POINTERS];
106 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputReader.h870 PointerCoords pointerCoords[MAX_POINTERS];
878 inline const PointerCoords& pointerCoordsForId(uint32_t id) const { in pointerCoordsForId()
882 inline PointerCoords& editPointerCoordsWithId(uint32_t id) { in editPointerCoordsWithId()
1722 PointerCoords currentGestureCoords[MAX_POINTERS];
1728 PointerCoords lastGestureCoords[MAX_POINTERS];
1790 PointerCoords currentCoords;
1792 PointerCoords lastCoords;
1870 const PointerProperties* properties, const PointerCoords* coords,
1877 const PointerCoords* inCoords, const uint32_t* inIdToIndex,
1878 PointerProperties* outProperties, PointerCoords* outCoords,
[all …]
DPointerControllerInterface.h96 virtual void setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex,
DInputDispatcher.h524 PointerCoords pointerCoords[MAX_POINTERS];
532 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
776 PointerCoords pointerCoords[MAX_POINTERS];
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java35 import android.view.MotionEvent.PointerCoords;
58 private PointerCoords mCoords = new PointerCoords();
127 private final PointerCoords mTempCoords = new PointerCoords();
442 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords()
587 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
600 final PointerCoords coords = ps != null ? ps.mCoords : mTempCoords; in onPointerEvent()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative()
258 static void pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, in pointerCoordsFromNative()
354 PointerCoords rawPointerCoords[pointerCount]; in android_view_MotionEvent_nativeInitialize()
412 PointerCoords rawPointerCoords[pointerCount]; in android_view_MotionEvent_nativeAddBatch()
660 const PointerCoords* rawPointerCoords; in android_view_MotionEvent_nativeGetPointerCoords()
/frameworks/base/libs/input/
DPointerController.cpp268 void PointerController::setSpots(const PointerCoords* spotCoords, in setSpots()
275 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
290 const PointerCoords& c = spotCoords[spotIdToIndex[id]]; in setSpots()
DPointerController.h104 virtual void setSpots(const PointerCoords* spotCoords,
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp144 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F()

12