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 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 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 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 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 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 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 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 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 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 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 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 ScopedJavaLocalRef<jobject>(env, ret);
337 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
338 static ScopedJavaLocalRef<jobject>
339 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
344 JniIntWrapper p5) __attribute__ ((unused));
345 static 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 ScopedJavaLocalRef<jobject>(env, ret);
370 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0;
371 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env,
372 jobject p0) __attribute__ ((unused));
373 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env,
375 /* Must call RegisterNativesImpl() */
376 CHECK_CLAZZ(env, MotionEvent_clazz(env),
377 MotionEvent_clazz(env), NULL);
378 jmethodID method_id =
379 base::android::MethodID::LazyGet<
380 base::android::MethodID::TYPE_STATIC>(
381 env, MotionEvent_clazz(env),
383 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
384 &g_MotionEvent_obtainAVME_AVME);
387 env->CallStaticObjectMethod(MotionEvent_clazz(env),
389 jni_generator::CheckException(env);
390 return ScopedJavaLocalRef<jobject>(env, ret);
393 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0;
394 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env,
395 jobject p0) __attribute__ ((unused));
396 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env,
398 /* Must call RegisterNativesImpl() */
399 CHECK_CLAZZ(env, MotionEvent_clazz(env),
400 MotionEvent_clazz(env), NULL);
401 jmethodID method_id =
402 base::android::MethodID::LazyGet<
403 base::android::MethodID::TYPE_STATIC>(
404 env, MotionEvent_clazz(env),
406 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
407 &g_MotionEvent_obtainNoHistory);
410 env->CallStaticObjectMethod(MotionEvent_clazz(env),
412 jni_generator::CheckException(env);
413 return ScopedJavaLocalRef<jobject>(env, ret);
416 static base::subtle::AtomicWord g_MotionEvent_recycle = 0;
417 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) __attribute__
419 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) {
420 /* Must call RegisterNativesImpl() */
421 CHECK_CLAZZ(env, obj,
422 MotionEvent_clazz(env));
423 jmethodID method_id =
424 base::android::MethodID::LazyGet<
425 base::android::MethodID::TYPE_INSTANCE>(
426 env, MotionEvent_clazz(env),
429 &g_MotionEvent_recycle);
431 env->CallVoidMethod(obj,
433 jni_generator::CheckException(env);
437 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0;
438 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) __attribute__
440 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, jobject obj) {
441 /* Must call RegisterNativesImpl() */
442 CHECK_CLAZZ(env, obj,
443 MotionEvent_clazz(env), 0);
444 jmethodID method_id =
445 base::android::MethodID::LazyGet<
446 base::android::MethodID::TYPE_INSTANCE>(
447 env, MotionEvent_clazz(env),
450 &g_MotionEvent_getDeviceId);
453 env->CallIntMethod(obj,
455 jni_generator::CheckException(env);
459 static base::subtle::AtomicWord g_MotionEvent_getSource = 0;
460 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) __attribute__
462 static jint Java_MotionEvent_getSource(JNIEnv* env, jobject obj) {
463 /* Must call RegisterNativesImpl() */
464 CHECK_CLAZZ(env, obj,
465 MotionEvent_clazz(env), 0);
466 jmethodID method_id =
467 base::android::MethodID::LazyGet<
468 base::android::MethodID::TYPE_INSTANCE>(
469 env, MotionEvent_clazz(env),
472 &g_MotionEvent_getSource);
475 env->CallIntMethod(obj,
477 jni_generator::CheckException(env);
481 static base::subtle::AtomicWord g_MotionEvent_setSource = 0;
482 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
483 p0) __attribute__ ((unused));
484 static void Java_MotionEvent_setSource(JNIEnv* env, jobject obj, JniIntWrapper
486 /* Must call RegisterNativesImpl() */
487 CHECK_CLAZZ(env, obj,
488 MotionEvent_clazz(env));
489 jmethodID method_id =
490 base::android::MethodID::LazyGet<
491 base::android::MethodID::TYPE_INSTANCE>(
492 env, MotionEvent_clazz(env),
495 &g_MotionEvent_setSource);
497 env->CallVoidMethod(obj,
498 method_id, as_jint(p0));
499 jni_generator::CheckException(env);
503 static base::subtle::AtomicWord g_MotionEvent_getAction = 0;
504 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) __attribute__
506 static jint Java_MotionEvent_getAction(JNIEnv* env, jobject obj) {
507 /* Must call RegisterNativesImpl() */
508 CHECK_CLAZZ(env, obj,
509 MotionEvent_clazz(env), 0);
510 jmethodID method_id =
511 base::android::MethodID::LazyGet<
512 base::android::MethodID::TYPE_INSTANCE>(
513 env, MotionEvent_clazz(env),
516 &g_MotionEvent_getAction);
519 env->CallIntMethod(obj,
521 jni_generator::CheckException(env);
525 static base::subtle::AtomicWord g_MotionEvent_getActionMasked = 0;
526 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj)
527 __attribute__ ((unused));
528 static jint Java_MotionEvent_getActionMasked(JNIEnv* env, jobject obj) {
529 /* Must call RegisterNativesImpl() */
530 CHECK_CLAZZ(env, obj,
531 MotionEvent_clazz(env), 0);
532 jmethodID method_id =
533 base::android::MethodID::LazyGet<
534 base::android::MethodID::TYPE_INSTANCE>(
535 env, MotionEvent_clazz(env),
538 &g_MotionEvent_getActionMasked);
541 env->CallIntMethod(obj,
543 jni_generator::CheckException(env);
547 static base::subtle::AtomicWord g_MotionEvent_getActionIndex = 0;
548 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj)
549 __attribute__ ((unused));
550 static jint Java_MotionEvent_getActionIndex(JNIEnv* env, jobject obj) {
551 /* Must call RegisterNativesImpl() */
552 CHECK_CLAZZ(env, obj,
553 MotionEvent_clazz(env), 0);
554 jmethodID method_id =
555 base::android::MethodID::LazyGet<
556 base::android::MethodID::TYPE_INSTANCE>(
557 env, MotionEvent_clazz(env),
560 &g_MotionEvent_getActionIndex);
563 env->CallIntMethod(obj,
565 jni_generator::CheckException(env);
569 static base::subtle::AtomicWord g_MotionEvent_getFlags = 0;
570 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) __attribute__
572 static jint Java_MotionEvent_getFlags(JNIEnv* env, jobject obj) {
573 /* Must call RegisterNativesImpl() */
574 CHECK_CLAZZ(env, obj,
575 MotionEvent_clazz(env), 0);
576 jmethodID method_id =
577 base::android::MethodID::LazyGet<
578 base::android::MethodID::TYPE_INSTANCE>(
579 env, MotionEvent_clazz(env),
582 &g_MotionEvent_getFlags);
585 env->CallIntMethod(obj,
587 jni_generator::CheckException(env);
591 static base::subtle::AtomicWord g_MotionEvent_getDownTime = 0;
592 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj)
593 __attribute__ ((unused));
594 static jlong Java_MotionEvent_getDownTime(JNIEnv* env, jobject obj) {
595 /* Must call RegisterNativesImpl() */
596 CHECK_CLAZZ(env, obj,
597 MotionEvent_clazz(env), 0);
598 jmethodID method_id =
599 base::android::MethodID::LazyGet<
600 base::android::MethodID::TYPE_INSTANCE>(
601 env, MotionEvent_clazz(env),
604 &g_MotionEvent_getDownTime);
607 env->CallLongMethod(obj,
609 jni_generator::CheckException(env);
613 static base::subtle::AtomicWord g_MotionEvent_getEventTime = 0;
614 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj)
615 __attribute__ ((unused));
616 static jlong Java_MotionEvent_getEventTime(JNIEnv* env, jobject obj) {
617 /* Must call RegisterNativesImpl() */
618 CHECK_CLAZZ(env, obj,
619 MotionEvent_clazz(env), 0);
620 jmethodID method_id =
621 base::android::MethodID::LazyGet<
622 base::android::MethodID::TYPE_INSTANCE>(
623 env, MotionEvent_clazz(env),
626 &g_MotionEvent_getEventTime);
629 env->CallLongMethod(obj,
631 jni_generator::CheckException(env);
635 static base::subtle::AtomicWord g_MotionEvent_getXF = 0;
636 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) __attribute__
638 static jfloat Java_MotionEvent_getXF(JNIEnv* env, jobject obj) {
639 /* Must call RegisterNativesImpl() */
640 CHECK_CLAZZ(env, obj,
641 MotionEvent_clazz(env), 0);
642 jmethodID method_id =
643 base::android::MethodID::LazyGet<
644 base::android::MethodID::TYPE_INSTANCE>(
645 env, MotionEvent_clazz(env),
648 &g_MotionEvent_getXF);
651 env->CallFloatMethod(obj,
653 jni_generator::CheckException(env);
657 static base::subtle::AtomicWord g_MotionEvent_getYF = 0;
658 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) __attribute__
660 static jfloat Java_MotionEvent_getYF(JNIEnv* env, jobject obj) {
661 /* Must call RegisterNativesImpl() */
662 CHECK_CLAZZ(env, obj,
663 MotionEvent_clazz(env), 0);
664 jmethodID method_id =
665 base::android::MethodID::LazyGet<
666 base::android::MethodID::TYPE_INSTANCE>(
667 env, MotionEvent_clazz(env),
670 &g_MotionEvent_getYF);
673 env->CallFloatMethod(obj,
675 jni_generator::CheckException(env);
679 static base::subtle::AtomicWord g_MotionEvent_getPressureF = 0;
680 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj)
681 __attribute__ ((unused));
682 static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, jobject obj) {
683 /* Must call RegisterNativesImpl() */
684 CHECK_CLAZZ(env, obj,
685 MotionEvent_clazz(env), 0);
686 jmethodID method_id =
687 base::android::MethodID::LazyGet<
688 base::android::MethodID::TYPE_INSTANCE>(
689 env, MotionEvent_clazz(env),
692 &g_MotionEvent_getPressureF);
695 env->CallFloatMethod(obj,
697 jni_generator::CheckException(env);
701 static base::subtle::AtomicWord g_MotionEvent_getSizeF = 0;
702 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) __attribute__
704 static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, jobject obj) {
705 /* Must call RegisterNativesImpl() */
706 CHECK_CLAZZ(env, obj,
707 MotionEvent_clazz(env), 0);
708 jmethodID method_id =
709 base::android::MethodID::LazyGet<
710 base::android::MethodID::TYPE_INSTANCE>(
711 env, MotionEvent_clazz(env),
714 &g_MotionEvent_getSizeF);
717 env->CallFloatMethod(obj,
719 jni_generator::CheckException(env);
723 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF = 0;
724 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj)
725 __attribute__ ((unused));
726 static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, jobject obj) {
727 /* Must call RegisterNativesImpl() */
728 CHECK_CLAZZ(env, obj,
729 MotionEvent_clazz(env), 0);
730 jmethodID method_id =
731 base::android::MethodID::LazyGet<
732 base::android::MethodID::TYPE_INSTANCE>(
733 env, MotionEvent_clazz(env),
736 &g_MotionEvent_getTouchMajorF);
739 env->CallFloatMethod(obj,
741 jni_generator::CheckException(env);
745 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF = 0;
746 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj)
747 __attribute__ ((unused));
748 static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, jobject obj) {
749 /* Must call RegisterNativesImpl() */
750 CHECK_CLAZZ(env, obj,
751 MotionEvent_clazz(env), 0);
752 jmethodID method_id =
753 base::android::MethodID::LazyGet<
754 base::android::MethodID::TYPE_INSTANCE>(
755 env, MotionEvent_clazz(env),
758 &g_MotionEvent_getTouchMinorF);
761 env->CallFloatMethod(obj,
763 jni_generator::CheckException(env);
767 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF = 0;
768 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj)
769 __attribute__ ((unused));
770 static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, jobject obj) {
771 /* Must call RegisterNativesImpl() */
772 CHECK_CLAZZ(env, obj,
773 MotionEvent_clazz(env), 0);
774 jmethodID method_id =
775 base::android::MethodID::LazyGet<
776 base::android::MethodID::TYPE_INSTANCE>(
777 env, MotionEvent_clazz(env),
780 &g_MotionEvent_getToolMajorF);
783 env->CallFloatMethod(obj,
785 jni_generator::CheckException(env);
789 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF = 0;
790 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj)
791 __attribute__ ((unused));
792 static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, jobject obj) {
793 /* Must call RegisterNativesImpl() */
794 CHECK_CLAZZ(env, obj,
795 MotionEvent_clazz(env), 0);
796 jmethodID method_id =
797 base::android::MethodID::LazyGet<
798 base::android::MethodID::TYPE_INSTANCE>(
799 env, MotionEvent_clazz(env),
802 &g_MotionEvent_getToolMinorF);
805 env->CallFloatMethod(obj,
807 jni_generator::CheckException(env);
811 static base::subtle::AtomicWord g_MotionEvent_getOrientationF = 0;
812 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj)
813 __attribute__ ((unused));
814 static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, jobject obj) {
815 /* Must call RegisterNativesImpl() */
816 CHECK_CLAZZ(env, obj,
817 MotionEvent_clazz(env), 0);
818 jmethodID method_id =
819 base::android::MethodID::LazyGet<
820 base::android::MethodID::TYPE_INSTANCE>(
821 env, MotionEvent_clazz(env),
824 &g_MotionEvent_getOrientationF);
827 env->CallFloatMethod(obj,
829 jni_generator::CheckException(env);
833 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I = 0;
834 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
835 JniIntWrapper p0) __attribute__ ((unused));
836 static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, jobject obj,
838 /* Must call RegisterNativesImpl() */
839 CHECK_CLAZZ(env, obj,
840 MotionEvent_clazz(env), 0);
841 jmethodID method_id =
842 base::android::MethodID::LazyGet<
843 base::android::MethodID::TYPE_INSTANCE>(
844 env, MotionEvent_clazz(env),
847 &g_MotionEvent_getAxisValueF_I);
850 env->CallFloatMethod(obj,
851 method_id, as_jint(p0));
852 jni_generator::CheckException(env);
856 static base::subtle::AtomicWord g_MotionEvent_getPointerCount = 0;
857 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj)
858 __attribute__ ((unused));
859 static jint Java_MotionEvent_getPointerCount(JNIEnv* env, jobject obj) {
860 /* Must call RegisterNativesImpl() */
861 CHECK_CLAZZ(env, obj,
862 MotionEvent_clazz(env), 0);
863 jmethodID method_id =
864 base::android::MethodID::LazyGet<
865 base::android::MethodID::TYPE_INSTANCE>(
866 env, MotionEvent_clazz(env),
869 &g_MotionEvent_getPointerCount);
872 env->CallIntMethod(obj,
874 jni_generator::CheckException(env);
878 static base::subtle::AtomicWord g_MotionEvent_getPointerId = 0;
879 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
880 JniIntWrapper p0) __attribute__ ((unused));
881 static jint Java_MotionEvent_getPointerId(JNIEnv* env, jobject obj,
883 /* Must call RegisterNativesImpl() */
884 CHECK_CLAZZ(env, obj,
885 MotionEvent_clazz(env), 0);
886 jmethodID method_id =
887 base::android::MethodID::LazyGet<
888 base::android::MethodID::TYPE_INSTANCE>(
889 env, MotionEvent_clazz(env),
892 &g_MotionEvent_getPointerId);
895 env->CallIntMethod(obj,
896 method_id, as_jint(p0));
897 jni_generator::CheckException(env);
901 static base::subtle::AtomicWord g_MotionEvent_getToolType = 0;
902 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
903 p0) __attribute__ ((unused));
904 static jint Java_MotionEvent_getToolType(JNIEnv* env, jobject obj, JniIntWrapper
906 /* Must call RegisterNativesImpl() */
907 CHECK_CLAZZ(env, obj,
908 MotionEvent_clazz(env), 0);
909 jmethodID method_id =
910 base::android::MethodID::LazyGet<
911 base::android::MethodID::TYPE_INSTANCE>(
912 env, MotionEvent_clazz(env),
915 &g_MotionEvent_getToolType);
918 env->CallIntMethod(obj,
919 method_id, as_jint(p0));
920 jni_generator::CheckException(env);
924 static base::subtle::AtomicWord g_MotionEvent_findPointerIndex = 0;
925 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
926 JniIntWrapper p0) __attribute__ ((unused));
927 static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, jobject obj,
929 /* Must call RegisterNativesImpl() */
930 CHECK_CLAZZ(env, obj,
931 MotionEvent_clazz(env), 0);
932 jmethodID method_id =
933 base::android::MethodID::LazyGet<
934 base::android::MethodID::TYPE_INSTANCE>(
935 env, MotionEvent_clazz(env),
938 &g_MotionEvent_findPointerIndex);
941 env->CallIntMethod(obj,
942 method_id, as_jint(p0));
943 jni_generator::CheckException(env);
947 static base::subtle::AtomicWord g_MotionEvent_getXF_I = 0;
948 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
949 p0) __attribute__ ((unused));
950 static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, jobject obj, JniIntWrapper
952 /* Must call RegisterNativesImpl() */
953 CHECK_CLAZZ(env, obj,
954 MotionEvent_clazz(env), 0);
955 jmethodID method_id =
956 base::android::MethodID::LazyGet<
957 base::android::MethodID::TYPE_INSTANCE>(
958 env, MotionEvent_clazz(env),
961 &g_MotionEvent_getXF_I);
964 env->CallFloatMethod(obj,
965 method_id, as_jint(p0));
966 jni_generator::CheckException(env);
970 static base::subtle::AtomicWord g_MotionEvent_getYF_I = 0;
971 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
972 p0) __attribute__ ((unused));
973 static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, jobject obj, JniIntWrapper
975 /* Must call RegisterNativesImpl() */
976 CHECK_CLAZZ(env, obj,
977 MotionEvent_clazz(env), 0);
978 jmethodID method_id =
979 base::android::MethodID::LazyGet<
980 base::android::MethodID::TYPE_INSTANCE>(
981 env, MotionEvent_clazz(env),
984 &g_MotionEvent_getYF_I);
987 env->CallFloatMethod(obj,
988 method_id, as_jint(p0));
989 jni_generator::CheckException(env);
993 static base::subtle::AtomicWord g_MotionEvent_getPressureF_I = 0;
994 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
995 JniIntWrapper p0) __attribute__ ((unused));
996 static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, jobject obj,
998 /* Must call RegisterNativesImpl() */
999 CHECK_CLAZZ(env, obj,
1000 MotionEvent_clazz(env), 0);
1001 jmethodID method_id =
1002 base::android::MethodID::LazyGet<
1003 base::android::MethodID::TYPE_INSTANCE>(
1004 env, MotionEvent_clazz(env),
1007 &g_MotionEvent_getPressureF_I);
1010 env->CallFloatMethod(obj,
1011 method_id, as_jint(p0));
1012 jni_generator::CheckException(env);
1016 static base::subtle::AtomicWord g_MotionEvent_getSizeF_I = 0;
1017 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1018 JniIntWrapper p0) __attribute__ ((unused));
1019 static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, jobject obj,
1021 /* Must call RegisterNativesImpl() */
1022 CHECK_CLAZZ(env, obj,
1023 MotionEvent_clazz(env), 0);
1024 jmethodID method_id =
1025 base::android::MethodID::LazyGet<
1026 base::android::MethodID::TYPE_INSTANCE>(
1027 env, MotionEvent_clazz(env),
1030 &g_MotionEvent_getSizeF_I);
1033 env->CallFloatMethod(obj,
1034 method_id, as_jint(p0));
1035 jni_generator::CheckException(env);
1039 static base::subtle::AtomicWord g_MotionEvent_getTouchMajorF_I = 0;
1040 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1041 JniIntWrapper p0) __attribute__ ((unused));
1042 static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, jobject obj,
1044 /* Must call RegisterNativesImpl() */
1045 CHECK_CLAZZ(env, obj,
1046 MotionEvent_clazz(env), 0);
1047 jmethodID method_id =
1048 base::android::MethodID::LazyGet<
1049 base::android::MethodID::TYPE_INSTANCE>(
1050 env, MotionEvent_clazz(env),
1053 &g_MotionEvent_getTouchMajorF_I);
1056 env->CallFloatMethod(obj,
1057 method_id, as_jint(p0));
1058 jni_generator::CheckException(env);
1062 static base::subtle::AtomicWord g_MotionEvent_getTouchMinorF_I = 0;
1063 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1064 JniIntWrapper p0) __attribute__ ((unused));
1065 static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, jobject obj,
1067 /* Must call RegisterNativesImpl() */
1068 CHECK_CLAZZ(env, obj,
1069 MotionEvent_clazz(env), 0);
1070 jmethodID method_id =
1071 base::android::MethodID::LazyGet<
1072 base::android::MethodID::TYPE_INSTANCE>(
1073 env, MotionEvent_clazz(env),
1076 &g_MotionEvent_getTouchMinorF_I);
1079 env->CallFloatMethod(obj,
1080 method_id, as_jint(p0));
1081 jni_generator::CheckException(env);
1085 static base::subtle::AtomicWord g_MotionEvent_getToolMajorF_I = 0;
1086 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1087 JniIntWrapper p0) __attribute__ ((unused));
1088 static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, jobject obj,
1090 /* Must call RegisterNativesImpl() */
1091 CHECK_CLAZZ(env, obj,
1092 MotionEvent_clazz(env), 0);
1093 jmethodID method_id =
1094 base::android::MethodID::LazyGet<
1095 base::android::MethodID::TYPE_INSTANCE>(
1096 env, MotionEvent_clazz(env),
1099 &g_MotionEvent_getToolMajorF_I);
1102 env->CallFloatMethod(obj,
1103 method_id, as_jint(p0));
1104 jni_generator::CheckException(env);
1108 static base::subtle::AtomicWord g_MotionEvent_getToolMinorF_I = 0;
1109 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1110 JniIntWrapper p0) __attribute__ ((unused));
1111 static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, jobject obj,
1113 /* Must call RegisterNativesImpl() */
1114 CHECK_CLAZZ(env, obj,
1115 MotionEvent_clazz(env), 0);
1116 jmethodID method_id =
1117 base::android::MethodID::LazyGet<
1118 base::android::MethodID::TYPE_INSTANCE>(
1119 env, MotionEvent_clazz(env),
1122 &g_MotionEvent_getToolMinorF_I);
1125 env->CallFloatMethod(obj,
1126 method_id, as_jint(p0));
1127 jni_generator::CheckException(env);
1131 static base::subtle::AtomicWord g_MotionEvent_getOrientationF_I = 0;
1132 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1133 JniIntWrapper p0) __attribute__ ((unused));
1134 static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, jobject obj,
1136 /* Must call RegisterNativesImpl() */
1137 CHECK_CLAZZ(env, obj,
1138 MotionEvent_clazz(env), 0);
1139 jmethodID method_id =
1140 base::android::MethodID::LazyGet<
1141 base::android::MethodID::TYPE_INSTANCE>(
1142 env, MotionEvent_clazz(env),
1145 &g_MotionEvent_getOrientationF_I);
1148 env->CallFloatMethod(obj,
1149 method_id, as_jint(p0));
1150 jni_generator::CheckException(env);
1154 static base::subtle::AtomicWord g_MotionEvent_getAxisValueF_I_I = 0;
1155 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1157 JniIntWrapper p1) __attribute__ ((unused));
1158 static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, jobject obj,
1161 /* Must call RegisterNativesImpl() */
1162 CHECK_CLAZZ(env, obj,
1163 MotionEvent_clazz(env), 0);
1164 jmethodID method_id =
1165 base::android::MethodID::LazyGet<
1166 base::android::MethodID::TYPE_INSTANCE>(
1167 env, MotionEvent_clazz(env),
1170 &g_MotionEvent_getAxisValueF_I_I);
1173 env->CallFloatMethod(obj,
1174 method_id, as_jint(p0), as_jint(p1));
1175 jni_generator::CheckException(env);
1179 static base::subtle::AtomicWord g_MotionEvent_getPointerCoords = 0;
1180 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1182 jobject p1) __attribute__ ((unused));
1183 static void Java_MotionEvent_getPointerCoords(JNIEnv* env, jobject obj,
1186 /* Must call RegisterNativesImpl() */
1187 CHECK_CLAZZ(env, obj,
1188 MotionEvent_clazz(env));
1189 jmethodID method_id =
1190 base::android::MethodID::LazyGet<
1191 base::android::MethodID::TYPE_INSTANCE>(
1192 env, MotionEvent_clazz(env),
1194 "(ILandroid/view/MotionEvent$PointerCoords;)V",
1195 &g_MotionEvent_getPointerCoords);
1197 env->CallVoidMethod(obj,
1198 method_id, as_jint(p0), p1);
1199 jni_generator::CheckException(env);
1203 static base::subtle::AtomicWord g_MotionEvent_getPointerProperties = 0;
1204 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1206 jobject p1) __attribute__ ((unused));
1207 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, jobject obj,
1210 /* Must call RegisterNativesImpl() */
1211 CHECK_CLAZZ(env, obj,
1212 MotionEvent_clazz(env));
1213 jmethodID method_id =
1214 base::android::MethodID::LazyGet<
1215 base::android::MethodID::TYPE_INSTANCE>(
1216 env, MotionEvent_clazz(env),
1217 "getPointerProperties",
1218 "(ILandroid/view/MotionEvent$PointerProperties;)V",
1219 &g_MotionEvent_getPointerProperties);
1221 env->CallVoidMethod(obj,
1222 method_id, as_jint(p0), p1);
1223 jni_generator::CheckException(env);
1227 static base::subtle::AtomicWord g_MotionEvent_getMetaState = 0;
1228 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj)
1229 __attribute__ ((unused));
1230 static jint Java_MotionEvent_getMetaState(JNIEnv* env, jobject obj) {
1231 /* Must call RegisterNativesImpl() */
1232 CHECK_CLAZZ(env, obj,
1233 MotionEvent_clazz(env), 0);
1234 jmethodID method_id =
1235 base::android::MethodID::LazyGet<
1236 base::android::MethodID::TYPE_INSTANCE>(
1237 env, MotionEvent_clazz(env),
1240 &g_MotionEvent_getMetaState);
1243 env->CallIntMethod(obj,
1245 jni_generator::CheckException(env);
1249 static base::subtle::AtomicWord g_MotionEvent_getButtonState = 0;
1250 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj)
1251 __attribute__ ((unused));
1252 static jint Java_MotionEvent_getButtonState(JNIEnv* env, jobject obj) {
1253 /* Must call RegisterNativesImpl() */
1254 CHECK_CLAZZ(env, obj,
1255 MotionEvent_clazz(env), 0);
1256 jmethodID method_id =
1257 base::android::MethodID::LazyGet<
1258 base::android::MethodID::TYPE_INSTANCE>(
1259 env, MotionEvent_clazz(env),
1262 &g_MotionEvent_getButtonState);
1265 env->CallIntMethod(obj,
1267 jni_generator::CheckException(env);
1271 static base::subtle::AtomicWord g_MotionEvent_getRawX = 0;
1272 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) __attribute__
1274 static jfloat Java_MotionEvent_getRawX(JNIEnv* env, jobject obj) {
1275 /* Must call RegisterNativesImpl() */
1276 CHECK_CLAZZ(env, obj,
1277 MotionEvent_clazz(env), 0);
1278 jmethodID method_id =
1279 base::android::MethodID::LazyGet<
1280 base::android::MethodID::TYPE_INSTANCE>(
1281 env, MotionEvent_clazz(env),
1284 &g_MotionEvent_getRawX);
1287 env->CallFloatMethod(obj,
1289 jni_generator::CheckException(env);
1293 static base::subtle::AtomicWord g_MotionEvent_getRawY = 0;
1294 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) __attribute__
1296 static jfloat Java_MotionEvent_getRawY(JNIEnv* env, jobject obj) {
1297 /* Must call RegisterNativesImpl() */
1298 CHECK_CLAZZ(env, obj,
1299 MotionEvent_clazz(env), 0);
1300 jmethodID method_id =
1301 base::android::MethodID::LazyGet<
1302 base::android::MethodID::TYPE_INSTANCE>(
1303 env, MotionEvent_clazz(env),
1306 &g_MotionEvent_getRawY);
1309 env->CallFloatMethod(obj,
1311 jni_generator::CheckException(env);
1315 static base::subtle::AtomicWord g_MotionEvent_getXPrecision = 0;
1316 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj)
1317 __attribute__ ((unused));
1318 static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, jobject obj) {
1319 /* Must call RegisterNativesImpl() */
1320 CHECK_CLAZZ(env, obj,
1321 MotionEvent_clazz(env), 0);
1322 jmethodID method_id =
1323 base::android::MethodID::LazyGet<
1324 base::android::MethodID::TYPE_INSTANCE>(
1325 env, MotionEvent_clazz(env),
1328 &g_MotionEvent_getXPrecision);
1331 env->CallFloatMethod(obj,
1333 jni_generator::CheckException(env);
1337 static base::subtle::AtomicWord g_MotionEvent_getYPrecision = 0;
1338 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj)
1339 __attribute__ ((unused));
1340 static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, jobject obj) {
1341 /* Must call RegisterNativesImpl() */
1342 CHECK_CLAZZ(env, obj,
1343 MotionEvent_clazz(env), 0);
1344 jmethodID method_id =
1345 base::android::MethodID::LazyGet<
1346 base::android::MethodID::TYPE_INSTANCE>(
1347 env, MotionEvent_clazz(env),
1350 &g_MotionEvent_getYPrecision);
1353 env->CallFloatMethod(obj,
1355 jni_generator::CheckException(env);
1359 static base::subtle::AtomicWord g_MotionEvent_getHistorySize = 0;
1360 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj)
1361 __attribute__ ((unused));
1362 static jint Java_MotionEvent_getHistorySize(JNIEnv* env, jobject obj) {
1363 /* Must call RegisterNativesImpl() */
1364 CHECK_CLAZZ(env, obj,
1365 MotionEvent_clazz(env), 0);
1366 jmethodID method_id =
1367 base::android::MethodID::LazyGet<
1368 base::android::MethodID::TYPE_INSTANCE>(
1369 env, MotionEvent_clazz(env),
1372 &g_MotionEvent_getHistorySize);
1375 env->CallIntMethod(obj,
1377 jni_generator::CheckException(env);
1381 static base::subtle::AtomicWord g_MotionEvent_getHistoricalEventTime = 0;
1382 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1383 JniIntWrapper p0) __attribute__ ((unused));
1384 static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, jobject obj,
1386 /* Must call RegisterNativesImpl() */
1387 CHECK_CLAZZ(env, obj,
1388 MotionEvent_clazz(env), 0);
1389 jmethodID method_id =
1390 base::android::MethodID::LazyGet<
1391 base::android::MethodID::TYPE_INSTANCE>(
1392 env, MotionEvent_clazz(env),
1393 "getHistoricalEventTime",
1395 &g_MotionEvent_getHistoricalEventTime);
1398 env->CallLongMethod(obj,
1399 method_id, as_jint(p0));
1400 jni_generator::CheckException(env);
1404 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I = 0;
1405 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1406 JniIntWrapper p0) __attribute__ ((unused));
1407 static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, jobject obj,
1409 /* Must call RegisterNativesImpl() */
1410 CHECK_CLAZZ(env, obj,
1411 MotionEvent_clazz(env), 0);
1412 jmethodID method_id =
1413 base::android::MethodID::LazyGet<
1414 base::android::MethodID::TYPE_INSTANCE>(
1415 env, MotionEvent_clazz(env),
1418 &g_MotionEvent_getHistoricalXF_I);
1421 env->CallFloatMethod(obj,
1422 method_id, as_jint(p0));
1423 jni_generator::CheckException(env);
1427 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I = 0;
1428 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1429 JniIntWrapper p0) __attribute__ ((unused));
1430 static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, jobject obj,
1432 /* Must call RegisterNativesImpl() */
1433 CHECK_CLAZZ(env, obj,
1434 MotionEvent_clazz(env), 0);
1435 jmethodID method_id =
1436 base::android::MethodID::LazyGet<
1437 base::android::MethodID::TYPE_INSTANCE>(
1438 env, MotionEvent_clazz(env),
1441 &g_MotionEvent_getHistoricalYF_I);
1444 env->CallFloatMethod(obj,
1445 method_id, as_jint(p0));
1446 jni_generator::CheckException(env);
1450 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I = 0;
1451 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1452 obj, JniIntWrapper p0) __attribute__ ((unused));
1453 static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, jobject
1454 obj, JniIntWrapper p0) {
1455 /* Must call RegisterNativesImpl() */
1456 CHECK_CLAZZ(env, obj,
1457 MotionEvent_clazz(env), 0);
1458 jmethodID method_id =
1459 base::android::MethodID::LazyGet<
1460 base::android::MethodID::TYPE_INSTANCE>(
1461 env, MotionEvent_clazz(env),
1462 "getHistoricalPressure",
1464 &g_MotionEvent_getHistoricalPressureF_I);
1467 env->CallFloatMethod(obj,
1468 method_id, as_jint(p0));
1469 jni_generator::CheckException(env);
1473 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I = 0;
1474 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1475 JniIntWrapper p0) __attribute__ ((unused));
1476 static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, jobject obj,
1478 /* Must call RegisterNativesImpl() */
1479 CHECK_CLAZZ(env, obj,
1480 MotionEvent_clazz(env), 0);
1481 jmethodID method_id =
1482 base::android::MethodID::LazyGet<
1483 base::android::MethodID::TYPE_INSTANCE>(
1484 env, MotionEvent_clazz(env),
1485 "getHistoricalSize",
1487 &g_MotionEvent_getHistoricalSizeF_I);
1490 env->CallFloatMethod(obj,
1491 method_id, as_jint(p0));
1492 jni_generator::CheckException(env);
1496 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I = 0;
1497 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1498 obj, JniIntWrapper p0) __attribute__ ((unused));
1499 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, jobject
1500 obj, JniIntWrapper p0) {
1501 /* Must call RegisterNativesImpl() */
1502 CHECK_CLAZZ(env, obj,
1503 MotionEvent_clazz(env), 0);
1504 jmethodID method_id =
1505 base::android::MethodID::LazyGet<
1506 base::android::MethodID::TYPE_INSTANCE>(
1507 env, MotionEvent_clazz(env),
1508 "getHistoricalTouchMajor",
1510 &g_MotionEvent_getHistoricalTouchMajorF_I);
1513 env->CallFloatMethod(obj,
1514 method_id, as_jint(p0));
1515 jni_generator::CheckException(env);
1519 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I = 0;
1520 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1521 obj, JniIntWrapper p0) __attribute__ ((unused));
1522 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, jobject
1523 obj, JniIntWrapper p0) {
1524 /* Must call RegisterNativesImpl() */
1525 CHECK_CLAZZ(env, obj,
1526 MotionEvent_clazz(env), 0);
1527 jmethodID method_id =
1528 base::android::MethodID::LazyGet<
1529 base::android::MethodID::TYPE_INSTANCE>(
1530 env, MotionEvent_clazz(env),
1531 "getHistoricalTouchMinor",
1533 &g_MotionEvent_getHistoricalTouchMinorF_I);
1536 env->CallFloatMethod(obj,
1537 method_id, as_jint(p0));
1538 jni_generator::CheckException(env);
1542 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I = 0;
1543 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1544 obj, JniIntWrapper p0) __attribute__ ((unused));
1545 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, jobject
1546 obj, JniIntWrapper p0) {
1547 /* Must call RegisterNativesImpl() */
1548 CHECK_CLAZZ(env, obj,
1549 MotionEvent_clazz(env), 0);
1550 jmethodID method_id =
1551 base::android::MethodID::LazyGet<
1552 base::android::MethodID::TYPE_INSTANCE>(
1553 env, MotionEvent_clazz(env),
1554 "getHistoricalToolMajor",
1556 &g_MotionEvent_getHistoricalToolMajorF_I);
1559 env->CallFloatMethod(obj,
1560 method_id, as_jint(p0));
1561 jni_generator::CheckException(env);
1565 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I = 0;
1566 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1567 obj, JniIntWrapper p0) __attribute__ ((unused));
1568 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, jobject
1569 obj, JniIntWrapper p0) {
1570 /* Must call RegisterNativesImpl() */
1571 CHECK_CLAZZ(env, obj,
1572 MotionEvent_clazz(env), 0);
1573 jmethodID method_id =
1574 base::android::MethodID::LazyGet<
1575 base::android::MethodID::TYPE_INSTANCE>(
1576 env, MotionEvent_clazz(env),
1577 "getHistoricalToolMinor",
1579 &g_MotionEvent_getHistoricalToolMinorF_I);
1582 env->CallFloatMethod(obj,
1583 method_id, as_jint(p0));
1584 jni_generator::CheckException(env);
1588 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I = 0;
1589 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1590 obj, JniIntWrapper p0) __attribute__ ((unused));
1591 static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, jobject
1592 obj, JniIntWrapper p0) {
1593 /* Must call RegisterNativesImpl() */
1594 CHECK_CLAZZ(env, obj,
1595 MotionEvent_clazz(env), 0);
1596 jmethodID method_id =
1597 base::android::MethodID::LazyGet<
1598 base::android::MethodID::TYPE_INSTANCE>(
1599 env, MotionEvent_clazz(env),
1600 "getHistoricalOrientation",
1602 &g_MotionEvent_getHistoricalOrientationF_I);
1605 env->CallFloatMethod(obj,
1606 method_id, as_jint(p0));
1607 jni_generator::CheckException(env);
1611 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I = 0;
1612 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1613 obj, JniIntWrapper p0,
1614 JniIntWrapper p1) __attribute__ ((unused));
1615 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, jobject
1616 obj, JniIntWrapper p0,
1618 /* Must call RegisterNativesImpl() */
1619 CHECK_CLAZZ(env, obj,
1620 MotionEvent_clazz(env), 0);
1621 jmethodID method_id =
1622 base::android::MethodID::LazyGet<
1623 base::android::MethodID::TYPE_INSTANCE>(
1624 env, MotionEvent_clazz(env),
1625 "getHistoricalAxisValue",
1627 &g_MotionEvent_getHistoricalAxisValueF_I_I);
1630 env->CallFloatMethod(obj,
1631 method_id, as_jint(p0), as_jint(p1));
1632 jni_generator::CheckException(env);
1636 static base::subtle::AtomicWord g_MotionEvent_getHistoricalXF_I_I = 0;
1637 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1639 JniIntWrapper p1) __attribute__ ((unused));
1640 static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, jobject obj,
1643 /* Must call RegisterNativesImpl() */
1644 CHECK_CLAZZ(env, obj,
1645 MotionEvent_clazz(env), 0);
1646 jmethodID method_id =
1647 base::android::MethodID::LazyGet<
1648 base::android::MethodID::TYPE_INSTANCE>(
1649 env, MotionEvent_clazz(env),
1652 &g_MotionEvent_getHistoricalXF_I_I);
1655 env->CallFloatMethod(obj,
1656 method_id, as_jint(p0), as_jint(p1));
1657 jni_generator::CheckException(env);
1661 static base::subtle::AtomicWord g_MotionEvent_getHistoricalYF_I_I = 0;
1662 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1664 JniIntWrapper p1) __attribute__ ((unused));
1665 static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, jobject obj,
1668 /* Must call RegisterNativesImpl() */
1669 CHECK_CLAZZ(env, obj,
1670 MotionEvent_clazz(env), 0);
1671 jmethodID method_id =
1672 base::android::MethodID::LazyGet<
1673 base::android::MethodID::TYPE_INSTANCE>(
1674 env, MotionEvent_clazz(env),
1677 &g_MotionEvent_getHistoricalYF_I_I);
1680 env->CallFloatMethod(obj,
1681 method_id, as_jint(p0), as_jint(p1));
1682 jni_generator::CheckException(env);
1686 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPressureF_I_I = 0;
1687 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1688 obj, JniIntWrapper p0,
1689 JniIntWrapper p1) __attribute__ ((unused));
1690 static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, jobject
1691 obj, JniIntWrapper p0,
1693 /* Must call RegisterNativesImpl() */
1694 CHECK_CLAZZ(env, obj,
1695 MotionEvent_clazz(env), 0);
1696 jmethodID method_id =
1697 base::android::MethodID::LazyGet<
1698 base::android::MethodID::TYPE_INSTANCE>(
1699 env, MotionEvent_clazz(env),
1700 "getHistoricalPressure",
1702 &g_MotionEvent_getHistoricalPressureF_I_I);
1705 env->CallFloatMethod(obj,
1706 method_id, as_jint(p0), as_jint(p1));
1707 jni_generator::CheckException(env);
1711 static base::subtle::AtomicWord g_MotionEvent_getHistoricalSizeF_I_I = 0;
1712 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1714 JniIntWrapper p1) __attribute__ ((unused));
1715 static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, jobject obj,
1718 /* Must call RegisterNativesImpl() */
1719 CHECK_CLAZZ(env, obj,
1720 MotionEvent_clazz(env), 0);
1721 jmethodID method_id =
1722 base::android::MethodID::LazyGet<
1723 base::android::MethodID::TYPE_INSTANCE>(
1724 env, MotionEvent_clazz(env),
1725 "getHistoricalSize",
1727 &g_MotionEvent_getHistoricalSizeF_I_I);
1730 env->CallFloatMethod(obj,
1731 method_id, as_jint(p0), as_jint(p1));
1732 jni_generator::CheckException(env);
1736 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMajorF_I_I = 0;
1737 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1738 obj, JniIntWrapper p0,
1739 JniIntWrapper p1) __attribute__ ((unused));
1740 static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, jobject
1741 obj, JniIntWrapper p0,
1743 /* Must call RegisterNativesImpl() */
1744 CHECK_CLAZZ(env, obj,
1745 MotionEvent_clazz(env), 0);
1746 jmethodID method_id =
1747 base::android::MethodID::LazyGet<
1748 base::android::MethodID::TYPE_INSTANCE>(
1749 env, MotionEvent_clazz(env),
1750 "getHistoricalTouchMajor",
1752 &g_MotionEvent_getHistoricalTouchMajorF_I_I);
1755 env->CallFloatMethod(obj,
1756 method_id, as_jint(p0), as_jint(p1));
1757 jni_generator::CheckException(env);
1761 static base::subtle::AtomicWord g_MotionEvent_getHistoricalTouchMinorF_I_I = 0;
1762 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1763 obj, JniIntWrapper p0,
1764 JniIntWrapper p1) __attribute__ ((unused));
1765 static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, jobject
1766 obj, JniIntWrapper p0,
1768 /* Must call RegisterNativesImpl() */
1769 CHECK_CLAZZ(env, obj,
1770 MotionEvent_clazz(env), 0);
1771 jmethodID method_id =
1772 base::android::MethodID::LazyGet<
1773 base::android::MethodID::TYPE_INSTANCE>(
1774 env, MotionEvent_clazz(env),
1775 "getHistoricalTouchMinor",
1777 &g_MotionEvent_getHistoricalTouchMinorF_I_I);
1780 env->CallFloatMethod(obj,
1781 method_id, as_jint(p0), as_jint(p1));
1782 jni_generator::CheckException(env);
1786 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMajorF_I_I = 0;
1787 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1788 obj, JniIntWrapper p0,
1789 JniIntWrapper p1) __attribute__ ((unused));
1790 static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, jobject
1791 obj, JniIntWrapper p0,
1793 /* Must call RegisterNativesImpl() */
1794 CHECK_CLAZZ(env, obj,
1795 MotionEvent_clazz(env), 0);
1796 jmethodID method_id =
1797 base::android::MethodID::LazyGet<
1798 base::android::MethodID::TYPE_INSTANCE>(
1799 env, MotionEvent_clazz(env),
1800 "getHistoricalToolMajor",
1802 &g_MotionEvent_getHistoricalToolMajorF_I_I);
1805 env->CallFloatMethod(obj,
1806 method_id, as_jint(p0), as_jint(p1));
1807 jni_generator::CheckException(env);
1811 static base::subtle::AtomicWord g_MotionEvent_getHistoricalToolMinorF_I_I = 0;
1812 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1813 obj, JniIntWrapper p0,
1814 JniIntWrapper p1) __attribute__ ((unused));
1815 static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, jobject
1816 obj, JniIntWrapper p0,
1818 /* Must call RegisterNativesImpl() */
1819 CHECK_CLAZZ(env, obj,
1820 MotionEvent_clazz(env), 0);
1821 jmethodID method_id =
1822 base::android::MethodID::LazyGet<
1823 base::android::MethodID::TYPE_INSTANCE>(
1824 env, MotionEvent_clazz(env),
1825 "getHistoricalToolMinor",
1827 &g_MotionEvent_getHistoricalToolMinorF_I_I);
1830 env->CallFloatMethod(obj,
1831 method_id, as_jint(p0), as_jint(p1));
1832 jni_generator::CheckException(env);
1836 static base::subtle::AtomicWord g_MotionEvent_getHistoricalOrientationF_I_I = 0;
1837 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1838 jobject obj, JniIntWrapper p0,
1839 JniIntWrapper p1) __attribute__ ((unused));
1840 static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env,
1841 jobject obj, JniIntWrapper p0,
1843 /* Must call RegisterNativesImpl() */
1844 CHECK_CLAZZ(env, obj,
1845 MotionEvent_clazz(env), 0);
1846 jmethodID method_id =
1847 base::android::MethodID::LazyGet<
1848 base::android::MethodID::TYPE_INSTANCE>(
1849 env, MotionEvent_clazz(env),
1850 "getHistoricalOrientation",
1852 &g_MotionEvent_getHistoricalOrientationF_I_I);
1855 env->CallFloatMethod(obj,
1856 method_id, as_jint(p0), as_jint(p1));
1857 jni_generator::CheckException(env);
1861 static base::subtle::AtomicWord g_MotionEvent_getHistoricalAxisValueF_I_I_I = 0;
1862 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1863 jobject obj, JniIntWrapper p0,
1865 JniIntWrapper p2) __attribute__ ((unused));
1866 static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env,
1867 jobject obj, JniIntWrapper p0,
1870 /* Must call RegisterNativesImpl() */
1871 CHECK_CLAZZ(env, obj,
1872 MotionEvent_clazz(env), 0);
1873 jmethodID method_id =
1874 base::android::MethodID::LazyGet<
1875 base::android::MethodID::TYPE_INSTANCE>(
1876 env, MotionEvent_clazz(env),
1877 "getHistoricalAxisValue",
1879 &g_MotionEvent_getHistoricalAxisValueF_I_I_I);
1882 env->CallFloatMethod(obj,
1883 method_id, as_jint(p0), as_jint(p1), as_jint(p2));
1884 jni_generator::CheckException(env);
1888 static base::subtle::AtomicWord g_MotionEvent_getHistoricalPointerCoords = 0;
1889 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1890 obj, JniIntWrapper p0,
1892 jobject p2) __attribute__ ((unused));
1893 static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, jobject
1894 obj, JniIntWrapper p0,
1897 /* Must call RegisterNativesImpl() */
1898 CHECK_CLAZZ(env, obj,
1899 MotionEvent_clazz(env));
1900 jmethodID method_id =
1901 base::android::MethodID::LazyGet<
1902 base::android::MethodID::TYPE_INSTANCE>(
1903 env, MotionEvent_clazz(env),
1904 "getHistoricalPointerCoords",
1905 "(IILandroid/view/MotionEvent$PointerCoords;)V",
1906 &g_MotionEvent_getHistoricalPointerCoords);
1908 env->CallVoidMethod(obj,
1909 method_id, as_jint(p0), as_jint(p1), p2);
1910 jni_generator::CheckException(env);
1914 static base::subtle::AtomicWord g_MotionEvent_getEdgeFlags = 0;
1915 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj)
1916 __attribute__ ((unused));
1917 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, jobject obj) {
1918 /* Must call RegisterNativesImpl() */
1919 CHECK_CLAZZ(env, obj,
1920 MotionEvent_clazz(env), 0);
1921 jmethodID method_id =
1922 base::android::MethodID::LazyGet<
1923 base::android::MethodID::TYPE_INSTANCE>(
1924 env, MotionEvent_clazz(env),
1927 &g_MotionEvent_getEdgeFlags);
1930 env->CallIntMethod(obj,
1932 jni_generator::CheckException(env);
1936 static base::subtle::AtomicWord g_MotionEvent_setEdgeFlags = 0;
1937 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1938 JniIntWrapper p0) __attribute__ ((unused));
1939 static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, jobject obj,
1941 /* Must call RegisterNativesImpl() */
1942 CHECK_CLAZZ(env, obj,
1943 MotionEvent_clazz(env));
1944 jmethodID method_id =
1945 base::android::MethodID::LazyGet<
1946 base::android::MethodID::TYPE_INSTANCE>(
1947 env, MotionEvent_clazz(env),
1950 &g_MotionEvent_setEdgeFlags);
1952 env->CallVoidMethod(obj,
1953 method_id, as_jint(p0));
1954 jni_generator::CheckException(env);
1958 static base::subtle::AtomicWord g_MotionEvent_setAction = 0;
1959 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1960 p0) __attribute__ ((unused));
1961 static void Java_MotionEvent_setAction(JNIEnv* env, jobject obj, JniIntWrapper
1963 /* Must call RegisterNativesImpl() */
1964 CHECK_CLAZZ(env, obj,
1965 MotionEvent_clazz(env));
1966 jmethodID method_id =
1967 base::android::MethodID::LazyGet<
1968 base::android::MethodID::TYPE_INSTANCE>(
1969 env, MotionEvent_clazz(env),
1972 &g_MotionEvent_setAction);
1974 env->CallVoidMethod(obj,
1975 method_id, as_jint(p0));
1976 jni_generator::CheckException(env);
1980 static base::subtle::AtomicWord g_MotionEvent_offsetLocation = 0;
1981 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1982 jfloat p1) __attribute__ ((unused));
1983 static void Java_MotionEvent_offsetLocation(JNIEnv* env, jobject obj, jfloat p0,
1985 /* Must call RegisterNativesImpl() */
1986 CHECK_CLAZZ(env, obj,
1987 MotionEvent_clazz(env));
1988 jmethodID method_id =
1989 base::android::MethodID::LazyGet<
1990 base::android::MethodID::TYPE_INSTANCE>(
1991 env, MotionEvent_clazz(env),
1994 &g_MotionEvent_offsetLocation);
1996 env->CallVoidMethod(obj,
1998 jni_generator::CheckException(env);
2002 static base::subtle::AtomicWord g_MotionEvent_setLocation = 0;
2003 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2004 jfloat p1) __attribute__ ((unused));
2005 static void Java_MotionEvent_setLocation(JNIEnv* env, jobject obj, jfloat p0,
2007 /* Must call RegisterNativesImpl() */
2008 CHECK_CLAZZ(env, obj,
2009 MotionEvent_clazz(env));
2010 jmethodID method_id =
2011 base::android::MethodID::LazyGet<
2012 base::android::MethodID::TYPE_INSTANCE>(
2013 env, MotionEvent_clazz(env),
2016 &g_MotionEvent_setLocation);
2018 env->CallVoidMethod(obj,
2020 jni_generator::CheckException(env);
2024 static base::subtle::AtomicWord g_MotionEvent_transform = 0;
2025 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0)
2026 __attribute__ ((unused));
2027 static void Java_MotionEvent_transform(JNIEnv* env, jobject obj, jobject p0) {
2028 /* Must call RegisterNativesImpl() */
2029 CHECK_CLAZZ(env, obj,
2030 MotionEvent_clazz(env));
2031 jmethodID method_id =
2032 base::android::MethodID::LazyGet<
2033 base::android::MethodID::TYPE_INSTANCE>(
2034 env, MotionEvent_clazz(env),
2036 "(Landroid/graphics/Matrix;)V",
2037 &g_MotionEvent_transform);
2039 env->CallVoidMethod(obj,
2041 jni_generator::CheckException(env);
2045 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_F_F_F_F_I = 0;
2046 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2052 JniIntWrapper p5) __attribute__ ((unused));
2053 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, jobject obj,
2060 /* Must call RegisterNativesImpl() */
2061 CHECK_CLAZZ(env, obj,
2062 MotionEvent_clazz(env));
2063 jmethodID method_id =
2064 base::android::MethodID::LazyGet<
2065 base::android::MethodID::TYPE_INSTANCE>(
2066 env, MotionEvent_clazz(env),
2069 &g_MotionEvent_addBatchV_J_F_F_F_F_I);
2071 env->CallVoidMethod(obj,
2072 method_id, p0, p1, p2, p3, p4, as_jint(p5));
2073 jni_generator::CheckException(env);
2077 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_LAVMEPC_I = 0;
2078 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2081 JniIntWrapper p2) __attribute__ ((unused));
2082 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, jobject obj,
2086 /* Must call RegisterNativesImpl() */
2087 CHECK_CLAZZ(env, obj,
2088 MotionEvent_clazz(env));
2089 jmethodID method_id =
2090 base::android::MethodID::LazyGet<
2091 base::android::MethodID::TYPE_INSTANCE>(
2092 env, MotionEvent_clazz(env),
2094 "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
2095 &g_MotionEvent_addBatchV_J_LAVMEPC_I);
2097 env->CallVoidMethod(obj,
2098 method_id, p0, p1, as_jint(p2));
2099 jni_generator::CheckException(env);
2103 static base::subtle::AtomicWord g_MotionEvent_toString = 0;
2104 static ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env,
2105 jobject obj) __attribute__ ((unused));
2106 static ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env,
2108 /* Must call RegisterNativesImpl() */
2109 CHECK_CLAZZ(env, obj,
2110 MotionEvent_clazz(env), NULL);
2111 jmethodID method_id =
2112 base::android::MethodID::LazyGet<
2113 base::android::MethodID::TYPE_INSTANCE>(
2114 env, MotionEvent_clazz(env),
2116 "()Ljava/lang/String;",
2117 &g_MotionEvent_toString);
2120 static_cast<jstring>(env->CallObjectMethod(obj,
2122 jni_generator::CheckException(env);
2123 return ScopedJavaLocalRef<jstring>(env, ret);
2126 static base::subtle::AtomicWord g_MotionEvent_actionToString = 0;
2127 static ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env,
2128 JniIntWrapper p0) __attribute__ ((unused));
2129 static ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env,
2131 /* Must call RegisterNativesImpl() */
2132 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2133 MotionEvent_clazz(env), NULL);
2134 jmethodID method_id =
2135 base::android::MethodID::LazyGet<
2136 base::android::MethodID::TYPE_STATIC>(
2137 env, MotionEvent_clazz(env),
2139 "(I)Ljava/lang/String;",
2140 &g_MotionEvent_actionToString);
2143 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2144 method_id, as_jint(p0)));
2145 jni_generator::CheckException(env);
2146 return ScopedJavaLocalRef<jstring>(env, ret);
2149 static base::subtle::AtomicWord g_MotionEvent_axisToString = 0;
2150 static ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env,
2151 JniIntWrapper p0) __attribute__ ((unused));
2152 static ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env,
2154 /* Must call RegisterNativesImpl() */
2155 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2156 MotionEvent_clazz(env), NULL);
2157 jmethodID method_id =
2158 base::android::MethodID::LazyGet<
2159 base::android::MethodID::TYPE_STATIC>(
2160 env, MotionEvent_clazz(env),
2162 "(I)Ljava/lang/String;",
2163 &g_MotionEvent_axisToString);
2166 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2167 method_id, as_jint(p0)));
2168 jni_generator::CheckException(env);
2169 return ScopedJavaLocalRef<jstring>(env, ret);
2172 static base::subtle::AtomicWord g_MotionEvent_axisFromString = 0;
2173 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0)
2174 __attribute__ ((unused));
2175 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) {
2176 /* Must call RegisterNativesImpl() */
2177 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2178 MotionEvent_clazz(env), 0);
2179 jmethodID method_id =
2180 base::android::MethodID::LazyGet<
2181 base::android::MethodID::TYPE_STATIC>(
2182 env, MotionEvent_clazz(env),
2184 "(Ljava/lang/String;)I",
2185 &g_MotionEvent_axisFromString);
2188 env->CallStaticIntMethod(MotionEvent_clazz(env),
2190 jni_generator::CheckException(env);
2194 static base::subtle::AtomicWord g_MotionEvent_writeToParcel = 0;
2195 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2196 JniIntWrapper p1) __attribute__ ((unused));
2197 static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
2199 /* Must call RegisterNativesImpl() */
2200 CHECK_CLAZZ(env, obj,
2201 MotionEvent_clazz(env));
2202 jmethodID method_id =
2203 base::android::MethodID::LazyGet<
2204 base::android::MethodID::TYPE_INSTANCE>(
2205 env, MotionEvent_clazz(env),
2207 "(Landroid/os/Parcel;I)V",
2208 &g_MotionEvent_writeToParcel);
2210 env->CallVoidMethod(obj,
2211 method_id, p0, as_jint(p1));
2212 jni_generator::CheckException(env);
2216 // Step 3: RegisterNatives.
2218 static bool RegisterNativesImpl(JNIEnv* env) {
2220 g_MotionEvent_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
2221 base::android::GetClass(env, kMotionEventClassPath).obj()));
2226 } // namespace JNI_MotionEvent
2228 #endif // android_view_MotionEvent_JNI