1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is autogenerated by
6 // base/android/jni_generator/jni_generator.py
8 // android/view/MotionEvent
10 #ifndef android_view_MotionEvent_JNI
11 #define android_view_MotionEvent_JNI
15 #include "base/android/jni_generator/jni_generator_helper.h"
17 #include "base/android/jni_int_wrapper.h"
19 // Step 1: forward declarations.
21 const char kMotionEventClassPath[] = "android/view/MotionEvent";
22 // Leaking this jclass as we cannot use LazyInstance from some threads.
23 jclass g_MotionEvent_clazz = NULL;
24 #define MotionEvent_clazz(env) g_MotionEvent_clazz
28 namespace JNI_MotionEvent {
30 enum Java_MotionEvent_constant_fields {
31 INVALID_POINTER_ID = -1,
38 ACTION_POINTER_DOWN = 5,
39 ACTION_POINTER_UP = 6,
40 ACTION_HOVER_MOVE = 7,
42 ACTION_HOVER_ENTER = 9,
43 ACTION_HOVER_EXIT = 10,
44 ACTION_POINTER_INDEX_MASK = 65280,
45 ACTION_POINTER_INDEX_SHIFT = 8,
46 ACTION_POINTER_1_DOWN = 5,
47 ACTION_POINTER_2_DOWN = 261,
48 ACTION_POINTER_3_DOWN = 517,
49 ACTION_POINTER_1_UP = 6,
50 ACTION_POINTER_2_UP = 262,
51 ACTION_POINTER_3_UP = 518,
52 ACTION_POINTER_ID_MASK = 65280,
53 ACTION_POINTER_ID_SHIFT = 8,
54 FLAG_WINDOW_IS_OBSCURED = 1,
100 AXIS_GENERIC_16 = 47,
102 BUTTON_SECONDARY = 2,
106 TOOL_TYPE_UNKNOWN = 0,
107 TOOL_TYPE_FINGER = 1,
108 TOOL_TYPE_STYLUS = 2,
110 TOOL_TYPE_ERASER = 4,
113 // Step 2: method stubs.
115 static base::subtle::AtomicWord g_MotionEvent_finalize = 0;
116 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) __attribute__
118 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) {
119 /* Must call RegisterNativesImpl() */
120 CHECK_CLAZZ(env, obj,
121 MotionEvent_clazz(env));
122 jmethodID method_id =
123 base::android::MethodID::LazyGet<
124 base::android::MethodID::TYPE_INSTANCE>(
125 env, MotionEvent_clazz(env),
128 &g_MotionEvent_finalize);
130 env->CallVoidMethod(obj,
132 jni_generator::CheckException(env);
136 static base::subtle::AtomicWord
137 g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I = 0;
138 static base::android::ScopedJavaLocalRef<jobject>
139 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
153 JniIntWrapper p13) __attribute__ ((unused));
154 static base::android::ScopedJavaLocalRef<jobject>
155 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
170 /* Must call RegisterNativesImpl() */
171 CHECK_CLAZZ(env, MotionEvent_clazz(env),
172 MotionEvent_clazz(env), NULL);
173 jmethodID method_id =
174 base::android::MethodID::LazyGet<
175 base::android::MethodID::TYPE_STATIC>(
176 env, MotionEvent_clazz(env),
178 "(JJII[Landroid/view/MotionEvent$PointerProperties;[Landroid/view/MotionEvent$PointerCoords;IIFFIIII)Landroid/view/MotionEvent;",
179 &g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I);
182 env->CallStaticObjectMethod(MotionEvent_clazz(env),
183 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6),
184 as_jint(p7), p8, p9, as_jint(p10), as_jint(p11), as_jint(p12),
186 jni_generator::CheckException(env);
187 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
190 static base::subtle::AtomicWord
191 g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I = 0;
192 static base::android::ScopedJavaLocalRef<jobject>
193 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
206 JniIntWrapper p12) __attribute__ ((unused));
207 static base::android::ScopedJavaLocalRef<jobject>
208 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
222 /* Must call RegisterNativesImpl() */
223 CHECK_CLAZZ(env, MotionEvent_clazz(env),
224 MotionEvent_clazz(env), NULL);
225 jmethodID method_id =
226 base::android::MethodID::LazyGet<
227 base::android::MethodID::TYPE_STATIC>(
228 env, MotionEvent_clazz(env),
230 "(JJII[I[Landroid/view/MotionEvent$PointerCoords;IFFIIII)Landroid/view/MotionEvent;",
231 &g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I);
234 env->CallStaticObjectMethod(MotionEvent_clazz(env),
235 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6), p7,
236 p8, as_jint(p9), as_jint(p10), as_jint(p11), as_jint(p12));
237 jni_generator::CheckException(env);
238 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
241 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I
243 static base::android::ScopedJavaLocalRef<jobject>
244 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
255 JniIntWrapper p11) __attribute__ ((unused));
256 static base::android::ScopedJavaLocalRef<jobject>
257 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
269 /* Must call RegisterNativesImpl() */
270 CHECK_CLAZZ(env, MotionEvent_clazz(env),
271 MotionEvent_clazz(env), NULL);
272 jmethodID method_id =
273 base::android::MethodID::LazyGet<
274 base::android::MethodID::TYPE_STATIC>(
275 env, MotionEvent_clazz(env),
277 "(JJIFFFFIFFII)Landroid/view/MotionEvent;",
278 &g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I);
281 env->CallStaticObjectMethod(MotionEvent_clazz(env),
282 method_id, p0, p1, as_jint(p2), p3, p4, p5, p6, as_jint(p7), p8, p9,
283 as_jint(p10), as_jint(p11));
284 jni_generator::CheckException(env);
285 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
288 static base::subtle::AtomicWord
289 g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I = 0;
290 static base::android::ScopedJavaLocalRef<jobject>
291 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
303 JniIntWrapper p12) __attribute__ ((unused));
304 static base::android::ScopedJavaLocalRef<jobject>
305 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
318 /* Must call RegisterNativesImpl() */
319 CHECK_CLAZZ(env, MotionEvent_clazz(env),
320 MotionEvent_clazz(env), NULL);
321 jmethodID method_id =
322 base::android::MethodID::LazyGet<
323 base::android::MethodID::TYPE_STATIC>(
324 env, MotionEvent_clazz(env),
326 "(JJIIFFFFIFFII)Landroid/view/MotionEvent;",
327 &g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I);
330 env->CallStaticObjectMethod(MotionEvent_clazz(env),
331 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, p6, p7,
332 as_jint(p8), p9, p10, as_jint(p11), as_jint(p12));
333 jni_generator::CheckException(env);
334 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
337 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
338 static base::android::ScopedJavaLocalRef<jobject>
339 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
344 JniIntWrapper p5) __attribute__ ((unused));
345 static base::android::ScopedJavaLocalRef<jobject>
346 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
352 /* Must call RegisterNativesImpl() */
353 CHECK_CLAZZ(env, MotionEvent_clazz(env),
354 MotionEvent_clazz(env), NULL);
355 jmethodID method_id =
356 base::android::MethodID::LazyGet<
357 base::android::MethodID::TYPE_STATIC>(
358 env, MotionEvent_clazz(env),
360 "(JJIFFI)Landroid/view/MotionEvent;",
361 &g_MotionEvent_obtainAVME_J_J_I_F_F_I);
364 env->CallStaticObjectMethod(MotionEvent_clazz(env),
365 method_id, p0, p1, as_jint(p2), p3, p4, as_jint(p5));
366 jni_generator::CheckException(env);
367 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
370 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0;
371 static base::android::ScopedJavaLocalRef<jobject>
372 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) __attribute__
374 static base::android::ScopedJavaLocalRef<jobject>
375 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) {
376 /* Must call RegisterNativesImpl() */
377 CHECK_CLAZZ(env, MotionEvent_clazz(env),
378 MotionEvent_clazz(env), NULL);
379 jmethodID method_id =
380 base::android::MethodID::LazyGet<
381 base::android::MethodID::TYPE_STATIC>(
382 env, MotionEvent_clazz(env),
384 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
385 &g_MotionEvent_obtainAVME_AVME);
388 env->CallStaticObjectMethod(MotionEvent_clazz(env),
390 jni_generator::CheckException(env);
391 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
394 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0;
395 static base::android::ScopedJavaLocalRef<jobject>
396 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) __attribute__
398 static base::android::ScopedJavaLocalRef<jobject>
399 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) {
400 /* Must call RegisterNativesImpl() */
401 CHECK_CLAZZ(env, MotionEvent_clazz(env),
402 MotionEvent_clazz(env), NULL);
403 jmethodID method_id =
404 base::android::MethodID::LazyGet<
405 base::android::MethodID::TYPE_STATIC>(
406 env, MotionEvent_clazz(env),
408 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
409 &g_MotionEvent_obtainNoHistory);
412 env->CallStaticObjectMethod(MotionEvent_clazz(env),
414 jni_generator::CheckException(env);
415 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
418 static base::subtle::AtomicWord g_MotionEvent_recycle = 0;
419 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) __attribute__
421 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) {
422 /* Must call RegisterNativesImpl() */
423 CHECK_CLAZZ(env, obj,
424 MotionEvent_clazz(env));
425 jmethodID method_id =
426 base::android::MethodID::LazyGet<
427 base::android::MethodID::TYPE_INSTANCE>(
428 env, MotionEvent_clazz(env),
431 &g_MotionEvent_recycle);
433 env->CallVoidMethod(obj,
435 jni_generator::CheckException(env);
439 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0;
440 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) __attribute__
442 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) {
443 /* Must call RegisterNativesImpl() */
444 CHECK_CLAZZ(env, obj,
445 MotionEvent_clazz(env), 0);
446 jmethodID method_id =
447 base::android::MethodID::LazyGet<
448 base::android::MethodID::TYPE_INSTANCE>(
449 env, MotionEvent_clazz(env),
452 &g_MotionEvent_getDeviceId);
455 env->CallIntMethod(obj,
457 jni_generator::CheckException(env);
461 static base::subtle::AtomicWord g_MotionEvent_getSource = 0;
462 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) __attribute__
464 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) {
465 /* Must call RegisterNativesImpl() */
466 CHECK_CLAZZ(env, obj,
467 MotionEvent_clazz(env), 0);
468 jmethodID method_id =
469 base::android::MethodID::LazyGet<
470 base::android::MethodID::TYPE_INSTANCE>(
471 env, MotionEvent_clazz(env),
474 &g_MotionEvent_getSource);
477 env->CallIntMethod(obj,
479 jni_generator::CheckException(env);
483 static base::subtle::AtomicWord g_MotionEvent_setSource = 0;
484 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
485 p0) __attribute__ ((unused));
486 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
488 /* Must call RegisterNativesImpl() */
489 CHECK_CLAZZ(env, obj,
490 MotionEvent_clazz(env));
491 jmethodID method_id =
492 base::android::MethodID::LazyGet<
493 base::android::MethodID::TYPE_INSTANCE>(
494 env, MotionEvent_clazz(env),
497 &g_MotionEvent_setSource);
499 env->CallVoidMethod(obj,
500 method_id, as_jint(p0));
501 jni_generator::CheckException(env);
505 static base::subtle::AtomicWord g_MotionEvent_getAction = 0;
506 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) __attribute__
508 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) {
509 /* Must call RegisterNativesImpl() */
510 CHECK_CLAZZ(env, obj,
511 MotionEvent_clazz(env), 0);
512 jmethodID method_id =
513 base::android::MethodID::LazyGet<
514 base::android::MethodID::TYPE_INSTANCE>(
515 env, MotionEvent_clazz(env),
518 &g_MotionEvent_getAction);
521 env->CallIntMethod(obj,
523 jni_generator::CheckException(env);
527 static base::subtle::AtomicWord g_MotionEvent_getActionMasked = 0;
528 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj)
529 __attribute__ ((unused));
530 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj) {
531 /* Must call RegisterNativesImpl() */
532 CHECK_CLAZZ(env, obj,
533 MotionEvent_clazz(env), 0);
534 jmethodID method_id =
535 base::android::MethodID::LazyGet<
536 base::android::MethodID::TYPE_INSTANCE>(
537 env, MotionEvent_clazz(env),
540 &g_MotionEvent_getActionMasked);
543 env->CallIntMethod(obj,
545 jni_generator::CheckException(env);
549 static base::subtle::AtomicWord g_MotionEvent_getActionIndex = 0;
550 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj)
551 __attribute__ ((unused));
552 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj) {
553 /* Must call RegisterNativesImpl() */
554 CHECK_CLAZZ(env, obj,
555 MotionEvent_clazz(env), 0);
556 jmethodID method_id =
557 base::android::MethodID::LazyGet<
558 base::android::MethodID::TYPE_INSTANCE>(
559 env, MotionEvent_clazz(env),
562 &g_MotionEvent_getActionIndex);
565 env->CallIntMethod(obj,
567 jni_generator::CheckException(env);
571 static base::subtle::AtomicWord g_MotionEvent_getFlags = 0;
572 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) __attribute__
574 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) {
575 /* Must call RegisterNativesImpl() */
576 CHECK_CLAZZ(env, obj,
577 MotionEvent_clazz(env), 0);
578 jmethodID method_id =
579 base::android::MethodID::LazyGet<
580 base::android::MethodID::TYPE_INSTANCE>(
581 env, MotionEvent_clazz(env),
584 &g_MotionEvent_getFlags);
587 env->CallIntMethod(obj,
589 jni_generator::CheckException(env);
593 static base::subtle::AtomicWord g_MotionEvent_getDownTime = 0;
594 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj)
595 __attribute__ ((unused));
596 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj) {
597 /* Must call RegisterNativesImpl() */
598 CHECK_CLAZZ(env, obj,
599 MotionEvent_clazz(env), 0);
600 jmethodID method_id =
601 base::android::MethodID::LazyGet<
602 base::android::MethodID::TYPE_INSTANCE>(
603 env, MotionEvent_clazz(env),
606 &g_MotionEvent_getDownTime);
609 env->CallLongMethod(obj,
611 jni_generator::CheckException(env);
615 static base::subtle::AtomicWord g_MotionEvent_getEventTime = 0;
616 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj)
617 __attribute__ ((unused));
618 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj) {
619 /* Must call RegisterNativesImpl() */
620 CHECK_CLAZZ(env, obj,
621 MotionEvent_clazz(env), 0);
622 jmethodID method_id =
623 base::android::MethodID::LazyGet<
624 base::android::MethodID::TYPE_INSTANCE>(
625 env, MotionEvent_clazz(env),
628 &g_MotionEvent_getEventTime);
631 env->CallLongMethod(obj,
633 jni_generator::CheckException(env);
637 static base::subtle::AtomicWord g_MotionEvent_getXF = 0;
638 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) __attribute__
640 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) {
641 /* Must call RegisterNativesImpl() */
642 CHECK_CLAZZ(env, obj,
643 MotionEvent_clazz(env), 0);
644 jmethodID method_id =
645 base::android::MethodID::LazyGet<
646 base::android::MethodID::TYPE_INSTANCE>(
647 env, MotionEvent_clazz(env),
650 &g_MotionEvent_getXF);
653 env->CallFloatMethod(obj,
655 jni_generator::CheckException(env);
659 static base::subtle::AtomicWord g_MotionEvent_getYF = 0;
660 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) __attribute__
662 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) {
663 /* Must call RegisterNativesImpl() */
664 CHECK_CLAZZ(env, obj,
665 MotionEvent_clazz(env), 0);
666 jmethodID method_id =
667 base::android::MethodID::LazyGet<
668 base::android::MethodID::TYPE_INSTANCE>(
669 env, MotionEvent_clazz(env),
672 &g_MotionEvent_getYF);
675 env->CallFloatMethod(obj,
677 jni_generator::CheckException(env);
681 static base::subtle::AtomicWord g_MotionEvent_getPressureF = 0;
682 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj)
683 __attribute__ ((unused));
684 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj) {
685 /* Must call RegisterNativesImpl() */
686 CHECK_CLAZZ(env, obj,
687 MotionEvent_clazz(env), 0);
688 jmethodID method_id =
689 base::android::MethodID::LazyGet<
690 base::android::MethodID::TYPE_INSTANCE>(
691 env, MotionEvent_clazz(env),
694 &g_MotionEvent_getPressureF);
697 env->CallFloatMethod(obj,
699 jni_generator::CheckException(env);
703 static base::subtle::AtomicWord g_MotionEvent_getSizeF = 0;
704 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) __attribute__
706 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) {
707 /* Must call RegisterNativesImpl() */
708 CHECK_CLAZZ(env, obj,
709 MotionEvent_clazz(env), 0);
710 jmethodID method_id =
711 base::android::MethodID::LazyGet<
712 base::android::MethodID::TYPE_INSTANCE>(
713 env, MotionEvent_clazz(env),
716 &g_MotionEvent_getSizeF);
719 env->CallFloatMethod(obj,
721 jni_generator::CheckException(env);
725 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF = 0;
726 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj)
727 __attribute__ ((unused));
728 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj) {
729 /* Must call RegisterNativesImpl() */
730 CHECK_CLAZZ(env, obj,
731 MotionEvent_clazz(env), 0);
732 jmethodID method_id =
733 base::android::MethodID::LazyGet<
734 base::android::MethodID::TYPE_INSTANCE>(
735 env, MotionEvent_clazz(env),
738 &g_MotionEvent_getTouchMajorF);
741 env->CallFloatMethod(obj,
743 jni_generator::CheckException(env);
747 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF = 0;
748 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj)
749 __attribute__ ((unused));
750 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj) {
751 /* Must call RegisterNativesImpl() */
752 CHECK_CLAZZ(env, obj,
753 MotionEvent_clazz(env), 0);
754 jmethodID method_id =
755 base::android::MethodID::LazyGet<
756 base::android::MethodID::TYPE_INSTANCE>(
757 env, MotionEvent_clazz(env),
760 &g_MotionEvent_getTouchMinorF);
763 env->CallFloatMethod(obj,
765 jni_generator::CheckException(env);
769 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF = 0;
770 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj)
771 __attribute__ ((unused));
772 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj) {
773 /* Must call RegisterNativesImpl() */
774 CHECK_CLAZZ(env, obj,
775 MotionEvent_clazz(env), 0);
776 jmethodID method_id =
777 base::android::MethodID::LazyGet<
778 base::android::MethodID::TYPE_INSTANCE>(
779 env, MotionEvent_clazz(env),
782 &g_MotionEvent_getToolMajorF);
785 env->CallFloatMethod(obj,
787 jni_generator::CheckException(env);
791 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF = 0;
792 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj)
793 __attribute__ ((unused));
794 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj) {
795 /* Must call RegisterNativesImpl() */
796 CHECK_CLAZZ(env, obj,
797 MotionEvent_clazz(env), 0);
798 jmethodID method_id =
799 base::android::MethodID::LazyGet<
800 base::android::MethodID::TYPE_INSTANCE>(
801 env, MotionEvent_clazz(env),
804 &g_MotionEvent_getToolMinorF);
807 env->CallFloatMethod(obj,
809 jni_generator::CheckException(env);
813 static base::subtle::AtomicWord g_MotionEvent_getOrientationF = 0;
814 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj)
815 __attribute__ ((unused));
816 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj) {
817 /* Must call RegisterNativesImpl() */
818 CHECK_CLAZZ(env, obj,
819 MotionEvent_clazz(env), 0);
820 jmethodID method_id =
821 base::android::MethodID::LazyGet<
822 base::android::MethodID::TYPE_INSTANCE>(
823 env, MotionEvent_clazz(env),
826 &g_MotionEvent_getOrientationF);
829 env->CallFloatMethod(obj,
831 jni_generator::CheckException(env);
835 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I = 0;
836 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
837 JniIntWrapper p0) __attribute__ ((unused));
838 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
840 /* Must call RegisterNativesImpl() */
841 CHECK_CLAZZ(env, obj,
842 MotionEvent_clazz(env), 0);
843 jmethodID method_id =
844 base::android::MethodID::LazyGet<
845 base::android::MethodID::TYPE_INSTANCE>(
846 env, MotionEvent_clazz(env),
849 &g_MotionEvent_getAxisValueF_I);
852 env->CallFloatMethod(obj,
853 method_id, as_jint(p0));
854 jni_generator::CheckException(env);
858 static base::subtle::AtomicWord g_MotionEvent_getPointerCount = 0;
859 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj)
860 __attribute__ ((unused));
861 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj) {
862 /* Must call RegisterNativesImpl() */
863 CHECK_CLAZZ(env, obj,
864 MotionEvent_clazz(env), 0);
865 jmethodID method_id =
866 base::android::MethodID::LazyGet<
867 base::android::MethodID::TYPE_INSTANCE>(
868 env, MotionEvent_clazz(env),
871 &g_MotionEvent_getPointerCount);
874 env->CallIntMethod(obj,
876 jni_generator::CheckException(env);
880 static base::subtle::AtomicWord g_MotionEvent_getPointerId = 0;
881 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
882 JniIntWrapper p0) __attribute__ ((unused));
883 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
885 /* Must call RegisterNativesImpl() */
886 CHECK_CLAZZ(env, obj,
887 MotionEvent_clazz(env), 0);
888 jmethodID method_id =
889 base::android::MethodID::LazyGet<
890 base::android::MethodID::TYPE_INSTANCE>(
891 env, MotionEvent_clazz(env),
894 &g_MotionEvent_getPointerId);
897 env->CallIntMethod(obj,
898 method_id, as_jint(p0));
899 jni_generator::CheckException(env);
903 static base::subtle::AtomicWord g_MotionEvent_getToolType = 0;
904 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
905 p0) __attribute__ ((unused));
906 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
908 /* Must call RegisterNativesImpl() */
909 CHECK_CLAZZ(env, obj,
910 MotionEvent_clazz(env), 0);
911 jmethodID method_id =
912 base::android::MethodID::LazyGet<
913 base::android::MethodID::TYPE_INSTANCE>(
914 env, MotionEvent_clazz(env),
917 &g_MotionEvent_getToolType);
920 env->CallIntMethod(obj,
921 method_id, as_jint(p0));
922 jni_generator::CheckException(env);
926 static base::subtle::AtomicWord g_MotionEvent_findPointerIndex = 0;
927 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
928 JniIntWrapper p0) __attribute__ ((unused));
929 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
931 /* Must call RegisterNativesImpl() */
932 CHECK_CLAZZ(env, obj,
933 MotionEvent_clazz(env), 0);
934 jmethodID method_id =
935 base::android::MethodID::LazyGet<
936 base::android::MethodID::TYPE_INSTANCE>(
937 env, MotionEvent_clazz(env),
940 &g_MotionEvent_findPointerIndex);
943 env->CallIntMethod(obj,
944 method_id, as_jint(p0));
945 jni_generator::CheckException(env);
949 static base::subtle::AtomicWord g_MotionEvent_getXF_I = 0;
950 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
951 p0) __attribute__ ((unused));
952 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
954 /* Must call RegisterNativesImpl() */
955 CHECK_CLAZZ(env, obj,
956 MotionEvent_clazz(env), 0);
957 jmethodID method_id =
958 base::android::MethodID::LazyGet<
959 base::android::MethodID::TYPE_INSTANCE>(
960 env, MotionEvent_clazz(env),
963 &g_MotionEvent_getXF_I);
966 env->CallFloatMethod(obj,
967 method_id, as_jint(p0));
968 jni_generator::CheckException(env);
972 static base::subtle::AtomicWord g_MotionEvent_getYF_I = 0;
973 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
974 p0) __attribute__ ((unused));
975 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
977 /* Must call RegisterNativesImpl() */
978 CHECK_CLAZZ(env, obj,
979 MotionEvent_clazz(env), 0);
980 jmethodID method_id =
981 base::android::MethodID::LazyGet<
982 base::android::MethodID::TYPE_INSTANCE>(
983 env, MotionEvent_clazz(env),
986 &g_MotionEvent_getYF_I);
989 env->CallFloatMethod(obj,
990 method_id, as_jint(p0));
991 jni_generator::CheckException(env);
995 static base::subtle::AtomicWord g_MotionEvent_getPressureF_I = 0;
996 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
997 JniIntWrapper p0) __attribute__ ((unused));
998 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
1000 /* Must call RegisterNativesImpl() */
1001 CHECK_CLAZZ(env, obj,
1002 MotionEvent_clazz(env), 0);
1003 jmethodID method_id =
1004 base::android::MethodID::LazyGet<
1005 base::android::MethodID::TYPE_INSTANCE>(
1006 env, MotionEvent_clazz(env),
1009 &g_MotionEvent_getPressureF_I);
1012 env->CallFloatMethod(obj,
1013 method_id, as_jint(p0));
1014 jni_generator::CheckException(env);
1018 static base::subtle::AtomicWord g_MotionEvent_getSizeF_I = 0;
1019 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1020 JniIntWrapper p0) __attribute__ ((unused));
1021 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1023 /* Must call RegisterNativesImpl() */
1024 CHECK_CLAZZ(env, obj,
1025 MotionEvent_clazz(env), 0);
1026 jmethodID method_id =
1027 base::android::MethodID::LazyGet<
1028 base::android::MethodID::TYPE_INSTANCE>(
1029 env, MotionEvent_clazz(env),
1032 &g_MotionEvent_getSizeF_I);
1035 env->CallFloatMethod(obj,
1036 method_id, as_jint(p0));
1037 jni_generator::CheckException(env);
1041 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF_I = 0;
1042 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1043 JniIntWrapper p0) __attribute__ ((unused));
1044 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1046 /* Must call RegisterNativesImpl() */
1047 CHECK_CLAZZ(env, obj,
1048 MotionEvent_clazz(env), 0);
1049 jmethodID method_id =
1050 base::android::MethodID::LazyGet<
1051 base::android::MethodID::TYPE_INSTANCE>(
1052 env, MotionEvent_clazz(env),
1055 &g_MotionEvent_getTouchMajorF_I);
1058 env->CallFloatMethod(obj,
1059 method_id, as_jint(p0));
1060 jni_generator::CheckException(env);
1064 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF_I = 0;
1065 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1066 JniIntWrapper p0) __attribute__ ((unused));
1067 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1069 /* Must call RegisterNativesImpl() */
1070 CHECK_CLAZZ(env, obj,
1071 MotionEvent_clazz(env), 0);
1072 jmethodID method_id =
1073 base::android::MethodID::LazyGet<
1074 base::android::MethodID::TYPE_INSTANCE>(
1075 env, MotionEvent_clazz(env),
1078 &g_MotionEvent_getTouchMinorF_I);
1081 env->CallFloatMethod(obj,
1082 method_id, as_jint(p0));
1083 jni_generator::CheckException(env);
1087 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF_I = 0;
1088 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1089 JniIntWrapper p0) __attribute__ ((unused));
1090 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1092 /* Must call RegisterNativesImpl() */
1093 CHECK_CLAZZ(env, obj,
1094 MotionEvent_clazz(env), 0);
1095 jmethodID method_id =
1096 base::android::MethodID::LazyGet<
1097 base::android::MethodID::TYPE_INSTANCE>(
1098 env, MotionEvent_clazz(env),
1101 &g_MotionEvent_getToolMajorF_I);
1104 env->CallFloatMethod(obj,
1105 method_id, as_jint(p0));
1106 jni_generator::CheckException(env);
1110 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF_I = 0;
1111 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1112 JniIntWrapper p0) __attribute__ ((unused));
1113 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1115 /* Must call RegisterNativesImpl() */
1116 CHECK_CLAZZ(env, obj,
1117 MotionEvent_clazz(env), 0);
1118 jmethodID method_id =
1119 base::android::MethodID::LazyGet<
1120 base::android::MethodID::TYPE_INSTANCE>(
1121 env, MotionEvent_clazz(env),
1124 &g_MotionEvent_getToolMinorF_I);
1127 env->CallFloatMethod(obj,
1128 method_id, as_jint(p0));
1129 jni_generator::CheckException(env);
1133 static base::subtle::AtomicWord g_MotionEvent_getOrientationF_I = 0;
1134 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1135 JniIntWrapper p0) __attribute__ ((unused));
1136 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1138 /* Must call RegisterNativesImpl() */
1139 CHECK_CLAZZ(env, obj,
1140 MotionEvent_clazz(env), 0);
1141 jmethodID method_id =
1142 base::android::MethodID::LazyGet<
1143 base::android::MethodID::TYPE_INSTANCE>(
1144 env, MotionEvent_clazz(env),
1147 &g_MotionEvent_getOrientationF_I);
1150 env->CallFloatMethod(obj,
1151 method_id, as_jint(p0));
1152 jni_generator::CheckException(env);
1156 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I_I = 0;
1157 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1159 JniIntWrapper p1) __attribute__ ((unused));
1160 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1163 /* Must call RegisterNativesImpl() */
1164 CHECK_CLAZZ(env, obj,
1165 MotionEvent_clazz(env), 0);
1166 jmethodID method_id =
1167 base::android::MethodID::LazyGet<
1168 base::android::MethodID::TYPE_INSTANCE>(
1169 env, MotionEvent_clazz(env),
1172 &g_MotionEvent_getAxisValueF_I_I);
1175 env->CallFloatMethod(obj,
1176 method_id, as_jint(p0), as_jint(p1));
1177 jni_generator::CheckException(env);
1181 static base::subtle::AtomicWord g_MotionEvent_getPointerCoords = 0;
1182 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1184 jobject p1) __attribute__ ((unused));
1185 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1188 /* Must call RegisterNativesImpl() */
1189 CHECK_CLAZZ(env, obj,
1190 MotionEvent_clazz(env));
1191 jmethodID method_id =
1192 base::android::MethodID::LazyGet<
1193 base::android::MethodID::TYPE_INSTANCE>(
1194 env, MotionEvent_clazz(env),
1196 "(ILandroid/view/MotionEvent$PointerCoords;)V",
1197 &g_MotionEvent_getPointerCoords);
1199 env->CallVoidMethod(obj,
1200 method_id, as_jint(p0), p1);
1201 jni_generator::CheckException(env);
1205 static base::subtle::AtomicWord g_MotionEvent_getPointerProperties = 0;
1206 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1208 jobject p1) __attribute__ ((unused));
1209 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1212 /* Must call RegisterNativesImpl() */
1213 CHECK_CLAZZ(env, obj,
1214 MotionEvent_clazz(env));
1215 jmethodID method_id =
1216 base::android::MethodID::LazyGet<
1217 base::android::MethodID::TYPE_INSTANCE>(
1218 env, MotionEvent_clazz(env),
1219 "getPointerProperties",
1220 "(ILandroid/view/MotionEvent$PointerProperties;)V",
1221 &g_MotionEvent_getPointerProperties);
1223 env->CallVoidMethod(obj,
1224 method_id, as_jint(p0), p1);
1225 jni_generator::CheckException(env);
1229 static base::subtle::AtomicWord g_MotionEvent_getMetaState = 0;
1230 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj)
1231 __attribute__ ((unused));
1232 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj) {
1233 /* Must call RegisterNativesImpl() */
1234 CHECK_CLAZZ(env, obj,
1235 MotionEvent_clazz(env), 0);
1236 jmethodID method_id =
1237 base::android::MethodID::LazyGet<
1238 base::android::MethodID::TYPE_INSTANCE>(
1239 env, MotionEvent_clazz(env),
1242 &g_MotionEvent_getMetaState);
1245 env->CallIntMethod(obj,
1247 jni_generator::CheckException(env);
1251 static base::subtle::AtomicWord g_MotionEvent_getButtonState = 0;
1252 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj)
1253 __attribute__ ((unused));
1254 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj) {
1255 /* Must call RegisterNativesImpl() */
1256 CHECK_CLAZZ(env, obj,
1257 MotionEvent_clazz(env), 0);
1258 jmethodID method_id =
1259 base::android::MethodID::LazyGet<
1260 base::android::MethodID::TYPE_INSTANCE>(
1261 env, MotionEvent_clazz(env),
1264 &g_MotionEvent_getButtonState);
1267 env->CallIntMethod(obj,
1269 jni_generator::CheckException(env);
1273 static base::subtle::AtomicWord g_MotionEvent_getRawX = 0;
1274 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) __attribute__
1276 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) {
1277 /* Must call RegisterNativesImpl() */
1278 CHECK_CLAZZ(env, obj,
1279 MotionEvent_clazz(env), 0);
1280 jmethodID method_id =
1281 base::android::MethodID::LazyGet<
1282 base::android::MethodID::TYPE_INSTANCE>(
1283 env, MotionEvent_clazz(env),
1286 &g_MotionEvent_getRawX);
1289 env->CallFloatMethod(obj,
1291 jni_generator::CheckException(env);
1295 static base::subtle::AtomicWord g_MotionEvent_getRawY = 0;
1296 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) __attribute__
1298 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) {
1299 /* Must call RegisterNativesImpl() */
1300 CHECK_CLAZZ(env, obj,
1301 MotionEvent_clazz(env), 0);
1302 jmethodID method_id =
1303 base::android::MethodID::LazyGet<
1304 base::android::MethodID::TYPE_INSTANCE>(
1305 env, MotionEvent_clazz(env),
1308 &g_MotionEvent_getRawY);
1311 env->CallFloatMethod(obj,
1313 jni_generator::CheckException(env);
1317 static base::subtle::AtomicWord g_MotionEvent_getXPrecision = 0;
1318 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj)
1319 __attribute__ ((unused));
1320 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj) {
1321 /* Must call RegisterNativesImpl() */
1322 CHECK_CLAZZ(env, obj,
1323 MotionEvent_clazz(env), 0);
1324 jmethodID method_id =
1325 base::android::MethodID::LazyGet<
1326 base::android::MethodID::TYPE_INSTANCE>(
1327 env, MotionEvent_clazz(env),
1330 &g_MotionEvent_getXPrecision);
1333 env->CallFloatMethod(obj,
1335 jni_generator::CheckException(env);
1339 static base::subtle::AtomicWord g_MotionEvent_getYPrecision = 0;
1340 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj)
1341 __attribute__ ((unused));
1342 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj) {
1343 /* Must call RegisterNativesImpl() */
1344 CHECK_CLAZZ(env, obj,
1345 MotionEvent_clazz(env), 0);
1346 jmethodID method_id =
1347 base::android::MethodID::LazyGet<
1348 base::android::MethodID::TYPE_INSTANCE>(
1349 env, MotionEvent_clazz(env),
1352 &g_MotionEvent_getYPrecision);
1355 env->CallFloatMethod(obj,
1357 jni_generator::CheckException(env);
1361 static base::subtle::AtomicWord g_MotionEvent_getHistorySize = 0;
1362 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj)
1363 __attribute__ ((unused));
1364 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj) {
1365 /* Must call RegisterNativesImpl() */
1366 CHECK_CLAZZ(env, obj,
1367 MotionEvent_clazz(env), 0);
1368 jmethodID method_id =
1369 base::android::MethodID::LazyGet<
1370 base::android::MethodID::TYPE_INSTANCE>(
1371 env, MotionEvent_clazz(env),
1374 &g_MotionEvent_getHistorySize);
1377 env->CallIntMethod(obj,
1379 jni_generator::CheckException(env);
1383 static base::subtle::AtomicWord g_MotionEvent_getHistoricalEventTime = 0;
1384 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1385 JniIntWrapper p0) __attribute__ ((unused));
1386 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1388 /* Must call RegisterNativesImpl() */
1389 CHECK_CLAZZ(env, obj,
1390 MotionEvent_clazz(env), 0);
1391 jmethodID method_id =
1392 base::android::MethodID::LazyGet<
1393 base::android::MethodID::TYPE_INSTANCE>(
1394 env, MotionEvent_clazz(env),
1395 "getHistoricalEventTime",
1397 &g_MotionEvent_getHistoricalEventTime);
1400 env->CallLongMethod(obj,
1401 method_id, as_jint(p0));
1402 jni_generator::CheckException(env);
1406 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I = 0;
1407 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1408 JniIntWrapper p0) __attribute__ ((unused));
1409 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1411 /* Must call RegisterNativesImpl() */
1412 CHECK_CLAZZ(env, obj,
1413 MotionEvent_clazz(env), 0);
1414 jmethodID method_id =
1415 base::android::MethodID::LazyGet<
1416 base::android::MethodID::TYPE_INSTANCE>(
1417 env, MotionEvent_clazz(env),
1420 &g_MotionEvent_getHistoricalXF_I);
1423 env->CallFloatMethod(obj,
1424 method_id, as_jint(p0));
1425 jni_generator::CheckException(env);
1429 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I = 0;
1430 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1431 JniIntWrapper p0) __attribute__ ((unused));
1432 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1434 /* Must call RegisterNativesImpl() */
1435 CHECK_CLAZZ(env, obj,
1436 MotionEvent_clazz(env), 0);
1437 jmethodID method_id =
1438 base::android::MethodID::LazyGet<
1439 base::android::MethodID::TYPE_INSTANCE>(
1440 env, MotionEvent_clazz(env),
1443 &g_MotionEvent_getHistoricalYF_I);
1446 env->CallFloatMethod(obj,
1447 method_id, as_jint(p0));
1448 jni_generator::CheckException(env);
1452 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I = 0;
1453 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1454 obj, JniIntWrapper p0) __attribute__ ((unused));
1455 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1456 obj, JniIntWrapper p0) {
1457 /* Must call RegisterNativesImpl() */
1458 CHECK_CLAZZ(env, obj,
1459 MotionEvent_clazz(env), 0);
1460 jmethodID method_id =
1461 base::android::MethodID::LazyGet<
1462 base::android::MethodID::TYPE_INSTANCE>(
1463 env, MotionEvent_clazz(env),
1464 "getHistoricalPressure",
1466 &g_MotionEvent_getHistoricalPressureF_I);
1469 env->CallFloatMethod(obj,
1470 method_id, as_jint(p0));
1471 jni_generator::CheckException(env);
1475 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I = 0;
1476 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1477 JniIntWrapper p0) __attribute__ ((unused));
1478 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1480 /* Must call RegisterNativesImpl() */
1481 CHECK_CLAZZ(env, obj,
1482 MotionEvent_clazz(env), 0);
1483 jmethodID method_id =
1484 base::android::MethodID::LazyGet<
1485 base::android::MethodID::TYPE_INSTANCE>(
1486 env, MotionEvent_clazz(env),
1487 "getHistoricalSize",
1489 &g_MotionEvent_getHistoricalSizeF_I);
1492 env->CallFloatMethod(obj,
1493 method_id, as_jint(p0));
1494 jni_generator::CheckException(env);
1498 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I = 0;
1499 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1500 obj, JniIntWrapper p0) __attribute__ ((unused));
1501 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1502 obj, JniIntWrapper p0) {
1503 /* Must call RegisterNativesImpl() */
1504 CHECK_CLAZZ(env, obj,
1505 MotionEvent_clazz(env), 0);
1506 jmethodID method_id =
1507 base::android::MethodID::LazyGet<
1508 base::android::MethodID::TYPE_INSTANCE>(
1509 env, MotionEvent_clazz(env),
1510 "getHistoricalTouchMajor",
1512 &g_MotionEvent_getHistoricalTouchMajorF_I);
1515 env->CallFloatMethod(obj,
1516 method_id, as_jint(p0));
1517 jni_generator::CheckException(env);
1521 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I = 0;
1522 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1523 obj, JniIntWrapper p0) __attribute__ ((unused));
1524 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1525 obj, JniIntWrapper p0) {
1526 /* Must call RegisterNativesImpl() */
1527 CHECK_CLAZZ(env, obj,
1528 MotionEvent_clazz(env), 0);
1529 jmethodID method_id =
1530 base::android::MethodID::LazyGet<
1531 base::android::MethodID::TYPE_INSTANCE>(
1532 env, MotionEvent_clazz(env),
1533 "getHistoricalTouchMinor",
1535 &g_MotionEvent_getHistoricalTouchMinorF_I);
1538 env->CallFloatMethod(obj,
1539 method_id, as_jint(p0));
1540 jni_generator::CheckException(env);
1544 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I = 0;
1545 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1546 obj, JniIntWrapper p0) __attribute__ ((unused));
1547 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1548 obj, JniIntWrapper p0) {
1549 /* Must call RegisterNativesImpl() */
1550 CHECK_CLAZZ(env, obj,
1551 MotionEvent_clazz(env), 0);
1552 jmethodID method_id =
1553 base::android::MethodID::LazyGet<
1554 base::android::MethodID::TYPE_INSTANCE>(
1555 env, MotionEvent_clazz(env),
1556 "getHistoricalToolMajor",
1558 &g_MotionEvent_getHistoricalToolMajorF_I);
1561 env->CallFloatMethod(obj,
1562 method_id, as_jint(p0));
1563 jni_generator::CheckException(env);
1567 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I = 0;
1568 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1569 obj, JniIntWrapper p0) __attribute__ ((unused));
1570 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1571 obj, JniIntWrapper p0) {
1572 /* Must call RegisterNativesImpl() */
1573 CHECK_CLAZZ(env, obj,
1574 MotionEvent_clazz(env), 0);
1575 jmethodID method_id =
1576 base::android::MethodID::LazyGet<
1577 base::android::MethodID::TYPE_INSTANCE>(
1578 env, MotionEvent_clazz(env),
1579 "getHistoricalToolMinor",
1581 &g_MotionEvent_getHistoricalToolMinorF_I);
1584 env->CallFloatMethod(obj,
1585 method_id, as_jint(p0));
1586 jni_generator::CheckException(env);
1590 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I = 0;
1591 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1592 obj, JniIntWrapper p0) __attribute__ ((unused));
1593 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1594 obj, JniIntWrapper p0) {
1595 /* Must call RegisterNativesImpl() */
1596 CHECK_CLAZZ(env, obj,
1597 MotionEvent_clazz(env), 0);
1598 jmethodID method_id =
1599 base::android::MethodID::LazyGet<
1600 base::android::MethodID::TYPE_INSTANCE>(
1601 env, MotionEvent_clazz(env),
1602 "getHistoricalOrientation",
1604 &g_MotionEvent_getHistoricalOrientationF_I);
1607 env->CallFloatMethod(obj,
1608 method_id, as_jint(p0));
1609 jni_generator::CheckException(env);
1613 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I = 0;
1614 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1615 obj, JniIntWrapper p0,
1616 JniIntWrapper p1) __attribute__ ((unused));
1617 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1618 obj, JniIntWrapper p0,
1620 /* Must call RegisterNativesImpl() */
1621 CHECK_CLAZZ(env, obj,
1622 MotionEvent_clazz(env), 0);
1623 jmethodID method_id =
1624 base::android::MethodID::LazyGet<
1625 base::android::MethodID::TYPE_INSTANCE>(
1626 env, MotionEvent_clazz(env),
1627 "getHistoricalAxisValue",
1629 &g_MotionEvent_getHistoricalAxisValueF_I_I);
1632 env->CallFloatMethod(obj,
1633 method_id, as_jint(p0), as_jint(p1));
1634 jni_generator::CheckException(env);
1638 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I_I = 0;
1639 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1641 JniIntWrapper p1) __attribute__ ((unused));
1642 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1645 /* Must call RegisterNativesImpl() */
1646 CHECK_CLAZZ(env, obj,
1647 MotionEvent_clazz(env), 0);
1648 jmethodID method_id =
1649 base::android::MethodID::LazyGet<
1650 base::android::MethodID::TYPE_INSTANCE>(
1651 env, MotionEvent_clazz(env),
1654 &g_MotionEvent_getHistoricalXF_I_I);
1657 env->CallFloatMethod(obj,
1658 method_id, as_jint(p0), as_jint(p1));
1659 jni_generator::CheckException(env);
1663 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I_I = 0;
1664 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1666 JniIntWrapper p1) __attribute__ ((unused));
1667 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1670 /* Must call RegisterNativesImpl() */
1671 CHECK_CLAZZ(env, obj,
1672 MotionEvent_clazz(env), 0);
1673 jmethodID method_id =
1674 base::android::MethodID::LazyGet<
1675 base::android::MethodID::TYPE_INSTANCE>(
1676 env, MotionEvent_clazz(env),
1679 &g_MotionEvent_getHistoricalYF_I_I);
1682 env->CallFloatMethod(obj,
1683 method_id, as_jint(p0), as_jint(p1));
1684 jni_generator::CheckException(env);
1688 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I_I = 0;
1689 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1690 obj, JniIntWrapper p0,
1691 JniIntWrapper p1) __attribute__ ((unused));
1692 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1693 obj, JniIntWrapper p0,
1695 /* Must call RegisterNativesImpl() */
1696 CHECK_CLAZZ(env, obj,
1697 MotionEvent_clazz(env), 0);
1698 jmethodID method_id =
1699 base::android::MethodID::LazyGet<
1700 base::android::MethodID::TYPE_INSTANCE>(
1701 env, MotionEvent_clazz(env),
1702 "getHistoricalPressure",
1704 &g_MotionEvent_getHistoricalPressureF_I_I);
1707 env->CallFloatMethod(obj,
1708 method_id, as_jint(p0), as_jint(p1));
1709 jni_generator::CheckException(env);
1713 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I_I = 0;
1714 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1716 JniIntWrapper p1) __attribute__ ((unused));
1717 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1720 /* Must call RegisterNativesImpl() */
1721 CHECK_CLAZZ(env, obj,
1722 MotionEvent_clazz(env), 0);
1723 jmethodID method_id =
1724 base::android::MethodID::LazyGet<
1725 base::android::MethodID::TYPE_INSTANCE>(
1726 env, MotionEvent_clazz(env),
1727 "getHistoricalSize",
1729 &g_MotionEvent_getHistoricalSizeF_I_I);
1732 env->CallFloatMethod(obj,
1733 method_id, as_jint(p0), as_jint(p1));
1734 jni_generator::CheckException(env);
1738 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I_I = 0;
1739 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1740 obj, JniIntWrapper p0,
1741 JniIntWrapper p1) __attribute__ ((unused));
1742 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1743 obj, JniIntWrapper p0,
1745 /* Must call RegisterNativesImpl() */
1746 CHECK_CLAZZ(env, obj,
1747 MotionEvent_clazz(env), 0);
1748 jmethodID method_id =
1749 base::android::MethodID::LazyGet<
1750 base::android::MethodID::TYPE_INSTANCE>(
1751 env, MotionEvent_clazz(env),
1752 "getHistoricalTouchMajor",
1754 &g_MotionEvent_getHistoricalTouchMajorF_I_I);
1757 env->CallFloatMethod(obj,
1758 method_id, as_jint(p0), as_jint(p1));
1759 jni_generator::CheckException(env);
1763 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I_I = 0;
1764 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1765 obj, JniIntWrapper p0,
1766 JniIntWrapper p1) __attribute__ ((unused));
1767 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1768 obj, JniIntWrapper p0,
1770 /* Must call RegisterNativesImpl() */
1771 CHECK_CLAZZ(env, obj,
1772 MotionEvent_clazz(env), 0);
1773 jmethodID method_id =
1774 base::android::MethodID::LazyGet<
1775 base::android::MethodID::TYPE_INSTANCE>(
1776 env, MotionEvent_clazz(env),
1777 "getHistoricalTouchMinor",
1779 &g_MotionEvent_getHistoricalTouchMinorF_I_I);
1782 env->CallFloatMethod(obj,
1783 method_id, as_jint(p0), as_jint(p1));
1784 jni_generator::CheckException(env);
1788 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I_I = 0;
1789 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1790 obj, JniIntWrapper p0,
1791 JniIntWrapper p1) __attribute__ ((unused));
1792 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1793 obj, JniIntWrapper p0,
1795 /* Must call RegisterNativesImpl() */
1796 CHECK_CLAZZ(env, obj,
1797 MotionEvent_clazz(env), 0);
1798 jmethodID method_id =
1799 base::android::MethodID::LazyGet<
1800 base::android::MethodID::TYPE_INSTANCE>(
1801 env, MotionEvent_clazz(env),
1802 "getHistoricalToolMajor",
1804 &g_MotionEvent_getHistoricalToolMajorF_I_I);
1807 env->CallFloatMethod(obj,
1808 method_id, as_jint(p0), as_jint(p1));
1809 jni_generator::CheckException(env);
1813 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I_I = 0;
1814 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1815 obj, JniIntWrapper p0,
1816 JniIntWrapper p1) __attribute__ ((unused));
1817 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1818 obj, JniIntWrapper p0,
1820 /* Must call RegisterNativesImpl() */
1821 CHECK_CLAZZ(env, obj,
1822 MotionEvent_clazz(env), 0);
1823 jmethodID method_id =
1824 base::android::MethodID::LazyGet<
1825 base::android::MethodID::TYPE_INSTANCE>(
1826 env, MotionEvent_clazz(env),
1827 "getHistoricalToolMinor",
1829 &g_MotionEvent_getHistoricalToolMinorF_I_I);
1832 env->CallFloatMethod(obj,
1833 method_id, as_jint(p0), as_jint(p1));
1834 jni_generator::CheckException(env);
1838 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I_I = 0;
1839 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1840 jobject obj, JniIntWrapper p0,
1841 JniIntWrapper p1) __attribute__ ((unused));
1842 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1843 jobject obj, JniIntWrapper p0,
1845 /* Must call RegisterNativesImpl() */
1846 CHECK_CLAZZ(env, obj,
1847 MotionEvent_clazz(env), 0);
1848 jmethodID method_id =
1849 base::android::MethodID::LazyGet<
1850 base::android::MethodID::TYPE_INSTANCE>(
1851 env, MotionEvent_clazz(env),
1852 "getHistoricalOrientation",
1854 &g_MotionEvent_getHistoricalOrientationF_I_I);
1857 env->CallFloatMethod(obj,
1858 method_id, as_jint(p0), as_jint(p1));
1859 jni_generator::CheckException(env);
1863 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I_I = 0;
1864 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1865 jobject obj, JniIntWrapper p0,
1867 JniIntWrapper p2) __attribute__ ((unused));
1868 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1869 jobject obj, JniIntWrapper p0,
1872 /* Must call RegisterNativesImpl() */
1873 CHECK_CLAZZ(env, obj,
1874 MotionEvent_clazz(env), 0);
1875 jmethodID method_id =
1876 base::android::MethodID::LazyGet<
1877 base::android::MethodID::TYPE_INSTANCE>(
1878 env, MotionEvent_clazz(env),
1879 "getHistoricalAxisValue",
1881 &g_MotionEvent_getHistoricalAxisValueF_I_I_I);
1884 env->CallFloatMethod(obj,
1885 method_id, as_jint(p0), as_jint(p1), as_jint(p2));
1886 jni_generator::CheckException(env);
1890 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPointerCoords = 0;
1891 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1892 obj, JniIntWrapper p0,
1894 jobject p2) __attribute__ ((unused));
1895 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1896 obj, JniIntWrapper p0,
1899 /* Must call RegisterNativesImpl() */
1900 CHECK_CLAZZ(env, obj,
1901 MotionEvent_clazz(env));
1902 jmethodID method_id =
1903 base::android::MethodID::LazyGet<
1904 base::android::MethodID::TYPE_INSTANCE>(
1905 env, MotionEvent_clazz(env),
1906 "getHistoricalPointerCoords",
1907 "(IILandroid/view/MotionEvent$PointerCoords;)V",
1908 &g_MotionEvent_getHistoricalPointerCoords);
1910 env->CallVoidMethod(obj,
1911 method_id, as_jint(p0), as_jint(p1), p2);
1912 jni_generator::CheckException(env);
1916 static base::subtle::AtomicWord g_MotionEvent_getEdgeFlags = 0;
1917 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj)
1918 __attribute__ ((unused));
1919 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj) {
1920 /* Must call RegisterNativesImpl() */
1921 CHECK_CLAZZ(env, obj,
1922 MotionEvent_clazz(env), 0);
1923 jmethodID method_id =
1924 base::android::MethodID::LazyGet<
1925 base::android::MethodID::TYPE_INSTANCE>(
1926 env, MotionEvent_clazz(env),
1929 &g_MotionEvent_getEdgeFlags);
1932 env->CallIntMethod(obj,
1934 jni_generator::CheckException(env);
1938 static base::subtle::AtomicWord g_MotionEvent_setEdgeFlags = 0;
1939 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1940 JniIntWrapper p0) __attribute__ ((unused));
1941 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1943 /* Must call RegisterNativesImpl() */
1944 CHECK_CLAZZ(env, obj,
1945 MotionEvent_clazz(env));
1946 jmethodID method_id =
1947 base::android::MethodID::LazyGet<
1948 base::android::MethodID::TYPE_INSTANCE>(
1949 env, MotionEvent_clazz(env),
1952 &g_MotionEvent_setEdgeFlags);
1954 env->CallVoidMethod(obj,
1955 method_id, as_jint(p0));
1956 jni_generator::CheckException(env);
1960 static base::subtle::AtomicWord g_MotionEvent_setAction = 0;
1961 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1962 p0) __attribute__ ((unused));
1963 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1965 /* Must call RegisterNativesImpl() */
1966 CHECK_CLAZZ(env, obj,
1967 MotionEvent_clazz(env));
1968 jmethodID method_id =
1969 base::android::MethodID::LazyGet<
1970 base::android::MethodID::TYPE_INSTANCE>(
1971 env, MotionEvent_clazz(env),
1974 &g_MotionEvent_setAction);
1976 env->CallVoidMethod(obj,
1977 method_id, as_jint(p0));
1978 jni_generator::CheckException(env);
1982 static base::subtle::AtomicWord g_MotionEvent_offsetLocation = 0;
1983 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1984 jfloat p1) __attribute__ ((unused));
1985 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1987 /* Must call RegisterNativesImpl() */
1988 CHECK_CLAZZ(env, obj,
1989 MotionEvent_clazz(env));
1990 jmethodID method_id =
1991 base::android::MethodID::LazyGet<
1992 base::android::MethodID::TYPE_INSTANCE>(
1993 env, MotionEvent_clazz(env),
1996 &g_MotionEvent_offsetLocation);
1998 env->CallVoidMethod(obj,
2000 jni_generator::CheckException(env);
2004 static base::subtle::AtomicWord g_MotionEvent_setLocation = 0;
2005 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2006 jfloat p1) __attribute__ ((unused));
2007 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2009 /* Must call RegisterNativesImpl() */
2010 CHECK_CLAZZ(env, obj,
2011 MotionEvent_clazz(env));
2012 jmethodID method_id =
2013 base::android::MethodID::LazyGet<
2014 base::android::MethodID::TYPE_INSTANCE>(
2015 env, MotionEvent_clazz(env),
2018 &g_MotionEvent_setLocation);
2020 env->CallVoidMethod(obj,
2022 jni_generator::CheckException(env);
2026 static base::subtle::AtomicWord g_MotionEvent_transform = 0;
2027 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0)
2028 __attribute__ ((unused));
2029 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0) {
2030 /* Must call RegisterNativesImpl() */
2031 CHECK_CLAZZ(env, obj,
2032 MotionEvent_clazz(env));
2033 jmethodID method_id =
2034 base::android::MethodID::LazyGet<
2035 base::android::MethodID::TYPE_INSTANCE>(
2036 env, MotionEvent_clazz(env),
2038 "(Landroid/graphics/Matrix;)V",
2039 &g_MotionEvent_transform);
2041 env->CallVoidMethod(obj,
2043 jni_generator::CheckException(env);
2047 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_F_F_F_F_I = 0;
2048 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2054 JniIntWrapper p5) __attribute__ ((unused));
2055 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2062 /* Must call RegisterNativesImpl() */
2063 CHECK_CLAZZ(env, obj,
2064 MotionEvent_clazz(env));
2065 jmethodID method_id =
2066 base::android::MethodID::LazyGet<
2067 base::android::MethodID::TYPE_INSTANCE>(
2068 env, MotionEvent_clazz(env),
2071 &g_MotionEvent_addBatchV_J_F_F_F_F_I);
2073 env->CallVoidMethod(obj,
2074 method_id, p0, p1, p2, p3, p4, as_jint(p5));
2075 jni_generator::CheckException(env);
2079 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_LAVMEPC_I = 0;
2080 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2083 JniIntWrapper p2) __attribute__ ((unused));
2084 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2088 /* Must call RegisterNativesImpl() */
2089 CHECK_CLAZZ(env, obj,
2090 MotionEvent_clazz(env));
2091 jmethodID method_id =
2092 base::android::MethodID::LazyGet<
2093 base::android::MethodID::TYPE_INSTANCE>(
2094 env, MotionEvent_clazz(env),
2096 "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
2097 &g_MotionEvent_addBatchV_J_LAVMEPC_I);
2099 env->CallVoidMethod(obj,
2100 method_id, p0, p1, as_jint(p2));
2101 jni_generator::CheckException(env);
2105 static base::subtle::AtomicWord g_MotionEvent_toString = 0;
2106 static base::android::ScopedJavaLocalRef<jstring>
2107 Java_MotionEvent_toString(JNIEnv* env, jobject obj) __attribute__
2109 static base::android::ScopedJavaLocalRef<jstring>
2110 Java_MotionEvent_toString(JNIEnv* env, jobject obj) {
2111 /* Must call RegisterNativesImpl() */
2112 CHECK_CLAZZ(env, obj,
2113 MotionEvent_clazz(env), NULL);
2114 jmethodID method_id =
2115 base::android::MethodID::LazyGet<
2116 base::android::MethodID::TYPE_INSTANCE>(
2117 env, MotionEvent_clazz(env),
2119 "()Ljava/lang/String;",
2120 &g_MotionEvent_toString);
2123 static_cast<jstring>(env->CallObjectMethod(obj,
2125 jni_generator::CheckException(env);
2126 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2129 static base::subtle::AtomicWord g_MotionEvent_actionToString = 0;
2130 static base::android::ScopedJavaLocalRef<jstring>
2131 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2133 static base::android::ScopedJavaLocalRef<jstring>
2134 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) {
2135 /* Must call RegisterNativesImpl() */
2136 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2137 MotionEvent_clazz(env), NULL);
2138 jmethodID method_id =
2139 base::android::MethodID::LazyGet<
2140 base::android::MethodID::TYPE_STATIC>(
2141 env, MotionEvent_clazz(env),
2143 "(I)Ljava/lang/String;",
2144 &g_MotionEvent_actionToString);
2147 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2148 method_id, as_jint(p0)));
2149 jni_generator::CheckException(env);
2150 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2153 static base::subtle::AtomicWord g_MotionEvent_axisToString = 0;
2154 static base::android::ScopedJavaLocalRef<jstring>
2155 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2157 static base::android::ScopedJavaLocalRef<jstring>
2158 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) {
2159 /* Must call RegisterNativesImpl() */
2160 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2161 MotionEvent_clazz(env), NULL);
2162 jmethodID method_id =
2163 base::android::MethodID::LazyGet<
2164 base::android::MethodID::TYPE_STATIC>(
2165 env, MotionEvent_clazz(env),
2167 "(I)Ljava/lang/String;",
2168 &g_MotionEvent_axisToString);
2171 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2172 method_id, as_jint(p0)));
2173 jni_generator::CheckException(env);
2174 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2177 static base::subtle::AtomicWord g_MotionEvent_axisFromString = 0;
2178 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0)
2179 __attribute__ ((unused));
2180 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) {
2181 /* Must call RegisterNativesImpl() */
2182 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2183 MotionEvent_clazz(env), 0);
2184 jmethodID method_id =
2185 base::android::MethodID::LazyGet<
2186 base::android::MethodID::TYPE_STATIC>(
2187 env, MotionEvent_clazz(env),
2189 "(Ljava/lang/String;)I",
2190 &g_MotionEvent_axisFromString);
2193 env->CallStaticIntMethod(MotionEvent_clazz(env),
2195 jni_generator::CheckException(env);
2199 static base::subtle::AtomicWord g_MotionEvent_writeToParcel = 0;
2200 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2201 JniIntWrapper p1) __attribute__ ((unused));
2202 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2204 /* Must call RegisterNativesImpl() */
2205 CHECK_CLAZZ(env, obj,
2206 MotionEvent_clazz(env));
2207 jmethodID method_id =
2208 base::android::MethodID::LazyGet<
2209 base::android::MethodID::TYPE_INSTANCE>(
2210 env, MotionEvent_clazz(env),
2212 "(Landroid/os/Parcel;I)V",
2213 &g_MotionEvent_writeToParcel);
2215 env->CallVoidMethod(obj,
2216 method_id, p0, as_jint(p1));
2217 jni_generator::CheckException(env);
2221 // Step 3: RegisterNatives.
2223 static bool RegisterNativesImpl(JNIEnv* env) {
2225 g_MotionEvent_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
2226 base::android::GetClass(env, kMotionEventClassPath).obj()));
2231 } // namespace JNI_MotionEvent
2233 #endif // android_view_MotionEvent_JNI