1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 6 // This file is autogenerated by 7 // base/android/jni_generator/jni_generator.py 8 // For 9 // org/chromium/TestJni 10 11 #ifndef org_chromium_TestJni_JNI 12 #define org_chromium_TestJni_JNI 13 14 #include <jni.h> 15 16 #include "base/android/jni_generator/jni_generator_helper.h" 17 18 19 // Step 1: Forward declarations. 20 21 JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni[]; 22 const char kClassPath_org_chromium_TestJni[] = "org/chromium/TestJni"; 23 24 JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni_00024MyInnerClass[]; 25 const char kClassPath_org_chromium_TestJni_00024MyInnerClass[] = 26 "org/chromium/TestJni$MyInnerClass"; 27 // Leaking this jclass as we cannot use LazyInstance from some threads. 28 JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_clazz = 0; 29 #ifndef org_chromium_TestJni_clazz_defined 30 #define org_chromium_TestJni_clazz_defined 31 inline jclass org_chromium_TestJni_clazz(JNIEnv* env) { 32 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni, 33 &g_org_chromium_TestJni_clazz); 34 } 35 #endif 36 // Leaking this jclass as we cannot use LazyInstance from some threads. 37 JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_00024MyInnerClass_clazz = 0; 38 #ifndef org_chromium_TestJni_00024MyInnerClass_clazz_defined 39 #define org_chromium_TestJni_00024MyInnerClass_clazz_defined 40 inline jclass org_chromium_TestJni_00024MyInnerClass_clazz(JNIEnv* env) { 41 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024MyInnerClass, 42 &g_org_chromium_TestJni_00024MyInnerClass_clazz); 43 } 44 #endif 45 46 47 // Step 2: Constants (optional). 48 49 50 // Step 3: Method stubs. 51 static jint JNI_MyInnerClass_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller); 52 53 JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_00024MyInnerClass_nativeInit( 54 JNIEnv* env, 55 jobject jcaller) { 56 return JNI_MyInnerClass_Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 57 } 58 59 60 #endif // org_chromium_TestJni_JNI 61