summaryrefslogtreecommitdiffstats
path: root/libnativehelper/Register.c
Commit message (Collapse)AuthorAgeFilesLines
* Move JNIHelp's implementation to C++.Elliott Hughes2011-04-251-33/+0
| | | | | | Ouch. Change-Id: I81c0457a95549f1bef7cc8d9ab23d6ca4475cdb5
* Fix the order in which natives are registered.Elliott Hughes2011-03-171-2/+2
| | | | | | | | | All the core libraries want from JniHelp during registration is jniRegisterNativeMethods. JniHelp, though, wants java.io.FileDescriptor from the core libraries. So we should get to go first. Bug: 3107501 Change-Id: I9604a3a04343c78577610aa7adf40a1f7d82eeeb
* Fix a couple copyright headers that aren't in the prescribed format.Dan Bornstein2010-08-091-0/+4
| | | | Change-Id: I4de4dc69d8989f1add431e58533c7e633f67e550
* Move the implementation of JNIHelp.h's FileDescriptor helpers into JNIHelp.c.Elliott Hughes2010-06-171-1/+3
| | | | | | | | | | | | | | | | | | These functions used to be declared in dalvik/ but defined in libcore/, which was a layering violation but not important. It now stands in the way of switching FileDescriptor's JNI over to C++, so out it goes. There's a functional change here: the libcore code was going out of its way to ensure that FileDescriptor's <clinit> was being invoked, but it's not obvious that there was any reason for this: the static initializers just set the err/in/out fields' descriptor fields to the appropriate integers. A separate change rewrites FileDescriptor's JNI in terms of JNIHelp.h's API, so it no longer needs to know anything about FileDescriptor itself. (Amusingly, the original motivation for switching to C++ was to rewrite code that I've now simply deleted.) Change-Id: I5d79e5b91835183c21a6b7a1545178d9d93f4b69
* Move the libcore registration out of libnativehelpers and into libcore.Elliott Hughes2010-04-161-106/+15
| | | | | Bug: 754114 Change-Id: Iaa03def509c10cbaa12fd2128584b93d4be4a6b7
* Add Java 6's java.net.IDN.Elliott Hughes2010-04-011-0/+2
| | | | | | | | | | harmony's tests and my code, though ICU4C does all the hard work. I've added a test of my own to demonstrate some weird RI behavior (that I've emulated in our implementation). Bug: 2497395 Change-Id: I8146f72a8a3204449ee3d0d9065dadc1c1c77fcc
* Add Java 6's java.io.Console.Elliott Hughes2010-03-161-0/+2
| | | | | | | | | | | This is actually functional, if you're in the mood to "adb shell". The implementation is based on harmony's, but with the initialization and native code rewritten, with readPassword responsible for echoing a newline (so we don't have to play silly tricks with the ECHONL flag), and a vastly simplified ConsoleReader class. I've also rewritten the documentation. Change-Id: I902b47fb27a8fdb2d6f067bb905ee02c6a10e454
* am 10ebc7d0: Merge "Implement (but @hide) java.text.Normalizer from Java 6."Elliott Hughes2010-03-011-0/+2
|\ | | | | | | | | | | | | Merge commit '10ebc7d0b84dcb98e1a7eeac96ef06acdfc8d184' into dalvik-dev * commit '10ebc7d0b84dcb98e1a7eeac96ef06acdfc8d184': Implement (but @hide) java.text.Normalizer from Java 6.
| * Implement (but @hide) java.text.Normalizer from Java 6.Elliott Hughes2010-03-011-0/+2
| | | | | | | | | | | | | | | | Based on https://android-git.corp.google.com/g/42516. Includes the harmony tests from their Java 6 branch. Bug: 719001
* | resolved conflicts for merge of e84bea92 to dalvik-devBrian Carlstrom2010-02-281-7/+0
|\|
| * First pass at reorganizing org.apache.harmony.xnet.provider.jsse native code ↵Brian Carlstrom2010-02-251-7/+0
| | | | | | | | | | | | | | | | | | | | | | into a single file. At enh's suggestion, I'm consoldiating the OpenSSL related native code into a single wrapper class NativeCrypto. This changes is the firs step, combining the cpp code into a single NativeCode.cpp. The next step will involved introducting a single SSL_CTX in NativeCode and cleaning up SSL_CTX use. As part of this, I'll start moving the native wrappers to from various OpenSSL*.java classes into NativeCode.
* | Break the sqlite JDBC driver out from our JDBC implementation.Elliott Hughes2010-02-261-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The JDBC driver is from a different source (http://www.ch-werner.de/javasqlite/overview-summary.html) and is only really needed for testing. Bug 2468870 asks that we don't eagerly register the native methods for these classes. That bug is fixed by this change. Bug 2198667 asks that we stop shipping this JDBC driver as part of the base system. That bug is not addressed by this change: the classes and native code are now in their own, separate, .jar and .so files -- so they'll be easier to remove in future -- but for now those files are still in /system/framework and /system/lib respectively. Bug: 2468870 Bug: 2198667
* | Remove RuleBasedNumberFormat from our icu4jni fork, since we don't need it.Elliott Hughes2010-02-031-2/+0
|/ | | | | | This is ICU API not used by Java, so there's no point pretending to maintain it. Bug: http://b/2377457
* Remove dead native org.apache.harmony.nio.AddressUtils code.Elliott Hughes2009-10-261-3/+0
| | | | | | This code is dead at the moment, and were it ever to become live, I'm pretty sure we'd want to start again from scratch rather than do whatever the author of this had in mind.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+135
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-135/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-5/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+140