• 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
28JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni_00024MyInnerClass[];
29const char kClassPath_org_chromium_TestJni_00024MyInnerClass[] =
30    "org/chromium/TestJni$MyInnerClass";
31// Leaking this jclass as we cannot use LazyInstance from some threads.
32JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_00024MyOtherInnerClass_clazz
33    = 0;
34#ifndef org_chromium_TestJni_00024MyOtherInnerClass_clazz_defined
35#define org_chromium_TestJni_00024MyOtherInnerClass_clazz_defined
36inline jclass org_chromium_TestJni_00024MyOtherInnerClass_clazz(JNIEnv* env) {
37  return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024MyOtherInnerClass,
38      &g_org_chromium_TestJni_00024MyOtherInnerClass_clazz);
39}
40#endif
41// Leaking this jclass as we cannot use LazyInstance from some threads.
42JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_clazz = 0;
43#ifndef org_chromium_TestJni_clazz_defined
44#define org_chromium_TestJni_clazz_defined
45inline jclass org_chromium_TestJni_clazz(JNIEnv* env) {
46  return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni,
47      &g_org_chromium_TestJni_clazz);
48}
49#endif
50// Leaking this jclass as we cannot use LazyInstance from some threads.
51JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_00024MyInnerClass_clazz = 0;
52#ifndef org_chromium_TestJni_00024MyInnerClass_clazz_defined
53#define org_chromium_TestJni_00024MyInnerClass_clazz_defined
54inline jclass org_chromium_TestJni_00024MyInnerClass_clazz(JNIEnv* env) {
55  return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024MyInnerClass,
56      &g_org_chromium_TestJni_00024MyInnerClass_clazz);
57}
58#endif
59
60
61// Step 2: Constants (optional).
62
63
64// Step 3: Method stubs.
65static jint JNI_MyInnerClass_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller);
66
67JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_00024MyInnerClass_nativeInit(
68    JNIEnv* env,
69    jobject jcaller) {
70  return JNI_MyInnerClass_Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
71}
72
73static jint JNI_MyOtherInnerClass_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>&
74    jcaller);
75
76JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(
77    JNIEnv* env,
78    jobject jcaller) {
79  return JNI_MyOtherInnerClass_Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
80}
81
82
83#endif  // org_chromium_TestJni_JNI
84