Home
last modified time | relevance | path

Searched refs:eventObj (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp98 jobject eventObj = in android_view_KeyEvent_fromNative() local
114 return eventObj; in android_view_KeyEvent_fromNative()
117 status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, in android_view_KeyEvent_toNative() argument
119 jint id = env->GetIntField(eventObj, gKeyEventClassInfo.mId); in android_view_KeyEvent_toNative()
120 jint deviceId = env->GetIntField(eventObj, gKeyEventClassInfo.mDeviceId); in android_view_KeyEvent_toNative()
121 jint source = env->GetIntField(eventObj, gKeyEventClassInfo.mSource); in android_view_KeyEvent_toNative()
122 jint displayId = env->GetIntField(eventObj, gKeyEventClassInfo.mDisplayId); in android_view_KeyEvent_toNative()
123 jobject hmacObj = env->GetObjectField(eventObj, gKeyEventClassInfo.mHmac); in android_view_KeyEvent_toNative()
128 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); in android_view_KeyEvent_toNative()
129 jint action = env->GetIntField(eventObj, gKeyEventClassInfo.mAction); in android_view_KeyEvent_toNative()
[all …]
Dandroid_view_MotionEvent.h33 extern MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj);
37 extern status_t android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj);
Dandroid_view_KeyEvent.h34 extern status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj,
41 extern status_t android_view_KeyEvent_recycle(JNIEnv* env, jobject eventObj);
Dandroid_view_MotionEvent.cpp67 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { in android_view_MotionEvent_getNativePtr() argument
68 if (!eventObj) { in android_view_MotionEvent_getNativePtr()
72 env->GetLongField(eventObj, gMotionEventClassInfo.mNativePtr)); in android_view_MotionEvent_getNativePtr()
75 static void android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, in android_view_MotionEvent_setNativePtr() argument
77 env->SetLongField(eventObj, gMotionEventClassInfo.mNativePtr, in android_view_MotionEvent_setNativePtr()
82 jobject eventObj = env->CallStaticObjectMethod(gMotionEventClassInfo.clazz, in android_view_MotionEvent_obtainAsCopy() local
84 if (env->ExceptionCheck() || !eventObj) { in android_view_MotionEvent_obtainAsCopy()
91 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventObj); in android_view_MotionEvent_obtainAsCopy()
94 android_view_MotionEvent_setNativePtr(env, eventObj, destEvent); in android_view_MotionEvent_obtainAsCopy()
98 return eventObj; in android_view_MotionEvent_obtainAsCopy()
[all …]
Dandroid_view_InputQueue.cpp219 static jlong nativeSendKeyEvent(JNIEnv* env, jobject clazz, jlong ptr, jobject eventObj, in nativeSendKeyEvent() argument
223 status_t status = android_view_KeyEvent_toNative(env, eventObj, event); in nativeSendKeyEvent()
238 static jlong nativeSendMotionEvent(JNIEnv* env, jobject clazz, jlong ptr, jobject eventObj) { in nativeSendMotionEvent() argument
240 MotionEvent* originalEvent = android_view_MotionEvent_getNativePtr(env, eventObj); in nativeSendMotionEvent()
Dandroid_view_InputEventSender.cpp287 jint seq, jobject eventObj) { in nativeSendKeyEvent() argument
291 android_view_KeyEvent_toNative(env, eventObj, &event); in nativeSendKeyEvent()
297 jint seq, jobject eventObj) { in nativeSendMotionEvent() argument
300 MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); in nativeSendMotionEvent()
Dandroid_hardware_display_DisplayViewport.h29 extern status_t android_hardware_display_DisplayViewport_toNative(JNIEnv* env, jobject eventObj,
Dandroid_view_VelocityTracker.cpp162 jobject eventObj) { in android_view_VelocityTracker_nativeAddMovement() argument
163 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); in android_view_VelocityTracker_nativeAddMovement()