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

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

Issue 2361353002: Link stack frames of JNI stubs to JNI callbacks. (Closed)
Patch Set: git cl format Created 4 years, 1 month 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 base::android::MethodID::LazyGet< 123 base::android::MethodID::LazyGet<
124 base::android::MethodID::TYPE_INSTANCE>( 124 base::android::MethodID::TYPE_INSTANCE>(
125 env, MotionEvent_clazz(env), 125 env, MotionEvent_clazz(env),
126 "finalize", 126 "finalize",
127 "()V", 127 "()V",
128 &g_MotionEvent_finalize); 128 &g_MotionEvent_finalize);
129 129
130 env->CallVoidMethod(obj.obj(), 130 env->CallVoidMethod(obj.obj(),
131 method_id); 131 method_id);
132 jni_generator::CheckException(env); 132 jni_generator::CheckException(env);
133
134 } 133 }
135 134
136 static base::subtle::AtomicWord 135 static base::subtle::AtomicWord
137 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;
138 static base::android::ScopedJavaLocalRef<jobject> 137 static base::android::ScopedJavaLocalRef<jobject>
139 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*
140 env, jlong p0, 139 env, jlong p0,
141 jlong p1, 140 jlong p1,
142 JniIntWrapper p2, 141 JniIntWrapper p2,
143 JniIntWrapper p3, 142 JniIntWrapper p3,
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 base::android::MethodID::LazyGet< 421 base::android::MethodID::LazyGet<
423 base::android::MethodID::TYPE_INSTANCE>( 422 base::android::MethodID::TYPE_INSTANCE>(
424 env, MotionEvent_clazz(env), 423 env, MotionEvent_clazz(env),
425 "recycle", 424 "recycle",
426 "()V", 425 "()V",
427 &g_MotionEvent_recycle); 426 &g_MotionEvent_recycle);
428 427
429 env->CallVoidMethod(obj.obj(), 428 env->CallVoidMethod(obj.obj(),
430 method_id); 429 method_id);
431 jni_generator::CheckException(env); 430 jni_generator::CheckException(env);
432
433 } 431 }
434 432
435 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0; 433 static base::subtle::AtomicWord g_MotionEvent_getDeviceId = 0;
436 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const 434 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const
437 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); 435 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
438 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const 436 static jint Java_MotionEvent_getDeviceId(JNIEnv* env, const
439 base::android::JavaRefOrBare<jobject>& obj) { 437 base::android::JavaRefOrBare<jobject>& obj) {
440 CHECK_CLAZZ(env, obj.obj(), 438 CHECK_CLAZZ(env, obj.obj(),
441 MotionEvent_clazz(env), 0); 439 MotionEvent_clazz(env), 0);
442 jmethodID method_id = 440 jmethodID method_id =
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 base::android::MethodID::LazyGet< 486 base::android::MethodID::LazyGet<
489 base::android::MethodID::TYPE_INSTANCE>( 487 base::android::MethodID::TYPE_INSTANCE>(
490 env, MotionEvent_clazz(env), 488 env, MotionEvent_clazz(env),
491 "setSource", 489 "setSource",
492 "(I)V", 490 "(I)V",
493 &g_MotionEvent_setSource); 491 &g_MotionEvent_setSource);
494 492
495 env->CallVoidMethod(obj.obj(), 493 env->CallVoidMethod(obj.obj(),
496 method_id, as_jint(p0)); 494 method_id, as_jint(p0));
497 jni_generator::CheckException(env); 495 jni_generator::CheckException(env);
498
499 } 496 }
500 497
501 static base::subtle::AtomicWord g_MotionEvent_getAction = 0; 498 static base::subtle::AtomicWord g_MotionEvent_getAction = 0;
502 static jint Java_MotionEvent_getAction(JNIEnv* env, const 499 static jint Java_MotionEvent_getAction(JNIEnv* env, const
503 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); 500 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
504 static jint Java_MotionEvent_getAction(JNIEnv* env, const 501 static jint Java_MotionEvent_getAction(JNIEnv* env, const
505 base::android::JavaRefOrBare<jobject>& obj) { 502 base::android::JavaRefOrBare<jobject>& obj) {
506 CHECK_CLAZZ(env, obj.obj(), 503 CHECK_CLAZZ(env, obj.obj(),
507 MotionEvent_clazz(env), 0); 504 MotionEvent_clazz(env), 0);
508 jmethodID method_id = 505 jmethodID method_id =
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 base::android::MethodID::LazyGet< 1183 base::android::MethodID::LazyGet<
1187 base::android::MethodID::TYPE_INSTANCE>( 1184 base::android::MethodID::TYPE_INSTANCE>(
1188 env, MotionEvent_clazz(env), 1185 env, MotionEvent_clazz(env),
1189 "getPointerCoords", 1186 "getPointerCoords",
1190 "(ILandroid/view/MotionEvent$PointerCoords;)V", 1187 "(ILandroid/view/MotionEvent$PointerCoords;)V",
1191 &g_MotionEvent_getPointerCoords); 1188 &g_MotionEvent_getPointerCoords);
1192 1189
1193 env->CallVoidMethod(obj.obj(), 1190 env->CallVoidMethod(obj.obj(),
1194 method_id, as_jint(p0), p1.obj()); 1191 method_id, as_jint(p0), p1.obj());
1195 jni_generator::CheckException(env); 1192 jni_generator::CheckException(env);
1196
1197 } 1193 }
1198 1194
1199 static base::subtle::AtomicWord g_MotionEvent_getPointerProperties = 0; 1195 static base::subtle::AtomicWord g_MotionEvent_getPointerProperties = 0;
1200 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const 1196 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const
1201 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0, 1197 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0,
1202 const base::android::JavaRefOrBare<jobject>& p1) __attribute__ ((unused)); 1198 const base::android::JavaRefOrBare<jobject>& p1) __attribute__ ((unused));
1203 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const 1199 static void Java_MotionEvent_getPointerProperties(JNIEnv* env, const
1204 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0, 1200 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0,
1205 const base::android::JavaRefOrBare<jobject>& p1) { 1201 const base::android::JavaRefOrBare<jobject>& p1) {
1206 CHECK_CLAZZ(env, obj.obj(), 1202 CHECK_CLAZZ(env, obj.obj(),
1207 MotionEvent_clazz(env)); 1203 MotionEvent_clazz(env));
1208 jmethodID method_id = 1204 jmethodID method_id =
1209 base::android::MethodID::LazyGet< 1205 base::android::MethodID::LazyGet<
1210 base::android::MethodID::TYPE_INSTANCE>( 1206 base::android::MethodID::TYPE_INSTANCE>(
1211 env, MotionEvent_clazz(env), 1207 env, MotionEvent_clazz(env),
1212 "getPointerProperties", 1208 "getPointerProperties",
1213 "(ILandroid/view/MotionEvent$PointerProperties;)V", 1209 "(ILandroid/view/MotionEvent$PointerProperties;)V",
1214 &g_MotionEvent_getPointerProperties); 1210 &g_MotionEvent_getPointerProperties);
1215 1211
1216 env->CallVoidMethod(obj.obj(), 1212 env->CallVoidMethod(obj.obj(),
1217 method_id, as_jint(p0), p1.obj()); 1213 method_id, as_jint(p0), p1.obj());
1218 jni_generator::CheckException(env); 1214 jni_generator::CheckException(env);
1219
1220 } 1215 }
1221 1216
1222 static base::subtle::AtomicWord g_MotionEvent_getMetaState = 0; 1217 static base::subtle::AtomicWord g_MotionEvent_getMetaState = 0;
1223 static jint Java_MotionEvent_getMetaState(JNIEnv* env, const 1218 static jint Java_MotionEvent_getMetaState(JNIEnv* env, const
1224 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); 1219 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
1225 static jint Java_MotionEvent_getMetaState(JNIEnv* env, const 1220 static jint Java_MotionEvent_getMetaState(JNIEnv* env, const
1226 base::android::JavaRefOrBare<jobject>& obj) { 1221 base::android::JavaRefOrBare<jobject>& obj) {
1227 CHECK_CLAZZ(env, obj.obj(), 1222 CHECK_CLAZZ(env, obj.obj(),
1228 MotionEvent_clazz(env), 0); 1223 MotionEvent_clazz(env), 0);
1229 jmethodID method_id = 1224 jmethodID method_id =
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 base::android::MethodID::LazyGet< 1879 base::android::MethodID::LazyGet<
1885 base::android::MethodID::TYPE_INSTANCE>( 1880 base::android::MethodID::TYPE_INSTANCE>(
1886 env, MotionEvent_clazz(env), 1881 env, MotionEvent_clazz(env),
1887 "getHistoricalPointerCoords", 1882 "getHistoricalPointerCoords",
1888 "(IILandroid/view/MotionEvent$PointerCoords;)V", 1883 "(IILandroid/view/MotionEvent$PointerCoords;)V",
1889 &g_MotionEvent_getHistoricalPointerCoords); 1884 &g_MotionEvent_getHistoricalPointerCoords);
1890 1885
1891 env->CallVoidMethod(obj.obj(), 1886 env->CallVoidMethod(obj.obj(),
1892 method_id, as_jint(p0), as_jint(p1), p2.obj()); 1887 method_id, as_jint(p0), as_jint(p1), p2.obj());
1893 jni_generator::CheckException(env); 1888 jni_generator::CheckException(env);
1894
1895 } 1889 }
1896 1890
1897 static base::subtle::AtomicWord g_MotionEvent_getEdgeFlags = 0; 1891 static base::subtle::AtomicWord g_MotionEvent_getEdgeFlags = 0;
1898 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const 1892 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const
1899 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); 1893 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
1900 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const 1894 static jint Java_MotionEvent_getEdgeFlags(JNIEnv* env, const
1901 base::android::JavaRefOrBare<jobject>& obj) { 1895 base::android::JavaRefOrBare<jobject>& obj) {
1902 CHECK_CLAZZ(env, obj.obj(), 1896 CHECK_CLAZZ(env, obj.obj(),
1903 MotionEvent_clazz(env), 0); 1897 MotionEvent_clazz(env), 0);
1904 jmethodID method_id = 1898 jmethodID method_id =
(...skipping 23 matching lines...) Expand all
1928 base::android::MethodID::LazyGet< 1922 base::android::MethodID::LazyGet<
1929 base::android::MethodID::TYPE_INSTANCE>( 1923 base::android::MethodID::TYPE_INSTANCE>(
1930 env, MotionEvent_clazz(env), 1924 env, MotionEvent_clazz(env),
1931 "setEdgeFlags", 1925 "setEdgeFlags",
1932 "(I)V", 1926 "(I)V",
1933 &g_MotionEvent_setEdgeFlags); 1927 &g_MotionEvent_setEdgeFlags);
1934 1928
1935 env->CallVoidMethod(obj.obj(), 1929 env->CallVoidMethod(obj.obj(),
1936 method_id, as_jint(p0)); 1930 method_id, as_jint(p0));
1937 jni_generator::CheckException(env); 1931 jni_generator::CheckException(env);
1938
1939 } 1932 }
1940 1933
1941 static base::subtle::AtomicWord g_MotionEvent_setAction = 0; 1934 static base::subtle::AtomicWord g_MotionEvent_setAction = 0;
1942 static void Java_MotionEvent_setAction(JNIEnv* env, const 1935 static void Java_MotionEvent_setAction(JNIEnv* env, const
1943 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) __attribute__ 1936 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) __attribute__
1944 ((unused)); 1937 ((unused));
1945 static void Java_MotionEvent_setAction(JNIEnv* env, const 1938 static void Java_MotionEvent_setAction(JNIEnv* env, const
1946 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) { 1939 base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper p0) {
1947 CHECK_CLAZZ(env, obj.obj(), 1940 CHECK_CLAZZ(env, obj.obj(),
1948 MotionEvent_clazz(env)); 1941 MotionEvent_clazz(env));
1949 jmethodID method_id = 1942 jmethodID method_id =
1950 base::android::MethodID::LazyGet< 1943 base::android::MethodID::LazyGet<
1951 base::android::MethodID::TYPE_INSTANCE>( 1944 base::android::MethodID::TYPE_INSTANCE>(
1952 env, MotionEvent_clazz(env), 1945 env, MotionEvent_clazz(env),
1953 "setAction", 1946 "setAction",
1954 "(I)V", 1947 "(I)V",
1955 &g_MotionEvent_setAction); 1948 &g_MotionEvent_setAction);
1956 1949
1957 env->CallVoidMethod(obj.obj(), 1950 env->CallVoidMethod(obj.obj(),
1958 method_id, as_jint(p0)); 1951 method_id, as_jint(p0));
1959 jni_generator::CheckException(env); 1952 jni_generator::CheckException(env);
1960
1961 } 1953 }
1962 1954
1963 static base::subtle::AtomicWord g_MotionEvent_offsetLocation = 0; 1955 static base::subtle::AtomicWord g_MotionEvent_offsetLocation = 0;
1964 static void Java_MotionEvent_offsetLocation(JNIEnv* env, const 1956 static void Java_MotionEvent_offsetLocation(JNIEnv* env, const
1965 base::android::JavaRefOrBare<jobject>& obj, jfloat p0, 1957 base::android::JavaRefOrBare<jobject>& obj, jfloat p0,
1966 jfloat p1) __attribute__ ((unused)); 1958 jfloat p1) __attribute__ ((unused));
1967 static void Java_MotionEvent_offsetLocation(JNIEnv* env, const 1959 static void Java_MotionEvent_offsetLocation(JNIEnv* env, const
1968 base::android::JavaRefOrBare<jobject>& obj, jfloat p0, 1960 base::android::JavaRefOrBare<jobject>& obj, jfloat p0,
1969 jfloat p1) { 1961 jfloat p1) {
1970 CHECK_CLAZZ(env, obj.obj(), 1962 CHECK_CLAZZ(env, obj.obj(),
1971 MotionEvent_clazz(env)); 1963 MotionEvent_clazz(env));
1972 jmethodID method_id = 1964 jmethodID method_id =
1973 base::android::MethodID::LazyGet< 1965 base::android::MethodID::LazyGet<
1974 base::android::MethodID::TYPE_INSTANCE>( 1966 base::android::MethodID::TYPE_INSTANCE>(
1975 env, MotionEvent_clazz(env), 1967 env, MotionEvent_clazz(env),
1976 "offsetLocation", 1968 "offsetLocation",
1977 "(FF)V", 1969 "(FF)V",
1978 &g_MotionEvent_offsetLocation); 1970 &g_MotionEvent_offsetLocation);
1979 1971
1980 env->CallVoidMethod(obj.obj(), 1972 env->CallVoidMethod(obj.obj(),
1981 method_id, p0, p1); 1973 method_id, p0, p1);
1982 jni_generator::CheckException(env); 1974 jni_generator::CheckException(env);
1983
1984 } 1975 }
1985 1976
1986 static base::subtle::AtomicWord g_MotionEvent_setLocation = 0; 1977 static base::subtle::AtomicWord g_MotionEvent_setLocation = 0;
1987 static void Java_MotionEvent_setLocation(JNIEnv* env, const 1978 static void Java_MotionEvent_setLocation(JNIEnv* env, const
1988 base::android::JavaRefOrBare<jobject>& obj, jfloat p0, 1979 base::android::JavaRefOrBare<jobject>& obj, jfloat p0,
1989 jfloat p1) __attribute__ ((unused)); 1980 jfloat p1) __attribute__ ((unused));
1990 static void Java_MotionEvent_setLocation(JNIEnv* env, const 1981 static void Java_MotionEvent_setLocation(JNIEnv* env, const
1991 base::android::JavaRefOrBare<jobject>& obj, jfloat p0, 1982 base::android::JavaRefOrBare<jobject>& obj, jfloat p0,
1992 jfloat p1) { 1983 jfloat p1) {
1993 CHECK_CLAZZ(env, obj.obj(), 1984 CHECK_CLAZZ(env, obj.obj(),
1994 MotionEvent_clazz(env)); 1985 MotionEvent_clazz(env));
1995 jmethodID method_id = 1986 jmethodID method_id =
1996 base::android::MethodID::LazyGet< 1987 base::android::MethodID::LazyGet<
1997 base::android::MethodID::TYPE_INSTANCE>( 1988 base::android::MethodID::TYPE_INSTANCE>(
1998 env, MotionEvent_clazz(env), 1989 env, MotionEvent_clazz(env),
1999 "setLocation", 1990 "setLocation",
2000 "(FF)V", 1991 "(FF)V",
2001 &g_MotionEvent_setLocation); 1992 &g_MotionEvent_setLocation);
2002 1993
2003 env->CallVoidMethod(obj.obj(), 1994 env->CallVoidMethod(obj.obj(),
2004 method_id, p0, p1); 1995 method_id, p0, p1);
2005 jni_generator::CheckException(env); 1996 jni_generator::CheckException(env);
2006
2007 } 1997 }
2008 1998
2009 static base::subtle::AtomicWord g_MotionEvent_transform = 0; 1999 static base::subtle::AtomicWord g_MotionEvent_transform = 0;
2010 static void Java_MotionEvent_transform(JNIEnv* env, const 2000 static void Java_MotionEvent_transform(JNIEnv* env, const
2011 base::android::JavaRefOrBare<jobject>& obj, const 2001 base::android::JavaRefOrBare<jobject>& obj, const
2012 base::android::JavaRefOrBare<jobject>& p0) __attribute__ ((unused)); 2002 base::android::JavaRefOrBare<jobject>& p0) __attribute__ ((unused));
2013 static void Java_MotionEvent_transform(JNIEnv* env, const 2003 static void Java_MotionEvent_transform(JNIEnv* env, const
2014 base::android::JavaRefOrBare<jobject>& obj, const 2004 base::android::JavaRefOrBare<jobject>& obj, const
2015 base::android::JavaRefOrBare<jobject>& p0) { 2005 base::android::JavaRefOrBare<jobject>& p0) {
2016 CHECK_CLAZZ(env, obj.obj(), 2006 CHECK_CLAZZ(env, obj.obj(),
2017 MotionEvent_clazz(env)); 2007 MotionEvent_clazz(env));
2018 jmethodID method_id = 2008 jmethodID method_id =
2019 base::android::MethodID::LazyGet< 2009 base::android::MethodID::LazyGet<
2020 base::android::MethodID::TYPE_INSTANCE>( 2010 base::android::MethodID::TYPE_INSTANCE>(
2021 env, MotionEvent_clazz(env), 2011 env, MotionEvent_clazz(env),
2022 "transform", 2012 "transform",
2023 "(Landroid/graphics/Matrix;)V", 2013 "(Landroid/graphics/Matrix;)V",
2024 &g_MotionEvent_transform); 2014 &g_MotionEvent_transform);
2025 2015
2026 env->CallVoidMethod(obj.obj(), 2016 env->CallVoidMethod(obj.obj(),
2027 method_id, p0.obj()); 2017 method_id, p0.obj());
2028 jni_generator::CheckException(env); 2018 jni_generator::CheckException(env);
2029
2030 } 2019 }
2031 2020
2032 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_F_F_F_F_I = 0; 2021 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_F_F_F_F_I = 0;
2033 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, const 2022 static void Java_MotionEvent_addBatchV_J_F_F_F_F_I(JNIEnv* env, const
2034 base::android::JavaRefOrBare<jobject>& obj, jlong p0, 2023 base::android::JavaRefOrBare<jobject>& obj, jlong p0,
2035 jfloat p1, 2024 jfloat p1,
2036 jfloat p2, 2025 jfloat p2,
2037 jfloat p3, 2026 jfloat p3,
2038 jfloat p4, 2027 jfloat p4,
2039 JniIntWrapper p5) __attribute__ ((unused)); 2028 JniIntWrapper p5) __attribute__ ((unused));
(...skipping 10 matching lines...) Expand all
2050 base::android::MethodID::LazyGet< 2039 base::android::MethodID::LazyGet<
2051 base::android::MethodID::TYPE_INSTANCE>( 2040 base::android::MethodID::TYPE_INSTANCE>(
2052 env, MotionEvent_clazz(env), 2041 env, MotionEvent_clazz(env),
2053 "addBatch", 2042 "addBatch",
2054 "(JFFFFI)V", 2043 "(JFFFFI)V",
2055 &g_MotionEvent_addBatchV_J_F_F_F_F_I); 2044 &g_MotionEvent_addBatchV_J_F_F_F_F_I);
2056 2045
2057 env->CallVoidMethod(obj.obj(), 2046 env->CallVoidMethod(obj.obj(),
2058 method_id, p0, p1, p2, p3, p4, as_jint(p5)); 2047 method_id, p0, p1, p2, p3, p4, as_jint(p5));
2059 jni_generator::CheckException(env); 2048 jni_generator::CheckException(env);
2060
2061 } 2049 }
2062 2050
2063 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_LAVMEPC_I = 0; 2051 static base::subtle::AtomicWord g_MotionEvent_addBatchV_J_LAVMEPC_I = 0;
2064 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const 2052 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const
2065 base::android::JavaRefOrBare<jobject>& obj, jlong p0, 2053 base::android::JavaRefOrBare<jobject>& obj, jlong p0,
2066 const base::android::JavaRefOrBare<jobjectArray>& p1, 2054 const base::android::JavaRefOrBare<jobjectArray>& p1,
2067 JniIntWrapper p2) __attribute__ ((unused)); 2055 JniIntWrapper p2) __attribute__ ((unused));
2068 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const 2056 static void Java_MotionEvent_addBatchV_J_LAVMEPC_I(JNIEnv* env, const
2069 base::android::JavaRefOrBare<jobject>& obj, jlong p0, 2057 base::android::JavaRefOrBare<jobject>& obj, jlong p0,
2070 const base::android::JavaRefOrBare<jobjectArray>& p1, 2058 const base::android::JavaRefOrBare<jobjectArray>& p1,
2071 JniIntWrapper p2) { 2059 JniIntWrapper p2) {
2072 CHECK_CLAZZ(env, obj.obj(), 2060 CHECK_CLAZZ(env, obj.obj(),
2073 MotionEvent_clazz(env)); 2061 MotionEvent_clazz(env));
2074 jmethodID method_id = 2062 jmethodID method_id =
2075 base::android::MethodID::LazyGet< 2063 base::android::MethodID::LazyGet<
2076 base::android::MethodID::TYPE_INSTANCE>( 2064 base::android::MethodID::TYPE_INSTANCE>(
2077 env, MotionEvent_clazz(env), 2065 env, MotionEvent_clazz(env),
2078 "addBatch", 2066 "addBatch",
2079 "(J[Landroid/view/MotionEvent$PointerCoords;I)V", 2067 "(J[Landroid/view/MotionEvent$PointerCoords;I)V",
2080 &g_MotionEvent_addBatchV_J_LAVMEPC_I); 2068 &g_MotionEvent_addBatchV_J_LAVMEPC_I);
2081 2069
2082 env->CallVoidMethod(obj.obj(), 2070 env->CallVoidMethod(obj.obj(),
2083 method_id, p0, p1.obj(), as_jint(p2)); 2071 method_id, p0, p1.obj(), as_jint(p2));
2084 jni_generator::CheckException(env); 2072 jni_generator::CheckException(env);
2085
2086 } 2073 }
2087 2074
2088 static base::subtle::AtomicWord g_MotionEvent_toString = 0; 2075 static base::subtle::AtomicWord g_MotionEvent_toString = 0;
2089 static base::android::ScopedJavaLocalRef<jstring> 2076 static base::android::ScopedJavaLocalRef<jstring>
2090 Java_MotionEvent_toString(JNIEnv* env, const 2077 Java_MotionEvent_toString(JNIEnv* env, const
2091 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused)); 2078 base::android::JavaRefOrBare<jobject>& obj) __attribute__ ((unused));
2092 static base::android::ScopedJavaLocalRef<jstring> 2079 static base::android::ScopedJavaLocalRef<jstring>
2093 Java_MotionEvent_toString(JNIEnv* env, const 2080 Java_MotionEvent_toString(JNIEnv* env, const
2094 base::android::JavaRefOrBare<jobject>& obj) { 2081 base::android::JavaRefOrBare<jobject>& obj) {
2095 CHECK_CLAZZ(env, obj.obj(), 2082 CHECK_CLAZZ(env, obj.obj(),
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 base::android::MethodID::LazyGet< 2179 base::android::MethodID::LazyGet<
2193 base::android::MethodID::TYPE_INSTANCE>( 2180 base::android::MethodID::TYPE_INSTANCE>(
2194 env, MotionEvent_clazz(env), 2181 env, MotionEvent_clazz(env),
2195 "writeToParcel", 2182 "writeToParcel",
2196 "(Landroid/os/Parcel;I)V", 2183 "(Landroid/os/Parcel;I)V",
2197 &g_MotionEvent_writeToParcel); 2184 &g_MotionEvent_writeToParcel);
2198 2185
2199 env->CallVoidMethod(obj.obj(), 2186 env->CallVoidMethod(obj.obj(),
2200 method_id, p0.obj(), as_jint(p1)); 2187 method_id, p0.obj(), as_jint(p1));
2201 jni_generator::CheckException(env); 2188 jni_generator::CheckException(env);
2202
2203 } 2189 }
2204 2190
2205 // Step 3: RegisterNatives. 2191 // Step 3: RegisterNatives.
2206 2192
2207 } // namespace JNI_MotionEvent 2193 } // namespace JNI_MotionEvent
2208 2194
2209 #endif // android_view_MotionEvent_JNI 2195 #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