Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: base/android/jni_generator/testConstantsFromJavaP.golden

Issue 2213963002: Stop relying on using statements in the JNI generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is autogenerated by 5 // This file is autogenerated by
6 // base/android/jni_generator/jni_generator.py 6 // base/android/jni_generator/jni_generator.py
7 // For 7 // For
8 // android/view/MotionEvent 8 // android/view/MotionEvent
9 9
10 #ifndef android_view_MotionEvent_JNI 10 #ifndef android_view_MotionEvent_JNI
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 &g_MotionEvent_finalize); 127 &g_MotionEvent_finalize);
128 128
129 env->CallVoidMethod(obj, 129 env->CallVoidMethod(obj,
130 method_id); 130 method_id);
131 jni_generator::CheckException(env); 131 jni_generator::CheckException(env);
132 132
133 } 133 }
134 134
135 static base::subtle::AtomicWord 135 static base::subtle::AtomicWord
136 g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I = 0; 136 g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I = 0;
137 static ScopedJavaLocalRef<jobject> 137 static base::android::ScopedJavaLocalRef<jobject>
138 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv* 138 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
139 env, jlong p0, 139 env, jlong p0,
140 jlong p1, 140 jlong p1,
141 JniIntWrapper p2, 141 JniIntWrapper p2,
142 JniIntWrapper p3, 142 JniIntWrapper p3,
143 jobjectArray p4, 143 jobjectArray p4,
144 jobjectArray p5, 144 jobjectArray p5,
145 JniIntWrapper p6, 145 JniIntWrapper p6,
146 JniIntWrapper p7, 146 JniIntWrapper p7,
147 jfloat p8, 147 jfloat p8,
148 jfloat p9, 148 jfloat p9,
149 JniIntWrapper p10, 149 JniIntWrapper p10,
150 JniIntWrapper p11, 150 JniIntWrapper p11,
151 JniIntWrapper p12, 151 JniIntWrapper p12,
152 JniIntWrapper p13) __attribute__ ((unused)); 152 JniIntWrapper p13) __attribute__ ((unused));
153 static ScopedJavaLocalRef<jobject> 153 static base::android::ScopedJavaLocalRef<jobject>
154 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv* 154 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv*
155 env, jlong p0, 155 env, jlong p0,
156 jlong p1, 156 jlong p1,
157 JniIntWrapper p2, 157 JniIntWrapper p2,
158 JniIntWrapper p3, 158 JniIntWrapper p3,
159 jobjectArray p4, 159 jobjectArray p4,
160 jobjectArray p5, 160 jobjectArray p5,
161 JniIntWrapper p6, 161 JniIntWrapper p6,
162 JniIntWrapper p7, 162 JniIntWrapper p7,
163 jfloat p8, 163 jfloat p8,
(...skipping 11 matching lines...) Expand all
175 "obtain", 175 "obtain",
176 "(JJII[Landroid/view/MotionEvent$PointerProperties;[Landroid/view/MotionEvent$Po interCoords;IIFFIIII)Landroid/view/MotionEvent;", 176 "(JJII[Landroid/view/MotionEvent$PointerProperties;[Landroid/view/MotionEvent$Po interCoords;IIFFIIII)Landroid/view/MotionEvent;",
177 &g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I); 177 &g_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I);
178 178
179 jobject ret = 179 jobject ret =
180 env->CallStaticObjectMethod(MotionEvent_clazz(env), 180 env->CallStaticObjectMethod(MotionEvent_clazz(env),
181 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6), 181 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6),
182 as_jint(p7), p8, p9, as_jint(p10), as_jint(p11), as_jint(p12), 182 as_jint(p7), p8, p9, as_jint(p10), as_jint(p11), as_jint(p12),
183 as_jint(p13)); 183 as_jint(p13));
184 jni_generator::CheckException(env); 184 jni_generator::CheckException(env);
185 return ScopedJavaLocalRef<jobject>(env, ret); 185 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
186 } 186 }
187 187
188 static base::subtle::AtomicWord 188 static base::subtle::AtomicWord
189 g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I = 0; 189 g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I = 0;
190 static ScopedJavaLocalRef<jobject> 190 static base::android::ScopedJavaLocalRef<jobject>
191 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env, 191 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
192 jlong p0, 192 jlong p0,
193 jlong p1, 193 jlong p1,
194 JniIntWrapper p2, 194 JniIntWrapper p2,
195 JniIntWrapper p3, 195 JniIntWrapper p3,
196 jintArray p4, 196 jintArray p4,
197 jobjectArray p5, 197 jobjectArray p5,
198 JniIntWrapper p6, 198 JniIntWrapper p6,
199 jfloat p7, 199 jfloat p7,
200 jfloat p8, 200 jfloat p8,
201 JniIntWrapper p9, 201 JniIntWrapper p9,
202 JniIntWrapper p10, 202 JniIntWrapper p10,
203 JniIntWrapper p11, 203 JniIntWrapper p11,
204 JniIntWrapper p12) __attribute__ ((unused)); 204 JniIntWrapper p12) __attribute__ ((unused));
205 static ScopedJavaLocalRef<jobject> 205 static base::android::ScopedJavaLocalRef<jobject>
206 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env, 206 Java_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I(JNIEnv* env,
207 jlong p0, 207 jlong p0,
208 jlong p1, 208 jlong p1,
209 JniIntWrapper p2, 209 JniIntWrapper p2,
210 JniIntWrapper p3, 210 JniIntWrapper p3,
211 jintArray p4, 211 jintArray p4,
212 jobjectArray p5, 212 jobjectArray p5,
213 JniIntWrapper p6, 213 JniIntWrapper p6,
214 jfloat p7, 214 jfloat p7,
215 jfloat p8, 215 jfloat p8,
216 JniIntWrapper p9, 216 JniIntWrapper p9,
217 JniIntWrapper p10, 217 JniIntWrapper p10,
218 JniIntWrapper p11, 218 JniIntWrapper p11,
219 JniIntWrapper p12) { 219 JniIntWrapper p12) {
220 CHECK_CLAZZ(env, MotionEvent_clazz(env), 220 CHECK_CLAZZ(env, MotionEvent_clazz(env),
221 MotionEvent_clazz(env), NULL); 221 MotionEvent_clazz(env), NULL);
222 jmethodID method_id = 222 jmethodID method_id =
223 base::android::MethodID::LazyGet< 223 base::android::MethodID::LazyGet<
224 base::android::MethodID::TYPE_STATIC>( 224 base::android::MethodID::TYPE_STATIC>(
225 env, MotionEvent_clazz(env), 225 env, MotionEvent_clazz(env),
226 "obtain", 226 "obtain",
227 "(JJII[I[Landroid/view/MotionEvent$PointerCoords;IFFIIII)Landroid/view/MotionEve nt;", 227 "(JJII[I[Landroid/view/MotionEvent$PointerCoords;IFFIIII)Landroid/view/MotionEve nt;",
228 &g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I); 228 &g_MotionEvent_obtainAVME_J_J_I_I_AI_LAVMEPC_I_F_F_I_I_I_I);
229 229
230 jobject ret = 230 jobject ret =
231 env->CallStaticObjectMethod(MotionEvent_clazz(env), 231 env->CallStaticObjectMethod(MotionEvent_clazz(env),
232 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6), p7, 232 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, as_jint(p6), p7,
233 p8, as_jint(p9), as_jint(p10), as_jint(p11), as_jint(p12)); 233 p8, as_jint(p9), as_jint(p10), as_jint(p11), as_jint(p12));
234 jni_generator::CheckException(env); 234 jni_generator::CheckException(env);
235 return ScopedJavaLocalRef<jobject>(env, ret); 235 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
236 } 236 }
237 237
238 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I 238 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I
239 = 0; 239 = 0;
240 static ScopedJavaLocalRef<jobject> 240 static base::android::ScopedJavaLocalRef<jobject>
241 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0, 241 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
242 jlong p1, 242 jlong p1,
243 JniIntWrapper p2, 243 JniIntWrapper p2,
244 jfloat p3, 244 jfloat p3,
245 jfloat p4, 245 jfloat p4,
246 jfloat p5, 246 jfloat p5,
247 jfloat p6, 247 jfloat p6,
248 JniIntWrapper p7, 248 JniIntWrapper p7,
249 jfloat p8, 249 jfloat p8,
250 jfloat p9, 250 jfloat p9,
251 JniIntWrapper p10, 251 JniIntWrapper p10,
252 JniIntWrapper p11) __attribute__ ((unused)); 252 JniIntWrapper p11) __attribute__ ((unused));
253 static ScopedJavaLocalRef<jobject> 253 static base::android::ScopedJavaLocalRef<jobject>
254 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0, 254 Java_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
255 jlong p1, 255 jlong p1,
256 JniIntWrapper p2, 256 JniIntWrapper p2,
257 jfloat p3, 257 jfloat p3,
258 jfloat p4, 258 jfloat p4,
259 jfloat p5, 259 jfloat p5,
260 jfloat p6, 260 jfloat p6,
261 JniIntWrapper p7, 261 JniIntWrapper p7,
262 jfloat p8, 262 jfloat p8,
263 jfloat p9, 263 jfloat p9,
264 JniIntWrapper p10, 264 JniIntWrapper p10,
265 JniIntWrapper p11) { 265 JniIntWrapper p11) {
266 CHECK_CLAZZ(env, MotionEvent_clazz(env), 266 CHECK_CLAZZ(env, MotionEvent_clazz(env),
267 MotionEvent_clazz(env), NULL); 267 MotionEvent_clazz(env), NULL);
268 jmethodID method_id = 268 jmethodID method_id =
269 base::android::MethodID::LazyGet< 269 base::android::MethodID::LazyGet<
270 base::android::MethodID::TYPE_STATIC>( 270 base::android::MethodID::TYPE_STATIC>(
271 env, MotionEvent_clazz(env), 271 env, MotionEvent_clazz(env),
272 "obtain", 272 "obtain",
273 "(JJIFFFFIFFII)Landroid/view/MotionEvent;", 273 "(JJIFFFFIFFII)Landroid/view/MotionEvent;",
274 &g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I); 274 &g_MotionEvent_obtainAVME_J_J_I_F_F_F_F_I_F_F_I_I);
275 275
276 jobject ret = 276 jobject ret =
277 env->CallStaticObjectMethod(MotionEvent_clazz(env), 277 env->CallStaticObjectMethod(MotionEvent_clazz(env),
278 method_id, p0, p1, as_jint(p2), p3, p4, p5, p6, as_jint(p7), p8, p9, 278 method_id, p0, p1, as_jint(p2), p3, p4, p5, p6, as_jint(p7), p8, p9,
279 as_jint(p10), as_jint(p11)); 279 as_jint(p10), as_jint(p11));
280 jni_generator::CheckException(env); 280 jni_generator::CheckException(env);
281 return ScopedJavaLocalRef<jobject>(env, ret); 281 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
282 } 282 }
283 283
284 static base::subtle::AtomicWord 284 static base::subtle::AtomicWord
285 g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I = 0; 285 g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I = 0;
286 static ScopedJavaLocalRef<jobject> 286 static 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, 287 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
288 jlong p1, 288 jlong p1,
289 JniIntWrapper p2, 289 JniIntWrapper p2,
290 JniIntWrapper p3, 290 JniIntWrapper p3,
291 jfloat p4, 291 jfloat p4,
292 jfloat p5, 292 jfloat p5,
293 jfloat p6, 293 jfloat p6,
294 jfloat p7, 294 jfloat p7,
295 JniIntWrapper p8, 295 JniIntWrapper p8,
296 jfloat p9, 296 jfloat p9,
297 jfloat p10, 297 jfloat p10,
298 JniIntWrapper p11, 298 JniIntWrapper p11,
299 JniIntWrapper p12) __attribute__ ((unused)); 299 JniIntWrapper p12) __attribute__ ((unused));
300 static ScopedJavaLocalRef<jobject> 300 static 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, 301 Java_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I(JNIEnv* env, jlong p0,
302 jlong p1, 302 jlong p1,
303 JniIntWrapper p2, 303 JniIntWrapper p2,
304 JniIntWrapper p3, 304 JniIntWrapper p3,
305 jfloat p4, 305 jfloat p4,
306 jfloat p5, 306 jfloat p5,
307 jfloat p6, 307 jfloat p6,
308 jfloat p7, 308 jfloat p7,
309 JniIntWrapper p8, 309 JniIntWrapper p8,
310 jfloat p9, 310 jfloat p9,
311 jfloat p10, 311 jfloat p10,
312 JniIntWrapper p11, 312 JniIntWrapper p11,
313 JniIntWrapper p12) { 313 JniIntWrapper p12) {
314 CHECK_CLAZZ(env, MotionEvent_clazz(env), 314 CHECK_CLAZZ(env, MotionEvent_clazz(env),
315 MotionEvent_clazz(env), NULL); 315 MotionEvent_clazz(env), NULL);
316 jmethodID method_id = 316 jmethodID method_id =
317 base::android::MethodID::LazyGet< 317 base::android::MethodID::LazyGet<
318 base::android::MethodID::TYPE_STATIC>( 318 base::android::MethodID::TYPE_STATIC>(
319 env, MotionEvent_clazz(env), 319 env, MotionEvent_clazz(env),
320 "obtain", 320 "obtain",
321 "(JJIIFFFFIFFII)Landroid/view/MotionEvent;", 321 "(JJIIFFFFIFFII)Landroid/view/MotionEvent;",
322 &g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I); 322 &g_MotionEvent_obtainAVME_J_J_I_I_F_F_F_F_I_F_F_I_I);
323 323
324 jobject ret = 324 jobject ret =
325 env->CallStaticObjectMethod(MotionEvent_clazz(env), 325 env->CallStaticObjectMethod(MotionEvent_clazz(env),
326 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, p6, p7, 326 method_id, p0, p1, as_jint(p2), as_jint(p3), p4, p5, p6, p7,
327 as_jint(p8), p9, p10, as_jint(p11), as_jint(p12)); 327 as_jint(p8), p9, p10, as_jint(p11), as_jint(p12));
328 jni_generator::CheckException(env); 328 jni_generator::CheckException(env);
329 return ScopedJavaLocalRef<jobject>(env, ret); 329 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
330 } 330 }
331 331
332 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0; 332 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_J_J_I_F_F_I = 0;
333 static ScopedJavaLocalRef<jobject> 333 static base::android::ScopedJavaLocalRef<jobject>
334 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0, 334 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
335 jlong p1, 335 jlong p1,
336 JniIntWrapper p2, 336 JniIntWrapper p2,
337 jfloat p3, 337 jfloat p3,
338 jfloat p4, 338 jfloat p4,
339 JniIntWrapper p5) __attribute__ ((unused)); 339 JniIntWrapper p5) __attribute__ ((unused));
340 static ScopedJavaLocalRef<jobject> 340 static base::android::ScopedJavaLocalRef<jobject>
341 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0, 341 Java_MotionEvent_obtainAVME_J_J_I_F_F_I(JNIEnv* env, jlong p0,
342 jlong p1, 342 jlong p1,
343 JniIntWrapper p2, 343 JniIntWrapper p2,
344 jfloat p3, 344 jfloat p3,
345 jfloat p4, 345 jfloat p4,
346 JniIntWrapper p5) { 346 JniIntWrapper p5) {
347 CHECK_CLAZZ(env, MotionEvent_clazz(env), 347 CHECK_CLAZZ(env, MotionEvent_clazz(env),
348 MotionEvent_clazz(env), NULL); 348 MotionEvent_clazz(env), NULL);
349 jmethodID method_id = 349 jmethodID method_id =
350 base::android::MethodID::LazyGet< 350 base::android::MethodID::LazyGet<
351 base::android::MethodID::TYPE_STATIC>( 351 base::android::MethodID::TYPE_STATIC>(
352 env, MotionEvent_clazz(env), 352 env, MotionEvent_clazz(env),
353 "obtain", 353 "obtain",
354 "(JJIFFI)Landroid/view/MotionEvent;", 354 "(JJIFFI)Landroid/view/MotionEvent;",
355 &g_MotionEvent_obtainAVME_J_J_I_F_F_I); 355 &g_MotionEvent_obtainAVME_J_J_I_F_F_I);
356 356
357 jobject ret = 357 jobject ret =
358 env->CallStaticObjectMethod(MotionEvent_clazz(env), 358 env->CallStaticObjectMethod(MotionEvent_clazz(env),
359 method_id, p0, p1, as_jint(p2), p3, p4, as_jint(p5)); 359 method_id, p0, p1, as_jint(p2), p3, p4, as_jint(p5));
360 jni_generator::CheckException(env); 360 jni_generator::CheckException(env);
361 return ScopedJavaLocalRef<jobject>(env, ret); 361 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
362 } 362 }
363 363
364 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0; 364 static base::subtle::AtomicWord g_MotionEvent_obtainAVME_AVME = 0;
365 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, 365 static base::android::ScopedJavaLocalRef<jobject>
366 jobject p0) __attribute__ ((unused)); 366 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) __attribute__
367 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, 367 ((unused));
368 jobject p0) { 368 static base::android::ScopedJavaLocalRef<jobject>
369 Java_MotionEvent_obtainAVME_AVME(JNIEnv* env, jobject p0) {
369 CHECK_CLAZZ(env, MotionEvent_clazz(env), 370 CHECK_CLAZZ(env, MotionEvent_clazz(env),
370 MotionEvent_clazz(env), NULL); 371 MotionEvent_clazz(env), NULL);
371 jmethodID method_id = 372 jmethodID method_id =
372 base::android::MethodID::LazyGet< 373 base::android::MethodID::LazyGet<
373 base::android::MethodID::TYPE_STATIC>( 374 base::android::MethodID::TYPE_STATIC>(
374 env, MotionEvent_clazz(env), 375 env, MotionEvent_clazz(env),
375 "obtain", 376 "obtain",
376 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;", 377 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
377 &g_MotionEvent_obtainAVME_AVME); 378 &g_MotionEvent_obtainAVME_AVME);
378 379
379 jobject ret = 380 jobject ret =
380 env->CallStaticObjectMethod(MotionEvent_clazz(env), 381 env->CallStaticObjectMethod(MotionEvent_clazz(env),
381 method_id, p0); 382 method_id, p0);
382 jni_generator::CheckException(env); 383 jni_generator::CheckException(env);
383 return ScopedJavaLocalRef<jobject>(env, ret); 384 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
384 } 385 }
385 386
386 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0; 387 static base::subtle::AtomicWord g_MotionEvent_obtainNoHistory = 0;
387 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env, 388 static base::android::ScopedJavaLocalRef<jobject>
388 jobject p0) __attribute__ ((unused)); 389 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) __attribute__
389 static ScopedJavaLocalRef<jobject> Java_MotionEvent_obtainNoHistory(JNIEnv* env, 390 ((unused));
390 jobject p0) { 391 static base::android::ScopedJavaLocalRef<jobject>
392 Java_MotionEvent_obtainNoHistory(JNIEnv* env, jobject p0) {
391 CHECK_CLAZZ(env, MotionEvent_clazz(env), 393 CHECK_CLAZZ(env, MotionEvent_clazz(env),
392 MotionEvent_clazz(env), NULL); 394 MotionEvent_clazz(env), NULL);
393 jmethodID method_id = 395 jmethodID method_id =
394 base::android::MethodID::LazyGet< 396 base::android::MethodID::LazyGet<
395 base::android::MethodID::TYPE_STATIC>( 397 base::android::MethodID::TYPE_STATIC>(
396 env, MotionEvent_clazz(env), 398 env, MotionEvent_clazz(env),
397 "obtainNoHistory", 399 "obtainNoHistory",
398 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;", 400 "(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;",
399 &g_MotionEvent_obtainNoHistory); 401 &g_MotionEvent_obtainNoHistory);
400 402
401 jobject ret = 403 jobject ret =
402 env->CallStaticObjectMethod(MotionEvent_clazz(env), 404 env->CallStaticObjectMethod(MotionEvent_clazz(env),
403 method_id, p0); 405 method_id, p0);
404 jni_generator::CheckException(env); 406 jni_generator::CheckException(env);
405 return ScopedJavaLocalRef<jobject>(env, ret); 407 return base::android::ScopedJavaLocalRef<jobject>(env, ret);
406 } 408 }
407 409
408 static base::subtle::AtomicWord g_MotionEvent_recycle = 0; 410 static base::subtle::AtomicWord g_MotionEvent_recycle = 0;
409 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) __attribute__ 411 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) __attribute__
410 ((unused)); 412 ((unused));
411 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) { 413 static void Java_MotionEvent_recycle(JNIEnv* env, jobject obj) {
412 CHECK_CLAZZ(env, obj, 414 CHECK_CLAZZ(env, obj,
413 MotionEvent_clazz(env)); 415 MotionEvent_clazz(env));
414 jmethodID method_id = 416 jmethodID method_id =
415 base::android::MethodID::LazyGet< 417 base::android::MethodID::LazyGet<
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 "(J[Landroid/view/MotionEvent$PointerCoords;I)V", 2015 "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
2014 &g_MotionEvent_addBatchV_J_LAVMEPC_I); 2016 &g_MotionEvent_addBatchV_J_LAVMEPC_I);
2015 2017
2016 env->CallVoidMethod(obj, 2018 env->CallVoidMethod(obj,
2017 method_id, p0, p1, as_jint(p2)); 2019 method_id, p0, p1, as_jint(p2));
2018 jni_generator::CheckException(env); 2020 jni_generator::CheckException(env);
2019 2021
2020 } 2022 }
2021 2023
2022 static base::subtle::AtomicWord g_MotionEvent_toString = 0; 2024 static base::subtle::AtomicWord g_MotionEvent_toString = 0;
2023 static ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env, 2025 static base::android::ScopedJavaLocalRef<jstring>
2024 jobject obj) __attribute__ ((unused)); 2026 Java_MotionEvent_toString(JNIEnv* env, jobject obj) __attribute__
2025 static ScopedJavaLocalRef<jstring> Java_MotionEvent_toString(JNIEnv* env, 2027 ((unused));
2026 jobject obj) { 2028 static base::android::ScopedJavaLocalRef<jstring>
2029 Java_MotionEvent_toString(JNIEnv* env, jobject obj) {
2027 CHECK_CLAZZ(env, obj, 2030 CHECK_CLAZZ(env, obj,
2028 MotionEvent_clazz(env), NULL); 2031 MotionEvent_clazz(env), NULL);
2029 jmethodID method_id = 2032 jmethodID method_id =
2030 base::android::MethodID::LazyGet< 2033 base::android::MethodID::LazyGet<
2031 base::android::MethodID::TYPE_INSTANCE>( 2034 base::android::MethodID::TYPE_INSTANCE>(
2032 env, MotionEvent_clazz(env), 2035 env, MotionEvent_clazz(env),
2033 "toString", 2036 "toString",
2034 "()Ljava/lang/String;", 2037 "()Ljava/lang/String;",
2035 &g_MotionEvent_toString); 2038 &g_MotionEvent_toString);
2036 2039
2037 jstring ret = 2040 jstring ret =
2038 static_cast<jstring>(env->CallObjectMethod(obj, 2041 static_cast<jstring>(env->CallObjectMethod(obj,
2039 method_id)); 2042 method_id));
2040 jni_generator::CheckException(env); 2043 jni_generator::CheckException(env);
2041 return ScopedJavaLocalRef<jstring>(env, ret); 2044 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2042 } 2045 }
2043 2046
2044 static base::subtle::AtomicWord g_MotionEvent_actionToString = 0; 2047 static base::subtle::AtomicWord g_MotionEvent_actionToString = 0;
2045 static ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env, 2048 static base::android::ScopedJavaLocalRef<jstring>
2046 JniIntWrapper p0) __attribute__ ((unused)); 2049 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2047 static ScopedJavaLocalRef<jstring> Java_MotionEvent_actionToString(JNIEnv* env, 2050 ((unused));
2048 JniIntWrapper p0) { 2051 static base::android::ScopedJavaLocalRef<jstring>
2052 Java_MotionEvent_actionToString(JNIEnv* env, JniIntWrapper p0) {
2049 CHECK_CLAZZ(env, MotionEvent_clazz(env), 2053 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2050 MotionEvent_clazz(env), NULL); 2054 MotionEvent_clazz(env), NULL);
2051 jmethodID method_id = 2055 jmethodID method_id =
2052 base::android::MethodID::LazyGet< 2056 base::android::MethodID::LazyGet<
2053 base::android::MethodID::TYPE_STATIC>( 2057 base::android::MethodID::TYPE_STATIC>(
2054 env, MotionEvent_clazz(env), 2058 env, MotionEvent_clazz(env),
2055 "actionToString", 2059 "actionToString",
2056 "(I)Ljava/lang/String;", 2060 "(I)Ljava/lang/String;",
2057 &g_MotionEvent_actionToString); 2061 &g_MotionEvent_actionToString);
2058 2062
2059 jstring ret = 2063 jstring ret =
2060 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env), 2064 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2061 method_id, as_jint(p0))); 2065 method_id, as_jint(p0)));
2062 jni_generator::CheckException(env); 2066 jni_generator::CheckException(env);
2063 return ScopedJavaLocalRef<jstring>(env, ret); 2067 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2064 } 2068 }
2065 2069
2066 static base::subtle::AtomicWord g_MotionEvent_axisToString = 0; 2070 static base::subtle::AtomicWord g_MotionEvent_axisToString = 0;
2067 static ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env, 2071 static base::android::ScopedJavaLocalRef<jstring>
2068 JniIntWrapper p0) __attribute__ ((unused)); 2072 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) __attribute__
2069 static ScopedJavaLocalRef<jstring> Java_MotionEvent_axisToString(JNIEnv* env, 2073 ((unused));
2070 JniIntWrapper p0) { 2074 static base::android::ScopedJavaLocalRef<jstring>
2075 Java_MotionEvent_axisToString(JNIEnv* env, JniIntWrapper p0) {
2071 CHECK_CLAZZ(env, MotionEvent_clazz(env), 2076 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2072 MotionEvent_clazz(env), NULL); 2077 MotionEvent_clazz(env), NULL);
2073 jmethodID method_id = 2078 jmethodID method_id =
2074 base::android::MethodID::LazyGet< 2079 base::android::MethodID::LazyGet<
2075 base::android::MethodID::TYPE_STATIC>( 2080 base::android::MethodID::TYPE_STATIC>(
2076 env, MotionEvent_clazz(env), 2081 env, MotionEvent_clazz(env),
2077 "axisToString", 2082 "axisToString",
2078 "(I)Ljava/lang/String;", 2083 "(I)Ljava/lang/String;",
2079 &g_MotionEvent_axisToString); 2084 &g_MotionEvent_axisToString);
2080 2085
2081 jstring ret = 2086 jstring ret =
2082 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env), 2087 static_cast<jstring>(env->CallStaticObjectMethod(MotionEvent_clazz(env),
2083 method_id, as_jint(p0))); 2088 method_id, as_jint(p0)));
2084 jni_generator::CheckException(env); 2089 jni_generator::CheckException(env);
2085 return ScopedJavaLocalRef<jstring>(env, ret); 2090 return base::android::ScopedJavaLocalRef<jstring>(env, ret);
2086 } 2091 }
2087 2092
2088 static base::subtle::AtomicWord g_MotionEvent_axisFromString = 0; 2093 static base::subtle::AtomicWord g_MotionEvent_axisFromString = 0;
2089 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) 2094 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0)
2090 __attribute__ ((unused)); 2095 __attribute__ ((unused));
2091 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) { 2096 static jint Java_MotionEvent_axisFromString(JNIEnv* env, jstring p0) {
2092 CHECK_CLAZZ(env, MotionEvent_clazz(env), 2097 CHECK_CLAZZ(env, MotionEvent_clazz(env),
2093 MotionEvent_clazz(env), 0); 2098 MotionEvent_clazz(env), 0);
2094 jmethodID method_id = 2099 jmethodID method_id =
2095 base::android::MethodID::LazyGet< 2100 base::android::MethodID::LazyGet<
(...skipping 29 matching lines...) Expand all
2125 method_id, p0, as_jint(p1)); 2130 method_id, p0, as_jint(p1));
2126 jni_generator::CheckException(env); 2131 jni_generator::CheckException(env);
2127 2132
2128 } 2133 }
2129 2134
2130 // Step 3: RegisterNatives. 2135 // Step 3: RegisterNatives.
2131 2136
2132 } // namespace JNI_MotionEvent 2137 } // namespace JNI_MotionEvent
2133 2138
2134 #endif // android_view_MotionEvent_JNI 2139 #endif // android_view_MotionEvent_JNI
OLDNEW
« no previous file with comments | « base/android/jni_generator/testCalledByNatives.golden ('k') | base/android/jni_generator/testFromJavaP.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698