summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Fix build (don't rely on transitive #include).Elliott Hughes2009-09-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The sim-eng build wasn't picking up <string.h> for memcpy(3).
* | | | | | Throw meaningful IOException instances from native code.Elliott Hughes2009-09-307-571/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Java side of OSFileSystem was throwing IOExceptions with no detail message. If we throw from the native side instead, we can supply meaningful explanations. This turned up a couple of bugs: * read, readDirect, readv, writev, and ttyRead would only throw IOException if they returned < -1, which is impossible. (writev was probably a copy & paste from readv, and the reads were probably confused by the impedence mismatch between Unix's use of 0 to mean end of file and -1 to mean error, and Java's use of -1 for end of file.) * inconsistent checking for null byte[]s passed in. * read and write would retry on EINTR, but readDirect and writeDirect wouldn't. * we'd silently truncate seek/lock/truncate offsets that didn't fit in 32 bits; we now throw an IOException instead. It also means a few native functions become "void" because errors are now reported by throwing exceptions, and the Java functions that used to call them are no longer needed. Also change ProcessManager to use jniThrowIOException, remove the unused throwIOExceptionStr from OSNetworkSystem.cpp, and remove the KnownFailure from FileTest's test_delete, now we have a fixed version of yaffs that won't rmdir(2) non-empty directories. Bug: 1542253
* | | | | | Merge change I866cc5d6Android (Google) Code Review2009-09-301-20/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Improve run-core-tests.
| * | | | | | Improve run-core-tests.Elliott Hughes2009-09-291-20/+29
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow multiple tests to be specified on the command-line, and recognize syntax errors. (Previously, as long as the arguments ended in a test name, invalid arguments that didn't start "--" would be silently ignored. The new test for "-" is strictly unnecessary -- the other changes are sufficient -- but the explicit early test allows for clearer error reporting.)
* | | | | | Merge change I09239e36Android (Google) Code Review2009-09-300-0/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Report all RegisterNatives failures, not just the first.
| * | | | | | Report all RegisterNatives failures, not just the first.Elliott Hughes2009-09-290-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (It seems that when I make one mistake, I generally make several at once.)
* | | | | | | Fixed the trace builder to correctly handle excpetion throwing instruction.Ben Cheng2009-09-290-0/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | Added a new unit test 081-hot-exceptions to target this problem.
* | | | | | Manual merge of change I3665f82b into master.Lorenzo Colitti2009-09-298-497/+224
|/ / / / /
* | | | | Replace existing ArrayList implementation with faster, simpler one.Joshua Bloch2009-09-282-462/+447
| | | | |
* | | | | Merge change I5e88f105Android (Google) Code Review2009-09-280-0/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add copyright statement to dexcheck.
| * | | | | Add copyright statement to dexcheck.Andy McFadden2009-09-280-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Because even humble shell scripts deserve legal protection.
* | | | | | am f591c78e: (-s ours) am 94bf2b21: Merge change 27156 into eclairJesse Wilson2009-09-280-0/+0
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'f591c78e3117dfbd727411386175bf1c1aef615b' * commit 'f591c78e3117dfbd727411386175bf1c1aef615b': DO NOT MERGE: Cleaning up PipedInputStream
| * | | | | am 94bf2b21: Merge change 27156 into eclairJesse Wilson2009-09-261-41/+82
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '94bf2b217df69e943843b51b0ea0bb72743cc6b3' into eclair-plus-aosp * commit '94bf2b217df69e943843b51b0ea0bb72743cc6b3': DO NOT MERGE: Cleaning up PipedInputStream
| | * | | | Merge change 27156 into eclairAndroid (Google) Code Review2009-09-261-41/+82
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: DO NOT MERGE: Cleaning up PipedInputStream
| | | * | | | DO NOT MERGE: Cleaning up PipedInputStreamJesse Wilson2009-09-251-41/+82
| | | | |/ / | | | |/| |
* | | | | | am 2ff7a674: am 979baaea: Deprecate many of the accidentally-published APIs ↵Jesse Wilson2009-09-289-22/+33
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in dalvik.system. Merge commit '2ff7a6741726c7f43a3cea6d30bf7c387f913e78' * commit '2ff7a6741726c7f43a3cea6d30bf7c387f913e78': Deprecate many of the accidentally-published APIs in dalvik.system.
| * | | | | am 979baaea: Deprecate many of the accidentally-published APIs in dalvik.system.Jesse Wilson2009-09-269-22/+33
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '979baaeae3122b0c7ad5b24e7842472127b8a967' into eclair-plus-aosp * commit '979baaeae3122b0c7ad5b24e7842472127b8a967': Deprecate many of the accidentally-published APIs in dalvik.system.
| | * | | | Deprecate many of the accidentally-published APIs in dalvik.system.Jesse Wilson2009-09-259-22/+33
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See bug 2021674 for discussion. I searched Google Code Search to sample which of these APIs are being used. None of these APIs were used by applications, so I'm quite confident that removing them will not break applications or upset developers. These APIs were neither formerly documented, nor intended for use by application developers. I am deprecating them now to discourage their use going forward. We should remove them in a future release.
* | | | | Fixed OOM exception handling in JIT'ed code and added a new unit test.Ben Cheng2009-09-270-0/+0
| | | | |
* | | | | Registers allocated for 64-bit values should be contiguous.Ben Cheng2009-09-270-0/+0
| |_|/ / |/| | | | | | | | | | | Found in "Karl's Mortgage Calculator" from the market.
* | | | am 7a37c30a: am bb710e32: Remove ((noreturn)) from dvmAbort().Andy McFadden2009-09-250-0/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '7a37c30a85c58a8c51ae3f9551132a1bf405e4f6' * commit '7a37c30a85c58a8c51ae3f9551132a1bf405e4f6': Remove ((noreturn)) from dvmAbort().
| * | | am bb710e32: Remove ((noreturn)) from dvmAbort().Andy McFadden2009-09-240-0/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit 'bb710e3294c57587f327c5e365353af81aa2cb5f' into eclair-plus-aosp * commit 'bb710e3294c57587f327c5e365353af81aa2cb5f': Remove ((noreturn)) from dvmAbort().
| | * | Remove ((noreturn)) from dvmAbort().Andy McFadden2009-09-240-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions that could call dvmAbort() from more than one place were merging the calls together, which is great until you need to decode a native stack trace. For 2144313.
* | | | Merge change 26716Android (Google) Code Review2009-09-255-3/+50
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Fix Node.getNextSibling bounds checking.
| * | | | Fix Node.getNextSibling bounds checking.Elliott Hughes2009-09-255-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obvious copy & paste error in InnerNodeImpl compared to LeafNodeImpl, plus new test. I've also fixed a typo that annoys me whenever I look at the XML test results, and removed a KnownFailure for a test that passes (and has been passing for some time). Bug: 779
* | | | | Implemented a new scheduler and FP register allocator.Ben Cheng2009-09-250-0/+0
| | | | | | | | | | | | | | | | | | | | Improved performance by 50% over existing JIT for some FP benchmarks.
* | | | | am ac60268a: (-s ours) am f1823804: Merge change 26285 into eclairLorenzo Colitti2009-09-250-0/+0
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Merge commit 'ac60268af417d3a9a948309798d92196a958bc75' * commit 'ac60268af417d3a9a948309798d92196a958bc75': Use native code to convert strings to IP addresses.
| * | | | am f1823804: Merge change 26285 into eclairLorenzo Colitti2009-09-228-513/+186
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | Merge commit 'f182380424709227a08f7d84056209be0952d06d' into eclair-plus-aosp * commit 'f182380424709227a08f7d84056209be0952d06d': Use native code to convert strings to IP addresses.
| | * | | Merge change 26285 into eclairAndroid (Google) Code Review2009-09-228-513/+186
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Use native code to convert strings to IP addresses.
| | | * | | Use native code to convert strings to IP addresses.Lorenzo Colitti2009-09-228-513/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Add an ipStringToByteArray method to the OSNetworkSystem interface and provide a native implementation for it. 2. Change InetAddress to use the new method. 3. Remove a mid-sized chunk of Inet6Util, which is now redundant. 4. Remove the KnownFailure annotations from the InetAddress, InetAddress and Inet6Address tests that expected 1.2.3, 1.3 and 3 to be valid IPv4 addresses. These tests now pass again. 5. Removed an unused native method. 6. Added a comment to the top of the native socket implementation to the effect that the file is significantly different from harmony. Change-Id: I3665f82b00ebc089e9133cc6166dda5a99fa10e4
* | | | | | Merge change 26934Android (Google) Code Review2009-09-241-5/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix 32-bit int shifted >= 32 bits in SSLInputStream.
| * | | | | | Fix 32-bit int shifted >= 32 bits in SSLInputStream.Elliott Hughes2009-09-241-5/+5
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | This code isn't actually called by us, but it's public API. Bug: 2099901
* | | | | | Merge change 26920Android (Google) Code Review2009-09-240-0/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | * changes: Fix gcc complaint.
| * | | | | Fix gcc complaint.Andy McFadden2009-09-240-0/+0
| | |_|_|/ | |/| | |
* | | | | Merge change 26371Android (Google) Code Review2009-09-230-0/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix right shift by constant 0 in Jit. Bug #2135879
| * | | | | Fix right shift by constant 0 in Jit. Bug #2135879Bill Buzbee2009-09-220-0/+0
| | | | | |
* | | | | | am 5c6fee52: am 40f3271c: More doc changes.Andy McFadden2009-09-230-0/+0
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '5c6fee520e29bcd589b5ab310194ca9773332eba' * commit '5c6fee520e29bcd589b5ab310194ca9773332eba': More doc changes.
| * | | | | am 40f3271c: More doc changes.Andy McFadden2009-09-220-0/+0
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '40f3271c2dd386878c9a180462c75c890913e9b4' into eclair-plus-aosp * commit '40f3271c2dd386878c9a180462c75c890913e9b4': More doc changes.
| | * | | | More doc changes.Andy McFadden2009-09-220-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some content changes inspired by external developer feedback, plus some corrections of long-standing typos.
* | | | | | am 8db3bd6e: am 9ae00645: Merge change 26280 into eclairAndy McFadden2009-09-230-0/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '8db3bd6ec5e242d05488c2c175c90d6b5d535a43' * commit '8db3bd6ec5e242d05488c2c175c90d6b5d535a43': Another doc update.
| * | | | | am 9ae00645: Merge change 26280 into eclairAndy McFadden2009-09-220-0/+0
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '9ae0064588a6f922834c8998ef91f04a0d19b1cc' into eclair-plus-aosp * commit '9ae0064588a6f922834c8998ef91f04a0d19b1cc': Another doc update.
| | * | | | Merge change 26280 into eclairAndroid (Google) Code Review2009-09-220-0/+0
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Another doc update.
| | | * | | | Another doc update.Andy McFadden2009-09-210-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emphasized the need for global ref with FindClass. Stated that JNI_OnLoad is optional. Added note about FindClass and class loaders.
* | | | | | | Merge change 26453Android (Google) Code Review2009-09-232-36/+71
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | * changes: Fix Formatter.format's handling of Formattable.
| * | | | | | Fix Formatter.format's handling of Formattable.Elliott Hughes2009-09-222-36/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't make much difference to performance, but it is slightly faster and I think it reads better too. Proof of the latter is the fact that the rewritten form accidentally fixed bug 1767: the old code was storing up literal text until after handling the next format specifier, which is wrong if the format specifier has side effects caused by the use of Formattable. (I don't plan on doing any more on the performance bug for now, though I note that %g allocates and manipulates BigDecimal instances, which would be worth looking at when we get round to the bug that causes it to fail a harmony test.) Bug: 1476, 1767
* | | | | | | Fix useDaylightTime for zh_TW (and other locales).Elliott Hughes2009-09-222-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TimeZone.useDaylightTime shouldn't report whether a locale has *ever* used DST, but whether a locale uses DST "these days". Taiwan is an example supported locale that historically used DST but hasn't used it since 1980. Bug: 877
* | | | | | | am 4b8fbfe9: am 51ccfdb5: Merge change 26318 into eclairJoshua Bloch2009-09-225-109/+139
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | / / | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | Merge commit '4b8fbfe9f7dcd8cfa796f968b9feaadb3c72661c' * commit '4b8fbfe9f7dcd8cfa796f968b9feaadb3c72661c': Fixed LinkedHashMap bug 2121546
| * | | | | am 51ccfdb5: Merge change 26318 into eclairJoshua Bloch2009-09-225-109/+139
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '51ccfdb54990e2c30bc3057e8f18ee760c7eee41' into eclair-plus-aosp * commit '51ccfdb54990e2c30bc3057e8f18ee760c7eee41': Fixed LinkedHashMap bug 2121546
| | * | | | Merge change 26318 into eclairAndroid (Google) Code Review2009-09-225-109/+139
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fixed LinkedHashMap bug 2121546 Also made minor improvements in LinkedHashMap and NegativeCache. (The "opportunities for improvement" were discovered while investigating the bug.)
| | | * | | | Fixed LinkedHashMap bug 2121546Joshua Bloch2009-09-215-109/+139
| | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | Also made minor improvements in LinkedHashMap and NegativeCache. (The "opportunities for improvement" were discovered while investigating the bug.)