1 // Copyright (c) 2012 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;
27 namespace JNI_MotionEvent {
29 enum Java_MotionEvent_constant_fields {
30 INVALID_POINTER_ID = -1,
37 ACTION_POINTER_DOWN = 5,
38 ACTION_POINTER_UP = 6,
39 ACTION_HOVER_MOVE = 7,
41 ACTION_HOVER_ENTER = 9,
42 ACTION_HOVER_EXIT = 10,
43 ACTION_POINTER_INDEX_MASK = 65280,
44 ACTION_POINTER_INDEX_SHIFT = 8,
45 ACTION_POINTER_1_DOWN = 5,
46 ACTION_POINTER_2_DOWN = 261,
47 ACTION_POINTER_3_DOWN = 517,
48 ACTION_POINTER_1_UP = 6,
49 ACTION_POINTER_2_UP = 262,
50 ACTION_POINTER_3_UP = 518,
51 ACTION_POINTER_ID_MASK = 65280,
52 ACTION_POINTER_ID_SHIFT = 8,
53 FLAG_WINDOW_IS_OBSCURED = 1,
101 BUTTON_SECONDARY = 2,
105 TOOL_TYPE_UNKNOWN = 0,
106 TOOL_TYPE_FINGER = 1,
107 TOOL_TYPE_STYLUS = 2,
109 TOOL_TYPE_ERASER = 4,
112 // Step 2: method stubs.
114 static base::subtle::AtomicWord g_MotionEvent_finalize = 0;
115 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) __attribute__
117 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) {
118 /* Must call RegisterNativesImpl() */
119 CHECK_CLAZZ(env, obj,
120 g_MotionEvent_clazz);
121 jmethodID method_id =
122 base::android::MethodID::LazyGet<
123 base::android::MethodID::TYPE_INSTANCE>(
124 env, g_MotionEvent_clazz,
127 &g_MotionEvent_finalize);
129 env->CallVoidMethod(obj,
131 jni_generator::CheckException(env);
135 static base::subtle::AtomicWord
136 g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I = 0;
137 static base::android::ScopedJavaLocalRef<jobject>
138 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
152 JniIntWrapper p13) __attribute__ ((unused));
153 static base::android::ScopedJavaLocalRef<jobject>
154 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
169 /* Must call RegisterNativesImpl() */
170 CHECK_CLAZZ(env, g_MotionEvent_clazz,
171 g_MotionEvent_clazz, NULL);
172 jmethodID method_id =
173 base::android::MethodID::LazyGet<
174 base::android::MethodID::TYPE_STATIC>(
175 env, g_MotionEvent_clazz,
177 "(JJII[Landroid/view/MotionEvent$PointerProperties;[Landroid/view/MotionEvent$PointerCoords;IIFFIIII)Landroid/view/MotionEvent;",
178 &g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I);
181 env->CallStaticObjectMethod(g_MotionEvent_clazz,
182 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6),
183 as_jint(p7), p8, p9, as_jint(p10), as_jint(p11), as_jint(p12),
185 jni_generator::CheckException(env);
186 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
189 static base::subtle::AtomicWord
190 g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I = 0;
191 static base::android::ScopedJavaLocalRef<jobject>
192 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
205 JniIntWrapper p12) __attribute__ ((unused));
206 static base::android::ScopedJavaLocalRef<jobject>
207 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
221 /* Must call RegisterNativesImpl() */
222 CHECK_CLAZZ(env, g_MotionEvent_clazz,
223 g_MotionEvent_clazz, NULL);
224 jmethodID method_id =
225 base::android::MethodID::LazyGet<
226 base::android::MethodID::TYPE_STATIC>(
227 env, g_MotionEvent_clazz,
229 "(JJII[I[Landroid/view/MotionEvent$PointerCoords;IFFIIII)Landroid/view/MotionEvent;",
230 &g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I);
233 env->CallStaticObjectMethod(g_MotionEvent_clazz,
234 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6), p7,
235 p8, as_jint(p9), as_jint(p10), as_jint(p11), as_jint(p12));
236 jni_generator::CheckException(env);
237 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
240 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I
242 static base::android::ScopedJavaLocalRef<jobject>
243 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
254 JniIntWrapper p11) __attribute__ ((unused));
255 static base::android::ScopedJavaLocalRef<jobject>
256 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
268 /* Must call RegisterNativesImpl() */
269 CHECK_CLAZZ(env, g_MotionEvent_clazz,
270 g_MotionEvent_clazz, NULL);
271 jmethodID method_id =
272 base::android::MethodID::LazyGet<
273 base::android::MethodID::TYPE_STATIC>(
274 env, g_MotionEvent_clazz,
276 "(JJIFFFFIFFII)Landroid/view/MotionEvent;",
277 &g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I);
280 env->CallStaticObjectMethod(g_MotionEvent_clazz,
281 method_id, p0, p1, as_jint(p2), p3, p4, p5, p6, as_jint(p7), p8, p9,
282 as_jint(p10), as_jint(p11));
283 jni_generator::CheckException(env);
284 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
287 static base::subtle::AtomicWord
288 g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I = 0;
289 static base::android::ScopedJavaLocalRef<jobject>
290 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
302 JniIntWrapper p12) __attribute__ ((unused));
303 static base::android::ScopedJavaLocalRef<jobject>
304 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
317 /* Must call RegisterNativesImpl() */
318 CHECK_CLAZZ(env, g_MotionEvent_clazz,
319 g_MotionEvent_clazz, NULL);
320 jmethodID method_id =
321 base::android::MethodID::LazyGet<
322 base::android::MethodID::TYPE_STATIC>(
323 env, g_MotionEvent_clazz,
325 "(JJIIFFFFIFFII)Landroid/view/MotionEvent;",
326 &g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I);
329 env->CallStaticObjectMethod(g_MotionEvent_clazz,
330 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, p6, p7,
331 as_jint(p8), p9, p10, as_jint(p11), as_jint(p12));
332 jni_generator::CheckException(env);
333 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
336 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
337 static base::android::ScopedJavaLocalRef<jobject>
338 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
343 JniIntWrapper p5) __attribute__ ((unused));
344 static base::android::ScopedJavaLocalRef<jobject>
345 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
351 /* Must call RegisterNativesImpl() */
352 CHECK_CLAZZ(env, g_MotionEvent_clazz,
353 g_MotionEvent_clazz, NULL);
354 jmethodID method_id =
355 base::android::MethodID::LazyGet<
356 base::android::MethodID::TYPE_STATIC>(
357 env, g_MotionEvent_clazz,
359 "(JJIFFI)Landroid/view/MotionEvent;",
360 &g_MotionEvent_obtainAVME_J_J_I_F_F_I);
363 env->CallStaticObjectMethod(g_MotionEvent_clazz,
364 method_id, p0, p1, as_jint(p2), p3, p4, as_jint(p5));
365 jni_generator::CheckException(env);
366 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
369 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0;
370 static base::android::ScopedJavaLocalRef<jobject>
371 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) __attribute__
373 static base::android::ScopedJavaLocalRef<jobject>
374 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) {
375 /* Must call RegisterNativesImpl() */
376 CHECK_CLAZZ(env, g_MotionEvent_clazz,
377 g_MotionEvent_clazz, NULL);
378 jmethodID method_id =
379 base::android::MethodID::LazyGet<
380 base::android::MethodID::TYPE_STATIC>(
381 env, g_MotionEvent_clazz,
383 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
384 &g_MotionEvent_obtainAVME_AVME);
387 env->CallStaticObjectMethod(g_MotionEvent_clazz,
389 jni_generator::CheckException(env);
390 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
393 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0;
394 static base::android::ScopedJavaLocalRef<jobject>
395 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) __attribute__
397 static base::android::ScopedJavaLocalRef<jobject>
398 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) {
399 /* Must call RegisterNativesImpl() */
400 CHECK_CLAZZ(env, g_MotionEvent_clazz,
401 g_MotionEvent_clazz, NULL);
402 jmethodID method_id =
403 base::android::MethodID::LazyGet<
404 base::android::MethodID::TYPE_STATIC>(
405 env, g_MotionEvent_clazz,
407 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
408 &g_MotionEvent_obtainNoHistory);
411 env->CallStaticObjectMethod(g_MotionEvent_clazz,
413 jni_generator::CheckException(env);
414 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
417 static base::subtle::AtomicWord g_MotionEvent_recycle = 0;
418 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) __attribute__
420 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) {
421 /* Must call RegisterNativesImpl() */
422 CHECK_CLAZZ(env, obj,
423 g_MotionEvent_clazz);
424 jmethodID method_id =
425 base::android::MethodID::LazyGet<
426 base::android::MethodID::TYPE_INSTANCE>(
427 env, g_MotionEvent_clazz,
430 &g_MotionEvent_recycle);
432 env->CallVoidMethod(obj,
434 jni_generator::CheckException(env);
438 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0;
439 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) __attribute__
441 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) {
442 /* Must call RegisterNativesImpl() */
443 CHECK_CLAZZ(env, obj,
444 g_MotionEvent_clazz, 0);
445 jmethodID method_id =
446 base::android::MethodID::LazyGet<
447 base::android::MethodID::TYPE_INSTANCE>(
448 env, g_MotionEvent_clazz,
451 &g_MotionEvent_getDeviceId);
454 env->CallIntMethod(obj,
456 jni_generator::CheckException(env);
460 static base::subtle::AtomicWord g_MotionEvent_getSource = 0;
461 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) __attribute__
463 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) {
464 /* Must call RegisterNativesImpl() */
465 CHECK_CLAZZ(env, obj,
466 g_MotionEvent_clazz, 0);
467 jmethodID method_id =
468 base::android::MethodID::LazyGet<
469 base::android::MethodID::TYPE_INSTANCE>(
470 env, g_MotionEvent_clazz,
473 &g_MotionEvent_getSource);
476 env->CallIntMethod(obj,
478 jni_generator::CheckException(env);
482 static base::subtle::AtomicWord g_MotionEvent_setSource = 0;
483 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
484 p0) __attribute__ ((unused));
485 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
487 /* Must call RegisterNativesImpl() */
488 CHECK_CLAZZ(env, obj,
489 g_MotionEvent_clazz);
490 jmethodID method_id =
491 base::android::MethodID::LazyGet<
492 base::android::MethodID::TYPE_INSTANCE>(
493 env, g_MotionEvent_clazz,
496 &g_MotionEvent_setSource);
498 env->CallVoidMethod(obj,
499 method_id, as_jint(p0));
500 jni_generator::CheckException(env);
504 static base::subtle::AtomicWord g_MotionEvent_getAction = 0;
505 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) __attribute__
507 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) {
508 /* Must call RegisterNativesImpl() */
509 CHECK_CLAZZ(env, obj,
510 g_MotionEvent_clazz, 0);
511 jmethodID method_id =
512 base::android::MethodID::LazyGet<
513 base::android::MethodID::TYPE_INSTANCE>(
514 env, g_MotionEvent_clazz,
517 &g_MotionEvent_getAction);
520 env->CallIntMethod(obj,
522 jni_generator::CheckException(env);
526 static base::subtle::AtomicWord g_MotionEvent_getActionMasked = 0;
527 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj)
528 __attribute__ ((unused));
529 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj) {
530 /* Must call RegisterNativesImpl() */
531 CHECK_CLAZZ(env, obj,
532 g_MotionEvent_clazz, 0);
533 jmethodID method_id =
534 base::android::MethodID::LazyGet<
535 base::android::MethodID::TYPE_INSTANCE>(
536 env, g_MotionEvent_clazz,
539 &g_MotionEvent_getActionMasked);
542 env->CallIntMethod(obj,
544 jni_generator::CheckException(env);
548 static base::subtle::AtomicWord g_MotionEvent_getActionIndex = 0;
549 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj)
550 __attribute__ ((unused));
551 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj) {
552 /* Must call RegisterNativesImpl() */
553 CHECK_CLAZZ(env, obj,
554 g_MotionEvent_clazz, 0);
555 jmethodID method_id =
556 base::android::MethodID::LazyGet<
557 base::android::MethodID::TYPE_INSTANCE>(
558 env, g_MotionEvent_clazz,
561 &g_MotionEvent_getActionIndex);
564 env->CallIntMethod(obj,
566 jni_generator::CheckException(env);
570 static base::subtle::AtomicWord g_MotionEvent_getFlags = 0;
571 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) __attribute__
573 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) {
574 /* Must call RegisterNativesImpl() */
575 CHECK_CLAZZ(env, obj,
576 g_MotionEvent_clazz, 0);
577 jmethodID method_id =
578 base::android::MethodID::LazyGet<
579 base::android::MethodID::TYPE_INSTANCE>(
580 env, g_MotionEvent_clazz,
583 &g_MotionEvent_getFlags);
586 env->CallIntMethod(obj,
588 jni_generator::CheckException(env);
592 static base::subtle::AtomicWord g_MotionEvent_getDownTime = 0;
593 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj)
594 __attribute__ ((unused));
595 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj) {
596 /* Must call RegisterNativesImpl() */
597 CHECK_CLAZZ(env, obj,
598 g_MotionEvent_clazz, 0);
599 jmethodID method_id =
600 base::android::MethodID::LazyGet<
601 base::android::MethodID::TYPE_INSTANCE>(
602 env, g_MotionEvent_clazz,
605 &g_MotionEvent_getDownTime);
608 env->CallLongMethod(obj,
610 jni_generator::CheckException(env);
614 static base::subtle::AtomicWord g_MotionEvent_getEventTime = 0;
615 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj)
616 __attribute__ ((unused));
617 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj) {
618 /* Must call RegisterNativesImpl() */
619 CHECK_CLAZZ(env, obj,
620 g_MotionEvent_clazz, 0);
621 jmethodID method_id =
622 base::android::MethodID::LazyGet<
623 base::android::MethodID::TYPE_INSTANCE>(
624 env, g_MotionEvent_clazz,
627 &g_MotionEvent_getEventTime);
630 env->CallLongMethod(obj,
632 jni_generator::CheckException(env);
636 static base::subtle::AtomicWord g_MotionEvent_getXF = 0;
637 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) __attribute__
639 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) {
640 /* Must call RegisterNativesImpl() */
641 CHECK_CLAZZ(env, obj,
642 g_MotionEvent_clazz, 0);
643 jmethodID method_id =
644 base::android::MethodID::LazyGet<
645 base::android::MethodID::TYPE_INSTANCE>(
646 env, g_MotionEvent_clazz,
649 &g_MotionEvent_getXF);
652 env->CallFloatMethod(obj,
654 jni_generator::CheckException(env);
658 static base::subtle::AtomicWord g_MotionEvent_getYF = 0;
659 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) __attribute__
661 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) {
662 /* Must call RegisterNativesImpl() */
663 CHECK_CLAZZ(env, obj,
664 g_MotionEvent_clazz, 0);
665 jmethodID method_id =
666 base::android::MethodID::LazyGet<
667 base::android::MethodID::TYPE_INSTANCE>(
668 env, g_MotionEvent_clazz,
671 &g_MotionEvent_getYF);
674 env->CallFloatMethod(obj,
676 jni_generator::CheckException(env);
680 static base::subtle::AtomicWord g_MotionEvent_getPressureF = 0;
681 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj)
682 __attribute__ ((unused));
683 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj) {
684 /* Must call RegisterNativesImpl() */
685 CHECK_CLAZZ(env, obj,
686 g_MotionEvent_clazz, 0);
687 jmethodID method_id =
688 base::android::MethodID::LazyGet<
689 base::android::MethodID::TYPE_INSTANCE>(
690 env, g_MotionEvent_clazz,
693 &g_MotionEvent_getPressureF);
696 env->CallFloatMethod(obj,
698 jni_generator::CheckException(env);
702 static base::subtle::AtomicWord g_MotionEvent_getSizeF = 0;
703 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) __attribute__
705 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) {
706 /* Must call RegisterNativesImpl() */
707 CHECK_CLAZZ(env, obj,
708 g_MotionEvent_clazz, 0);
709 jmethodID method_id =
710 base::android::MethodID::LazyGet<
711 base::android::MethodID::TYPE_INSTANCE>(
712 env, g_MotionEvent_clazz,
715 &g_MotionEvent_getSizeF);
718 env->CallFloatMethod(obj,
720 jni_generator::CheckException(env);
724 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF = 0;
725 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj)
726 __attribute__ ((unused));
727 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj) {
728 /* Must call RegisterNativesImpl() */
729 CHECK_CLAZZ(env, obj,
730 g_MotionEvent_clazz, 0);
731 jmethodID method_id =
732 base::android::MethodID::LazyGet<
733 base::android::MethodID::TYPE_INSTANCE>(
734 env, g_MotionEvent_clazz,
737 &g_MotionEvent_getTouchMajorF);
740 env->CallFloatMethod(obj,
742 jni_generator::CheckException(env);
746 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF = 0;
747 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj)
748 __attribute__ ((unused));
749 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj) {
750 /* Must call RegisterNativesImpl() */
751 CHECK_CLAZZ(env, obj,
752 g_MotionEvent_clazz, 0);
753 jmethodID method_id =
754 base::android::MethodID::LazyGet<
755 base::android::MethodID::TYPE_INSTANCE>(
756 env, g_MotionEvent_clazz,
759 &g_MotionEvent_getTouchMinorF);
762 env->CallFloatMethod(obj,
764 jni_generator::CheckException(env);
768 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF = 0;
769 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj)
770 __attribute__ ((unused));
771 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj) {
772 /* Must call RegisterNativesImpl() */
773 CHECK_CLAZZ(env, obj,
774 g_MotionEvent_clazz, 0);
775 jmethodID method_id =
776 base::android::MethodID::LazyGet<
777 base::android::MethodID::TYPE_INSTANCE>(
778 env, g_MotionEvent_clazz,
781 &g_MotionEvent_getToolMajorF);
784 env->CallFloatMethod(obj,
786 jni_generator::CheckException(env);
790 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF = 0;
791 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj)
792 __attribute__ ((unused));
793 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj) {
794 /* Must call RegisterNativesImpl() */
795 CHECK_CLAZZ(env, obj,
796 g_MotionEvent_clazz, 0);
797 jmethodID method_id =
798 base::android::MethodID::LazyGet<
799 base::android::MethodID::TYPE_INSTANCE>(
800 env, g_MotionEvent_clazz,
803 &g_MotionEvent_getToolMinorF);
806 env->CallFloatMethod(obj,
808 jni_generator::CheckException(env);
812 static base::subtle::AtomicWord g_MotionEvent_getOrientationF = 0;
813 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj)
814 __attribute__ ((unused));
815 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj) {
816 /* Must call RegisterNativesImpl() */
817 CHECK_CLAZZ(env, obj,
818 g_MotionEvent_clazz, 0);
819 jmethodID method_id =
820 base::android::MethodID::LazyGet<
821 base::android::MethodID::TYPE_INSTANCE>(
822 env, g_MotionEvent_clazz,
825 &g_MotionEvent_getOrientationF);
828 env->CallFloatMethod(obj,
830 jni_generator::CheckException(env);
834 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I = 0;
835 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
836 JniIntWrapper p0) __attribute__ ((unused));
837 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
839 /* Must call RegisterNativesImpl() */
840 CHECK_CLAZZ(env, obj,
841 g_MotionEvent_clazz, 0);
842 jmethodID method_id =
843 base::android::MethodID::LazyGet<
844 base::android::MethodID::TYPE_INSTANCE>(
845 env, g_MotionEvent_clazz,
848 &g_MotionEvent_getAxisValueF_I);
851 env->CallFloatMethod(obj,
852 method_id, as_jint(p0));
853 jni_generator::CheckException(env);
857 static base::subtle::AtomicWord g_MotionEvent_getPointerCount = 0;
858 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj)
859 __attribute__ ((unused));
860 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj) {
861 /* Must call RegisterNativesImpl() */
862 CHECK_CLAZZ(env, obj,
863 g_MotionEvent_clazz, 0);
864 jmethodID method_id =
865 base::android::MethodID::LazyGet<
866 base::android::MethodID::TYPE_INSTANCE>(
867 env, g_MotionEvent_clazz,
870 &g_MotionEvent_getPointerCount);
873 env->CallIntMethod(obj,
875 jni_generator::CheckException(env);
879 static base::subtle::AtomicWord g_MotionEvent_getPointerId = 0;
880 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
881 JniIntWrapper p0) __attribute__ ((unused));
882 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
884 /* Must call RegisterNativesImpl() */
885 CHECK_CLAZZ(env, obj,
886 g_MotionEvent_clazz, 0);
887 jmethodID method_id =
888 base::android::MethodID::LazyGet<
889 base::android::MethodID::TYPE_INSTANCE>(
890 env, g_MotionEvent_clazz,
893 &g_MotionEvent_getPointerId);
896 env->CallIntMethod(obj,
897 method_id, as_jint(p0));
898 jni_generator::CheckException(env);
902 static base::subtle::AtomicWord g_MotionEvent_getToolType = 0;
903 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
904 p0) __attribute__ ((unused));
905 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
907 /* Must call RegisterNativesImpl() */
908 CHECK_CLAZZ(env, obj,
909 g_MotionEvent_clazz, 0);
910 jmethodID method_id =
911 base::android::MethodID::LazyGet<
912 base::android::MethodID::TYPE_INSTANCE>(
913 env, g_MotionEvent_clazz,
916 &g_MotionEvent_getToolType);
919 env->CallIntMethod(obj,
920 method_id, as_jint(p0));
921 jni_generator::CheckException(env);
925 static base::subtle::AtomicWord g_MotionEvent_findPointerIndex = 0;
926 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
927 JniIntWrapper p0) __attribute__ ((unused));
928 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
930 /* Must call RegisterNativesImpl() */
931 CHECK_CLAZZ(env, obj,
932 g_MotionEvent_clazz, 0);
933 jmethodID method_id =
934 base::android::MethodID::LazyGet<
935 base::android::MethodID::TYPE_INSTANCE>(
936 env, g_MotionEvent_clazz,
939 &g_MotionEvent_findPointerIndex);
942 env->CallIntMethod(obj,
943 method_id, as_jint(p0));
944 jni_generator::CheckException(env);
948 static base::subtle::AtomicWord g_MotionEvent_getXF_I = 0;
949 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
950 p0) __attribute__ ((unused));
951 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
953 /* Must call RegisterNativesImpl() */
954 CHECK_CLAZZ(env, obj,
955 g_MotionEvent_clazz, 0);
956 jmethodID method_id =
957 base::android::MethodID::LazyGet<
958 base::android::MethodID::TYPE_INSTANCE>(
959 env, g_MotionEvent_clazz,
962 &g_MotionEvent_getXF_I);
965 env->CallFloatMethod(obj,
966 method_id, as_jint(p0));
967 jni_generator::CheckException(env);
971 static base::subtle::AtomicWord g_MotionEvent_getYF_I = 0;
972 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
973 p0) __attribute__ ((unused));
974 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
976 /* Must call RegisterNativesImpl() */
977 CHECK_CLAZZ(env, obj,
978 g_MotionEvent_clazz, 0);
979 jmethodID method_id =
980 base::android::MethodID::LazyGet<
981 base::android::MethodID::TYPE_INSTANCE>(
982 env, g_MotionEvent_clazz,
985 &g_MotionEvent_getYF_I);
988 env->CallFloatMethod(obj,
989 method_id, as_jint(p0));
990 jni_generator::CheckException(env);
994 static base::subtle::AtomicWord g_MotionEvent_getPressureF_I = 0;
995 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
996 JniIntWrapper p0) __attribute__ ((unused));
997 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
999 /* Must call RegisterNativesImpl() */
1000 CHECK_CLAZZ(env, obj,
1001 g_MotionEvent_clazz, 0);
1002 jmethodID method_id =
1003 base::android::MethodID::LazyGet<
1004 base::android::MethodID::TYPE_INSTANCE>(
1005 env, g_MotionEvent_clazz,
1008 &g_MotionEvent_getPressureF_I);
1011 env->CallFloatMethod(obj,
1012 method_id, as_jint(p0));
1013 jni_generator::CheckException(env);
1017 static base::subtle::AtomicWord g_MotionEvent_getSizeF_I = 0;
1018 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1019 JniIntWrapper p0) __attribute__ ((unused));
1020 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1022 /* Must call RegisterNativesImpl() */
1023 CHECK_CLAZZ(env, obj,
1024 g_MotionEvent_clazz, 0);
1025 jmethodID method_id =
1026 base::android::MethodID::LazyGet<
1027 base::android::MethodID::TYPE_INSTANCE>(
1028 env, g_MotionEvent_clazz,
1031 &g_MotionEvent_getSizeF_I);
1034 env->CallFloatMethod(obj,
1035 method_id, as_jint(p0));
1036 jni_generator::CheckException(env);
1040 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF_I = 0;
1041 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1042 JniIntWrapper p0) __attribute__ ((unused));
1043 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1045 /* Must call RegisterNativesImpl() */
1046 CHECK_CLAZZ(env, obj,
1047 g_MotionEvent_clazz, 0);
1048 jmethodID method_id =
1049 base::android::MethodID::LazyGet<
1050 base::android::MethodID::TYPE_INSTANCE>(
1051 env, g_MotionEvent_clazz,
1054 &g_MotionEvent_getTouchMajorF_I);
1057 env->CallFloatMethod(obj,
1058 method_id, as_jint(p0));
1059 jni_generator::CheckException(env);
1063 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF_I = 0;
1064 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1065 JniIntWrapper p0) __attribute__ ((unused));
1066 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1068 /* Must call RegisterNativesImpl() */
1069 CHECK_CLAZZ(env, obj,
1070 g_MotionEvent_clazz, 0);
1071 jmethodID method_id =
1072 base::android::MethodID::LazyGet<
1073 base::android::MethodID::TYPE_INSTANCE>(
1074 env, g_MotionEvent_clazz,
1077 &g_MotionEvent_getTouchMinorF_I);
1080 env->CallFloatMethod(obj,
1081 method_id, as_jint(p0));
1082 jni_generator::CheckException(env);
1086 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF_I = 0;
1087 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1088 JniIntWrapper p0) __attribute__ ((unused));
1089 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1091 /* Must call RegisterNativesImpl() */
1092 CHECK_CLAZZ(env, obj,
1093 g_MotionEvent_clazz, 0);
1094 jmethodID method_id =
1095 base::android::MethodID::LazyGet<
1096 base::android::MethodID::TYPE_INSTANCE>(
1097 env, g_MotionEvent_clazz,
1100 &g_MotionEvent_getToolMajorF_I);
1103 env->CallFloatMethod(obj,
1104 method_id, as_jint(p0));
1105 jni_generator::CheckException(env);
1109 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF_I = 0;
1110 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1111 JniIntWrapper p0) __attribute__ ((unused));
1112 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1114 /* Must call RegisterNativesImpl() */
1115 CHECK_CLAZZ(env, obj,
1116 g_MotionEvent_clazz, 0);
1117 jmethodID method_id =
1118 base::android::MethodID::LazyGet<
1119 base::android::MethodID::TYPE_INSTANCE>(
1120 env, g_MotionEvent_clazz,
1123 &g_MotionEvent_getToolMinorF_I);
1126 env->CallFloatMethod(obj,
1127 method_id, as_jint(p0));
1128 jni_generator::CheckException(env);
1132 static base::subtle::AtomicWord g_MotionEvent_getOrientationF_I = 0;
1133 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1134 JniIntWrapper p0) __attribute__ ((unused));
1135 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1137 /* Must call RegisterNativesImpl() */
1138 CHECK_CLAZZ(env, obj,
1139 g_MotionEvent_clazz, 0);
1140 jmethodID method_id =
1141 base::android::MethodID::LazyGet<
1142 base::android::MethodID::TYPE_INSTANCE>(
1143 env, g_MotionEvent_clazz,
1146 &g_MotionEvent_getOrientationF_I);
1149 env->CallFloatMethod(obj,
1150 method_id, as_jint(p0));
1151 jni_generator::CheckException(env);
1155 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I_I = 0;
1156 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1158 JniIntWrapper p1) __attribute__ ((unused));
1159 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1162 /* Must call RegisterNativesImpl() */
1163 CHECK_CLAZZ(env, obj,
1164 g_MotionEvent_clazz, 0);
1165 jmethodID method_id =
1166 base::android::MethodID::LazyGet<
1167 base::android::MethodID::TYPE_INSTANCE>(
1168 env, g_MotionEvent_clazz,
1171 &g_MotionEvent_getAxisValueF_I_I);
1174 env->CallFloatMethod(obj,
1175 method_id, as_jint(p0), as_jint(p1));
1176 jni_generator::CheckException(env);
1180 static base::subtle::AtomicWord g_MotionEvent_getPointerCoords = 0;
1181 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1183 jobject p1) __attribute__ ((unused));
1184 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1187 /* Must call RegisterNativesImpl() */
1188 CHECK_CLAZZ(env, obj,
1189 g_MotionEvent_clazz);
1190 jmethodID method_id =
1191 base::android::MethodID::LazyGet<
1192 base::android::MethodID::TYPE_INSTANCE>(
1193 env, g_MotionEvent_clazz,
1195 "(ILandroid/view/MotionEvent$PointerCoords;)V",
1196 &g_MotionEvent_getPointerCoords);
1198 env->CallVoidMethod(obj,
1199 method_id, as_jint(p0), p1);
1200 jni_generator::CheckException(env);
1204 static base::subtle::AtomicWord g_MotionEvent_getPointerProperties = 0;
1205 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1207 jobject p1) __attribute__ ((unused));
1208 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1211 /* Must call RegisterNativesImpl() */
1212 CHECK_CLAZZ(env, obj,
1213 g_MotionEvent_clazz);
1214 jmethodID method_id =
1215 base::android::MethodID::LazyGet<
1216 base::android::MethodID::TYPE_INSTANCE>(
1217 env, g_MotionEvent_clazz,
1218 "getPointerProperties",
1219 "(ILandroid/view/MotionEvent$PointerProperties;)V",
1220 &g_MotionEvent_getPointerProperties);
1222 env->CallVoidMethod(obj,
1223 method_id, as_jint(p0), p1);
1224 jni_generator::CheckException(env);
1228 static base::subtle::AtomicWord g_MotionEvent_getMetaState = 0;
1229 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj)
1230 __attribute__ ((unused));
1231 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj) {
1232 /* Must call RegisterNativesImpl() */
1233 CHECK_CLAZZ(env, obj,
1234 g_MotionEvent_clazz, 0);
1235 jmethodID method_id =
1236 base::android::MethodID::LazyGet<
1237 base::android::MethodID::TYPE_INSTANCE>(
1238 env, g_MotionEvent_clazz,
1241 &g_MotionEvent_getMetaState);
1244 env->CallIntMethod(obj,
1246 jni_generator::CheckException(env);
1250 static base::subtle::AtomicWord g_MotionEvent_getButtonState = 0;
1251 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj)
1252 __attribute__ ((unused));
1253 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj) {
1254 /* Must call RegisterNativesImpl() */
1255 CHECK_CLAZZ(env, obj,
1256 g_MotionEvent_clazz, 0);
1257 jmethodID method_id =
1258 base::android::MethodID::LazyGet<
1259 base::android::MethodID::TYPE_INSTANCE>(
1260 env, g_MotionEvent_clazz,
1263 &g_MotionEvent_getButtonState);
1266 env->CallIntMethod(obj,
1268 jni_generator::CheckException(env);
1272 static base::subtle::AtomicWord g_MotionEvent_getRawX = 0;
1273 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) __attribute__
1275 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) {
1276 /* Must call RegisterNativesImpl() */
1277 CHECK_CLAZZ(env, obj,
1278 g_MotionEvent_clazz, 0);
1279 jmethodID method_id =
1280 base::android::MethodID::LazyGet<
1281 base::android::MethodID::TYPE_INSTANCE>(
1282 env, g_MotionEvent_clazz,
1285 &g_MotionEvent_getRawX);
1288 env->CallFloatMethod(obj,
1290 jni_generator::CheckException(env);
1294 static base::subtle::AtomicWord g_MotionEvent_getRawY = 0;
1295 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) __attribute__
1297 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) {
1298 /* Must call RegisterNativesImpl() */
1299 CHECK_CLAZZ(env, obj,
1300 g_MotionEvent_clazz, 0);
1301 jmethodID method_id =
1302 base::android::MethodID::LazyGet<
1303 base::android::MethodID::TYPE_INSTANCE>(
1304 env, g_MotionEvent_clazz,
1307 &g_MotionEvent_getRawY);
1310 env->CallFloatMethod(obj,
1312 jni_generator::CheckException(env);
1316 static base::subtle::AtomicWord g_MotionEvent_getXPrecision = 0;
1317 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj)
1318 __attribute__ ((unused));
1319 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj) {
1320 /* Must call RegisterNativesImpl() */
1321 CHECK_CLAZZ(env, obj,
1322 g_MotionEvent_clazz, 0);
1323 jmethodID method_id =
1324 base::android::MethodID::LazyGet<
1325 base::android::MethodID::TYPE_INSTANCE>(
1326 env, g_MotionEvent_clazz,
1329 &g_MotionEvent_getXPrecision);
1332 env->CallFloatMethod(obj,
1334 jni_generator::CheckException(env);
1338 static base::subtle::AtomicWord g_MotionEvent_getYPrecision = 0;
1339 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj)
1340 __attribute__ ((unused));
1341 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj) {
1342 /* Must call RegisterNativesImpl() */
1343 CHECK_CLAZZ(env, obj,
1344 g_MotionEvent_clazz, 0);
1345 jmethodID method_id =
1346 base::android::MethodID::LazyGet<
1347 base::android::MethodID::TYPE_INSTANCE>(
1348 env, g_MotionEvent_clazz,
1351 &g_MotionEvent_getYPrecision);
1354 env->CallFloatMethod(obj,
1356 jni_generator::CheckException(env);
1360 static base::subtle::AtomicWord g_MotionEvent_getHistorySize = 0;
1361 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj)
1362 __attribute__ ((unused));
1363 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj) {
1364 /* Must call RegisterNativesImpl() */
1365 CHECK_CLAZZ(env, obj,
1366 g_MotionEvent_clazz, 0);
1367 jmethodID method_id =
1368 base::android::MethodID::LazyGet<
1369 base::android::MethodID::TYPE_INSTANCE>(
1370 env, g_MotionEvent_clazz,
1373 &g_MotionEvent_getHistorySize);
1376 env->CallIntMethod(obj,
1378 jni_generator::CheckException(env);
1382 static base::subtle::AtomicWord g_MotionEvent_getHistoricalEventTime = 0;
1383 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1384 JniIntWrapper p0) __attribute__ ((unused));
1385 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1387 /* Must call RegisterNativesImpl() */
1388 CHECK_CLAZZ(env, obj,
1389 g_MotionEvent_clazz, 0);
1390 jmethodID method_id =
1391 base::android::MethodID::LazyGet<
1392 base::android::MethodID::TYPE_INSTANCE>(
1393 env, g_MotionEvent_clazz,
1394 "getHistoricalEventTime",
1396 &g_MotionEvent_getHistoricalEventTime);
1399 env->CallLongMethod(obj,
1400 method_id, as_jint(p0));
1401 jni_generator::CheckException(env);
1405 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I = 0;
1406 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1407 JniIntWrapper p0) __attribute__ ((unused));
1408 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1410 /* Must call RegisterNativesImpl() */
1411 CHECK_CLAZZ(env, obj,
1412 g_MotionEvent_clazz, 0);
1413 jmethodID method_id =
1414 base::android::MethodID::LazyGet<
1415 base::android::MethodID::TYPE_INSTANCE>(
1416 env, g_MotionEvent_clazz,
1419 &g_MotionEvent_getHistoricalXF_I);
1422 env->CallFloatMethod(obj,
1423 method_id, as_jint(p0));
1424 jni_generator::CheckException(env);
1428 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I = 0;
1429 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1430 JniIntWrapper p0) __attribute__ ((unused));
1431 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1433 /* Must call RegisterNativesImpl() */
1434 CHECK_CLAZZ(env, obj,
1435 g_MotionEvent_clazz, 0);
1436 jmethodID method_id =
1437 base::android::MethodID::LazyGet<
1438 base::android::MethodID::TYPE_INSTANCE>(
1439 env, g_MotionEvent_clazz,
1442 &g_MotionEvent_getHistoricalYF_I);
1445 env->CallFloatMethod(obj,
1446 method_id, as_jint(p0));
1447 jni_generator::CheckException(env);
1451 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I = 0;
1452 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1453 obj, JniIntWrapper p0) __attribute__ ((unused));
1454 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1455 obj, JniIntWrapper p0) {
1456 /* Must call RegisterNativesImpl() */
1457 CHECK_CLAZZ(env, obj,
1458 g_MotionEvent_clazz, 0);
1459 jmethodID method_id =
1460 base::android::MethodID::LazyGet<
1461 base::android::MethodID::TYPE_INSTANCE>(
1462 env, g_MotionEvent_clazz,
1463 "getHistoricalPressure",
1465 &g_MotionEvent_getHistoricalPressureF_I);
1468 env->CallFloatMethod(obj,
1469 method_id, as_jint(p0));
1470 jni_generator::CheckException(env);
1474 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I = 0;
1475 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1476 JniIntWrapper p0) __attribute__ ((unused));
1477 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1479 /* Must call RegisterNativesImpl() */
1480 CHECK_CLAZZ(env, obj,
1481 g_MotionEvent_clazz, 0);
1482 jmethodID method_id =
1483 base::android::MethodID::LazyGet<
1484 base::android::MethodID::TYPE_INSTANCE>(
1485 env, g_MotionEvent_clazz,
1486 "getHistoricalSize",
1488 &g_MotionEvent_getHistoricalSizeF_I);
1491 env->CallFloatMethod(obj,
1492 method_id, as_jint(p0));
1493 jni_generator::CheckException(env);
1497 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I = 0;
1498 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1499 obj, JniIntWrapper p0) __attribute__ ((unused));
1500 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1501 obj, JniIntWrapper p0) {
1502 /* Must call RegisterNativesImpl() */
1503 CHECK_CLAZZ(env, obj,
1504 g_MotionEvent_clazz, 0);
1505 jmethodID method_id =
1506 base::android::MethodID::LazyGet<
1507 base::android::MethodID::TYPE_INSTANCE>(
1508 env, g_MotionEvent_clazz,
1509 "getHistoricalTouchMajor",
1511 &g_MotionEvent_getHistoricalTouchMajorF_I);
1514 env->CallFloatMethod(obj,
1515 method_id, as_jint(p0));
1516 jni_generator::CheckException(env);
1520 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I = 0;
1521 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1522 obj, JniIntWrapper p0) __attribute__ ((unused));
1523 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1524 obj, JniIntWrapper p0) {
1525 /* Must call RegisterNativesImpl() */
1526 CHECK_CLAZZ(env, obj,
1527 g_MotionEvent_clazz, 0);
1528 jmethodID method_id =
1529 base::android::MethodID::LazyGet<
1530 base::android::MethodID::TYPE_INSTANCE>(
1531 env, g_MotionEvent_clazz,
1532 "getHistoricalTouchMinor",
1534 &g_MotionEvent_getHistoricalTouchMinorF_I);
1537 env->CallFloatMethod(obj,
1538 method_id, as_jint(p0));
1539 jni_generator::CheckException(env);
1543 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I = 0;
1544 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1545 obj, JniIntWrapper p0) __attribute__ ((unused));
1546 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1547 obj, JniIntWrapper p0) {
1548 /* Must call RegisterNativesImpl() */
1549 CHECK_CLAZZ(env, obj,
1550 g_MotionEvent_clazz, 0);
1551 jmethodID method_id =
1552 base::android::MethodID::LazyGet<
1553 base::android::MethodID::TYPE_INSTANCE>(
1554 env, g_MotionEvent_clazz,
1555 "getHistoricalToolMajor",
1557 &g_MotionEvent_getHistoricalToolMajorF_I);
1560 env->CallFloatMethod(obj,
1561 method_id, as_jint(p0));
1562 jni_generator::CheckException(env);
1566 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I = 0;
1567 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1568 obj, JniIntWrapper p0) __attribute__ ((unused));
1569 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1570 obj, JniIntWrapper p0) {
1571 /* Must call RegisterNativesImpl() */
1572 CHECK_CLAZZ(env, obj,
1573 g_MotionEvent_clazz, 0);
1574 jmethodID method_id =
1575 base::android::MethodID::LazyGet<
1576 base::android::MethodID::TYPE_INSTANCE>(
1577 env, g_MotionEvent_clazz,
1578 "getHistoricalToolMinor",
1580 &g_MotionEvent_getHistoricalToolMinorF_I);
1583 env->CallFloatMethod(obj,
1584 method_id, as_jint(p0));
1585 jni_generator::CheckException(env);
1589 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I = 0;
1590 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1591 obj, JniIntWrapper p0) __attribute__ ((unused));
1592 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1593 obj, JniIntWrapper p0) {
1594 /* Must call RegisterNativesImpl() */
1595 CHECK_CLAZZ(env, obj,
1596 g_MotionEvent_clazz, 0);
1597 jmethodID method_id =
1598 base::android::MethodID::LazyGet<
1599 base::android::MethodID::TYPE_INSTANCE>(
1600 env, g_MotionEvent_clazz,
1601 "getHistoricalOrientation",
1603 &g_MotionEvent_getHistoricalOrientationF_I);
1606 env->CallFloatMethod(obj,
1607 method_id, as_jint(p0));
1608 jni_generator::CheckException(env);
1612 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I = 0;
1613 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1614 obj, JniIntWrapper p0,
1615 JniIntWrapper p1) __attribute__ ((unused));
1616 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1617 obj, JniIntWrapper p0,
1619 /* Must call RegisterNativesImpl() */
1620 CHECK_CLAZZ(env, obj,
1621 g_MotionEvent_clazz, 0);
1622 jmethodID method_id =
1623 base::android::MethodID::LazyGet<
1624 base::android::MethodID::TYPE_INSTANCE>(
1625 env, g_MotionEvent_clazz,
1626 "getHistoricalAxisValue",
1628 &g_MotionEvent_getHistoricalAxisValueF_I_I);
1631 env->CallFloatMethod(obj,
1632 method_id, as_jint(p0), as_jint(p1));
1633 jni_generator::CheckException(env);
1637 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I_I = 0;
1638 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1640 JniIntWrapper p1) __attribute__ ((unused));
1641 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1644 /* Must call RegisterNativesImpl() */
1645 CHECK_CLAZZ(env, obj,
1646 g_MotionEvent_clazz, 0);
1647 jmethodID method_id =
1648 base::android::MethodID::LazyGet<
1649 base::android::MethodID::TYPE_INSTANCE>(
1650 env, g_MotionEvent_clazz,
1653 &g_MotionEvent_getHistoricalXF_I_I);
1656 env->CallFloatMethod(obj,
1657 method_id, as_jint(p0), as_jint(p1));
1658 jni_generator::CheckException(env);
1662 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I_I = 0;
1663 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1665 JniIntWrapper p1) __attribute__ ((unused));
1666 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1669 /* Must call RegisterNativesImpl() */
1670 CHECK_CLAZZ(env, obj,
1671 g_MotionEvent_clazz, 0);
1672 jmethodID method_id =
1673 base::android::MethodID::LazyGet<
1674 base::android::MethodID::TYPE_INSTANCE>(
1675 env, g_MotionEvent_clazz,
1678 &g_MotionEvent_getHistoricalYF_I_I);
1681 env->CallFloatMethod(obj,
1682 method_id, as_jint(p0), as_jint(p1));
1683 jni_generator::CheckException(env);
1687 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I_I = 0;
1688 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1689 obj, JniIntWrapper p0,
1690 JniIntWrapper p1) __attribute__ ((unused));
1691 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1692 obj, JniIntWrapper p0,
1694 /* Must call RegisterNativesImpl() */
1695 CHECK_CLAZZ(env, obj,
1696 g_MotionEvent_clazz, 0);
1697 jmethodID method_id =
1698 base::android::MethodID::LazyGet<
1699 base::android::MethodID::TYPE_INSTANCE>(
1700 env, g_MotionEvent_clazz,
1701 "getHistoricalPressure",
1703 &g_MotionEvent_getHistoricalPressureF_I_I);
1706 env->CallFloatMethod(obj,
1707 method_id, as_jint(p0), as_jint(p1));
1708 jni_generator::CheckException(env);
1712 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I_I = 0;
1713 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1715 JniIntWrapper p1) __attribute__ ((unused));
1716 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1719 /* Must call RegisterNativesImpl() */
1720 CHECK_CLAZZ(env, obj,
1721 g_MotionEvent_clazz, 0);
1722 jmethodID method_id =
1723 base::android::MethodID::LazyGet<
1724 base::android::MethodID::TYPE_INSTANCE>(
1725 env, g_MotionEvent_clazz,
1726 "getHistoricalSize",
1728 &g_MotionEvent_getHistoricalSizeF_I_I);
1731 env->CallFloatMethod(obj,
1732 method_id, as_jint(p0), as_jint(p1));
1733 jni_generator::CheckException(env);
1737 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I_I = 0;
1738 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1739 obj, JniIntWrapper p0,
1740 JniIntWrapper p1) __attribute__ ((unused));
1741 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1742 obj, JniIntWrapper p0,
1744 /* Must call RegisterNativesImpl() */
1745 CHECK_CLAZZ(env, obj,
1746 g_MotionEvent_clazz, 0);
1747 jmethodID method_id =
1748 base::android::MethodID::LazyGet<
1749 base::android::MethodID::TYPE_INSTANCE>(
1750 env, g_MotionEvent_clazz,
1751 "getHistoricalTouchMajor",
1753 &g_MotionEvent_getHistoricalTouchMajorF_I_I);
1756 env->CallFloatMethod(obj,
1757 method_id, as_jint(p0), as_jint(p1));
1758 jni_generator::CheckException(env);
1762 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I_I = 0;
1763 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1764 obj, JniIntWrapper p0,
1765 JniIntWrapper p1) __attribute__ ((unused));
1766 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1767 obj, JniIntWrapper p0,
1769 /* Must call RegisterNativesImpl() */
1770 CHECK_CLAZZ(env, obj,
1771 g_MotionEvent_clazz, 0);
1772 jmethodID method_id =
1773 base::android::MethodID::LazyGet<
1774 base::android::MethodID::TYPE_INSTANCE>(
1775 env, g_MotionEvent_clazz,
1776 "getHistoricalTouchMinor",
1778 &g_MotionEvent_getHistoricalTouchMinorF_I_I);
1781 env->CallFloatMethod(obj,
1782 method_id, as_jint(p0), as_jint(p1));
1783 jni_generator::CheckException(env);
1787 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I_I = 0;
1788 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1789 obj, JniIntWrapper p0,
1790 JniIntWrapper p1) __attribute__ ((unused));
1791 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1792 obj, JniIntWrapper p0,
1794 /* Must call RegisterNativesImpl() */
1795 CHECK_CLAZZ(env, obj,
1796 g_MotionEvent_clazz, 0);
1797 jmethodID method_id =
1798 base::android::MethodID::LazyGet<
1799 base::android::MethodID::TYPE_INSTANCE>(
1800 env, g_MotionEvent_clazz,
1801 "getHistoricalToolMajor",
1803 &g_MotionEvent_getHistoricalToolMajorF_I_I);
1806 env->CallFloatMethod(obj,
1807 method_id, as_jint(p0), as_jint(p1));
1808 jni_generator::CheckException(env);
1812 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I_I = 0;
1813 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1814 obj, JniIntWrapper p0,
1815 JniIntWrapper p1) __attribute__ ((unused));
1816 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1817 obj, JniIntWrapper p0,
1819 /* Must call RegisterNativesImpl() */
1820 CHECK_CLAZZ(env, obj,
1821 g_MotionEvent_clazz, 0);
1822 jmethodID method_id =
1823 base::android::MethodID::LazyGet<
1824 base::android::MethodID::TYPE_INSTANCE>(
1825 env, g_MotionEvent_clazz,
1826 "getHistoricalToolMinor",
1828 &g_MotionEvent_getHistoricalToolMinorF_I_I);
1831 env->CallFloatMethod(obj,
1832 method_id, as_jint(p0), as_jint(p1));
1833 jni_generator::CheckException(env);
1837 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I_I = 0;
1838 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1839 jobject obj, JniIntWrapper p0,
1840 JniIntWrapper p1) __attribute__ ((unused));
1841 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1842 jobject obj, JniIntWrapper p0,
1844 /* Must call RegisterNativesImpl() */
1845 CHECK_CLAZZ(env, obj,
1846 g_MotionEvent_clazz, 0);
1847 jmethodID method_id =
1848 base::android::MethodID::LazyGet<
1849 base::android::MethodID::TYPE_INSTANCE>(
1850 env, g_MotionEvent_clazz,
1851 "getHistoricalOrientation",
1853 &g_MotionEvent_getHistoricalOrientationF_I_I);
1856 env->CallFloatMethod(obj,
1857 method_id, as_jint(p0), as_jint(p1));
1858 jni_generator::CheckException(env);
1862 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I_I = 0;
1863 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1864 jobject obj, JniIntWrapper p0,
1866 JniIntWrapper p2) __attribute__ ((unused));
1867 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1868 jobject obj, JniIntWrapper p0,
1871 /* Must call RegisterNativesImpl() */
1872 CHECK_CLAZZ(env, obj,
1873 g_MotionEvent_clazz, 0);
1874 jmethodID method_id =
1875 base::android::MethodID::LazyGet<
1876 base::android::MethodID::TYPE_INSTANCE>(
1877 env, g_MotionEvent_clazz,
1878 "getHistoricalAxisValue",
1880 &g_MotionEvent_getHistoricalAxisValueF_I_I_I);
1883 env->CallFloatMethod(obj,
1884 method_id, as_jint(p0), as_jint(p1), as_jint(p2));
1885 jni_generator::CheckException(env);
1889 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPointerCoords = 0;
1890 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1891 obj, JniIntWrapper p0,
1893 jobject p2) __attribute__ ((unused));
1894 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1895 obj, JniIntWrapper p0,
1898 /* Must call RegisterNativesImpl() */
1899 CHECK_CLAZZ(env, obj,
1900 g_MotionEvent_clazz);
1901 jmethodID method_id =
1902 base::android::MethodID::LazyGet<
1903 base::android::MethodID::TYPE_INSTANCE>(
1904 env, g_MotionEvent_clazz,
1905 "getHistoricalPointerCoords",
1906 "(IILandroid/view/MotionEvent$PointerCoords;)V",
1907 &g_MotionEvent_getHistoricalPointerCoords);
1909 env->CallVoidMethod(obj,
1910 method_id, as_jint(p0), as_jint(p1), p2);
1911 jni_generator::CheckException(env);
1915 static base::subtle::AtomicWord g_MotionEvent_getEdgeFlags = 0;
1916 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj)
1917 __attribute__ ((unused));
1918 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj) {
1919 /* Must call RegisterNativesImpl() */
1920 CHECK_CLAZZ(env, obj,
1921 g_MotionEvent_clazz, 0);
1922 jmethodID method_id =
1923 base::android::MethodID::LazyGet<
1924 base::android::MethodID::TYPE_INSTANCE>(
1925 env, g_MotionEvent_clazz,
1928 &g_MotionEvent_getEdgeFlags);
1931 env->CallIntMethod(obj,
1933 jni_generator::CheckException(env);
1937 static base::subtle::AtomicWord g_MotionEvent_setEdgeFlags = 0;
1938 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1939 JniIntWrapper p0) __attribute__ ((unused));
1940 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1942 /* Must call RegisterNativesImpl() */
1943 CHECK_CLAZZ(env, obj,
1944 g_MotionEvent_clazz);
1945 jmethodID method_id =
1946 base::android::MethodID::LazyGet<
1947 base::android::MethodID::TYPE_INSTANCE>(
1948 env, g_MotionEvent_clazz,
1951 &g_MotionEvent_setEdgeFlags);
1953 env->CallVoidMethod(obj,
1954 method_id, as_jint(p0));
1955 jni_generator::CheckException(env);
1959 static base::subtle::AtomicWord g_MotionEvent_setAction = 0;
1960 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1961 p0) __attribute__ ((unused));
1962 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1964 /* Must call RegisterNativesImpl() */
1965 CHECK_CLAZZ(env, obj,
1966 g_MotionEvent_clazz);
1967 jmethodID method_id =
1968 base::android::MethodID::LazyGet<
1969 base::android::MethodID::TYPE_INSTANCE>(
1970 env, g_MotionEvent_clazz,
1973 &g_MotionEvent_setAction);
1975 env->CallVoidMethod(obj,
1976 method_id, as_jint(p0));
1977 jni_generator::CheckException(env);
1981 static base::subtle::AtomicWord g_MotionEvent_offsetLocation = 0;
1982 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1983 jfloat p1) __attribute__ ((unused));
1984 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1986 /* Must call RegisterNativesImpl() */
1987 CHECK_CLAZZ(env, obj,
1988 g_MotionEvent_clazz);
1989 jmethodID method_id =
1990 base::android::MethodID::LazyGet<
1991 base::android::MethodID::TYPE_INSTANCE>(
1992 env, g_MotionEvent_clazz,
1995 &g_MotionEvent_offsetLocation);
1997 env->CallVoidMethod(obj,
1999 jni_generator::CheckException(env);
2003 static base::subtle::AtomicWord g_MotionEvent_setLocation = 0;
2004 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2005 jfloat p1) __attribute__ ((unused));
2006 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2008 /* Must call RegisterNativesImpl() */
2009 CHECK_CLAZZ(env, obj,
2010 g_MotionEvent_clazz);
2011 jmethodID method_id =
2012 base::android::MethodID::LazyGet<
2013 base::android::MethodID::TYPE_INSTANCE>(
2014 env, g_MotionEvent_clazz,
2017 &g_MotionEvent_setLocation);
2019 env->CallVoidMethod(obj,
2021 jni_generator::CheckException(env);
2025 static base::subtle::AtomicWord g_MotionEvent_transform = 0;
2026 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0)
2027 __attribute__ ((unused));
2028 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0) {
2029 /* Must call RegisterNativesImpl() */
2030 CHECK_CLAZZ(env, obj,
2031 g_MotionEvent_clazz);
2032 jmethodID method_id =
2033 base::android::MethodID::LazyGet<
2034 base::android::MethodID::TYPE_INSTANCE>(
2035 env, g_MotionEvent_clazz,
2037 "(Landroid/graphics/Matrix;)V",
2038 &g_MotionEvent_transform);
2040 env->CallVoidMethod(obj,
2042 jni_generator::CheckException(env);
2046 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_F_F_F_F_I = 0;
2047 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2053 JniIntWrapper p5) __attribute__ ((unused));
2054 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2061 /* Must call RegisterNativesImpl() */
2062 CHECK_CLAZZ(env, obj,
2063 g_MotionEvent_clazz);
2064 jmethodID method_id =
2065 base::android::MethodID::LazyGet<
2066 base::android::MethodID::TYPE_INSTANCE>(
2067 env, g_MotionEvent_clazz,
2070 &g_MotionEvent_addBatchV_J_F_F_F_F_I);
2072 env->CallVoidMethod(obj,
2073 method_id, p0, p1, p2, p3, p4, as_jint(p5));
2074 jni_generator::CheckException(env);
2078 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_LAVMEPC_I = 0;
2079 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2082 JniIntWrapper p2) __attribute__ ((unused));
2083 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2087 /* Must call RegisterNativesImpl() */
2088 CHECK_CLAZZ(env, obj,
2089 g_MotionEvent_clazz);
2090 jmethodID method_id =
2091 base::android::MethodID::LazyGet<
2092 base::android::MethodID::TYPE_INSTANCE>(
2093 env, g_MotionEvent_clazz,
2095 "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
2096 &g_MotionEvent_addBatchV_J_LAVMEPC_I);
2098 env->CallVoidMethod(obj,
2099 method_id, p0, p1, as_jint(p2));
2100 jni_generator::CheckException(env);
2104 static base::subtle::AtomicWord g_MotionEvent_toString = 0;
2105 static base::android::ScopedJavaLocalRef<jstring>
2106 Java_MotionEvent_toString(JNIEnv* env, jobject obj) __attribute__
2108 static base::android::ScopedJavaLocalRef<jstring>
2109 Java_MotionEvent_toString(JNIEnv* env, jobject obj) {
2110 /* Must call RegisterNativesImpl() */
2111 CHECK_CLAZZ(env, obj,
2112 g_MotionEvent_clazz, NULL);
2113 jmethodID method_id =
2114 base::android::MethodID::LazyGet<
2115 base::android::MethodID::TYPE_INSTANCE>(
2116 env, g_MotionEvent_clazz,
2118 "()Ljava/lang/String;",
2119 &g_MotionEvent_toString);
2122 static_cast<jstring>(env->CallObjectMethod(obj,
2124 jni_generator::CheckException(env);
2125 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2128 static base::subtle::AtomicWord g_MotionEvent_actionToString = 0;
2129 static base::android::ScopedJavaLocalRef<jstring>
2130 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2132 static base::android::ScopedJavaLocalRef<jstring>
2133 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) {
2134 /* Must call RegisterNativesImpl() */
2135 CHECK_CLAZZ(env, g_MotionEvent_clazz,
2136 g_MotionEvent_clazz, NULL);
2137 jmethodID method_id =
2138 base::android::MethodID::LazyGet<
2139 base::android::MethodID::TYPE_STATIC>(
2140 env, g_MotionEvent_clazz,
2142 "(I)Ljava/lang/String;",
2143 &g_MotionEvent_actionToString);
2146 static_cast<jstring>(env->CallStaticObjectMethod(g_MotionEvent_clazz,
2147 method_id, as_jint(p0)));
2148 jni_generator::CheckException(env);
2149 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2152 static base::subtle::AtomicWord g_MotionEvent_axisToString = 0;
2153 static base::android::ScopedJavaLocalRef<jstring>
2154 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2156 static base::android::ScopedJavaLocalRef<jstring>
2157 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) {
2158 /* Must call RegisterNativesImpl() */
2159 CHECK_CLAZZ(env, g_MotionEvent_clazz,
2160 g_MotionEvent_clazz, NULL);
2161 jmethodID method_id =
2162 base::android::MethodID::LazyGet<
2163 base::android::MethodID::TYPE_STATIC>(
2164 env, g_MotionEvent_clazz,
2166 "(I)Ljava/lang/String;",
2167 &g_MotionEvent_axisToString);
2170 static_cast<jstring>(env->CallStaticObjectMethod(g_MotionEvent_clazz,
2171 method_id, as_jint(p0)));
2172 jni_generator::CheckException(env);
2173 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2176 static base::subtle::AtomicWord g_MotionEvent_axisFromString = 0;
2177 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0)
2178 __attribute__ ((unused));
2179 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) {
2180 /* Must call RegisterNativesImpl() */
2181 CHECK_CLAZZ(env, g_MotionEvent_clazz,
2182 g_MotionEvent_clazz, 0);
2183 jmethodID method_id =
2184 base::android::MethodID::LazyGet<
2185 base::android::MethodID::TYPE_STATIC>(
2186 env, g_MotionEvent_clazz,
2188 "(Ljava/lang/String;)I",
2189 &g_MotionEvent_axisFromString);
2192 env->CallStaticIntMethod(g_MotionEvent_clazz,
2194 jni_generator::CheckException(env);
2198 static base::subtle::AtomicWord g_MotionEvent_writeToParcel = 0;
2199 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2200 JniIntWrapper p1) __attribute__ ((unused));
2201 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2203 /* Must call RegisterNativesImpl() */
2204 CHECK_CLAZZ(env, obj,
2205 g_MotionEvent_clazz);
2206 jmethodID method_id =
2207 base::android::MethodID::LazyGet<
2208 base::android::MethodID::TYPE_INSTANCE>(
2209 env, g_MotionEvent_clazz,
2211 "(Landroid/os/Parcel;I)V",
2212 &g_MotionEvent_writeToParcel);
2214 env->CallVoidMethod(obj,
2215 method_id, p0, as_jint(p1));
2216 jni_generator::CheckException(env);
2220 // Step 3: RegisterNatives.
2222 static bool RegisterNativesImpl(JNIEnv* env) {
2223 g_MotionEvent_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
2224 base::android::GetClass(env, kMotionEventClassPath).obj()));
2229 } // namespace JNI_MotionEvent
2231 #endif // android_view_MotionEvent_JNI