summaryrefslogtreecommitdiffstats
path: root/include/ScopedPrimitiveArray.h
Commit message (Collapse)AuthorAgeFilesLines
* Add null-pointer checking to ScopedPrimitiveArray.Elliott Hughes2010-07-121-2/+10
| | | | | | | | | | | | | | This style worked well for ScopedUtfChars. It moves null-pointer checking inside the class, thereby encouraging us to remember to check for the unlikely out-of-memory failures too. I've also broken up some tests that were trying to check multiple scoped arrays at once. This idiom was broken because as soon as there's a pending exception, it's a JNI error to even attempt to set up the next scoped primitive array. In the absence of C++ exceptions, we have to check these one by one. Change-Id: I2f4b397ae2873597e309d86fcc5912f3fcf0f304
* Add write-back ScopedPrimitiveArrays (and use them).Elliott Hughes2010-05-201-25/+60
| | | | | | | | I've left the remaining Get/Release Critical calls in "NativeConverter.cpp" for the next patch, even though getting into position to fix them is part of the point of this patch. Change-Id: I99e15a3cf3919008343ae4dc856c86ced233e07a
* Expand upon the old ScopedByteArray, and start removing some of the ↵Elliott Hughes2010-05-171-0/+65
Get/ReleaseCritical calls. This adds Scoped*Array classes for all primitive types, and switches all read-only users of arrays over. At the same time, all read-only users of Get/ReleaseCritical get switched to non-critical access. Bug: 2663177 Change-Id: I5542cea3e24faa987ced463fcb695b9598da94af