summaryrefslogtreecommitdiffstats
path: root/core/jni/android_view_MotionEvent.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-03-15 20:01:16 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-15 20:01:16 -0700
commit843e29d3751017267b96565c543df0301c31a9f7 (patch)
tree80277ab21b62650bb613dc6b7df062c4c7cc9963 /core/jni/android_view_MotionEvent.h
parent437c2c1620d0a485a4f81fdb0aaf706d89b865e7 (diff)
parent2ed2462aa29c564f5231f317c27b3188da875e52 (diff)
downloadframeworks_base-843e29d3751017267b96565c543df0301c31a9f7.zip
frameworks_base-843e29d3751017267b96565c543df0301c31a9f7.tar.gz
frameworks_base-843e29d3751017267b96565c543df0301c31a9f7.tar.bz2
Merge "Improve VelocityTracker numerical stability."
Diffstat (limited to 'core/jni/android_view_MotionEvent.h')
-rw-r--r--core/jni/android_view_MotionEvent.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/jni/android_view_MotionEvent.h b/core/jni/android_view_MotionEvent.h
index 80dc861..0cf1fb2 100644
--- a/core/jni/android_view_MotionEvent.h
+++ b/core/jni/android_view_MotionEvent.h
@@ -26,12 +26,11 @@ class MotionEvent;
/* Obtains an instance of a DVM MotionEvent object as a copy of a native MotionEvent instance.
* Returns NULL on error. */
-extern jobject android_view_MotionEvent_fromNative(JNIEnv* env, const MotionEvent* event);
+extern jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event);
-/* Copies the contents of a DVM MotionEvent object to a native MotionEvent instance.
- * Returns non-zero on error. */
-extern status_t android_view_MotionEvent_toNative(JNIEnv* env, jobject eventObj,
- MotionEvent* event);
+/* Gets the underlying native MotionEvent instance within a DVM MotionEvent object.
+ * Returns NULL if the event is NULL or if it is uninitialized. */
+extern MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj);
/* Recycles a DVM MotionEvent object.
* Returns non-zero on error. */