1/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * Registration functions for native methods in system classes.
19 */
20#ifndef _NATIVEHELPER_ANDROIDSYSTEMNATIVES
21#define _NATIVEHELPER_ANDROIDSYSTEMNATIVES
22
23#include "jni.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/*
30 * Call this to register the methods below.  Ideally, this is the only
31 * symbol that needs to be exported from the library.
32 */
33int jniRegisterSystemJavaMethods(JNIEnv* env);
34
35
36/*
37 * Registration functions for native methods in libcore.
38 */
39int register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv* env);
40
41int register_dalvik_system_TouchDex(JNIEnv* env);
42
43int register_org_apache_harmony_xml_ExpatParser(JNIEnv *env);
44
45int register_java_io_File(JNIEnv* env);
46int register_java_io_FileDescriptor(JNIEnv* env);
47int register_java_io_ObjectOutputStream(JNIEnv* env);
48int register_java_io_ObjectInputStream(JNIEnv* env);
49int register_java_io_ObjectStreamClass(JNIEnv* env);
50
51int register_java_lang_Character(JNIEnv* env);
52int register_java_lang_Double(JNIEnv* env);
53int register_java_lang_Float(JNIEnv* env);
54int register_java_lang_Math(JNIEnv* env);
55int register_java_lang_ProcessManager(JNIEnv* env);
56int register_java_lang_StrictMath(JNIEnv* env);
57int register_java_lang_System(JNIEnv* env);
58
59int register_org_apache_harmony_luni_platform_OSFileSystem(JNIEnv* env);
60int register_org_apache_harmony_luni_platform_OSMemory(JNIEnv* env);
61int register_org_apache_harmony_luni_platform_OSNetworkSystem(JNIEnv* env);
62int register_org_apache_harmony_text_BidiWrapper(JNIEnv *env);
63
64int register_org_apache_harmony_xnet_provider_jsse_OpenSSLServerSocketImpl(JNIEnv *env);
65int register_org_apache_harmony_xnet_provider_jsse_OpenSSLSessionImpl(JNIEnv *env);
66int register_org_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl(JNIEnv *env);
67int register_org_openssl_NativeBN(JNIEnv *env);
68int register_org_apache_harmony_xnet_provider_jsse_NativeCrypto(JNIEnv *env);
69
70int register_java_util_jar_JarFile(JNIEnv* env);
71int register_java_util_zip_Adler32(JNIEnv* env);
72int register_java_util_zip_CRC32(JNIEnv* env);
73int register_java_util_zip_Deflater(JNIEnv* env);
74int register_java_util_zip_Inflater(JNIEnv* env);
75int register_java_util_zip_ZipFile(JNIEnv* env);
76int register_java_net_InetAddress(JNIEnv* env);
77int register_java_net_NetworkInterface(JNIEnv* env);
78
79int register_org_apache_harmony_luni_util_fltparse(JNIEnv *env);
80int register_org_apache_harmony_luni_util_NumberConvert(JNIEnv *env);
81
82int register_com_ibm_icu4jni_converters_NativeConverter(JNIEnv* env);
83int register_com_ibm_icu4jni_lang_UCharacter(JNIEnv* env);
84int register_com_ibm_icu4jni_text_NativeCollator(JNIEnv* env);
85int register_com_ibm_icu4jni_text_NativeBreakIterator(JNIEnv* env);
86int register_com_ibm_icu4jni_text_NativeDecimalFormat(JNIEnv* env);
87int register_com_ibm_icu4jni_regex_NativeRegEx(JNIEnv* env);
88int register_com_ibm_icu4jni_util_Resources(JNIEnv* env);
89int register_com_ibm_icu4jni_text_NativeRBNF(JNIEnv* env);
90
91int register_sun_misc_Unsafe(JNIEnv* env);
92
93int register_SQLite_Database(JNIEnv* env);
94int register_SQLite_Vm(JNIEnv* env);
95int register_SQLite_FunctionContext(JNIEnv* env);
96int register_SQLite_Stmt(JNIEnv* env);
97int register_SQLite_Blob(JNIEnv* env);
98
99int register_org_openssl_NativeBN(JNIEnv* env);
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif /*_NATIVEHELPER_ANDROIDSYSTEMNATIVES*/
106