• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni_00024MyOtherInnerClass[];
22const char kClassPath_org_chromium_TestJni_00024MyOtherInnerClass[] =
23    "org/chromium/TestJni$MyOtherInnerClass";
24
25JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni[];
26const char kClassPath_org_chromium_TestJni[] = "org/chromium/TestJni";
27// Leaking this jclass as we cannot use LazyInstance from some threads.
28JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_00024MyOtherInnerClass_clazz
29    = 0;
30#ifndef org_chromium_TestJni_00024MyOtherInnerClass_clazz_defined
31#define org_chromium_TestJni_00024MyOtherInnerClass_clazz_defined
32inline jclass org_chromium_TestJni_00024MyOtherInnerClass_clazz(JNIEnv* env) {
33  return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024MyOtherInnerClass,
34      &g_org_chromium_TestJni_00024MyOtherInnerClass_clazz);
35}
36#endif
37// Leaking this jclass as we cannot use LazyInstance from some threads.
38JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_clazz = 0;
39#ifndef org_chromium_TestJni_clazz_defined
40#define org_chromium_TestJni_clazz_defined
41inline jclass org_chromium_TestJni_clazz(JNIEnv* env) {
42  return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni,
43      &g_org_chromium_TestJni_clazz);
44}
45#endif
46
47
48// Step 2: Constants (optional).
49
50
51// Step 3: Method stubs.
52static jint JNI_TestJni_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller);
53
54JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_nativeInit(
55    JNIEnv* env,
56    jobject jcaller) {
57  return JNI_TestJni_Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
58}
59
60static jint JNI_MyOtherInnerClass_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>&
61    jcaller);
62
63JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(
64    JNIEnv* env,
65    jobject jcaller) {
66  return JNI_MyOtherInnerClass_Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
67}
68
69
70#endif  // org_chromium_TestJni_JNI
71