OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_tests.py | 6 // base/android/jni_generator/jni_generator_tests.py |
7 // For | 7 // For |
8 // org/chromium/example/jni_generator/SampleForTests | 8 // org/chromium/example/jni_generator/SampleForTests |
9 | 9 |
10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI | 10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI |
(...skipping 13 matching lines...) Expand all Loading... |
24 const char kInnerClassClassPath[] = | 24 const char kInnerClassClassPath[] = |
25 "org/chromium/example/jni_generator/SampleForTests$InnerClass"; | 25 "org/chromium/example/jni_generator/SampleForTests$InnerClass"; |
26 const char kSampleForTestsClassPath[] = | 26 const char kSampleForTestsClassPath[] = |
27 "org/chromium/example/jni_generator/SampleForTests"; | 27 "org/chromium/example/jni_generator/SampleForTests"; |
28 // Leaking this jclass as we cannot use LazyInstance from some threads. | 28 // Leaking this jclass as we cannot use LazyInstance from some threads. |
29 jclass g_InnerClass_clazz = NULL; | 29 jclass g_InnerClass_clazz = NULL; |
30 // Leaking this jclass as we cannot use LazyInstance from some threads. | 30 // Leaking this jclass as we cannot use LazyInstance from some threads. |
31 jclass g_SampleForTests_clazz = NULL; | 31 jclass g_SampleForTests_clazz = NULL; |
32 } // namespace | 32 } // namespace |
33 | 33 |
34 namespace content { | 34 namespace base { |
| 35 namespace android { |
35 | 36 |
36 static jint Init(JNIEnv* env, jobject obj); | 37 static jint Init(JNIEnv* env, jobject obj); |
37 | 38 |
38 static jdouble GetDoubleFunction(JNIEnv* env, jobject obj); | 39 static jdouble GetDoubleFunction(JNIEnv* env, jobject obj); |
39 | 40 |
40 static jfloat GetFloatFunction(JNIEnv* env, jclass clazz); | 41 static jfloat GetFloatFunction(JNIEnv* env, jclass clazz); |
41 | 42 |
42 static void SetNonPODDatatype(JNIEnv* env, jobject obj, | 43 static void SetNonPODDatatype(JNIEnv* env, jobject obj, |
43 jobject rect); | 44 jobject rect); |
44 | 45 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 280 |
280 if (env->RegisterNatives(g_SampleForTests_clazz, | 281 if (env->RegisterNatives(g_SampleForTests_clazz, |
281 kMethodsSampleForTests, | 282 kMethodsSampleForTests, |
282 kMethodsSampleForTestsSize) < 0) { | 283 kMethodsSampleForTestsSize) < 0) { |
283 LOG(ERROR) << "RegisterNatives failed in " << __FILE__; | 284 LOG(ERROR) << "RegisterNatives failed in " << __FILE__; |
284 return false; | 285 return false; |
285 } | 286 } |
286 | 287 |
287 return true; | 288 return true; |
288 } | 289 } |
289 } // namespace content | 290 } // namespace android |
| 291 } // namespace base |
290 | 292 |
291 #endif // org_chromium_example_jni_generator_SampleForTests_JNI | 293 #endif // org_chromium_example_jni_generator_SampleForTests_JNI |
OLD | NEW |