Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp167 static bool validateHistoryPos(JNIEnv* env, jint historyPos, size_t historySize) { in validateHistoryPos() argument
168 if (historyPos < 0 || size_t(historyPos) >= historySize) { in validateHistoryPos()
422 jlong nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) { in android_view_MotionEvent_nativeGetPointerCoords() argument
431 if (historyPos == HISTORY_CURRENT) { in android_view_MotionEvent_nativeGetPointerCoords()
435 if (!validateHistoryPos(env, historyPos, historySize)) { in android_view_MotionEvent_nativeGetPointerCoords()
438 rawPointerCoords = event->getHistoricalRawPointerCoords(pointerIndex, historyPos); in android_view_MotionEvent_nativeGetPointerCoords()
522 jlong nativePtr, jint historyPos) { in android_view_MotionEvent_nativeGetEventTimeNanos() argument
524 if (historyPos == HISTORY_CURRENT) { in android_view_MotionEvent_nativeGetEventTimeNanos()
528 if (!validateHistoryPos(env, historyPos, historySize)) { in android_view_MotionEvent_nativeGetEventTimeNanos()
531 return event->getHistoricalEventTime(historyPos); in android_view_MotionEvent_nativeGetEventTimeNanos()
[all …]
/frameworks/base/core/java/android/view/
DMotionEvent.java1532 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords() argument
1549 private static native long nativeGetEventTimeNanos(long nativePtr, int historyPos); in nativeGetEventTimeNanos() argument
1553 int axis, int pointerIndex, int historyPos); in nativeGetRawAxisValue() argument
1556 int axis, int pointerIndex, int historyPos); in nativeGetAxisValue() argument
3282 final int historyPos = (h == historySize ? HISTORY_CURRENT : h); in addBatch() local
3285 nativeGetPointerCoords(event.mNativePtr, i, historyPos, pc[i]); in addBatch()
3288 final long eventTimeNanos = nativeGetEventTimeNanos(event.mNativePtr, historyPos); in addBatch()
3426 final int historyPos = h == historySize ? HISTORY_CURRENT : h; in split() local
3429 nativeGetPointerCoords(mNativePtr, map[i], historyPos, pc[i]); in split()
3432 final long eventTimeNanos = nativeGetEventTimeNanos(mNativePtr, historyPos); in split()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java467 for (int historyPos = 0; historyPos < N; historyPos++) { in logMotionEvent()
470 event.getHistoricalPointerCoords(i, historyPos, mTempCoords); in logMotionEvent()
623 for (int historyPos = 0; historyPos < N; historyPos++) { in onPointerEvent()
628 event.getHistoricalPointerCoords(i, historyPos, coords); in onPointerEvent()