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 26 extern "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 */ 33 int jniRegisterSystemJavaMethods(JNIEnv* env); 34 35 36 /* 37 * Registration functions for native methods in libcore. 38 */ 39 int register_org_apache_harmony_dalvik_NativeTestTarget(JNIEnv* env); 40 41 int register_dalvik_system_TouchDex(JNIEnv* env); 42 43 int register_org_apache_harmony_xml_ExpatParser(JNIEnv *env); 44 45 int register_java_io_File(JNIEnv* env); 46 int register_java_io_FileDescriptor(JNIEnv* env); 47 int register_java_io_ObjectOutputStream(JNIEnv* env); 48 int register_java_io_ObjectInputStream(JNIEnv* env); 49 int register_java_io_ObjectStreamClass(JNIEnv* env); 50 51 int register_java_lang_Character(JNIEnv* env); 52 int register_java_lang_Double(JNIEnv* env); 53 int register_java_lang_Float(JNIEnv* env); 54 int register_java_lang_Math(JNIEnv* env); 55 int register_java_lang_ProcessManager(JNIEnv* env); 56 int register_java_lang_StrictMath(JNIEnv* env); 57 int register_java_lang_System(JNIEnv* env); 58 59 int register_org_apache_harmony_luni_platform_OSFileSystem(JNIEnv* env); 60 int register_org_apache_harmony_luni_platform_OSMemory(JNIEnv* env); 61 int register_org_apache_harmony_luni_platform_OSNetworkSystem(JNIEnv* env); 62 int register_org_apache_harmony_nio_AddressUtil(JNIEnv* env); 63 int register_org_apache_harmony_text_BidiWrapper(JNIEnv *env); 64 65 int register_org_apache_harmony_xnet_provider_jsse_OpenSSLServerSocketImpl(JNIEnv *env); 66 int register_org_apache_harmony_xnet_provider_jsse_OpenSSLSessionImpl(JNIEnv *env); 67 int register_org_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl(JNIEnv *env); 68 int register_org_openssl_NativeBN(JNIEnv *env); 69 int register_org_apache_harmony_xnet_provider_jsse_NativeCrypto(JNIEnv *env); 70 71 int register_java_util_jar_JarFile(JNIEnv* env); 72 int register_java_util_zip_Adler32(JNIEnv* env); 73 int register_java_util_zip_CRC32(JNIEnv* env); 74 int register_java_util_zip_Deflater(JNIEnv* env); 75 int register_java_util_zip_Inflater(JNIEnv* env); 76 int register_java_util_zip_ZipFile(JNIEnv* env); 77 int register_java_net_InetAddress(JNIEnv* env); 78 int register_java_net_NetworkInterface(JNIEnv* env); 79 80 int register_org_apache_harmony_luni_util_fltparse(JNIEnv *env); 81 int register_org_apache_harmony_luni_util_NumberConvert(JNIEnv *env); 82 83 int register_com_ibm_icu4jni_converters_NativeConverter(JNIEnv* env); 84 int register_com_ibm_icu4jni_lang_UCharacter(JNIEnv* env); 85 int register_com_ibm_icu4jni_text_NativeCollator(JNIEnv* env); 86 int register_com_ibm_icu4jni_text_NativeBreakIterator(JNIEnv* env); 87 int register_com_ibm_icu4jni_text_NativeDecimalFormat(JNIEnv* env); 88 int register_com_ibm_icu4jni_regex_NativeRegEx(JNIEnv* env); 89 int register_com_ibm_icu4jni_util_Resources(JNIEnv* env); 90 int register_com_ibm_icu4jni_text_NativeRBNF(JNIEnv* env); 91 92 int register_sun_misc_Unsafe(JNIEnv* env); 93 94 int register_SQLite_Database(JNIEnv* env); 95 int register_SQLite_Vm(JNIEnv* env); 96 int register_SQLite_FunctionContext(JNIEnv* env); 97 int register_SQLite_Stmt(JNIEnv* env); 98 int register_SQLite_Blob(JNIEnv* env); 99 100 int register_org_openssl_NativeBN(JNIEnv* env); 101 102 #ifdef __cplusplus 103 } 104 #endif 105 106 #endif /*_NATIVEHELPER_ANDROIDSYSTEMNATIVES*/ 107