Searched refs:eventObj (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/jni/ |
D | android_view_KeyEvent.cpp | 52 jobject eventObj = env->CallStaticObjectMethod(gKeyEventClassInfo.clazz, in android_view_KeyEvent_fromNative() local 71 return eventObj; in android_view_KeyEvent_fromNative() 74 status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, in android_view_KeyEvent_toNative() argument 76 jint deviceId = env->GetIntField(eventObj, gKeyEventClassInfo.mDeviceId); in android_view_KeyEvent_toNative() 77 jint source = env->GetIntField(eventObj, gKeyEventClassInfo.mSource); in android_view_KeyEvent_toNative() 78 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); in android_view_KeyEvent_toNative() 79 jint action = env->GetIntField(eventObj, gKeyEventClassInfo.mAction); in android_view_KeyEvent_toNative() 80 jint keyCode = env->GetIntField(eventObj, gKeyEventClassInfo.mKeyCode); in android_view_KeyEvent_toNative() 81 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); in android_view_KeyEvent_toNative() 82 jint repeatCount = env->GetIntField(eventObj, gKeyEventClassInfo.mRepeatCount); in android_view_KeyEvent_toNative() [all …]
|
D | android_view_MotionEvent.h | 33 extern MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj); 37 extern status_t android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj);
|
D | android_view_KeyEvent.h | 34 extern status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, 41 extern status_t android_view_KeyEvent_recycle(JNIEnv* env, jobject eventObj);
|
D | android_view_MotionEvent.cpp | 66 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { in android_view_MotionEvent_getNativePtr() argument 67 if (!eventObj) { in android_view_MotionEvent_getNativePtr() 71 env->GetIntField(eventObj, gMotionEventClassInfo.mNativePtr)); in android_view_MotionEvent_getNativePtr() 74 static void android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, in android_view_MotionEvent_setNativePtr() argument 76 env->SetIntField(eventObj, gMotionEventClassInfo.mNativePtr, in android_view_MotionEvent_setNativePtr() 81 jobject eventObj = env->CallStaticObjectMethod(gMotionEventClassInfo.clazz, in android_view_MotionEvent_obtainAsCopy() local 83 if (env->ExceptionCheck() || !eventObj) { in android_view_MotionEvent_obtainAsCopy() 90 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventObj); in android_view_MotionEvent_obtainAsCopy() 93 android_view_MotionEvent_setNativePtr(env, eventObj, destEvent); in android_view_MotionEvent_obtainAsCopy() 97 return eventObj; in android_view_MotionEvent_obtainAsCopy() [all …]
|
D | android_view_InputQueue.cpp | 217 static jint nativeSendKeyEvent(JNIEnv* env, jobject clazz, jint ptr, jobject eventObj, in nativeSendKeyEvent() argument 221 status_t status = android_view_KeyEvent_toNative(env, eventObj, event); in nativeSendKeyEvent() 236 static jint nativeSendMotionEvent(JNIEnv* env, jobject clazz, jint ptr, jobject eventObj) { in nativeSendMotionEvent() argument 238 MotionEvent* originalEvent = android_view_MotionEvent_getNativePtr(env, eventObj); in nativeSendMotionEvent()
|
D | android_view_InputEventSender.cpp | 270 jint seq, jobject eventObj) { in nativeSendKeyEvent() argument 274 android_view_KeyEvent_toNative(env, eventObj, &event); in nativeSendKeyEvent() 280 jint seq, jobject eventObj) { in nativeSendMotionEvent() argument 283 MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); in nativeSendMotionEvent()
|
D | android_view_VelocityTracker.cpp | 161 jobject eventObj) { in android_view_VelocityTracker_nativeAddMovement() argument 162 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); in android_view_VelocityTracker_nativeAddMovement()
|