Home
last modified time | relevance | path

Searched refs:historyPos (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp178 static bool validateHistoryPos(JNIEnv* env, jint historyPos, const MotionEvent& event) { in validateHistoryPos() argument
179 if (historyPos < 0 || size_t(historyPos) >= event.getHistorySize()) { in validateHistoryPos()
181 message << "historyPos " << historyPos << " out of range for " << event; in validateHistoryPos()
423 jlong nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) { in android_view_MotionEvent_nativeGetPointerCoords() argument
429 if (historyPos != HISTORY_CURRENT && !validateHistoryPos(env, historyPos, *event)) { in android_view_MotionEvent_nativeGetPointerCoords()
449 const float value = historyPos == HISTORY_CURRENT in android_view_MotionEvent_nativeGetPointerCoords()
451 : event->getHistoricalAxisValue(axis, pointerIndex, historyPos); in android_view_MotionEvent_nativeGetPointerCoords()
455 const PointerCoords* rawPointerCoords = historyPos == HISTORY_CURRENT in android_view_MotionEvent_nativeGetPointerCoords()
457 : event->getHistoricalRawPointerCoords(pointerIndex, historyPos); in android_view_MotionEvent_nativeGetPointerCoords()
465 const bool isResampled = historyPos == HISTORY_CURRENT in android_view_MotionEvent_nativeGetPointerCoords()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java489 for (int historyPos = 0; historyPos < N; historyPos++) { in logMotionEvent()
492 event.getHistoricalPointerCoords(i, historyPos, mTempCoords); in logMotionEvent()
639 for (int historyPos = 0; historyPos < N; historyPos++) { in onPointerEvent()
644 event.getHistoricalPointerCoords(i, historyPos, coords); in onPointerEvent()
/frameworks/base/core/java/android/view/
DMotionEvent.java1816 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords() argument
1833 private static native long nativeGetEventTimeNanos(long nativePtr, int historyPos); in nativeGetEventTimeNanos() argument
1837 int axis, int pointerIndex, int historyPos); in nativeGetRawAxisValue() argument
1840 int axis, int pointerIndex, int historyPos); in nativeGetAxisValue() argument
3771 final int historyPos = (h == historySize ? HISTORY_CURRENT : h); in addBatch() local
3774 nativeGetPointerCoords(event.mNativePtr, i, historyPos, pc[i]); in addBatch()
3777 final long eventTimeNanos = nativeGetEventTimeNanos(event.mNativePtr, historyPos); in addBatch()