| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I7b109098bb367a2583d11bf41f5b9993e5009e42
|
|
|
|
|
|
|
| |
For both byte[]s and ByteBuffers.
Bug: 3107501
Change-Id: I93b781069ade4507371c8fe8c5fda0163fbb2dbb
|
|
|
|
| |
Change-Id: Ib4506926c80c3959659c1873e544d32cb2a433b1
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: I4c884b7b9141ce449eb6cd5adba4e024a1807163
http://code.google.com/p/android/issues/detail?id=7811
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
And warn about the inadvisability of changing built-in system properties.
Bug: 4174340
Change-Id: Ibd6258f56c608fa884cbd243223b50b12eb505ec
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I999b2cf7b904659923e02111aa62946d488e159e
http://code.google.com/p/android/issues/detail?id=14933
|
|\ \ \
| | | |
| | | |
| | | | |
Change-Id: I7765cd4bf03f0b18e60848c30dcce30cbdd7c77b
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |_|_|/
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|/ / /
| | |
| | |
| | | |
Change-Id: I47da49b65634bad2e12be4fedb31b0f21d16a3a9
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This replaces InetAddress's use of gethostname(2), and System's hard-coded use
of uname(2) itself.
Bug: 3107501
Change-Id: I7e808177eece1e38428fea18a96c65628d51d93e
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: I3677bb4ddb3f3d0e58a6833165504f47bb309630
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: I30354c4cc6e86a4e7b0e3f84e95719539db1d297
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This lets us kill quite a bit of IoUtils.
Bug: 3107501
Change-Id: Ic8a297b29cc53a17841cc77e266cd8dc3910c521
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: Ia4ca50b957d6015fa49076806273054563d25b63
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: If3a0639634a90f607b8c6035f25b03d23e7261e0
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: I4d52107bb21a36ac0f160bdbb84213aa6fa89399
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | | |
Change-Id: I90c61a36ec7f7fae138d65fbe34b2ff6d9abaa17
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
And use them too.
Bug: 3107501
Change-Id: I83b512a2553bfc2501d02c251a4649f8e670774e
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also add improved tests.
Bug: 3107501
Change-Id: Ibea9bd71adf1e1230c14072fb4597ad5bd9c214b
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: I404030b4c678862465d04f723a6a324663e0af25
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: Ibb288b0889ff47612f77870239f51928b35754a9
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(Requires corresponding dalvik change.)
Change-Id: I65cd76ae056d4a1ff5f1a3e168b118a47cf09ff5
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I969ecc25f2a7e655e1093855514102662846dfe1
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 3107501
Change-Id: I7e4cad36370196d990c709bfa33f89d7568aa453
|
|\ \ \ \ |
|
| | |_|/
| |/| |
| | | |
| | | |
| | | | |
Bug: 3107501
Change-Id: I6a7c4147ec27bab9ded280476bad1157ce03fab8
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|/ / / /
| | | |
| | | |
| | | | |
Change-Id: I8847da1960907c0b7ca232ded0d418971a1e1f80
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: I67e4a4ceeba945095419d176e7de5edb7da8a440
|
|/ /
| |
| |
| | |
Change-Id: I14bf8373dfce50dda94e1a64419b9a8a9cf3c82e
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Bug: 3107501
Change-Id: Ie27e2ae1c7d37de5f02b1d81ee2005182339f881
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: If02a0973eb7ba0291a75397dda5f221b810890de
|