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.
4
5
6// This file is autogenerated by
7//     base/android/jni_generator/jni_generator.py
8// For
9//     android/view/MotionEvent
10
11#ifndef android_view_MotionEvent_JNI
12#define android_view_MotionEvent_JNI
13
14#include <jni.h>
15
16#include "base/android/jni_generator/jni_generator_helper.h"
17
18
19// Step 1: Forward declarations.
20
21JNI_REGISTRATION_EXPORT extern const char kClassPath_android_view_MotionEvent[];
22const char kClassPath_android_view_MotionEvent[] = "android/view/MotionEvent";
23// Leaking this jclass as we cannot use LazyInstance from some threads.
24JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_android_view_MotionEvent_clazz = 0;
25#ifndef android_view_MotionEvent_clazz_defined
26#define android_view_MotionEvent_clazz_defined
27inline jclass android_view_MotionEvent_clazz(JNIEnv* env) {
28  return base::android::LazyGetClass(env, kClassPath_android_view_MotionEvent,
29      &g_android_view_MotionEvent_clazz);
30}
31#endif
32
33
34// Step 2: Constants (optional).
35
36namespace JNI_MotionEvent {
37
38enum Java_MotionEvent_constant_fields {
39  INVALID_POINTER_ID = -1,
40  ACTION_MASK = 255,
41  ACTION_DOWN = 0,
42  ACTION_UP = 1,
43  ACTION_MOVE = 2,
44  ACTION_CANCEL = 3,
45  ACTION_OUTSIDE = 4,
46  ACTION_POINTER_DOWN = 5,
47  ACTION_POINTER_UP = 6,
48  ACTION_HOVER_MOVE = 7,
49  ACTION_SCROLL = 8,
50  ACTION_HOVER_ENTER = 9,
51  ACTION_HOVER_EXIT = 10,
52  ACTION_POINTER_INDEX_MASK = 65280,
53  ACTION_POINTER_INDEX_SHIFT = 8,
54  ACTION_POINTER_1_DOWN = 5,
55  ACTION_POINTER_2_DOWN = 261,
56  ACTION_POINTER_3_DOWN = 517,
57  ACTION_POINTER_1_UP = 6,
58  ACTION_POINTER_2_UP = 262,
59  ACTION_POINTER_3_UP = 518,
60  ACTION_POINTER_ID_MASK = 65280,
61  ACTION_POINTER_ID_SHIFT = 8,
62  FLAG_WINDOW_IS_OBSCURED = 1,
63  EDGE_TOP = 1,
64  EDGE_BOTTOM = 2,
65  EDGE_LEFT = 4,
66  EDGE_RIGHT = 8,
67  AXIS_X = 0,
68  AXIS_Y = 1,
69  AXIS_PRESSURE = 2,
70  AXIS_SIZE = 3,
71  AXIS_TOUCH_MAJOR = 4,
72  AXIS_TOUCH_MINOR = 5,
73  AXIS_TOOL_MAJOR = 6,
74  AXIS_TOOL_MINOR = 7,
75  AXIS_ORIENTATION = 8,
76  AXIS_VSCROLL = 9,
77  AXIS_HSCROLL = 10,
78  AXIS_Z = 11,
79  AXIS_RX = 12,
80  AXIS_RY = 13,
81  AXIS_RZ = 14,
82  AXIS_HAT_X = 15,
83  AXIS_HAT_Y = 16,
84  AXIS_LTRIGGER = 17,
85  AXIS_RTRIGGER = 18,
86  AXIS_THROTTLE = 19,
87  AXIS_RUDDER = 20,
88  AXIS_WHEEL = 21,
89  AXIS_GAS = 22,
90  AXIS_BRAKE = 23,
91  AXIS_DISTANCE = 24,
92  AXIS_TILT = 25,
93  AXIS_GENERIC_1 = 32,
94  AXIS_GENERIC_2 = 33,
95  AXIS_GENERIC_3 = 34,
96  AXIS_GENERIC_4 = 35,
97  AXIS_GENERIC_5 = 36,
98  AXIS_GENERIC_6 = 37,
99  AXIS_GENERIC_7 = 38,
100  AXIS_GENERIC_8 = 39,
101  AXIS_GENERIC_9 = 40,
102  AXIS_GENERIC_10 = 41,
103  AXIS_GENERIC_11 = 42,
104  AXIS_GENERIC_12 = 43,
105  AXIS_GENERIC_13 = 44,
106  AXIS_GENERIC_14 = 45,
107  AXIS_GENERIC_15 = 46,
108  AXIS_GENERIC_16 = 47,
109  BUTTON_PRIMARY = 1,
110  BUTTON_SECONDARY = 2,
111  BUTTON_TERTIARY = 4,
112  BUTTON_BACK = 8,
113  BUTTON_FORWARD = 16,
114  TOOL_TYPE_UNKNOWN = 0,
115  TOOL_TYPE_FINGER = 1,
116  TOOL_TYPE_STYLUS = 2,
117  TOOL_TYPE_MOUSE = 3,
118  TOOL_TYPE_ERASER = 4,
119};
120
121
122}  // namespace JNI_MotionEvent
123// Step 3: Method stubs.
124namespace JNI_MotionEvent {
125
126
127static base::subtle::AtomicWord g_android_view_MotionEvent_finalize = 0;
128static void Java_MotionEvent_finalize(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
129    __attribute__ ((unused));
130static void Java_MotionEvent_finalize(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
131  CHECK_CLAZZ(env, obj.obj(),
132      android_view_MotionEvent_clazz(env));
133  jmethodID method_id = base::android::MethodID::LazyGet<
134      base::android::MethodID::TYPE_INSTANCE>(
135          env, android_view_MotionEvent_clazz(env),
136          "finalize",
137          "()V",
138          &g_android_view_MotionEvent_finalize);
139
140     env->CallVoidMethod(obj.obj(),
141          method_id);
142  jni_generator::CheckException(env);
143}
144
145static base::subtle::AtomicWord
146    g_android_view_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I = 0;
147static base::android::ScopedJavaLocalRef<jobject>
148    Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv* env, jlong p0,
149    jlong p1,
150    JniIntWrapper p2,
151    JniIntWrapper p3,
152    const base::android::JavaRef<jobjectArray>& p4,
153    const base::android::JavaRef<jobjectArray>& p5,
154    JniIntWrapper p6,
155    JniIntWrapper p7,
156    jfloat p8,
157    jfloat p9,
158    JniIntWrapper p10,
159    JniIntWrapper p11,
160    JniIntWrapper p12,
161    JniIntWrapper p13) __attribute__ ((unused));
162static base::android::ScopedJavaLocalRef<jobject>
163    Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv* env, jlong p0,
164    jlong p1,
165    JniIntWrapper p2,
166    JniIntWrapper p3,
167    const base::android::JavaRef<jobjectArray>& p4,
168    const base::android::JavaRef<jobjectArray>& p5,
169    JniIntWrapper p6,
170    JniIntWrapper p7,
171    jfloat p8,
172    jfloat p9,
173    JniIntWrapper p10,
174    JniIntWrapper p11,
175    JniIntWrapper p12,
176    JniIntWrapper p13) {
177  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
178      android_view_MotionEvent_clazz(env), NULL);
179  jmethodID method_id = base::android::MethodID::LazyGet<
180      base::android::MethodID::TYPE_STATIC>(
181          env, android_view_MotionEvent_clazz(env),
182          "obtain",
183"(JJII[Landroid/view/MotionEvent$PointerProperties;[Landroid/view/MotionEvent$PointerCoords;IIFFIIII)Landroid/view/MotionEvent;",
184          &g_android_view_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I);
185
186  jobject ret =
187      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
188          method_id, p0, p1, as_jint(p2), as_jint(p3), p4.obj(), p5.obj(), as_jint(p6), as_jint(p7),
189              p8, p9, as_jint(p10), as_jint(p11), as_jint(p12), as_jint(p13));
190  jni_generator::CheckException(env);
191  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
192}
193
194static base::subtle::AtomicWord
195    g_android_view_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I = 0;
196static base::android::ScopedJavaLocalRef<jobject>
197    Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env, jlong p0,
198    jlong p1,
199    JniIntWrapper p2,
200    JniIntWrapper p3,
201    const base::android::JavaRef<jintArray>& p4,
202    const base::android::JavaRef<jobjectArray>& p5,
203    JniIntWrapper p6,
204    jfloat p7,
205    jfloat p8,
206    JniIntWrapper p9,
207    JniIntWrapper p10,
208    JniIntWrapper p11,
209    JniIntWrapper p12) __attribute__ ((unused));
210static base::android::ScopedJavaLocalRef<jobject>
211    Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env, jlong p0,
212    jlong p1,
213    JniIntWrapper p2,
214    JniIntWrapper p3,
215    const base::android::JavaRef<jintArray>& p4,
216    const base::android::JavaRef<jobjectArray>& p5,
217    JniIntWrapper p6,
218    jfloat p7,
219    jfloat p8,
220    JniIntWrapper p9,
221    JniIntWrapper p10,
222    JniIntWrapper p11,
223    JniIntWrapper p12) {
224  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
225      android_view_MotionEvent_clazz(env), NULL);
226  jmethodID method_id = base::android::MethodID::LazyGet<
227      base::android::MethodID::TYPE_STATIC>(
228          env, android_view_MotionEvent_clazz(env),
229          "obtain",
230          "(JJII[I[Landroid/view/MotionEvent$PointerCoords;IFFIIII)Landroid/view/MotionEvent;",
231          &g_android_view_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I);
232
233  jobject ret =
234      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
235          method_id, p0, p1, as_jint(p2), as_jint(p3), p4.obj(), p5.obj(), as_jint(p6), p7, p8,
236              as_jint(p9), as_jint(p10), as_jint(p11), as_jint(p12));
237  jni_generator::CheckException(env);
238  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
239}
240
241static base::subtle::AtomicWord g_android_view_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I = 0;
242static base::android::ScopedJavaLocalRef<jobject>
243    Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
244    jlong p1,
245    JniIntWrapper p2,
246    jfloat p3,
247    jfloat p4,
248    jfloat p5,
249    jfloat p6,
250    JniIntWrapper p7,
251    jfloat p8,
252    jfloat p9,
253    JniIntWrapper p10,
254    JniIntWrapper p11) __attribute__ ((unused));
255static base::android::ScopedJavaLocalRef<jobject>
256    Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
257    jlong p1,
258    JniIntWrapper p2,
259    jfloat p3,
260    jfloat p4,
261    jfloat p5,
262    jfloat p6,
263    JniIntWrapper p7,
264    jfloat p8,
265    jfloat p9,
266    JniIntWrapper p10,
267    JniIntWrapper p11) {
268  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
269      android_view_MotionEvent_clazz(env), NULL);
270  jmethodID method_id = base::android::MethodID::LazyGet<
271      base::android::MethodID::TYPE_STATIC>(
272          env, android_view_MotionEvent_clazz(env),
273          "obtain",
274          "(JJIFFFFIFFII)Landroid/view/MotionEvent;",
275          &g_android_view_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I);
276
277  jobject ret =
278      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
279          method_id, p0, p1, as_jint(p2), p3, p4, p5, p6, as_jint(p7), p8, p9, as_jint(p10),
280              as_jint(p11));
281  jni_generator::CheckException(env);
282  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
283}
284
285static base::subtle::AtomicWord g_android_view_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I = 0;
286static base::android::ScopedJavaLocalRef<jobject>
287    Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
288    jlong p1,
289    JniIntWrapper p2,
290    JniIntWrapper p3,
291    jfloat p4,
292    jfloat p5,
293    jfloat p6,
294    jfloat p7,
295    JniIntWrapper p8,
296    jfloat p9,
297    jfloat p10,
298    JniIntWrapper p11,
299    JniIntWrapper p12) __attribute__ ((unused));
300static base::android::ScopedJavaLocalRef<jobject>
301    Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
302    jlong p1,
303    JniIntWrapper p2,
304    JniIntWrapper p3,
305    jfloat p4,
306    jfloat p5,
307    jfloat p6,
308    jfloat p7,
309    JniIntWrapper p8,
310    jfloat p9,
311    jfloat p10,
312    JniIntWrapper p11,
313    JniIntWrapper p12) {
314  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
315      android_view_MotionEvent_clazz(env), NULL);
316  jmethodID method_id = base::android::MethodID::LazyGet<
317      base::android::MethodID::TYPE_STATIC>(
318          env, android_view_MotionEvent_clazz(env),
319          "obtain",
320          "(JJIIFFFFIFFII)Landroid/view/MotionEvent;",
321          &g_android_view_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I);
322
323  jobject ret =
324      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
325          method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, p6, p7, as_jint(p8), p9, p10,
326              as_jint(p11), as_jint(p12));
327  jni_generator::CheckException(env);
328  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
329}
330
331static base::subtle::AtomicWord g_android_view_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
332static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv*
333    env, jlong p0,
334    jlong p1,
335    JniIntWrapper p2,
336    jfloat p3,
337    jfloat p4,
338    JniIntWrapper p5) __attribute__ ((unused));
339static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv*
340    env, jlong p0,
341    jlong p1,
342    JniIntWrapper p2,
343    jfloat p3,
344    jfloat p4,
345    JniIntWrapper p5) {
346  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
347      android_view_MotionEvent_clazz(env), NULL);
348  jmethodID method_id = base::android::MethodID::LazyGet<
349      base::android::MethodID::TYPE_STATIC>(
350          env, android_view_MotionEvent_clazz(env),
351          "obtain",
352          "(JJIFFI)Landroid/view/MotionEvent;",
353          &g_android_view_MotionEvent_obtainAVME_J_J_I_F_F_I);
354
355  jobject ret =
356      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
357          method_id, p0, p1, as_jint(p2), p3, p4, as_jint(p5));
358  jni_generator::CheckException(env);
359  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
360}
361
362static base::subtle::AtomicWord g_android_view_MotionEvent_obtainAVME_AVME = 0;
363static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env,
364    const base::android::JavaRef<jobject>& p0) __attribute__ ((unused));
365static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env,
366    const base::android::JavaRef<jobject>& p0) {
367  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
368      android_view_MotionEvent_clazz(env), NULL);
369  jmethodID method_id = base::android::MethodID::LazyGet<
370      base::android::MethodID::TYPE_STATIC>(
371          env, android_view_MotionEvent_clazz(env),
372          "obtain",
373          "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
374          &g_android_view_MotionEvent_obtainAVME_AVME);
375
376  jobject ret =
377      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
378          method_id, p0.obj());
379  jni_generator::CheckException(env);
380  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
381}
382
383static base::subtle::AtomicWord g_android_view_MotionEvent_obtainNoHistory = 0;
384static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env,
385    const base::android::JavaRef<jobject>& p0) __attribute__ ((unused));
386static base::android::ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env,
387    const base::android::JavaRef<jobject>& p0) {
388  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
389      android_view_MotionEvent_clazz(env), NULL);
390  jmethodID method_id = base::android::MethodID::LazyGet<
391      base::android::MethodID::TYPE_STATIC>(
392          env, android_view_MotionEvent_clazz(env),
393          "obtainNoHistory",
394          "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
395          &g_android_view_MotionEvent_obtainNoHistory);
396
397  jobject ret =
398      env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
399          method_id, p0.obj());
400  jni_generator::CheckException(env);
401  return base::android::ScopedJavaLocalRef<jobject>(env, ret);
402}
403
404static base::subtle::AtomicWord g_android_view_MotionEvent_recycle = 0;
405static void Java_MotionEvent_recycle(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
406    __attribute__ ((unused));
407static void Java_MotionEvent_recycle(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
408  CHECK_CLAZZ(env, obj.obj(),
409      android_view_MotionEvent_clazz(env));
410  jmethodID method_id = base::android::MethodID::LazyGet<
411      base::android::MethodID::TYPE_INSTANCE>(
412          env, android_view_MotionEvent_clazz(env),
413          "recycle",
414          "()V",
415          &g_android_view_MotionEvent_recycle);
416
417     env->CallVoidMethod(obj.obj(),
418          method_id);
419  jni_generator::CheckException(env);
420}
421
422static base::subtle::AtomicWord g_android_view_MotionEvent_getDeviceId = 0;
423static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
424    __attribute__ ((unused));
425static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
426  CHECK_CLAZZ(env, obj.obj(),
427      android_view_MotionEvent_clazz(env), 0);
428  jmethodID method_id = base::android::MethodID::LazyGet<
429      base::android::MethodID::TYPE_INSTANCE>(
430          env, android_view_MotionEvent_clazz(env),
431          "getDeviceId",
432          "()I",
433          &g_android_view_MotionEvent_getDeviceId);
434
435  jint ret =
436      env->CallIntMethod(obj.obj(),
437          method_id);
438  jni_generator::CheckException(env);
439  return ret;
440}
441
442static base::subtle::AtomicWord g_android_view_MotionEvent_getSource = 0;
443static jint Java_MotionEvent_getSource(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
444    __attribute__ ((unused));
445static jint Java_MotionEvent_getSource(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
446  CHECK_CLAZZ(env, obj.obj(),
447      android_view_MotionEvent_clazz(env), 0);
448  jmethodID method_id = base::android::MethodID::LazyGet<
449      base::android::MethodID::TYPE_INSTANCE>(
450          env, android_view_MotionEvent_clazz(env),
451          "getSource",
452          "()I",
453          &g_android_view_MotionEvent_getSource);
454
455  jint ret =
456      env->CallIntMethod(obj.obj(),
457          method_id);
458  jni_generator::CheckException(env);
459  return ret;
460}
461
462static base::subtle::AtomicWord g_android_view_MotionEvent_setSource = 0;
463static void Java_MotionEvent_setSource(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
464    JniIntWrapper p0) __attribute__ ((unused));
465static void Java_MotionEvent_setSource(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
466    JniIntWrapper p0) {
467  CHECK_CLAZZ(env, obj.obj(),
468      android_view_MotionEvent_clazz(env));
469  jmethodID method_id = base::android::MethodID::LazyGet<
470      base::android::MethodID::TYPE_INSTANCE>(
471          env, android_view_MotionEvent_clazz(env),
472          "setSource",
473          "(I)V",
474          &g_android_view_MotionEvent_setSource);
475
476     env->CallVoidMethod(obj.obj(),
477          method_id, as_jint(p0));
478  jni_generator::CheckException(env);
479}
480
481static base::subtle::AtomicWord g_android_view_MotionEvent_getAction = 0;
482static jint Java_MotionEvent_getAction(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
483    __attribute__ ((unused));
484static jint Java_MotionEvent_getAction(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
485  CHECK_CLAZZ(env, obj.obj(),
486      android_view_MotionEvent_clazz(env), 0);
487  jmethodID method_id = base::android::MethodID::LazyGet<
488      base::android::MethodID::TYPE_INSTANCE>(
489          env, android_view_MotionEvent_clazz(env),
490          "getAction",
491          "()I",
492          &g_android_view_MotionEvent_getAction);
493
494  jint ret =
495      env->CallIntMethod(obj.obj(),
496          method_id);
497  jni_generator::CheckException(env);
498  return ret;
499}
500
501static base::subtle::AtomicWord g_android_view_MotionEvent_getActionMasked = 0;
502static jint Java_MotionEvent_getActionMasked(JNIEnv* env, const base::android::JavaRef<jobject>&
503    obj) __attribute__ ((unused));
504static jint Java_MotionEvent_getActionMasked(JNIEnv* env, const base::android::JavaRef<jobject>&
505    obj) {
506  CHECK_CLAZZ(env, obj.obj(),
507      android_view_MotionEvent_clazz(env), 0);
508  jmethodID method_id = base::android::MethodID::LazyGet<
509      base::android::MethodID::TYPE_INSTANCE>(
510          env, android_view_MotionEvent_clazz(env),
511          "getActionMasked",
512          "()I",
513          &g_android_view_MotionEvent_getActionMasked);
514
515  jint ret =
516      env->CallIntMethod(obj.obj(),
517          method_id);
518  jni_generator::CheckException(env);
519  return ret;
520}
521
522static base::subtle::AtomicWord g_android_view_MotionEvent_getActionIndex = 0;
523static jint Java_MotionEvent_getActionIndex(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
524    __attribute__ ((unused));
525static jint Java_MotionEvent_getActionIndex(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
526    {
527  CHECK_CLAZZ(env, obj.obj(),
528      android_view_MotionEvent_clazz(env), 0);
529  jmethodID method_id = base::android::MethodID::LazyGet<
530      base::android::MethodID::TYPE_INSTANCE>(
531          env, android_view_MotionEvent_clazz(env),
532          "getActionIndex",
533          "()I",
534          &g_android_view_MotionEvent_getActionIndex);
535
536  jint ret =
537      env->CallIntMethod(obj.obj(),
538          method_id);
539  jni_generator::CheckException(env);
540  return ret;
541}
542
543static base::subtle::AtomicWord g_android_view_MotionEvent_getFlags = 0;
544static jint Java_MotionEvent_getFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
545    __attribute__ ((unused));
546static jint Java_MotionEvent_getFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
547  CHECK_CLAZZ(env, obj.obj(),
548      android_view_MotionEvent_clazz(env), 0);
549  jmethodID method_id = base::android::MethodID::LazyGet<
550      base::android::MethodID::TYPE_INSTANCE>(
551          env, android_view_MotionEvent_clazz(env),
552          "getFlags",
553          "()I",
554          &g_android_view_MotionEvent_getFlags);
555
556  jint ret =
557      env->CallIntMethod(obj.obj(),
558          method_id);
559  jni_generator::CheckException(env);
560  return ret;
561}
562
563static base::subtle::AtomicWord g_android_view_MotionEvent_getDownTime = 0;
564static jlong Java_MotionEvent_getDownTime(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
565    __attribute__ ((unused));
566static jlong Java_MotionEvent_getDownTime(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
567  CHECK_CLAZZ(env, obj.obj(),
568      android_view_MotionEvent_clazz(env), 0);
569  jmethodID method_id = base::android::MethodID::LazyGet<
570      base::android::MethodID::TYPE_INSTANCE>(
571          env, android_view_MotionEvent_clazz(env),
572          "getDownTime",
573          "()J",
574          &g_android_view_MotionEvent_getDownTime);
575
576  jlong ret =
577      env->CallLongMethod(obj.obj(),
578          method_id);
579  jni_generator::CheckException(env);
580  return ret;
581}
582
583static base::subtle::AtomicWord g_android_view_MotionEvent_getEventTime = 0;
584static jlong Java_MotionEvent_getEventTime(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
585    __attribute__ ((unused));
586static jlong Java_MotionEvent_getEventTime(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
587    {
588  CHECK_CLAZZ(env, obj.obj(),
589      android_view_MotionEvent_clazz(env), 0);
590  jmethodID method_id = base::android::MethodID::LazyGet<
591      base::android::MethodID::TYPE_INSTANCE>(
592          env, android_view_MotionEvent_clazz(env),
593          "getEventTime",
594          "()J",
595          &g_android_view_MotionEvent_getEventTime);
596
597  jlong ret =
598      env->CallLongMethod(obj.obj(),
599          method_id);
600  jni_generator::CheckException(env);
601  return ret;
602}
603
604static base::subtle::AtomicWord g_android_view_MotionEvent_getXF = 0;
605static jfloat Java_MotionEvent_getXF(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
606    __attribute__ ((unused));
607static jfloat Java_MotionEvent_getXF(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
608  CHECK_CLAZZ(env, obj.obj(),
609      android_view_MotionEvent_clazz(env), 0);
610  jmethodID method_id = base::android::MethodID::LazyGet<
611      base::android::MethodID::TYPE_INSTANCE>(
612          env, android_view_MotionEvent_clazz(env),
613          "getX",
614          "()F",
615          &g_android_view_MotionEvent_getXF);
616
617  jfloat ret =
618      env->CallFloatMethod(obj.obj(),
619          method_id);
620  jni_generator::CheckException(env);
621  return ret;
622}
623
624static base::subtle::AtomicWord g_android_view_MotionEvent_getYF = 0;
625static jfloat Java_MotionEvent_getYF(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
626    __attribute__ ((unused));
627static jfloat Java_MotionEvent_getYF(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
628  CHECK_CLAZZ(env, obj.obj(),
629      android_view_MotionEvent_clazz(env), 0);
630  jmethodID method_id = base::android::MethodID::LazyGet<
631      base::android::MethodID::TYPE_INSTANCE>(
632          env, android_view_MotionEvent_clazz(env),
633          "getY",
634          "()F",
635          &g_android_view_MotionEvent_getYF);
636
637  jfloat ret =
638      env->CallFloatMethod(obj.obj(),
639          method_id);
640  jni_generator::CheckException(env);
641  return ret;
642}
643
644static base::subtle::AtomicWord g_android_view_MotionEvent_getPressureF = 0;
645static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
646    __attribute__ ((unused));
647static jfloat Java_MotionEvent_getPressureF(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
648    {
649  CHECK_CLAZZ(env, obj.obj(),
650      android_view_MotionEvent_clazz(env), 0);
651  jmethodID method_id = base::android::MethodID::LazyGet<
652      base::android::MethodID::TYPE_INSTANCE>(
653          env, android_view_MotionEvent_clazz(env),
654          "getPressure",
655          "()F",
656          &g_android_view_MotionEvent_getPressureF);
657
658  jfloat ret =
659      env->CallFloatMethod(obj.obj(),
660          method_id);
661  jni_generator::CheckException(env);
662  return ret;
663}
664
665static base::subtle::AtomicWord g_android_view_MotionEvent_getSizeF = 0;
666static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
667    __attribute__ ((unused));
668static jfloat Java_MotionEvent_getSizeF(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
669  CHECK_CLAZZ(env, obj.obj(),
670      android_view_MotionEvent_clazz(env), 0);
671  jmethodID method_id = base::android::MethodID::LazyGet<
672      base::android::MethodID::TYPE_INSTANCE>(
673          env, android_view_MotionEvent_clazz(env),
674          "getSize",
675          "()F",
676          &g_android_view_MotionEvent_getSizeF);
677
678  jfloat ret =
679      env->CallFloatMethod(obj.obj(),
680          method_id);
681  jni_generator::CheckException(env);
682  return ret;
683}
684
685static base::subtle::AtomicWord g_android_view_MotionEvent_getTouchMajorF = 0;
686static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, const base::android::JavaRef<jobject>&
687    obj) __attribute__ ((unused));
688static jfloat Java_MotionEvent_getTouchMajorF(JNIEnv* env, const base::android::JavaRef<jobject>&
689    obj) {
690  CHECK_CLAZZ(env, obj.obj(),
691      android_view_MotionEvent_clazz(env), 0);
692  jmethodID method_id = base::android::MethodID::LazyGet<
693      base::android::MethodID::TYPE_INSTANCE>(
694          env, android_view_MotionEvent_clazz(env),
695          "getTouchMajor",
696          "()F",
697          &g_android_view_MotionEvent_getTouchMajorF);
698
699  jfloat ret =
700      env->CallFloatMethod(obj.obj(),
701          method_id);
702  jni_generator::CheckException(env);
703  return ret;
704}
705
706static base::subtle::AtomicWord g_android_view_MotionEvent_getTouchMinorF = 0;
707static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, const base::android::JavaRef<jobject>&
708    obj) __attribute__ ((unused));
709static jfloat Java_MotionEvent_getTouchMinorF(JNIEnv* env, const base::android::JavaRef<jobject>&
710    obj) {
711  CHECK_CLAZZ(env, obj.obj(),
712      android_view_MotionEvent_clazz(env), 0);
713  jmethodID method_id = base::android::MethodID::LazyGet<
714      base::android::MethodID::TYPE_INSTANCE>(
715          env, android_view_MotionEvent_clazz(env),
716          "getTouchMinor",
717          "()F",
718          &g_android_view_MotionEvent_getTouchMinorF);
719
720  jfloat ret =
721      env->CallFloatMethod(obj.obj(),
722          method_id);
723  jni_generator::CheckException(env);
724  return ret;
725}
726
727static base::subtle::AtomicWord g_android_view_MotionEvent_getToolMajorF = 0;
728static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, const base::android::JavaRef<jobject>&
729    obj) __attribute__ ((unused));
730static jfloat Java_MotionEvent_getToolMajorF(JNIEnv* env, const base::android::JavaRef<jobject>&
731    obj) {
732  CHECK_CLAZZ(env, obj.obj(),
733      android_view_MotionEvent_clazz(env), 0);
734  jmethodID method_id = base::android::MethodID::LazyGet<
735      base::android::MethodID::TYPE_INSTANCE>(
736          env, android_view_MotionEvent_clazz(env),
737          "getToolMajor",
738          "()F",
739          &g_android_view_MotionEvent_getToolMajorF);
740
741  jfloat ret =
742      env->CallFloatMethod(obj.obj(),
743          method_id);
744  jni_generator::CheckException(env);
745  return ret;
746}
747
748static base::subtle::AtomicWord g_android_view_MotionEvent_getToolMinorF = 0;
749static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, const base::android::JavaRef<jobject>&
750    obj) __attribute__ ((unused));
751static jfloat Java_MotionEvent_getToolMinorF(JNIEnv* env, const base::android::JavaRef<jobject>&
752    obj) {
753  CHECK_CLAZZ(env, obj.obj(),
754      android_view_MotionEvent_clazz(env), 0);
755  jmethodID method_id = base::android::MethodID::LazyGet<
756      base::android::MethodID::TYPE_INSTANCE>(
757          env, android_view_MotionEvent_clazz(env),
758          "getToolMinor",
759          "()F",
760          &g_android_view_MotionEvent_getToolMinorF);
761
762  jfloat ret =
763      env->CallFloatMethod(obj.obj(),
764          method_id);
765  jni_generator::CheckException(env);
766  return ret;
767}
768
769static base::subtle::AtomicWord g_android_view_MotionEvent_getOrientationF = 0;
770static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, const base::android::JavaRef<jobject>&
771    obj) __attribute__ ((unused));
772static jfloat Java_MotionEvent_getOrientationF(JNIEnv* env, const base::android::JavaRef<jobject>&
773    obj) {
774  CHECK_CLAZZ(env, obj.obj(),
775      android_view_MotionEvent_clazz(env), 0);
776  jmethodID method_id = base::android::MethodID::LazyGet<
777      base::android::MethodID::TYPE_INSTANCE>(
778          env, android_view_MotionEvent_clazz(env),
779          "getOrientation",
780          "()F",
781          &g_android_view_MotionEvent_getOrientationF);
782
783  jfloat ret =
784      env->CallFloatMethod(obj.obj(),
785          method_id);
786  jni_generator::CheckException(env);
787  return ret;
788}
789
790static base::subtle::AtomicWord g_android_view_MotionEvent_getAxisValueF_I = 0;
791static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
792    obj, JniIntWrapper p0) __attribute__ ((unused));
793static jfloat Java_MotionEvent_getAxisValueF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
794    obj, JniIntWrapper p0) {
795  CHECK_CLAZZ(env, obj.obj(),
796      android_view_MotionEvent_clazz(env), 0);
797  jmethodID method_id = base::android::MethodID::LazyGet<
798      base::android::MethodID::TYPE_INSTANCE>(
799          env, android_view_MotionEvent_clazz(env),
800          "getAxisValue",
801          "(I)F",
802          &g_android_view_MotionEvent_getAxisValueF_I);
803
804  jfloat ret =
805      env->CallFloatMethod(obj.obj(),
806          method_id, as_jint(p0));
807  jni_generator::CheckException(env);
808  return ret;
809}
810
811static base::subtle::AtomicWord g_android_view_MotionEvent_getPointerCount = 0;
812static jint Java_MotionEvent_getPointerCount(JNIEnv* env, const base::android::JavaRef<jobject>&
813    obj) __attribute__ ((unused));
814static jint Java_MotionEvent_getPointerCount(JNIEnv* env, const base::android::JavaRef<jobject>&
815    obj) {
816  CHECK_CLAZZ(env, obj.obj(),
817      android_view_MotionEvent_clazz(env), 0);
818  jmethodID method_id = base::android::MethodID::LazyGet<
819      base::android::MethodID::TYPE_INSTANCE>(
820          env, android_view_MotionEvent_clazz(env),
821          "getPointerCount",
822          "()I",
823          &g_android_view_MotionEvent_getPointerCount);
824
825  jint ret =
826      env->CallIntMethod(obj.obj(),
827          method_id);
828  jni_generator::CheckException(env);
829  return ret;
830}
831
832static base::subtle::AtomicWord g_android_view_MotionEvent_getPointerId = 0;
833static jint Java_MotionEvent_getPointerId(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
834    JniIntWrapper p0) __attribute__ ((unused));
835static jint Java_MotionEvent_getPointerId(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
836    JniIntWrapper p0) {
837  CHECK_CLAZZ(env, obj.obj(),
838      android_view_MotionEvent_clazz(env), 0);
839  jmethodID method_id = base::android::MethodID::LazyGet<
840      base::android::MethodID::TYPE_INSTANCE>(
841          env, android_view_MotionEvent_clazz(env),
842          "getPointerId",
843          "(I)I",
844          &g_android_view_MotionEvent_getPointerId);
845
846  jint ret =
847      env->CallIntMethod(obj.obj(),
848          method_id, as_jint(p0));
849  jni_generator::CheckException(env);
850  return ret;
851}
852
853static base::subtle::AtomicWord g_android_view_MotionEvent_getToolType = 0;
854static jint Java_MotionEvent_getToolType(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
855    JniIntWrapper p0) __attribute__ ((unused));
856static jint Java_MotionEvent_getToolType(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
857    JniIntWrapper p0) {
858  CHECK_CLAZZ(env, obj.obj(),
859      android_view_MotionEvent_clazz(env), 0);
860  jmethodID method_id = base::android::MethodID::LazyGet<
861      base::android::MethodID::TYPE_INSTANCE>(
862          env, android_view_MotionEvent_clazz(env),
863          "getToolType",
864          "(I)I",
865          &g_android_view_MotionEvent_getToolType);
866
867  jint ret =
868      env->CallIntMethod(obj.obj(),
869          method_id, as_jint(p0));
870  jni_generator::CheckException(env);
871  return ret;
872}
873
874static base::subtle::AtomicWord g_android_view_MotionEvent_findPointerIndex = 0;
875static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, const base::android::JavaRef<jobject>&
876    obj, JniIntWrapper p0) __attribute__ ((unused));
877static jint Java_MotionEvent_findPointerIndex(JNIEnv* env, const base::android::JavaRef<jobject>&
878    obj, JniIntWrapper p0) {
879  CHECK_CLAZZ(env, obj.obj(),
880      android_view_MotionEvent_clazz(env), 0);
881  jmethodID method_id = base::android::MethodID::LazyGet<
882      base::android::MethodID::TYPE_INSTANCE>(
883          env, android_view_MotionEvent_clazz(env),
884          "findPointerIndex",
885          "(I)I",
886          &g_android_view_MotionEvent_findPointerIndex);
887
888  jint ret =
889      env->CallIntMethod(obj.obj(),
890          method_id, as_jint(p0));
891  jni_generator::CheckException(env);
892  return ret;
893}
894
895static base::subtle::AtomicWord g_android_view_MotionEvent_getXF_I = 0;
896static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
897    JniIntWrapper p0) __attribute__ ((unused));
898static jfloat Java_MotionEvent_getXF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
899    JniIntWrapper p0) {
900  CHECK_CLAZZ(env, obj.obj(),
901      android_view_MotionEvent_clazz(env), 0);
902  jmethodID method_id = base::android::MethodID::LazyGet<
903      base::android::MethodID::TYPE_INSTANCE>(
904          env, android_view_MotionEvent_clazz(env),
905          "getX",
906          "(I)F",
907          &g_android_view_MotionEvent_getXF_I);
908
909  jfloat ret =
910      env->CallFloatMethod(obj.obj(),
911          method_id, as_jint(p0));
912  jni_generator::CheckException(env);
913  return ret;
914}
915
916static base::subtle::AtomicWord g_android_view_MotionEvent_getYF_I = 0;
917static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
918    JniIntWrapper p0) __attribute__ ((unused));
919static jfloat Java_MotionEvent_getYF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
920    JniIntWrapper p0) {
921  CHECK_CLAZZ(env, obj.obj(),
922      android_view_MotionEvent_clazz(env), 0);
923  jmethodID method_id = base::android::MethodID::LazyGet<
924      base::android::MethodID::TYPE_INSTANCE>(
925          env, android_view_MotionEvent_clazz(env),
926          "getY",
927          "(I)F",
928          &g_android_view_MotionEvent_getYF_I);
929
930  jfloat ret =
931      env->CallFloatMethod(obj.obj(),
932          method_id, as_jint(p0));
933  jni_generator::CheckException(env);
934  return ret;
935}
936
937static base::subtle::AtomicWord g_android_view_MotionEvent_getPressureF_I = 0;
938static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
939    obj, JniIntWrapper p0) __attribute__ ((unused));
940static jfloat Java_MotionEvent_getPressureF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
941    obj, JniIntWrapper p0) {
942  CHECK_CLAZZ(env, obj.obj(),
943      android_view_MotionEvent_clazz(env), 0);
944  jmethodID method_id = base::android::MethodID::LazyGet<
945      base::android::MethodID::TYPE_INSTANCE>(
946          env, android_view_MotionEvent_clazz(env),
947          "getPressure",
948          "(I)F",
949          &g_android_view_MotionEvent_getPressureF_I);
950
951  jfloat ret =
952      env->CallFloatMethod(obj.obj(),
953          method_id, as_jint(p0));
954  jni_generator::CheckException(env);
955  return ret;
956}
957
958static base::subtle::AtomicWord g_android_view_MotionEvent_getSizeF_I = 0;
959static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
960    JniIntWrapper p0) __attribute__ ((unused));
961static jfloat Java_MotionEvent_getSizeF_I(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
962    JniIntWrapper p0) {
963  CHECK_CLAZZ(env, obj.obj(),
964      android_view_MotionEvent_clazz(env), 0);
965  jmethodID method_id = base::android::MethodID::LazyGet<
966      base::android::MethodID::TYPE_INSTANCE>(
967          env, android_view_MotionEvent_clazz(env),
968          "getSize",
969          "(I)F",
970          &g_android_view_MotionEvent_getSizeF_I);
971
972  jfloat ret =
973      env->CallFloatMethod(obj.obj(),
974          method_id, as_jint(p0));
975  jni_generator::CheckException(env);
976  return ret;
977}
978
979static base::subtle::AtomicWord g_android_view_MotionEvent_getTouchMajorF_I = 0;
980static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
981    obj, JniIntWrapper p0) __attribute__ ((unused));
982static jfloat Java_MotionEvent_getTouchMajorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
983    obj, JniIntWrapper p0) {
984  CHECK_CLAZZ(env, obj.obj(),
985      android_view_MotionEvent_clazz(env), 0);
986  jmethodID method_id = base::android::MethodID::LazyGet<
987      base::android::MethodID::TYPE_INSTANCE>(
988          env, android_view_MotionEvent_clazz(env),
989          "getTouchMajor",
990          "(I)F",
991          &g_android_view_MotionEvent_getTouchMajorF_I);
992
993  jfloat ret =
994      env->CallFloatMethod(obj.obj(),
995          method_id, as_jint(p0));
996  jni_generator::CheckException(env);
997  return ret;
998}
999
1000static base::subtle::AtomicWord g_android_view_MotionEvent_getTouchMinorF_I = 0;
1001static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1002    obj, JniIntWrapper p0) __attribute__ ((unused));
1003static jfloat Java_MotionEvent_getTouchMinorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1004    obj, JniIntWrapper p0) {
1005  CHECK_CLAZZ(env, obj.obj(),
1006      android_view_MotionEvent_clazz(env), 0);
1007  jmethodID method_id = base::android::MethodID::LazyGet<
1008      base::android::MethodID::TYPE_INSTANCE>(
1009          env, android_view_MotionEvent_clazz(env),
1010          "getTouchMinor",
1011          "(I)F",
1012          &g_android_view_MotionEvent_getTouchMinorF_I);
1013
1014  jfloat ret =
1015      env->CallFloatMethod(obj.obj(),
1016          method_id, as_jint(p0));
1017  jni_generator::CheckException(env);
1018  return ret;
1019}
1020
1021static base::subtle::AtomicWord g_android_view_MotionEvent_getToolMajorF_I = 0;
1022static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1023    obj, JniIntWrapper p0) __attribute__ ((unused));
1024static jfloat Java_MotionEvent_getToolMajorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1025    obj, JniIntWrapper p0) {
1026  CHECK_CLAZZ(env, obj.obj(),
1027      android_view_MotionEvent_clazz(env), 0);
1028  jmethodID method_id = base::android::MethodID::LazyGet<
1029      base::android::MethodID::TYPE_INSTANCE>(
1030          env, android_view_MotionEvent_clazz(env),
1031          "getToolMajor",
1032          "(I)F",
1033          &g_android_view_MotionEvent_getToolMajorF_I);
1034
1035  jfloat ret =
1036      env->CallFloatMethod(obj.obj(),
1037          method_id, as_jint(p0));
1038  jni_generator::CheckException(env);
1039  return ret;
1040}
1041
1042static base::subtle::AtomicWord g_android_view_MotionEvent_getToolMinorF_I = 0;
1043static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1044    obj, JniIntWrapper p0) __attribute__ ((unused));
1045static jfloat Java_MotionEvent_getToolMinorF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1046    obj, JniIntWrapper p0) {
1047  CHECK_CLAZZ(env, obj.obj(),
1048      android_view_MotionEvent_clazz(env), 0);
1049  jmethodID method_id = base::android::MethodID::LazyGet<
1050      base::android::MethodID::TYPE_INSTANCE>(
1051          env, android_view_MotionEvent_clazz(env),
1052          "getToolMinor",
1053          "(I)F",
1054          &g_android_view_MotionEvent_getToolMinorF_I);
1055
1056  jfloat ret =
1057      env->CallFloatMethod(obj.obj(),
1058          method_id, as_jint(p0));
1059  jni_generator::CheckException(env);
1060  return ret;
1061}
1062
1063static base::subtle::AtomicWord g_android_view_MotionEvent_getOrientationF_I = 0;
1064static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1065    obj, JniIntWrapper p0) __attribute__ ((unused));
1066static jfloat Java_MotionEvent_getOrientationF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1067    obj, JniIntWrapper p0) {
1068  CHECK_CLAZZ(env, obj.obj(),
1069      android_view_MotionEvent_clazz(env), 0);
1070  jmethodID method_id = base::android::MethodID::LazyGet<
1071      base::android::MethodID::TYPE_INSTANCE>(
1072          env, android_view_MotionEvent_clazz(env),
1073          "getOrientation",
1074          "(I)F",
1075          &g_android_view_MotionEvent_getOrientationF_I);
1076
1077  jfloat ret =
1078      env->CallFloatMethod(obj.obj(),
1079          method_id, as_jint(p0));
1080  jni_generator::CheckException(env);
1081  return ret;
1082}
1083
1084static base::subtle::AtomicWord g_android_view_MotionEvent_getAxisValueF_I_I = 0;
1085static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1086    obj, JniIntWrapper p0,
1087    JniIntWrapper p1) __attribute__ ((unused));
1088static jfloat Java_MotionEvent_getAxisValueF_I_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1089    obj, JniIntWrapper p0,
1090    JniIntWrapper p1) {
1091  CHECK_CLAZZ(env, obj.obj(),
1092      android_view_MotionEvent_clazz(env), 0);
1093  jmethodID method_id = base::android::MethodID::LazyGet<
1094      base::android::MethodID::TYPE_INSTANCE>(
1095          env, android_view_MotionEvent_clazz(env),
1096          "getAxisValue",
1097          "(II)F",
1098          &g_android_view_MotionEvent_getAxisValueF_I_I);
1099
1100  jfloat ret =
1101      env->CallFloatMethod(obj.obj(),
1102          method_id, as_jint(p0), as_jint(p1));
1103  jni_generator::CheckException(env);
1104  return ret;
1105}
1106
1107static base::subtle::AtomicWord g_android_view_MotionEvent_getPointerCoords = 0;
1108static void Java_MotionEvent_getPointerCoords(JNIEnv* env, const base::android::JavaRef<jobject>&
1109    obj, JniIntWrapper p0,
1110    const base::android::JavaRef<jobject>& p1) __attribute__ ((unused));
1111static void Java_MotionEvent_getPointerCoords(JNIEnv* env, const base::android::JavaRef<jobject>&
1112    obj, JniIntWrapper p0,
1113    const base::android::JavaRef<jobject>& p1) {
1114  CHECK_CLAZZ(env, obj.obj(),
1115      android_view_MotionEvent_clazz(env));
1116  jmethodID method_id = base::android::MethodID::LazyGet<
1117      base::android::MethodID::TYPE_INSTANCE>(
1118          env, android_view_MotionEvent_clazz(env),
1119          "getPointerCoords",
1120          "(ILandroid/view/MotionEvent$PointerCoords;)V",
1121          &g_android_view_MotionEvent_getPointerCoords);
1122
1123     env->CallVoidMethod(obj.obj(),
1124          method_id, as_jint(p0), p1.obj());
1125  jni_generator::CheckException(env);
1126}
1127
1128static base::subtle::AtomicWord g_android_view_MotionEvent_getPointerProperties = 0;
1129static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const
1130    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1131    const base::android::JavaRef<jobject>& p1) __attribute__ ((unused));
1132static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const
1133    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1134    const base::android::JavaRef<jobject>& p1) {
1135  CHECK_CLAZZ(env, obj.obj(),
1136      android_view_MotionEvent_clazz(env));
1137  jmethodID method_id = base::android::MethodID::LazyGet<
1138      base::android::MethodID::TYPE_INSTANCE>(
1139          env, android_view_MotionEvent_clazz(env),
1140          "getPointerProperties",
1141          "(ILandroid/view/MotionEvent$PointerProperties;)V",
1142          &g_android_view_MotionEvent_getPointerProperties);
1143
1144     env->CallVoidMethod(obj.obj(),
1145          method_id, as_jint(p0), p1.obj());
1146  jni_generator::CheckException(env);
1147}
1148
1149static base::subtle::AtomicWord g_android_view_MotionEvent_getMetaState = 0;
1150static jint Java_MotionEvent_getMetaState(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1151    __attribute__ ((unused));
1152static jint Java_MotionEvent_getMetaState(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
1153  CHECK_CLAZZ(env, obj.obj(),
1154      android_view_MotionEvent_clazz(env), 0);
1155  jmethodID method_id = base::android::MethodID::LazyGet<
1156      base::android::MethodID::TYPE_INSTANCE>(
1157          env, android_view_MotionEvent_clazz(env),
1158          "getMetaState",
1159          "()I",
1160          &g_android_view_MotionEvent_getMetaState);
1161
1162  jint ret =
1163      env->CallIntMethod(obj.obj(),
1164          method_id);
1165  jni_generator::CheckException(env);
1166  return ret;
1167}
1168
1169static base::subtle::AtomicWord g_android_view_MotionEvent_getButtonState = 0;
1170static jint Java_MotionEvent_getButtonState(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1171    __attribute__ ((unused));
1172static jint Java_MotionEvent_getButtonState(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1173    {
1174  CHECK_CLAZZ(env, obj.obj(),
1175      android_view_MotionEvent_clazz(env), 0);
1176  jmethodID method_id = base::android::MethodID::LazyGet<
1177      base::android::MethodID::TYPE_INSTANCE>(
1178          env, android_view_MotionEvent_clazz(env),
1179          "getButtonState",
1180          "()I",
1181          &g_android_view_MotionEvent_getButtonState);
1182
1183  jint ret =
1184      env->CallIntMethod(obj.obj(),
1185          method_id);
1186  jni_generator::CheckException(env);
1187  return ret;
1188}
1189
1190static base::subtle::AtomicWord g_android_view_MotionEvent_getRawX = 0;
1191static jfloat Java_MotionEvent_getRawX(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1192    __attribute__ ((unused));
1193static jfloat Java_MotionEvent_getRawX(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
1194  CHECK_CLAZZ(env, obj.obj(),
1195      android_view_MotionEvent_clazz(env), 0);
1196  jmethodID method_id = base::android::MethodID::LazyGet<
1197      base::android::MethodID::TYPE_INSTANCE>(
1198          env, android_view_MotionEvent_clazz(env),
1199          "getRawX",
1200          "()F",
1201          &g_android_view_MotionEvent_getRawX);
1202
1203  jfloat ret =
1204      env->CallFloatMethod(obj.obj(),
1205          method_id);
1206  jni_generator::CheckException(env);
1207  return ret;
1208}
1209
1210static base::subtle::AtomicWord g_android_view_MotionEvent_getRawY = 0;
1211static jfloat Java_MotionEvent_getRawY(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1212    __attribute__ ((unused));
1213static jfloat Java_MotionEvent_getRawY(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
1214  CHECK_CLAZZ(env, obj.obj(),
1215      android_view_MotionEvent_clazz(env), 0);
1216  jmethodID method_id = base::android::MethodID::LazyGet<
1217      base::android::MethodID::TYPE_INSTANCE>(
1218          env, android_view_MotionEvent_clazz(env),
1219          "getRawY",
1220          "()F",
1221          &g_android_view_MotionEvent_getRawY);
1222
1223  jfloat ret =
1224      env->CallFloatMethod(obj.obj(),
1225          method_id);
1226  jni_generator::CheckException(env);
1227  return ret;
1228}
1229
1230static base::subtle::AtomicWord g_android_view_MotionEvent_getXPrecision = 0;
1231static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, const base::android::JavaRef<jobject>&
1232    obj) __attribute__ ((unused));
1233static jfloat Java_MotionEvent_getXPrecision(JNIEnv* env, const base::android::JavaRef<jobject>&
1234    obj) {
1235  CHECK_CLAZZ(env, obj.obj(),
1236      android_view_MotionEvent_clazz(env), 0);
1237  jmethodID method_id = base::android::MethodID::LazyGet<
1238      base::android::MethodID::TYPE_INSTANCE>(
1239          env, android_view_MotionEvent_clazz(env),
1240          "getXPrecision",
1241          "()F",
1242          &g_android_view_MotionEvent_getXPrecision);
1243
1244  jfloat ret =
1245      env->CallFloatMethod(obj.obj(),
1246          method_id);
1247  jni_generator::CheckException(env);
1248  return ret;
1249}
1250
1251static base::subtle::AtomicWord g_android_view_MotionEvent_getYPrecision = 0;
1252static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, const base::android::JavaRef<jobject>&
1253    obj) __attribute__ ((unused));
1254static jfloat Java_MotionEvent_getYPrecision(JNIEnv* env, const base::android::JavaRef<jobject>&
1255    obj) {
1256  CHECK_CLAZZ(env, obj.obj(),
1257      android_view_MotionEvent_clazz(env), 0);
1258  jmethodID method_id = base::android::MethodID::LazyGet<
1259      base::android::MethodID::TYPE_INSTANCE>(
1260          env, android_view_MotionEvent_clazz(env),
1261          "getYPrecision",
1262          "()F",
1263          &g_android_view_MotionEvent_getYPrecision);
1264
1265  jfloat ret =
1266      env->CallFloatMethod(obj.obj(),
1267          method_id);
1268  jni_generator::CheckException(env);
1269  return ret;
1270}
1271
1272static base::subtle::AtomicWord g_android_view_MotionEvent_getHistorySize = 0;
1273static jint Java_MotionEvent_getHistorySize(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1274    __attribute__ ((unused));
1275static jint Java_MotionEvent_getHistorySize(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1276    {
1277  CHECK_CLAZZ(env, obj.obj(),
1278      android_view_MotionEvent_clazz(env), 0);
1279  jmethodID method_id = base::android::MethodID::LazyGet<
1280      base::android::MethodID::TYPE_INSTANCE>(
1281          env, android_view_MotionEvent_clazz(env),
1282          "getHistorySize",
1283          "()I",
1284          &g_android_view_MotionEvent_getHistorySize);
1285
1286  jint ret =
1287      env->CallIntMethod(obj.obj(),
1288          method_id);
1289  jni_generator::CheckException(env);
1290  return ret;
1291}
1292
1293static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalEventTime = 0;
1294static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, const
1295    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1296static jlong Java_MotionEvent_getHistoricalEventTime(JNIEnv* env, const
1297    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1298  CHECK_CLAZZ(env, obj.obj(),
1299      android_view_MotionEvent_clazz(env), 0);
1300  jmethodID method_id = base::android::MethodID::LazyGet<
1301      base::android::MethodID::TYPE_INSTANCE>(
1302          env, android_view_MotionEvent_clazz(env),
1303          "getHistoricalEventTime",
1304          "(I)J",
1305          &g_android_view_MotionEvent_getHistoricalEventTime);
1306
1307  jlong ret =
1308      env->CallLongMethod(obj.obj(),
1309          method_id, as_jint(p0));
1310  jni_generator::CheckException(env);
1311  return ret;
1312}
1313
1314static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalXF_I = 0;
1315static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1316    obj, JniIntWrapper p0) __attribute__ ((unused));
1317static jfloat Java_MotionEvent_getHistoricalXF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1318    obj, JniIntWrapper p0) {
1319  CHECK_CLAZZ(env, obj.obj(),
1320      android_view_MotionEvent_clazz(env), 0);
1321  jmethodID method_id = base::android::MethodID::LazyGet<
1322      base::android::MethodID::TYPE_INSTANCE>(
1323          env, android_view_MotionEvent_clazz(env),
1324          "getHistoricalX",
1325          "(I)F",
1326          &g_android_view_MotionEvent_getHistoricalXF_I);
1327
1328  jfloat ret =
1329      env->CallFloatMethod(obj.obj(),
1330          method_id, as_jint(p0));
1331  jni_generator::CheckException(env);
1332  return ret;
1333}
1334
1335static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalYF_I = 0;
1336static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1337    obj, JniIntWrapper p0) __attribute__ ((unused));
1338static jfloat Java_MotionEvent_getHistoricalYF_I(JNIEnv* env, const base::android::JavaRef<jobject>&
1339    obj, JniIntWrapper p0) {
1340  CHECK_CLAZZ(env, obj.obj(),
1341      android_view_MotionEvent_clazz(env), 0);
1342  jmethodID method_id = base::android::MethodID::LazyGet<
1343      base::android::MethodID::TYPE_INSTANCE>(
1344          env, android_view_MotionEvent_clazz(env),
1345          "getHistoricalY",
1346          "(I)F",
1347          &g_android_view_MotionEvent_getHistoricalYF_I);
1348
1349  jfloat ret =
1350      env->CallFloatMethod(obj.obj(),
1351          method_id, as_jint(p0));
1352  jni_generator::CheckException(env);
1353  return ret;
1354}
1355
1356static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalPressureF_I = 0;
1357static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, const
1358    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1359static jfloat Java_MotionEvent_getHistoricalPressureF_I(JNIEnv* env, const
1360    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1361  CHECK_CLAZZ(env, obj.obj(),
1362      android_view_MotionEvent_clazz(env), 0);
1363  jmethodID method_id = base::android::MethodID::LazyGet<
1364      base::android::MethodID::TYPE_INSTANCE>(
1365          env, android_view_MotionEvent_clazz(env),
1366          "getHistoricalPressure",
1367          "(I)F",
1368          &g_android_view_MotionEvent_getHistoricalPressureF_I);
1369
1370  jfloat ret =
1371      env->CallFloatMethod(obj.obj(),
1372          method_id, as_jint(p0));
1373  jni_generator::CheckException(env);
1374  return ret;
1375}
1376
1377static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalSizeF_I = 0;
1378static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, const
1379    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1380static jfloat Java_MotionEvent_getHistoricalSizeF_I(JNIEnv* env, const
1381    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1382  CHECK_CLAZZ(env, obj.obj(),
1383      android_view_MotionEvent_clazz(env), 0);
1384  jmethodID method_id = base::android::MethodID::LazyGet<
1385      base::android::MethodID::TYPE_INSTANCE>(
1386          env, android_view_MotionEvent_clazz(env),
1387          "getHistoricalSize",
1388          "(I)F",
1389          &g_android_view_MotionEvent_getHistoricalSizeF_I);
1390
1391  jfloat ret =
1392      env->CallFloatMethod(obj.obj(),
1393          method_id, as_jint(p0));
1394  jni_generator::CheckException(env);
1395  return ret;
1396}
1397
1398static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalTouchMajorF_I = 0;
1399static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, const
1400    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1401static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I(JNIEnv* env, const
1402    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1403  CHECK_CLAZZ(env, obj.obj(),
1404      android_view_MotionEvent_clazz(env), 0);
1405  jmethodID method_id = base::android::MethodID::LazyGet<
1406      base::android::MethodID::TYPE_INSTANCE>(
1407          env, android_view_MotionEvent_clazz(env),
1408          "getHistoricalTouchMajor",
1409          "(I)F",
1410          &g_android_view_MotionEvent_getHistoricalTouchMajorF_I);
1411
1412  jfloat ret =
1413      env->CallFloatMethod(obj.obj(),
1414          method_id, as_jint(p0));
1415  jni_generator::CheckException(env);
1416  return ret;
1417}
1418
1419static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalTouchMinorF_I = 0;
1420static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, const
1421    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1422static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I(JNIEnv* env, const
1423    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1424  CHECK_CLAZZ(env, obj.obj(),
1425      android_view_MotionEvent_clazz(env), 0);
1426  jmethodID method_id = base::android::MethodID::LazyGet<
1427      base::android::MethodID::TYPE_INSTANCE>(
1428          env, android_view_MotionEvent_clazz(env),
1429          "getHistoricalTouchMinor",
1430          "(I)F",
1431          &g_android_view_MotionEvent_getHistoricalTouchMinorF_I);
1432
1433  jfloat ret =
1434      env->CallFloatMethod(obj.obj(),
1435          method_id, as_jint(p0));
1436  jni_generator::CheckException(env);
1437  return ret;
1438}
1439
1440static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalToolMajorF_I = 0;
1441static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, const
1442    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1443static jfloat Java_MotionEvent_getHistoricalToolMajorF_I(JNIEnv* env, const
1444    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1445  CHECK_CLAZZ(env, obj.obj(),
1446      android_view_MotionEvent_clazz(env), 0);
1447  jmethodID method_id = base::android::MethodID::LazyGet<
1448      base::android::MethodID::TYPE_INSTANCE>(
1449          env, android_view_MotionEvent_clazz(env),
1450          "getHistoricalToolMajor",
1451          "(I)F",
1452          &g_android_view_MotionEvent_getHistoricalToolMajorF_I);
1453
1454  jfloat ret =
1455      env->CallFloatMethod(obj.obj(),
1456          method_id, as_jint(p0));
1457  jni_generator::CheckException(env);
1458  return ret;
1459}
1460
1461static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalToolMinorF_I = 0;
1462static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, const
1463    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1464static jfloat Java_MotionEvent_getHistoricalToolMinorF_I(JNIEnv* env, const
1465    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1466  CHECK_CLAZZ(env, obj.obj(),
1467      android_view_MotionEvent_clazz(env), 0);
1468  jmethodID method_id = base::android::MethodID::LazyGet<
1469      base::android::MethodID::TYPE_INSTANCE>(
1470          env, android_view_MotionEvent_clazz(env),
1471          "getHistoricalToolMinor",
1472          "(I)F",
1473          &g_android_view_MotionEvent_getHistoricalToolMinorF_I);
1474
1475  jfloat ret =
1476      env->CallFloatMethod(obj.obj(),
1477          method_id, as_jint(p0));
1478  jni_generator::CheckException(env);
1479  return ret;
1480}
1481
1482static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalOrientationF_I = 0;
1483static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, const
1484    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) __attribute__ ((unused));
1485static jfloat Java_MotionEvent_getHistoricalOrientationF_I(JNIEnv* env, const
1486    base::android::JavaRef<jobject>& obj, JniIntWrapper p0) {
1487  CHECK_CLAZZ(env, obj.obj(),
1488      android_view_MotionEvent_clazz(env), 0);
1489  jmethodID method_id = base::android::MethodID::LazyGet<
1490      base::android::MethodID::TYPE_INSTANCE>(
1491          env, android_view_MotionEvent_clazz(env),
1492          "getHistoricalOrientation",
1493          "(I)F",
1494          &g_android_view_MotionEvent_getHistoricalOrientationF_I);
1495
1496  jfloat ret =
1497      env->CallFloatMethod(obj.obj(),
1498          method_id, as_jint(p0));
1499  jni_generator::CheckException(env);
1500  return ret;
1501}
1502
1503static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalAxisValueF_I_I = 0;
1504static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, const
1505    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1506    JniIntWrapper p1) __attribute__ ((unused));
1507static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I(JNIEnv* env, const
1508    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1509    JniIntWrapper p1) {
1510  CHECK_CLAZZ(env, obj.obj(),
1511      android_view_MotionEvent_clazz(env), 0);
1512  jmethodID method_id = base::android::MethodID::LazyGet<
1513      base::android::MethodID::TYPE_INSTANCE>(
1514          env, android_view_MotionEvent_clazz(env),
1515          "getHistoricalAxisValue",
1516          "(II)F",
1517          &g_android_view_MotionEvent_getHistoricalAxisValueF_I_I);
1518
1519  jfloat ret =
1520      env->CallFloatMethod(obj.obj(),
1521          method_id, as_jint(p0), as_jint(p1));
1522  jni_generator::CheckException(env);
1523  return ret;
1524}
1525
1526static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalXF_I_I = 0;
1527static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, const
1528    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1529    JniIntWrapper p1) __attribute__ ((unused));
1530static jfloat Java_MotionEvent_getHistoricalXF_I_I(JNIEnv* env, const
1531    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1532    JniIntWrapper p1) {
1533  CHECK_CLAZZ(env, obj.obj(),
1534      android_view_MotionEvent_clazz(env), 0);
1535  jmethodID method_id = base::android::MethodID::LazyGet<
1536      base::android::MethodID::TYPE_INSTANCE>(
1537          env, android_view_MotionEvent_clazz(env),
1538          "getHistoricalX",
1539          "(II)F",
1540          &g_android_view_MotionEvent_getHistoricalXF_I_I);
1541
1542  jfloat ret =
1543      env->CallFloatMethod(obj.obj(),
1544          method_id, as_jint(p0), as_jint(p1));
1545  jni_generator::CheckException(env);
1546  return ret;
1547}
1548
1549static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalYF_I_I = 0;
1550static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, const
1551    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1552    JniIntWrapper p1) __attribute__ ((unused));
1553static jfloat Java_MotionEvent_getHistoricalYF_I_I(JNIEnv* env, const
1554    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1555    JniIntWrapper p1) {
1556  CHECK_CLAZZ(env, obj.obj(),
1557      android_view_MotionEvent_clazz(env), 0);
1558  jmethodID method_id = base::android::MethodID::LazyGet<
1559      base::android::MethodID::TYPE_INSTANCE>(
1560          env, android_view_MotionEvent_clazz(env),
1561          "getHistoricalY",
1562          "(II)F",
1563          &g_android_view_MotionEvent_getHistoricalYF_I_I);
1564
1565  jfloat ret =
1566      env->CallFloatMethod(obj.obj(),
1567          method_id, as_jint(p0), as_jint(p1));
1568  jni_generator::CheckException(env);
1569  return ret;
1570}
1571
1572static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalPressureF_I_I = 0;
1573static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, const
1574    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1575    JniIntWrapper p1) __attribute__ ((unused));
1576static jfloat Java_MotionEvent_getHistoricalPressureF_I_I(JNIEnv* env, const
1577    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1578    JniIntWrapper p1) {
1579  CHECK_CLAZZ(env, obj.obj(),
1580      android_view_MotionEvent_clazz(env), 0);
1581  jmethodID method_id = base::android::MethodID::LazyGet<
1582      base::android::MethodID::TYPE_INSTANCE>(
1583          env, android_view_MotionEvent_clazz(env),
1584          "getHistoricalPressure",
1585          "(II)F",
1586          &g_android_view_MotionEvent_getHistoricalPressureF_I_I);
1587
1588  jfloat ret =
1589      env->CallFloatMethod(obj.obj(),
1590          method_id, as_jint(p0), as_jint(p1));
1591  jni_generator::CheckException(env);
1592  return ret;
1593}
1594
1595static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalSizeF_I_I = 0;
1596static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, const
1597    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1598    JniIntWrapper p1) __attribute__ ((unused));
1599static jfloat Java_MotionEvent_getHistoricalSizeF_I_I(JNIEnv* env, const
1600    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1601    JniIntWrapper p1) {
1602  CHECK_CLAZZ(env, obj.obj(),
1603      android_view_MotionEvent_clazz(env), 0);
1604  jmethodID method_id = base::android::MethodID::LazyGet<
1605      base::android::MethodID::TYPE_INSTANCE>(
1606          env, android_view_MotionEvent_clazz(env),
1607          "getHistoricalSize",
1608          "(II)F",
1609          &g_android_view_MotionEvent_getHistoricalSizeF_I_I);
1610
1611  jfloat ret =
1612      env->CallFloatMethod(obj.obj(),
1613          method_id, as_jint(p0), as_jint(p1));
1614  jni_generator::CheckException(env);
1615  return ret;
1616}
1617
1618static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalTouchMajorF_I_I = 0;
1619static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, const
1620    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1621    JniIntWrapper p1) __attribute__ ((unused));
1622static jfloat Java_MotionEvent_getHistoricalTouchMajorF_I_I(JNIEnv* env, const
1623    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1624    JniIntWrapper p1) {
1625  CHECK_CLAZZ(env, obj.obj(),
1626      android_view_MotionEvent_clazz(env), 0);
1627  jmethodID method_id = base::android::MethodID::LazyGet<
1628      base::android::MethodID::TYPE_INSTANCE>(
1629          env, android_view_MotionEvent_clazz(env),
1630          "getHistoricalTouchMajor",
1631          "(II)F",
1632          &g_android_view_MotionEvent_getHistoricalTouchMajorF_I_I);
1633
1634  jfloat ret =
1635      env->CallFloatMethod(obj.obj(),
1636          method_id, as_jint(p0), as_jint(p1));
1637  jni_generator::CheckException(env);
1638  return ret;
1639}
1640
1641static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalTouchMinorF_I_I = 0;
1642static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, const
1643    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1644    JniIntWrapper p1) __attribute__ ((unused));
1645static jfloat Java_MotionEvent_getHistoricalTouchMinorF_I_I(JNIEnv* env, const
1646    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1647    JniIntWrapper p1) {
1648  CHECK_CLAZZ(env, obj.obj(),
1649      android_view_MotionEvent_clazz(env), 0);
1650  jmethodID method_id = base::android::MethodID::LazyGet<
1651      base::android::MethodID::TYPE_INSTANCE>(
1652          env, android_view_MotionEvent_clazz(env),
1653          "getHistoricalTouchMinor",
1654          "(II)F",
1655          &g_android_view_MotionEvent_getHistoricalTouchMinorF_I_I);
1656
1657  jfloat ret =
1658      env->CallFloatMethod(obj.obj(),
1659          method_id, as_jint(p0), as_jint(p1));
1660  jni_generator::CheckException(env);
1661  return ret;
1662}
1663
1664static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalToolMajorF_I_I = 0;
1665static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, const
1666    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1667    JniIntWrapper p1) __attribute__ ((unused));
1668static jfloat Java_MotionEvent_getHistoricalToolMajorF_I_I(JNIEnv* env, const
1669    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1670    JniIntWrapper p1) {
1671  CHECK_CLAZZ(env, obj.obj(),
1672      android_view_MotionEvent_clazz(env), 0);
1673  jmethodID method_id = base::android::MethodID::LazyGet<
1674      base::android::MethodID::TYPE_INSTANCE>(
1675          env, android_view_MotionEvent_clazz(env),
1676          "getHistoricalToolMajor",
1677          "(II)F",
1678          &g_android_view_MotionEvent_getHistoricalToolMajorF_I_I);
1679
1680  jfloat ret =
1681      env->CallFloatMethod(obj.obj(),
1682          method_id, as_jint(p0), as_jint(p1));
1683  jni_generator::CheckException(env);
1684  return ret;
1685}
1686
1687static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalToolMinorF_I_I = 0;
1688static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, const
1689    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1690    JniIntWrapper p1) __attribute__ ((unused));
1691static jfloat Java_MotionEvent_getHistoricalToolMinorF_I_I(JNIEnv* env, const
1692    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1693    JniIntWrapper p1) {
1694  CHECK_CLAZZ(env, obj.obj(),
1695      android_view_MotionEvent_clazz(env), 0);
1696  jmethodID method_id = base::android::MethodID::LazyGet<
1697      base::android::MethodID::TYPE_INSTANCE>(
1698          env, android_view_MotionEvent_clazz(env),
1699          "getHistoricalToolMinor",
1700          "(II)F",
1701          &g_android_view_MotionEvent_getHistoricalToolMinorF_I_I);
1702
1703  jfloat ret =
1704      env->CallFloatMethod(obj.obj(),
1705          method_id, as_jint(p0), as_jint(p1));
1706  jni_generator::CheckException(env);
1707  return ret;
1708}
1709
1710static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalOrientationF_I_I = 0;
1711static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env, const
1712    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1713    JniIntWrapper p1) __attribute__ ((unused));
1714static jfloat Java_MotionEvent_getHistoricalOrientationF_I_I(JNIEnv* env, const
1715    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1716    JniIntWrapper p1) {
1717  CHECK_CLAZZ(env, obj.obj(),
1718      android_view_MotionEvent_clazz(env), 0);
1719  jmethodID method_id = base::android::MethodID::LazyGet<
1720      base::android::MethodID::TYPE_INSTANCE>(
1721          env, android_view_MotionEvent_clazz(env),
1722          "getHistoricalOrientation",
1723          "(II)F",
1724          &g_android_view_MotionEvent_getHistoricalOrientationF_I_I);
1725
1726  jfloat ret =
1727      env->CallFloatMethod(obj.obj(),
1728          method_id, as_jint(p0), as_jint(p1));
1729  jni_generator::CheckException(env);
1730  return ret;
1731}
1732
1733static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalAxisValueF_I_I_I = 0;
1734static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env, const
1735    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1736    JniIntWrapper p1,
1737    JniIntWrapper p2) __attribute__ ((unused));
1738static jfloat Java_MotionEvent_getHistoricalAxisValueF_I_I_I(JNIEnv* env, const
1739    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1740    JniIntWrapper p1,
1741    JniIntWrapper p2) {
1742  CHECK_CLAZZ(env, obj.obj(),
1743      android_view_MotionEvent_clazz(env), 0);
1744  jmethodID method_id = base::android::MethodID::LazyGet<
1745      base::android::MethodID::TYPE_INSTANCE>(
1746          env, android_view_MotionEvent_clazz(env),
1747          "getHistoricalAxisValue",
1748          "(III)F",
1749          &g_android_view_MotionEvent_getHistoricalAxisValueF_I_I_I);
1750
1751  jfloat ret =
1752      env->CallFloatMethod(obj.obj(),
1753          method_id, as_jint(p0), as_jint(p1), as_jint(p2));
1754  jni_generator::CheckException(env);
1755  return ret;
1756}
1757
1758static base::subtle::AtomicWord g_android_view_MotionEvent_getHistoricalPointerCoords = 0;
1759static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, const
1760    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1761    JniIntWrapper p1,
1762    const base::android::JavaRef<jobject>& p2) __attribute__ ((unused));
1763static void Java_MotionEvent_getHistoricalPointerCoords(JNIEnv* env, const
1764    base::android::JavaRef<jobject>& obj, JniIntWrapper p0,
1765    JniIntWrapper p1,
1766    const base::android::JavaRef<jobject>& p2) {
1767  CHECK_CLAZZ(env, obj.obj(),
1768      android_view_MotionEvent_clazz(env));
1769  jmethodID method_id = base::android::MethodID::LazyGet<
1770      base::android::MethodID::TYPE_INSTANCE>(
1771          env, android_view_MotionEvent_clazz(env),
1772          "getHistoricalPointerCoords",
1773          "(IILandroid/view/MotionEvent$PointerCoords;)V",
1774          &g_android_view_MotionEvent_getHistoricalPointerCoords);
1775
1776     env->CallVoidMethod(obj.obj(),
1777          method_id, as_jint(p0), as_jint(p1), p2.obj());
1778  jni_generator::CheckException(env);
1779}
1780
1781static base::subtle::AtomicWord g_android_view_MotionEvent_getEdgeFlags = 0;
1782static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
1783    __attribute__ ((unused));
1784static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
1785  CHECK_CLAZZ(env, obj.obj(),
1786      android_view_MotionEvent_clazz(env), 0);
1787  jmethodID method_id = base::android::MethodID::LazyGet<
1788      base::android::MethodID::TYPE_INSTANCE>(
1789          env, android_view_MotionEvent_clazz(env),
1790          "getEdgeFlags",
1791          "()I",
1792          &g_android_view_MotionEvent_getEdgeFlags);
1793
1794  jint ret =
1795      env->CallIntMethod(obj.obj(),
1796          method_id);
1797  jni_generator::CheckException(env);
1798  return ret;
1799}
1800
1801static base::subtle::AtomicWord g_android_view_MotionEvent_setEdgeFlags = 0;
1802static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1803    JniIntWrapper p0) __attribute__ ((unused));
1804static void Java_MotionEvent_setEdgeFlags(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1805    JniIntWrapper p0) {
1806  CHECK_CLAZZ(env, obj.obj(),
1807      android_view_MotionEvent_clazz(env));
1808  jmethodID method_id = base::android::MethodID::LazyGet<
1809      base::android::MethodID::TYPE_INSTANCE>(
1810          env, android_view_MotionEvent_clazz(env),
1811          "setEdgeFlags",
1812          "(I)V",
1813          &g_android_view_MotionEvent_setEdgeFlags);
1814
1815     env->CallVoidMethod(obj.obj(),
1816          method_id, as_jint(p0));
1817  jni_generator::CheckException(env);
1818}
1819
1820static base::subtle::AtomicWord g_android_view_MotionEvent_setAction = 0;
1821static void Java_MotionEvent_setAction(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1822    JniIntWrapper p0) __attribute__ ((unused));
1823static void Java_MotionEvent_setAction(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1824    JniIntWrapper p0) {
1825  CHECK_CLAZZ(env, obj.obj(),
1826      android_view_MotionEvent_clazz(env));
1827  jmethodID method_id = base::android::MethodID::LazyGet<
1828      base::android::MethodID::TYPE_INSTANCE>(
1829          env, android_view_MotionEvent_clazz(env),
1830          "setAction",
1831          "(I)V",
1832          &g_android_view_MotionEvent_setAction);
1833
1834     env->CallVoidMethod(obj.obj(),
1835          method_id, as_jint(p0));
1836  jni_generator::CheckException(env);
1837}
1838
1839static base::subtle::AtomicWord g_android_view_MotionEvent_offsetLocation = 0;
1840static void Java_MotionEvent_offsetLocation(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1841    jfloat p0,
1842    jfloat p1) __attribute__ ((unused));
1843static void Java_MotionEvent_offsetLocation(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1844    jfloat p0,
1845    jfloat p1) {
1846  CHECK_CLAZZ(env, obj.obj(),
1847      android_view_MotionEvent_clazz(env));
1848  jmethodID method_id = base::android::MethodID::LazyGet<
1849      base::android::MethodID::TYPE_INSTANCE>(
1850          env, android_view_MotionEvent_clazz(env),
1851          "offsetLocation",
1852          "(FF)V",
1853          &g_android_view_MotionEvent_offsetLocation);
1854
1855     env->CallVoidMethod(obj.obj(),
1856          method_id, p0, p1);
1857  jni_generator::CheckException(env);
1858}
1859
1860static base::subtle::AtomicWord g_android_view_MotionEvent_setLocation = 0;
1861static void Java_MotionEvent_setLocation(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1862    jfloat p0,
1863    jfloat p1) __attribute__ ((unused));
1864static void Java_MotionEvent_setLocation(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1865    jfloat p0,
1866    jfloat p1) {
1867  CHECK_CLAZZ(env, obj.obj(),
1868      android_view_MotionEvent_clazz(env));
1869  jmethodID method_id = base::android::MethodID::LazyGet<
1870      base::android::MethodID::TYPE_INSTANCE>(
1871          env, android_view_MotionEvent_clazz(env),
1872          "setLocation",
1873          "(FF)V",
1874          &g_android_view_MotionEvent_setLocation);
1875
1876     env->CallVoidMethod(obj.obj(),
1877          method_id, p0, p1);
1878  jni_generator::CheckException(env);
1879}
1880
1881static base::subtle::AtomicWord g_android_view_MotionEvent_transform = 0;
1882static void Java_MotionEvent_transform(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1883    const base::android::JavaRef<jobject>& p0) __attribute__ ((unused));
1884static void Java_MotionEvent_transform(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
1885    const base::android::JavaRef<jobject>& p0) {
1886  CHECK_CLAZZ(env, obj.obj(),
1887      android_view_MotionEvent_clazz(env));
1888  jmethodID method_id = base::android::MethodID::LazyGet<
1889      base::android::MethodID::TYPE_INSTANCE>(
1890          env, android_view_MotionEvent_clazz(env),
1891          "transform",
1892          "(Landroid/graphics/Matrix;)V",
1893          &g_android_view_MotionEvent_transform);
1894
1895     env->CallVoidMethod(obj.obj(),
1896          method_id, p0.obj());
1897  jni_generator::CheckException(env);
1898}
1899
1900static base::subtle::AtomicWord g_android_view_MotionEvent_addBatchV_J_F_F_F_F_I = 0;
1901static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, const
1902    base::android::JavaRef<jobject>& obj, jlong p0,
1903    jfloat p1,
1904    jfloat p2,
1905    jfloat p3,
1906    jfloat p4,
1907    JniIntWrapper p5) __attribute__ ((unused));
1908static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, const
1909    base::android::JavaRef<jobject>& obj, jlong p0,
1910    jfloat p1,
1911    jfloat p2,
1912    jfloat p3,
1913    jfloat p4,
1914    JniIntWrapper p5) {
1915  CHECK_CLAZZ(env, obj.obj(),
1916      android_view_MotionEvent_clazz(env));
1917  jmethodID method_id = base::android::MethodID::LazyGet<
1918      base::android::MethodID::TYPE_INSTANCE>(
1919          env, android_view_MotionEvent_clazz(env),
1920          "addBatch",
1921          "(JFFFFI)V",
1922          &g_android_view_MotionEvent_addBatchV_J_F_F_F_F_I);
1923
1924     env->CallVoidMethod(obj.obj(),
1925          method_id, p0, p1, p2, p3, p4, as_jint(p5));
1926  jni_generator::CheckException(env);
1927}
1928
1929static base::subtle::AtomicWord g_android_view_MotionEvent_addBatchV_J_LAVMEPC_I = 0;
1930static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const
1931    base::android::JavaRef<jobject>& obj, jlong p0,
1932    const base::android::JavaRef<jobjectArray>& p1,
1933    JniIntWrapper p2) __attribute__ ((unused));
1934static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const
1935    base::android::JavaRef<jobject>& obj, jlong p0,
1936    const base::android::JavaRef<jobjectArray>& p1,
1937    JniIntWrapper p2) {
1938  CHECK_CLAZZ(env, obj.obj(),
1939      android_view_MotionEvent_clazz(env));
1940  jmethodID method_id = base::android::MethodID::LazyGet<
1941      base::android::MethodID::TYPE_INSTANCE>(
1942          env, android_view_MotionEvent_clazz(env),
1943          "addBatch",
1944          "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
1945          &g_android_view_MotionEvent_addBatchV_J_LAVMEPC_I);
1946
1947     env->CallVoidMethod(obj.obj(),
1948          method_id, p0, p1.obj(), as_jint(p2));
1949  jni_generator::CheckException(env);
1950}
1951
1952static base::subtle::AtomicWord g_android_view_MotionEvent_toString = 0;
1953static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env, const
1954    base::android::JavaRef<jobject>& obj) __attribute__ ((unused));
1955static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env, const
1956    base::android::JavaRef<jobject>& obj) {
1957  CHECK_CLAZZ(env, obj.obj(),
1958      android_view_MotionEvent_clazz(env), NULL);
1959  jmethodID method_id = base::android::MethodID::LazyGet<
1960      base::android::MethodID::TYPE_INSTANCE>(
1961          env, android_view_MotionEvent_clazz(env),
1962          "toString",
1963          "()Ljava/lang/String;",
1964          &g_android_view_MotionEvent_toString);
1965
1966  jstring ret =
1967      static_cast<jstring>(env->CallObjectMethod(obj.obj(),
1968          method_id));
1969  jni_generator::CheckException(env);
1970  return base::android::ScopedJavaLocalRef<jstring>(env, ret);
1971}
1972
1973static base::subtle::AtomicWord g_android_view_MotionEvent_actionToString = 0;
1974static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env,
1975    JniIntWrapper p0) __attribute__ ((unused));
1976static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env,
1977    JniIntWrapper p0) {
1978  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
1979      android_view_MotionEvent_clazz(env), NULL);
1980  jmethodID method_id = base::android::MethodID::LazyGet<
1981      base::android::MethodID::TYPE_STATIC>(
1982          env, android_view_MotionEvent_clazz(env),
1983          "actionToString",
1984          "(I)Ljava/lang/String;",
1985          &g_android_view_MotionEvent_actionToString);
1986
1987  jstring ret =
1988      static_cast<jstring>(env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
1989          method_id, as_jint(p0)));
1990  jni_generator::CheckException(env);
1991  return base::android::ScopedJavaLocalRef<jstring>(env, ret);
1992}
1993
1994static base::subtle::AtomicWord g_android_view_MotionEvent_axisToString = 0;
1995static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env,
1996    JniIntWrapper p0) __attribute__ ((unused));
1997static base::android::ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env,
1998    JniIntWrapper p0) {
1999  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
2000      android_view_MotionEvent_clazz(env), NULL);
2001  jmethodID method_id = base::android::MethodID::LazyGet<
2002      base::android::MethodID::TYPE_STATIC>(
2003          env, android_view_MotionEvent_clazz(env),
2004          "axisToString",
2005          "(I)Ljava/lang/String;",
2006          &g_android_view_MotionEvent_axisToString);
2007
2008  jstring ret =
2009      static_cast<jstring>(env->CallStaticObjectMethod(android_view_MotionEvent_clazz(env),
2010          method_id, as_jint(p0)));
2011  jni_generator::CheckException(env);
2012  return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2013}
2014
2015static base::subtle::AtomicWord g_android_view_MotionEvent_axisFromString = 0;
2016static jint Java_MotionEvent_axisFromString(JNIEnv* env, const base::android::JavaRef<jstring>& p0)
2017    __attribute__ ((unused));
2018static jint Java_MotionEvent_axisFromString(JNIEnv* env, const base::android::JavaRef<jstring>& p0)
2019    {
2020  CHECK_CLAZZ(env, android_view_MotionEvent_clazz(env),
2021      android_view_MotionEvent_clazz(env), 0);
2022  jmethodID method_id = base::android::MethodID::LazyGet<
2023      base::android::MethodID::TYPE_STATIC>(
2024          env, android_view_MotionEvent_clazz(env),
2025          "axisFromString",
2026          "(Ljava/lang/String;)I",
2027          &g_android_view_MotionEvent_axisFromString);
2028
2029  jint ret =
2030      env->CallStaticIntMethod(android_view_MotionEvent_clazz(env),
2031          method_id, p0.obj());
2032  jni_generator::CheckException(env);
2033  return ret;
2034}
2035
2036static base::subtle::AtomicWord g_android_view_MotionEvent_writeToParcel = 0;
2037static void Java_MotionEvent_writeToParcel(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
2038    const base::android::JavaRef<jobject>& p0,
2039    JniIntWrapper p1) __attribute__ ((unused));
2040static void Java_MotionEvent_writeToParcel(JNIEnv* env, const base::android::JavaRef<jobject>& obj,
2041    const base::android::JavaRef<jobject>& p0,
2042    JniIntWrapper p1) {
2043  CHECK_CLAZZ(env, obj.obj(),
2044      android_view_MotionEvent_clazz(env));
2045  jmethodID method_id = base::android::MethodID::LazyGet<
2046      base::android::MethodID::TYPE_INSTANCE>(
2047          env, android_view_MotionEvent_clazz(env),
2048          "writeToParcel",
2049          "(Landroid/os/Parcel;I)V",
2050          &g_android_view_MotionEvent_writeToParcel);
2051
2052     env->CallVoidMethod(obj.obj(),
2053          method_id, p0.obj(), as_jint(p1));
2054  jni_generator::CheckException(env);
2055}
2056
2057}  // namespace JNI_MotionEvent
2058
2059#endif  // android_view_MotionEvent_JNI
2060