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