summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add write(2).Elliott Hughes2011-03-2515-139/+89
| | | | | | | | | | | | | | | Note that this is a functional change, because the old code was wrong: it assumed that short writes don't happen. I thought we'd (I'd) cleaned this up just recently, but it looks like I must have only gone through the network code. Embarrassing. This also cleans up the previous read change a bit, factoring out a bit more duplication, and taking advantage of the fact that we now get decent exceptions thrown from invalid FileDescriptors (meaning we can remove explicit checks). Bug: 3107501 Change-Id: I8bd5324836c9d151dceaef5b84ec523a67391b64
* Fix build (javadoc).Elliott Hughes2011-03-251-10/+3
| | | | Change-Id: I7b109098bb367a2583d11bf41f5b9993e5009e42
* Add read(2).Elliott Hughes2011-03-2516-118/+98
| | | | | | | For both byte[]s and ByteBuffers. Bug: 3107501 Change-Id: I93b781069ade4507371c8fe8c5fda0163fbb2dbb
* Get AnnotationsTest to compile by throwing the right exceptions.Jesse Wilson2011-03-251-4/+4
| | | | Change-Id: Ib4506926c80c3959659c1873e544d32cb2a433b1
* Merge "Fast-path annotations for methods and constructors." into dalvik-devJesse Wilson2011-03-256-103/+171
|\
| * Fast-path annotations for methods and constructors.Jesse Wilson2011-03-256-103/+171
| | | | | | | | | | Change-Id: I4c884b7b9141ce449eb6cd5adba4e024a1807163 http://code.google.com/p/android/issues/detail?id=7811
* | Better detail message when HttpURLConnection.setRequestMethod fails.Elliott Hughes2011-03-251-1/+3
| | | | | | | | | | | | | | | | | | | | To wit: java.net.ProtocolException: Unknown method 'post'; must be one of [OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE] at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:639) Bug: http://code.google.com/p/android/issues/detail?id=15721 Change-Id: Ib4c185247985628a4df7e591f87e1c2c8e58ebdb
* | Merge "Remove dead cruft." into dalvik-devElliott Hughes2011-03-253-5/+2
|\ \ | |/ |/|
| * Remove dead cruft.Elliott Hughes2011-03-253-5/+2
| | | | | | | | | | | | | | And warn about the inadvisability of changing built-in system properties. Bug: 4174340 Change-Id: Ibd6258f56c608fa884cbd243223b50b12eb505ec
* | Merge "Fix inconsistencies in HttpURLConnection docs." into dalvik-devJesse Wilson2011-03-251-3/+4
|\ \
| * | Fix inconsistencies in HttpURLConnection docs.Jesse Wilson2011-03-181-3/+4
| | | | | | | | | | | | | | | Change-Id: I999b2cf7b904659923e02111aa62946d488e159e http://code.google.com/p/android/issues/detail?id=14933
* | | resolved conflicts for merge of cfa84a2a to dalvik-devBrian Carlstrom2011-03-2413-1754/+1962
|\ \ \ | | | | | | | | | | | | Change-Id: I7765cd4bf03f0b18e60848c30dcce30cbdd7c77b
| * | | Import SamplingProfiler from http://code.google.com/p/dalvik/Brian Carlstrom2011-03-2413-1751/+1962
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cp ~/android/dalvik/profiler/src/main/java/dalvik/profiler/* ~/android/master/libcore/dalvik/src/main/java/dalvik/system/profiler/ cp ~/android/dalvik/profiler/src/test/java/dalvik/profiler/* ~/android/master/libcore/dalvik/src/test/java/dalvik/system/profiler/ perl -p -i -e 's/package dalvik.profiler;/package dalvik.system.profiler;/' ~/android/master/libcore/dalvik/src/*/java/dalvik/system/profiler/*.java perl -p -i -e 's/import dalvik.profiler./import dalvik.system.profiler./' ~/android/master/libcore/dalvik/src/*/java/dalvik/system/profiler/*.java Change-Id: Iae3f63327f4a9dde7f037e69c22057e2ea704aaa
* | | | Merge "Optimize annotation lookups on types." into dalvik-devJesse Wilson2011-03-242-4/+113
|\ \ \ \ | |_|_|/ |/| | |
| * | | Optimize annotation lookups on types.Jesse Wilson2011-03-242-4/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I benchmarked this. Before & after results, in microseconds: before after GetAnnotation 716.6 122.65 IsAnnotationPresent 712.1 1.19 Benchmark source is here: http://code.google.com/p/dalvik/source/browse/trunk/benchmarks/regression/AnnotatedElementBenchmark.java?spec=svn90&r=90 This is the first part of the change; I intend to follow up by optimizing the corresponding methods on Field and Method. Change-Id: I5912b526dfa87a61a95fbe7b7efc48d0dca3ad38
* | | | Merge "Add fcntl(2)." into dalvik-devElliott Hughes2011-03-2417-79/+142
|\ \ \ \
| * | | | Add fcntl(2).Elliott Hughes2011-03-2417-79/+142
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I initially used overloading, but that actually decreases safety in practice because which overload you need is (uniquely) determined by the specific command you're issuing. Forcing callers to explicitly state what they're doing works around this. As it was, I had to use strace(1) to find my bug. Bug: 3107501 Change-Id: Ia54b72dd6453372922f01b22f382eb93ac91aaa7
* | | | Fix a doc typo in TimSort.Jesse Wilson2011-03-241-1/+1
|/ / / | | | | | | | | | Change-Id: I47da49b65634bad2e12be4fedb31b0f21d16a3a9
* | | Add uname(2).Elliott Hughes2011-03-2411-21/+92
| | | | | | | | | | | | | | | | | | | | | | | | This replaces InetAddress's use of gethostname(2), and System's hard-coded use of uname(2) itself. Bug: 3107501 Change-Id: I7e808177eece1e38428fea18a96c65628d51d93e
* | | Add listen(2).Elliott Hughes2011-03-2412-33/+31
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I3677bb4ddb3f3d0e58a6833165504f47bb309630
* | | Add shutdown(2).Elliott Hughes2011-03-2410-43/+25
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I30354c4cc6e86a4e7b0e3f84e95719539db1d297
* | | Add pipe(2).Elliott Hughes2011-03-2411-71/+60
| | | | | | | | | | | | | | | | | | | | | This lets us kill quite a bit of IoUtils. Bug: 3107501 Change-Id: Ic8a297b29cc53a17841cc77e266cd8dc3910c521
* | | Clean up File's absolute path handling.Elliott Hughes2011-03-232-57/+48
| | | | | | | | | | | | | | | | | | | | | Judging by my new test, the RI evaluates an absolute path relative to "user.dir" at the time you call File.getAbsolutePath, and doesn't cache. Change-Id: Ied1b47a1daa9c10249f11b6f2847073b9e37ea12
* | | Add mkdir(2) and remove(2).Elliott Hughes2011-03-236-27/+35
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: Ia4ca50b957d6015fa49076806273054563d25b63
* | | Add chmod(2).Elliott Hughes2011-03-236-78/+37
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: If3a0639634a90f607b8c6035f25b03d23e7261e0
* | | Fix an initialization.Elliott Hughes2011-03-231-1/+1
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I4d52107bb21a36ac0f160bdbb84213aa6fa89399
* | | Add statfs(2).Elliott Hughes2011-03-239-52/+141
| | | | | | | | | | | | | | | | | | | | | | | | Bionic doesn't support statvfs(2), so we'll have to use statfs(2) in the meantime. We should fix this before making this API public, though. Bug: 3107501 Change-Id: I1af8a473261586321543dd1554e1f6079a84f384
* | | Fix build.Elliott Hughes2011-03-231-0/+1
| | | | | | | | | | | | Change-Id: I90c61a36ec7f7fae138d65fbe34b2ff6d9abaa17
* | | Add rename(2) and symlink(2).Elliott Hughes2011-03-237-41/+48
| | | | | | | | | | | | | | | | | | | | | And use them too. Bug: 3107501 Change-Id: I83b512a2553bfc2501d02c251a4649f8e670774e
* | | Move File.createNewFile into Java.Elliott Hughes2011-03-234-31/+46
| | | | | | | | | | | | | | | | | | | | | Also add improved tests. Bug: 3107501 Change-Id: Ibea9bd71adf1e1230c14072fb4597ad5bd9c214b
* | | Add open(2).Elliott Hughes2011-03-2219-103/+142
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I404030b4c678862465d04f723a6a324663e0af25
* | | Add mincore(2).Elliott Hughes2011-03-227-40/+42
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: Ibb288b0889ff47612f77870239f51928b35754a9
* | | Merge "Remove more dead SecurityManager cruft." into dalvik-devElliott Hughes2011-03-225-48/+12
|\ \ \
| * | | Remove more dead SecurityManager cruft.Elliott Hughes2011-03-225-48/+12
| | | | | | | | | | | | | | | | | | | | | | | | (Requires corresponding dalvik change.) Change-Id: I65cd76ae056d4a1ff5f1a3e168b118a47cf09ff5
* | | | Merge "Move finalization into the core library." into dalvik-devCarl Shapiro2011-03-218-24/+236
|\ \ \ \ | |/ / / |/| | |
| * | | Move finalization into the core library.Carl Shapiro2011-03-218-24/+236
| | | | | | | | | | | | | | | | Change-Id: I969ecc25f2a7e655e1093855514102662846dfe1
* | | | Add mlock(2) and munlock(2).Elliott Hughes2011-03-186-8/+23
| | | | | | | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I7e4cad36370196d990c709bfa33f89d7568aa453
* | | | Merge "Add mmap(2), msync(2), and munmap(2)." into dalvik-devElliott Hughes2011-03-1811-133/+137
|\ \ \ \
| * | | | Add mmap(2), msync(2), and munmap(2).Elliott Hughes2011-03-1811-133/+137
| | |_|/ | |/| | | | | | | | | | | | | | Bug: 3107501 Change-Id: I6a7c4147ec27bab9ded280476bad1157ce03fab8
* | | | Merge "Prefer the user's stream handlers to the built-in ones." into dalvik-devJesse Wilson2011-03-184-140/+179
|\ \ \ \
| * | | | Prefer the user's stream handlers to the built-in ones.Jesse Wilson2011-03-184-140/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apps may use this to install their own protocol handlers instead of the default ones. This is used for HTTP NTLM authentication in some libraries. Change-Id: Icd5882e8ddd0545f897bee916150765e02929fc9
* | | | | Add a missing @hide to a non-public API.Jesse Wilson2011-03-181-0/+2
|/ / / / | | | | | | | | | | | | Change-Id: I8847da1960907c0b7ca232ded0d418971a1e1f80
* | | | Don't block a selector if the current thread has been interrupted.Jesse Wilson2011-03-186-51/+110
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes setInterruptAction to be push/pop rather than set/unset. During testing I found that different classes were conflicting with the interrupt action: Channels and Selectors were setting it simultaneously. Change-Id: Ie1f96c2a1db9412863f4a181cfa29a239ffa5996 http://code.google.com/p/android/issues/detail?id=15388
* | | Merge "Add isatty(2)." into dalvik-devElliott Hughes2011-03-186-7/+14
|\ \ \ | |/ / |/| |
| * | Add isatty(2).Elliott Hughes2011-03-186-7/+14
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: I67e4a4ceeba945095419d176e7de5edb7da8a440
* | | Move URLConnection classes to libcore.net.Jesse Wilson2011-03-1826-56/+53
|/ / | | | | | | Change-Id: I14bf8373dfce50dda94e1a64419b9a8a9cf3c82e
* | Merge "Add lseek(2)." into dalvik-devElliott Hughes2011-03-1811-84/+62
|\ \
| * | Add lseek(2).Elliott Hughes2011-03-1811-84/+62
| | | | | | | | | | | | | | | Bug: 3107501 Change-Id: Ie27e2ae1c7d37de5f02b1d81ee2005182339f881
* | | Merge "Move sqlite-jdbc to be a static library" into dalvik-devBrian Carlstrom2011-03-182-3/+5
|\ \ \ | |/ / |/| |
| * | Move sqlite-jdbc to be a static libraryBrian Carlstrom2011-03-182-3/+5
| | | | | | | | | | | | Change-Id: If02a0973eb7ba0291a75397dda5f221b810890de