73d3c2e3ed100f1d0ccc08a9675844bf8a0848fa |
04-May-2012 |
Elliott Hughes <enh@google.com> |
Make libnativehelper stand-alone. Bug: 6369821 Change-Id: I502211bddaf60d6097b81b35f606bbcdd1a3e092
ndroid.mk
NIHelp.cpp
egister.cpp
nclude/nativehelper/JNIHelp.h
|
e2b11e7e4077187462324810d2b8a404417ba6a2 |
11-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Make sure we rethrow the same exception we started with. Bug: 6312938 Change-Id: I41d8adf27fd32103c55d9eeafa28a25c37f5029d
NIHelp.cpp
|
9a67c9d55e573ea7c908b1863b568e2806697b41 |
03-Apr-2012 |
Mike Lockwood <lockwood@google.com> |
Merge remote-tracking branch 'goog/ics-aah'
|
79a0d9c410a2060744e044aec2536e29a4f5213c |
06-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/157220 Also fix an occurrence of LOGW missed in an earlier change. Bug: 5449033 Change-Id: I2e3b23839e6dcd09015d6402280e9300c75e3406
NIHelp.cpp
|
7f18b364f0a76f13e741b315be30cb95b9005c6e |
06-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: Ia5d301248024df26c2a29dabdfe738e39ec87c82
NIHelp.cpp
|
6d3fbd7737583f1344e58f3e742898207e283b55 |
26-Oct-2011 |
Steve Block <steveblock@google.com> |
am 92c1f6f1: (-s ours) Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE * commit '92c1f6f1b4249e4e379452ee7b49f027052bf4ce': Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE
|
292b1c28091b32a418eb44dcdef157a7b808abd4 |
20-Oct-2011 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I8bd96961e369a08e86ff78b82d90f20f42787eb1
NIHelp.cpp
|
72e281f9b04d434c3326a869ded9fdd36fde6705 |
25-Oct-2011 |
Steve Block <steveblock@google.com> |
am 1663a6c1: (-s ours) Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE * commit '1663a6c12fdf4732d7ea0a0406af6085b3c408e4': Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE
nclude/nativehelper/JNIHelp.h
|
4ed586e80dbdc5dec3a733db87bae635c84b0337 |
12-Oct-2011 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE See https://android-git.corp.google.com/g/#/c/141576 Bug: 5449033 Change-Id: Ie3bc0d5436218ea05f98cb0373ecf5924f78db05
nclude/nativehelper/JNIHelp.h
|
154661e660d6e1914501a18d7536fb882a7d2e05 |
19-Aug-2011 |
Elliott Hughes <enh@google.com> |
Fix JNIEXPORT now people are using -fvisibility. This is a backport from dalvik-dev. Change-Id: If6001b580bd9b36f3845aaa115333d69682f3a92
nclude/nativehelper/jni.h
|
e6adf5ae42820113a8dac53bcf42447e0563d133 |
15-Jun-2011 |
Elliott Hughes <enh@google.com> |
Break a dependency on frameworks/base when building a host VM. These aren't necessarily good abstractions, but they're no worse than what we had, and having them factored out is a step in the right direction. Change-Id: I5b839608317d2ca1ca54d8a38624fb686f2c37de
ndroid.mk
|
1ff7a0d91493dbf01bceba5fb28ce80ddac21708 |
15-Jun-2011 |
Carl Shapiro <cshapiro@google.com> |
Normalize the include guard style. An leading underscore followed by a capital letter is a reserved name space in C and C++. This change also moves any #include directives within the include guard in some of the compiler/codegen/arm header files. Change-Id: I9715e2c5301699d31886e61d0fe6e29483555a2a
nclude/nativehelper/JNIHelp.h
nclude/nativehelper/jni.h
|
a6f951cbffc9ba9b906b5995958396402d0a32ab |
09-Jun-2011 |
Elliott Hughes <enh@google.com> |
Tidy up some includes. Change-Id: I5abd4f8ab06db0c77fa369fcd97d8f1259b343df
NIHelp.cpp
nclude/nativehelper/JNIHelp.h
|
87f62a8c3826070d807817238a1ee8afd11ec34c |
23-Apr-2011 |
Elliott Hughes <enh@google.com> |
Move JNIHelp's implementation to C++. Ouch. Change-Id: I81c0457a95549f1bef7cc8d9ab23d6ca4475cdb5
ndroid.mk
NIHelp.c
NIHelp.cpp
egister.c
egister.cpp
nclude/nativehelper/JNIHelp.h
|
ed2af7959d343a36cf63205300a368a0dfd4c361 |
23-Apr-2011 |
Elliott Hughes <enh@google.com> |
Fix a buffer overrun in jniLogException. ...by not having a fixed-length buffer at all. What are we, C programmmers? Bug: 4330470 Change-Id: I1b514ffc08abb1a5b1681e7d655800b3a5539093
NIHelp.c
|
85629f2243da0ded0135ffec471a9257a832edb8 |
16-Apr-2011 |
Elliott Hughes <enh@google.com> |
Fix build by reverting NELEM change. Change-Id: Ie68f42213e7a915fb1be45ae87790117f8356c4e
nclude/nativehelper/JNIHelp.h
|
027ff8072c5387a7a1736dbffe2808c84222939a |
16-Apr-2011 |
Elliott Hughes <enh@google.com> |
In C++, we can offer a better NELEM. Change-Id: Iaedc727becb4af1c779299d4da7c91bd522fe9cc
nclude/nativehelper/JNIHelp.h
|
2f82af198bf9e856115d1a809556e9df46bd9bab |
09-Apr-2011 |
Elliott Hughes <enh@google.com> |
Add jniThrowExceptionFmt. I still think you should be doing checks and throwing exceptions in Java, and your native code should just crash if you lie to it, but this will ease the translation of frameworks/base code over to using JNI more correctly. Change-Id: I9f2512e2349452b82360b375911c814ab00db23b
NIHelp.c
nclude/nativehelper/JNIHelp.h
|
605e6a92ffe4d4fa7d57e2e5bdcf6c988ace4ba8 |
17-Mar-2011 |
Elliott Hughes <enh@google.com> |
Fix the order in which natives are registered. 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
egister.c
|
b53ec15205415f63aa3a96b4e0bc906f6bad28e0 |
09-Feb-2011 |
Andy McFadden <fadden@android.com> |
Remove JNI_FORCE_C This hasn't been useful in a really long time. Change-Id: Ieea01f5d051bc8fc671f7414af3bed626ece75f1
nclude/nativehelper/JNIHelp.h
|
115c251741981bd455f154dccb26902565c40b32 |
08-Feb-2011 |
Andy McFadden <fadden@android.com> |
Added JNI hack to support JNI hack Some of our graphics code wants to get a pointer, release it, and then continue to use it. The "forcecopy" mode of CheckJNI was designed to find any code that does this. It succeeded. To support the behavior, we provide a JNI helper function that does the dirty work. It passes a magic value into the Get and Release calls that causes "forcecopy" to skip the copy. When forcecopy is not enabled, the values are simply ignored. To avoid any possibility of the function getting published in the NDK, the function is not described in JNIHelp.h. Bug 3409356 Change-Id: Ibd20d12ba6d3d3236ebf5760f7ccaa8c557e3774
NIHelp.c
|
a810cc59cafcc292ec4f6010324725bd100f7638 |
07-Jan-2011 |
Andy McFadden <fadden@android.com> |
jniRegisterNativeMethods should abort on failure The jniRegisterNativeMethods function currently behaves like the RegisterNatives function that it wraps, returning 0 on success and nonzero on failure. However, this is an internal-only function used by bits of infrastructure that should never fail to initialize. By aborting sooner we make the failure impossible to ignore. This doesn't appear to break anything. Bug 3323089 Change-Id: I48d1b02d90616d4c9ee01eb0e46cb61752727c5b
NIHelp.c
|
acc847356a8ae6ee093aceb114cfa52a8386aaf6 |
09-Nov-2010 |
Elliott Hughes <enh@google.com> |
Track change in libcore/NativeCode.mk. Bug: 2281992 Change-Id: Ibfb877bc78396bc0e947ae2f8f86e484843f07de
ndroid.mk
|
51c0f5bb47b896eda82ee50277bbb80a97006d87 |
17-Sep-2010 |
Jesse Wilson <jessewilson@google.com> |
Add optional tags to dalvik. Change-Id: I29a78ccb6312d12b3ef0ed02cfbc638a5b01db9c
ndroid.mk
|
52985c66d2599cdf186a87c5a0694a12a044eefa |
18-Aug-2010 |
Jesse Wilson <jessewilson@google.com> |
Support dalvikvm on a Linux x86 host Change-Id: Id166ab03a01833e06ec1a9aa0059e4eb28ec04ce
ndroid.mk
|
bf785f4c09b9ac23ddc640b82e56eb6157fdd0f6 |
04-Aug-2010 |
Dan Bornstein <danfuzz@android.com> |
Fix a couple copyright headers that aren't in the prescribed format. Change-Id: I4de4dc69d8989f1add431e58533c7e633f67e550
egister.c
nclude/nativehelper/jni.h
|
2394cac109a10082586002deb7b4e6d40b5bbc79 |
15-Jul-2010 |
Joe Onorato <joeo@android.com> |
am 1c3da619: am 0f0e6f10: Merge "The ICU data is no longer compiled directly into the shared library." into gingerbread Merge commit '1c3da6197c677339cfdd41a948a5f79f804d6e4e' * commit '1c3da6197c677339cfdd41a948a5f79f804d6e4e': The ICU data is no longer compiled directly into the shared library.
|
04e41374bbe3198c6c4694eec6e74ade13d1260c |
14-Jul-2010 |
Joe Onorato <joeo@android.com> |
The ICU data is no longer compiled directly into the shared library. Change-Id: Ief1aa1c5f6da39f4d94cb68b285d8e02cc10b9ac
ndroid.mk
|
1a3bd5d7c1e82afe404f13e933c3a380e460b3e5 |
17-Jun-2010 |
Elliott Hughes <enh@google.com> |
Move the implementation of JNIHelp.h's FileDescriptor helpers into JNIHelp.c. 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
NIHelp.c
egister.c
|
ca0b703f5ac2eeb1e11e7349d04a24d25099a937 |
09-Jun-2010 |
Carl Shapiro <cshapiro@google.com> |
Remove repeated newlines at the end of files. Change-Id: I1e3d103a7b932ef21acedb6438c0f26b315df28f
EADME
|
abb4eff21526f5fb5e2acb9216135af515951670 |
09-Jun-2010 |
Carl Shapiro <cshapiro@google.com> |
Remove trailing whitespace. Change-Id: I95534bb2b88eaf48f2329282041118cd034c812b
nclude/nativehelper/JNIHelp.h
nclude/nativehelper/jni.h
|
a4d591b0a189b51f460a2e08f9a9380cc3a1f068 |
03-Jun-2010 |
Jeff Brown <jeffbrown@google.com> |
am 09eae10c: am 23971e39: Merge "Added a new JNI helper for logging exceptions. Plugged some JNI reference leaks in existing JNI helpers." into kraken
|
2c3fc7a0c04b2feb274d0809c182adc96b284aba |
02-Jun-2010 |
Jeff Brown <jeffbrown@google.com> |
Added a new JNI helper for logging exceptions. Plugged some JNI reference leaks in existing JNI helpers. Change-Id: I62213cdae375235f6ee9304ecd8dc3d2b7f58c85
NIHelp.c
nclude/nativehelper/JNIHelp.h
|
d5ef6cb3c059da34c12cc50fbaadac995dc2bcc8 |
01-Jun-2010 |
Brian Carlstrom <bdc@google.com> |
Merge branch 'dalvik-dev'
|
7d26526dd4c399ca57d1453b0fa20822a0461f11 |
29-May-2010 |
Brian Carlstrom <bdc@google.com> |
Merge remote branch 'goog/dalvik-dev' into dalvik-dev-to-master Change-Id: I0c0edb3ebf0d5e040d6bbbf60269fab0deb70ef9
egister.c
nclude/nativehelper/AndroidSystemNatives.h
|
430e620e3d322b80ef0dff0e1ad76047ab3b0e0a |
17-Apr-2010 |
Elliott Hughes <enh@google.com> |
Remove two dead files. java_lang_Character.cpp has long been dead; I killed AndroidSystemNatives.h this afternoon. I'm not sure how their "git rm"s didn't get included in my earlier patch. Change-Id: Iaa73935846a474dbd25792ed0176ccea092e9f7c
nclude/nativehelper/AndroidSystemNatives.h
|
46b3d4d5a4ed5a8c5d71463867c26565879bcf0b |
17-Apr-2010 |
Elliott Hughes <enh@google.com> |
Move the libcore registration out of libnativehelpers and into libcore. Bug: 754114 Change-Id: Iaa03def509c10cbaa12fd2128584b93d4be4a6b7
egister.c
|
fb0a8fd975333a3ffb93a23a6198a5ae408e2f42 |
01-Apr-2010 |
Elliott Hughes <enh@google.com> |
Add Java 6's java.net.IDN. 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
egister.c
|
e7a7963e9d55b3271adb90c29d538e8fe36c15b5 |
17-Mar-2010 |
Elliott Hughes <enh@google.com> |
Add Java 6's java.io.Console. 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
egister.c
nclude/nativehelper/AndroidSystemNatives.h
|
27fa5f5dd554437f67f56059f75e06bd0e8e9538 |
02-Mar-2010 |
Elliott Hughes <enh@google.com> |
am 10ebc7d0: Merge "Implement (but @hide) java.text.Normalizer from Java 6." Merge commit '10ebc7d0b84dcb98e1a7eeac96ef06acdfc8d184' into dalvik-dev * commit '10ebc7d0b84dcb98e1a7eeac96ef06acdfc8d184': Implement (but @hide) java.text.Normalizer from Java 6.
|
1baa2a7d51ad8d4585364ef41a793fcdef06b6d8 |
02-Mar-2010 |
Elliott Hughes <enh@google.com> |
Implement (but @hide) java.text.Normalizer from Java 6. Based on https://android-git.corp.google.com/g/42516. Includes the harmony tests from their Java 6 branch. Bug: 719001
egister.c
|
0c015d7b0966388188d7e5f3111108d74b41fc9d |
28-Feb-2010 |
Brian Carlstrom <bdc@google.com> |
resolved conflicts for merge of e84bea92 to dalvik-dev
|
0761d9497d0fdb024ff73180a310d1e82d43b423 |
26-Feb-2010 |
Elliott Hughes <enh@google.com> |
Break the sqlite JDBC driver out from our JDBC implementation. 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
egister.c
nclude/nativehelper/AndroidSystemNatives.h
|
2672d48fca706257c8b9d62d960af33126d65c70 |
11-Feb-2010 |
Brian Carlstrom <bdc@google.com> |
First pass at reorganizing org.apache.harmony.xnet.provider.jsse native code 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.
egister.c
|
d0d8bbeb906333a7cbedaf31a641a4b7feed4cdb |
22-Feb-2010 |
Elliott Hughes <enh@google.com> |
Merge remote branch 'goog/master' into mm Conflicts: libcore/JavaLibrary.mk
|
bbcaf14c62a09ec8fffec3cadcdb47fa33f56fbe |
05-Feb-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am adbe0586: am 217f8ef4: reconcile main tree with open-source eclair Merge commit 'adbe0586957a71d2aa9f100646882dbca1c78f12' * commit 'adbe0586957a71d2aa9f100646882dbca1c78f12': android-2.1_r1 snapshot
|
590caeedbd07ae84da361e223a98ddfd56cc1385 |
05-Feb-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 217f8ef4: reconcile main tree with open-source eclair Merge commit '217f8ef4c1c151c63382dc0785edd960c233f62e' into eclair-plus-aosp * commit '217f8ef4c1c151c63382dc0785edd960c233f62e': android-2.1_r1 snapshot
|
0704dba57a4a97d652c221c6754cac81e004f595 |
03-Feb-2010 |
Elliott Hughes <enh@google.com> |
Remove RuleBasedNumberFormat from our icu4jni fork, since we don't need it. This is ICU API not used by Java, so there's no point pretending to maintain it. Bug: http://b/2377457
egister.c
nclude/nativehelper/AndroidSystemNatives.h
|
edffb2814b483a30da0a922c9135b5acdaaccefc |
29-Jan-2010 |
The Android Open Source Project <initial-contribution@android.com> |
reconcile android-2.1_r1 snapshot
|
9f6e1d367d772894733387e6dae2ddf685c5bf03 |
28-Jan-2010 |
Elliott Hughes <enh@google.com> |
Fix jniThrowRuntimeException for C callers, add jniThrowNullPointerException. ...and switch all NPE throwers over to the helper.
NIHelp.c
nclude/nativehelper/JNIHelp.h
|
c094b8b1c4f92a56b3e68ad158b4312e5503a2be |
13-Jan-2010 |
The Android Open Source Project <initial-contribution@android.com> |
android-2.1_r1 snapshot
NIHelp.c
nclude/nativehelper/JNIHelp.h
|
ab0c08d36b667fbff12b326efc3d744b22d0fde2 |
15-Dec-2009 |
Android Git Automerger <android-git-automerger@android.com> |
Merge commit 'goog/eclair-plus-aosp'
|
773c77904249482681e13e852a58c8446caf6bb1 |
08-Dec-2009 |
Dan Bornstein <danfuzz@android.com> |
am 66cbe5b1: am bf1bb914: am 4a888b09: Two exception-related tweaks: (1) Make the dynamic exception construction mechanism be able to handle exception constructors that take Object instead of String. (2) Add a convenience in JNIHelp to throw RuntimeExceptions. Merge commit '66cbe5b10e3bd9f7b3c262a2ec8a3c11087baa80' * commit '66cbe5b10e3bd9f7b3c262a2ec8a3c11087baa80': Two exception-related tweaks: (1) Make the dynamic exception construction
|
ea544a2cb103ad11e24f1782840cb0d1681ff59b |
08-Dec-2009 |
Dan Bornstein <danfuzz@android.com> |
am bf1bb914: am 4a888b09: Two exception-related tweaks: (1) Make the dynamic exception construction mechanism be able to handle exception constructors that take Object instead of String. (2) Add a convenience in JNIHelp to throw RuntimeExceptions. Merge commit 'bf1bb914a62c65eb8304ce1d86e8ff2dd4f5c79b' into eclair-mr2-plus-aosp * commit 'bf1bb914a62c65eb8304ce1d86e8ff2dd4f5c79b': Two exception-related tweaks: (1) Make the dynamic exception construction
|
ac2c10c2419a2fd8686f62f4e20dff19f5e8cc72 |
08-Dec-2009 |
Dan Bornstein <danfuzz@android.com> |
am 4a888b09: Two exception-related tweaks: (1) Make the dynamic exception construction mechanism be able to handle exception constructors that take Object instead of String. (2) Add a convenience in JNIHelp to throw RuntimeExceptions. Merge commit '4a888b09be2ade9fc5bb0137f702b3be889679a9' into eclair-plus-aosp * commit '4a888b09be2ade9fc5bb0137f702b3be889679a9': Two exception-related tweaks: (1) Make the dynamic exception construction
|
f84f4c65bfd3a16161ce6220d3cbde0765ba0f46 |
08-Dec-2009 |
Dan Bornstein <danfuzz@android.com> |
Two exception-related tweaks: (1) Make the dynamic exception construction mechanism be able to handle exception constructors that take Object instead of String. (2) Add a convenience in JNIHelp to throw RuntimeExceptions. Change-Id: Ie5ce680c30043a4b186e59d7c8883666648b2c87
NIHelp.c
nclude/nativehelper/JNIHelp.h
|
1c1c514b81477239ed6f9c2af857d25df821809b |
16-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
am d829c399: merge from open-source master Merge commit 'd829c39941df81efe05eb3e974cfc048ce2d47f2' * commit 'd829c39941df81efe05eb3e974cfc048ce2d47f2': eclair snapshot
|
f7218bb080b76a58d4099121e9a9e08bf4bcbb60 |
15-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
merge from open-source master Merge commit 'goog/stage-korg-master' into HEAD
|
519e0b931c5c7fa927059c588898ec46d0b19c90 |
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
ndroid.mk
nclude/nativehelper/JNIHelp.h
|
d293e88bf05aaf9f6366c6dd63981c7289a57612 |
26-Oct-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
Merge change I4c4d050d * changes: Clone TEMP_FAILURE_RETRY in JNIHelp.h, to make up for (take your pick) laggard libc implementations not keeping up with the times or (perhaps) agressively modern libc implementations too eagerly expanding upon the standard.
|
6edaa4741d14963a009183410c8287195944fddc |
26-Oct-2009 |
Dan Bornstein <danfuzz@android.com> |
Clone TEMP_FAILURE_RETRY in JNIHelp.h, to make up for (take your pick) laggard libc implementations not keeping up with the times or (perhaps) agressively modern libc implementations too eagerly expanding upon the standard. Change-Id: I4c4d050d15a00f4e82f8beb2b9c386b7c652f495
nclude/nativehelper/JNIHelp.h
|
17096341fea5eacf135055ba199cdae84d16026e |
26-Oct-2009 |
Elliott Hughes <enh@google.com> |
Remove dead native org.apache.harmony.nio.AddressUtils code. 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.
egister.c
nclude/nativehelper/AndroidSystemNatives.h
|
6174c468b61d35f30dd1b060cf539f56a3f1a0e0 |
24-Oct-2009 |
Dan Bornstein <danfuzz@android.com> |
Change the host build to include whole static libraries, and to name them "*-host". Change-Id: Ibf565c9c4b0709eb25edd71786b269895a1616a4
ndroid.mk
|
261c1312c56f2622ba2a553d060a195f87d6751f |
22-Oct-2009 |
Andy McFadden <fadden@android.com> |
Clear pending exception before throwing a new one. The JNI helper function that throws an exception calls FindClass, which isn't allowed if an exception is currently pending. Some of our code called this when an operation failed without noting that the thing that failed already threw an exception; this caused the VM to blow up in a rather unhelpful way. We now log the class name and optional message from the original exception, clear it, and then allocate & throw the new one. For bug 2141867.
NIHelp.c
|
e4239aecb2d2ba2948968166518dc12d4083dc52 |
21-Oct-2009 |
Elliott Hughes <enh@google.com> |
Expose the portable "strerror_r" used by jniThrowIOException. Also add one example caller I used to test this, and update the libnativehelper README file.
NIHelp.c
EADME
nclude/nativehelper/JNIHelp.h
|
0e023432b369854b41619231b5d752baf5754ce2 |
25-Aug-2009 |
Dan Bornstein <danfuzz@android.com> |
More work on getting Dalvik to build on the host (particularly OSX). The dalvikvm executable still doesn't quite build (fails in linker), which is probably due to the core library native code not getting compiled and linked. Unfortunately, it looks like that will be pretty hairy to untangle. Change-Id: Ib5de623e43a40116c4b7459a45a246d76886edf3
ndroid.mk
|
3f30fc0bc473dc19ee565bb86194619d606febb2 |
22-Jul-2009 |
Dan Bornstein <danfuzz@android.com> |
First parts of enabling a host Dalvik build. Most of this is just factoring out common make defs to include both on the host and device side, though there is a little bit of code change to be slightly POSIX friendlier and to avoid unnecessary sanity checks when compiling without an asm version of the interpreter. This patch should cause no difference in build results, except if you turn on the newly-defined WITH_HOST_DALVIK build flag. If you do turn it on, at this point you should probably expect the build to fail due to insufficient dependencies, which I of course expect to address in upcoming patches.
ndroid.mk
|
0b9d26cc3b493ecb0f8672661c97b7bde17cbaa8 |
04-Jun-2009 |
Andy McFadden <fadden@android.com> |
"External allocation" tracking for direct buffers. The native memory allocated for ByteBuffer.allocateDirect was not being tracked by the VM's "external allocation" mechanism. This adds the necessary calls to the Harmony OSMemory allocator, which is what actually calls malloc(). The external alloc stuff just takes size values, so we tuck a copy of the allocation size into the allocated block, and pull it out when it's time to free the memory. (Includes in a couple of other changes that I had to commit somewhere so I could sync.)
nclude/nativehelper/JNIHelp.h
|
7f844dda3883ad3d72b0905c388af7e274f5caa4 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ndroid.mk
NIHelp.c
ODULE_LICENSE_APACHE2
OTICE
EADME
egister.c
nclude/nativehelper/AndroidSystemNatives.h
nclude/nativehelper/JNIHelp.h
nclude/nativehelper/jni.h
|
3a7b73e353a33de5bb8132e881a106a4a30d61e4 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ndroid.mk
NIHelp.c
ODULE_LICENSE_APACHE2
OTICE
EADME
egister.c
nclude/nativehelper/AndroidSystemNatives.h
nclude/nativehelper/JNIHelp.h
nclude/nativehelper/jni.h
|
379c0f0cfc20c82d902aef0890ed903a9d261a34 |
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
egister.c
nclude/nativehelper/AndroidSystemNatives.h
nclude/nativehelper/jni.h
|
ad83f63492fb91e7f8120fb78a01acee5b29c386 |
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
ndroid.mk
NIHelp.c
ODULE_LICENSE_APACHE2
OTICE
EADME
egister.c
nclude/nativehelper/AndroidSystemNatives.h
nclude/nativehelper/JNIHelp.h
nclude/nativehelper/jni.h
|