aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Make libnativehelper stand-alone.android-sdk-support_r11android-cts-4.2_r2android-cts-4.2_r1android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.2_r1android-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1android-4.2.1_r1.2android-4.2.1_r1.1android-4.2.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1tools_r21jb-releasejb-mr1.1-releasejb-mr1.1-devjb-mr1-releasejb-mr1-devjb-mr0-releasejb-devElliott Hughes2012-05-031-1/+2
| | | | | Bug: 6369821 Change-Id: I502211bddaf60d6097b81b35f606bbcdd1a3e092
* Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGESteve Block2011-10-251-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/141576 Bug: 5449033 Change-Id: Ie3bc0d5436218ea05f98cb0373ecf5924f78db05
* Fix JNIEXPORT now people are using -fvisibility.Elliott Hughes2011-08-191-7/+6
| | | | | | This is a backport from dalvik-dev. Change-Id: If6001b580bd9b36f3845aaa115333d69682f3a92
* Normalize the include guard style.Carl Shapiro2011-06-142-6/+6
| | | | | | | | | | 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
* Tidy up some includes.Elliott Hughes2011-06-081-1/+1
| | | | Change-Id: I5abd4f8ab06db0c77fa369fcd97d8f1259b343df
* Move JNIHelp's implementation to C++.Elliott Hughes2011-04-251-35/+29
| | | | | | Ouch. Change-Id: I81c0457a95549f1bef7cc8d9ab23d6ca4475cdb5
* Fix build by reverting NELEM change.Elliott Hughes2011-04-151-13/+0
| | | | Change-Id: Ie68f42213e7a915fb1be45ae87790117f8356c4e
* In C++, we can offer a better NELEM.Elliott Hughes2011-04-151-0/+13
| | | | Change-Id: Iaedc727becb4af1c779299d4da7c91bd522fe9cc
* Add jniThrowExceptionFmt.Elliott Hughes2011-04-081-0/+17
| | | | | | | | 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
* Remove JNI_FORCE_CAndy McFadden2011-02-081-1/+1
| | | | | | This hasn't been useful in a really long time. Change-Id: Ieea01f5d051bc8fc671f7414af3bed626ece75f1
* Fix a couple copyright headers that aren't in the prescribed format.Dan Bornstein2010-08-091-1/+16
| | | | Change-Id: I4de4dc69d8989f1add431e58533c7e633f67e550
* Remove trailing whitespace.Carl Shapiro2010-06-082-6/+6
| | | | Change-Id: I95534bb2b88eaf48f2329282041118cd034c812b
* am 09eae10c: am 23971e39: Merge "Added a new JNI helper for logging ↵Jeff Brown2010-06-031-1/+25
|\ | | | | | | exceptions. Plugged some JNI reference leaks in existing JNI helpers." into kraken
| * Added a new JNI helper for logging exceptions.Jeff Brown2010-06-021-1/+25
| | | | | | | | | | | | Plugged some JNI reference leaks in existing JNI helpers. Change-Id: I62213cdae375235f6ee9304ecd8dc3d2b7f58c85
* | Merge remote branch 'goog/dalvik-dev' into dalvik-dev-to-masterBrian Carlstrom2010-05-281-105/+0
|/ | | | Change-Id: I0c0edb3ebf0d5e040d6bbbf60269fab0deb70ef9
* Fix jniThrowRuntimeException for C callers, add jniThrowNullPointerException.Elliott Hughes2010-01-281-1/+14
| | | | ...and switch all NPE throwers over to the helper.
* am 66cbe5b1: am bf1bb914: am 4a888b09: Two exception-related tweaks: (1) ↵Dan Bornstein2009-12-081-1/+6
|\ | | | | | | | | | | | | | | | | 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
| * Two exception-related tweaks: (1) Make the dynamic exception constructionDan Bornstein2009-12-071-1/+6
| | | | | | | | | | | | | | 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
* | Merge change I4c4d050dAndroid (Google) Code Review2009-10-261-0/+16
|\ \ | | | | | | | | | | | | * 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.
| * | Clone TEMP_FAILURE_RETRY in JNIHelp.h, to make up for (take your pick)Dan Bornstein2009-10-261-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | laggard libc implementations not keeping up with the times or (perhaps) agressively modern libc implementations too eagerly expanding upon the standard. Change-Id: I4c4d050d15a00f4e82f8beb2b9c386b7c652f495
* | | Remove dead native org.apache.harmony.nio.AddressUtils code.Elliott Hughes2009-10-261-1/+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.
* / Expose the portable "strerror_r" used by jniThrowIOException.Elliott Hughes2009-10-201-0/+8
|/ | | | | Also add one example caller I used to test this, and update the libnativehelper README file.
* "External allocation" tracking for direct buffers.Andy McFadden2009-06-251-0/+2
| | | | | | | | | | | | | | 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.)
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-0/+1359
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-1359/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-172-18/+5
|
* Initial ContributionThe Android Open Source Project2008-10-213-0/+1372