summaryrefslogtreecommitdiffstats
path: root/luni-kernel/src/main/java
Commit message (Collapse)AuthorAgeFilesLines
* Merge awt-kernel, icu, luni-kernel, prefs, security-kernel, x-net into luniPeter Hallam2010-05-0430-14073/+0
| | | | Merge xml except xmlpull and kxml into luni
* Latest java.util.concurrent from the JSR 166 project.Jesse Wilson2010-04-091-0/+3
| | | | | | | Code was downloaded from CVS on 2010-april-7 at 10:00pst http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ The new interfaces and ArrayDeque class are all from Harmony.
* resolved conflicts for merge of 19252faf to dalvik-devElliott Hughes2010-04-081-32/+10
|\ | | | | | | Change-Id: Ibf429f9d9d048c01cb8f33b15e8b404d83138b74
| * Disable System.setSecurityManager.Elliott Hughes2010-04-081-34/+10
| | | | | | | | | | | | | | | | | | We plan on removing SecurityManager checks, which are expensive and non-useful, especially because Android doesn't use SecurityManager itself. As a first step, let's ship a release where it's no longer possible to set a SecurityManager. Bug: 1320501 Change-Id: I88664dbc1d8b087579d54003a1aaed7b3d8412be
* | Improve the ThreadGroup documentation.Elliott Hughes2010-03-241-128/+97
| | | | | | | | | | | | | | (Because I was asked a question about ThreadGroup today, and the answer is always "don't use ThreadGroup"...) Change-Id: Ibaa2f1830e1fe435c9712f3b08506639b9521b9e
* | Remove all remaining "@since Android" tags.Elliott Hughes2010-03-2219-494/+16
| | | | | | | | | | | | | | I've fixed a few typos, and removed a few of the more egregiously nonsensical or incorrect comments that were nearby. Change-Id: I35851baebd532f949cc269f4738a26eeb9b6e697
* | Add Java 6's java.io.Console.Elliott Hughes2010-03-161-0/+12
| | | | | | | | | | | | | | | | | | | | | | This is actually functional, if you're in the mood to "adb shell". The implementation is based on harmony's, but with the initialization and native code rewritten, with readPassword responsible for echoing a newline (so we don't have to play silly tricks with the ECHONL flag), and a vastly simplified ConsoleReader class. I've also rewritten the documentation. Change-Id: I902b47fb27a8fdb2d6f067bb905ee02c6a10e454
* | Back out my droiddoc-breaking Object.getClass signature change.Elliott Hughes2010-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | I'll try again when I've got time to fix droiddoc (or we get an SET). This is a non-functional Java 5/Java 6 difference, so it isn't important. (Amusingly, there's no need to back out the corresponding api.xml change: it looks like droiddoc normalizes one but not the other.) Change-Id: I012ebeb199696d5bd16de63e657b15889d546c5e
* | Fix all instances of "new Integer" (et cetera).Elliott Hughes2010-03-111-5/+5
| | | | | | | | | | | | (This doesn't include libcore/xml/ because I don't want to get in the way there.) Change-Id: I46f638105d26e82d09128fca605117322229e146
* | Plug a resource leak with "finally" and make Object.getClass' return type ↵Elliott Hughes2010-03-112-6/+3
| | | | | | | | | | | | match Java 6. Change-Id: Ia8ae90634bfb3680c8e82e4e4cf7f7459263c3d3
* | Merge "Minor fixes." into dalvik-devAndy McFadden2010-03-101-1/+1
|\ \
| * | Minor fixes.Andy McFadden2010-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Quieted a couple of warnings about constness. Added "synchronized" to BootClassLoader.getInstance(), which creates the instance on first use. Change-Id: I4a521bb2c6853b1ad8a118aa53f697be18b69280
* | | Add Java 6 additions to Double, Enum, Float, and String.Elliott Hughes2010-03-102-4/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | I rewrote the documentation for Double, Enum, and Float, but the "code" is the same as harmony's. I rewrote the String code and wrote some tests to ensure that a malicious Charset can't subvert String immutability. I've also extracted the Android-specific bits of StringTest (which weren't testing String at all) and brought back the latest harmony StringTest.java. (The Class and Package changes are just to placate our API comparison tools.) Bug: 2497395 Change-Id: Id57bda806891c3c85adfcb3b85eea8a8fad2c7b4
* | am f76b01c6: Merge "Document that Class.getSigners() always returns null."Elliott Hughes2010-02-281-60/+6
|\ \ | |/ | | | | | | | | | | Merge commit 'f76b01c6377ad4653dcdc37b2ca35db785219f80' into dalvik-dev * commit 'f76b01c6377ad4653dcdc37b2ca35db785219f80': Document that Class.getSigners() always returns null.
| * Document that Class.getSigners() always returns null.Elliott Hughes2010-02-251-60/+6
| | | | | | | | | | Bug: 1594865 Bug: http://code.google.com/p/android/issues/detail?id=1766
* | Fix FindBugs' "high" warnings about java.lang.Class.Elliott Hughes2010-02-161-3/+5
|/
* The SecurityManager doesn't work, so advertise that shouldn't be used.Jesse Wilson2010-01-071-3/+7
|
* Implement ProcessBuilder.redirectErrorStream.Elliott Hughes2009-10-282-39/+41
| | | | | | | Also simplify and correct the security to ensure that the user can't modify the command to be executed after the SecurityManager has approved it. Bug: 2180063
* Fix Constructor and Method to not expose their internals.Elliott Hughes2009-10-132-9/+9
| | | | | | | | | We shouldn't expose internal arrays without copying. Behavior confirmed by testing against RI. Also connect up the dalvik ThreadsTest test that had fallen by the wayside. Bug: 2102273
* Phantom fun.Andy McFadden2009-09-101-4/+4
| | | | | | Mark PhantomReference fields as volatile, since the GC can alter them. Added a simple phantom reference exerciser.
* Fix Package.isCompatibleWith.Elliott Hughes2009-09-041-3/+2
| | | | | | | Note that this doesn't help us because to Dalvik, all packages have version "0.0". Bug: 2099697
* Merge change 23208 into eclairAndroid (Google) Code Review2009-09-031-5/+11
|\ | | | | | | | | * changes: Fix Class.getConstructor("whatever", (Class[]) null).
| * Fix Class.getConstructor("whatever", (Class[]) null).Elliott Hughes2009-09-031-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The RI treats null parameterTypes the same as an empty array. This behavior is specified for getMethod, but only implied for getConstructor. This patch: * Fixes getConstructor. * Improves javadoc for Class methods taking "Class... parameterTypes". * Adds tests for both getConstructor and getMethod (which was already correct). * Removes a line of debugging output to System.out. Bug: 1824973
* | DO NOT MERGE: Fix implementation of Thread.isAliveAndy McFadden2009-09-021-3/+1
|/ | | | | | | | | | | | | | | | | (Originally submitted to master, pulling over to eclair.) The implementation of Thread.isAlive() was changed a couple of years ago as part of the Harmony integration. The current version relies on the thread's state value to determine its liveness, but the VM was originally written to be like JamVM, which used GNU ClassPath, which uses the vmThread field instead. It looks like it's possible for Thread.join() to get stuck, though as far as I know this hasn't happened. We're essentially rolling back part of 27774-p9. For internal bug 1966734. Also: ran --update on test 044.
* Integrate luni module (but not tests) to Harmony r772995.Jesse Wilson2009-07-242-103/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable changes - Stripped "@since Android 1.0" from many files. Most files are now 100% the same in Dalvik and Harmony. - AbstractStringBuilder.reverse() supports surrogates - AbstractStringBuilder shares less to waste less memory - Bitset optimized - BufferedInputStream changed to support unsynchronized close() - BufferedOutputStream does flushInternal - BufferedReader supports EBCDIC NEL - Collections.synchronizedList().indexOf() does a copy for more concurrency - Classes in nio module changed: DatagramChannelImpl, SocketChannelImpl and ServerSocketChannelImpl (these depend on internal APIs changed in this update) - DataInputStream/DataOutputStream now use a small buffer to limit the number of times the underlying stream is accessed - Date now has a minutes offset, more efficient toString() - ExposedByteArrayInputStream: new internal class - DeleteOnExit moved to top-level class - FileDescriptor.isValid() now non-native - Float, Double lessThan optimized (fix for compare(-0.0F, 0.0F) still pending) - FileURLConnection now guesses content types from streams - HashMap iterator changes - Hashtable iterator changes - INetworkSystem - removes bind2(), createMulticastSocket, sendStream(), - renames createSocket to createStreamSocket - JarURLConnection rewritten - LinkedHashMap: new iterator - Locale, Currency, TimeZone: now use ICU in Harmony, plain Java in Dalvik - ObjectInputStream: Accessor objects in Harmony, direct native in Dalvik - ProxyClassFile - many changes - String - optimized ascii for toLowerCase, toUpperCase, compare - Timer - rewritten - TreeMap - rewritten - URLClassLoader - new - URLConnection - new guessContentTypeFromStream(), uses org.apache.harmony.awt.www.content to lookup content type handlers
* Fixing wakeups caused by Thread.join() interacting with LockSupport.unpark.Jesse Wilson2009-07-161-11/+49
| | | | | | | | This caused several concurrency tests to fail when run with timeouts, since the tests cause park and unpark to happen frequently. Also fixing a tiny issue with CoreTestRunnable to use the proper tmp directory and to include the program of a failed external execution.
* Modified Thread to copy the context class loader from parent to child ↵crazybob2009-06-161-0/+2
| | | | | | threads. Re-enabled test that covers this. Removed security-related code from test since it was invalid (the security check doesn't occur if the calling code's class loader is an ancestor of the context class loader).
* am 4645b7c: AI 147732: fix broken linksScott Main2009-04-283-3/+3
|\ | | | | | | | | | | | | Merge commit '4645b7c3a461769281a0b2b846a26c79e806aaa0' into donut * commit '4645b7c3a461769281a0b2b846a26c79e806aaa0': AI 147732: fix broken links
| * AI 147732: fix broken linksScott Main2009-04-243-3/+3
| | | | | | | | | | | | BUG=1810005 Automated import of CL 147732
* | Fix an infinite loop in ClassLoader.isAncestorOf()Urs Grob2009-04-281-1/+1
|/ | | | | | | | The current version loops endlessly if the callers ClassLoader is not the same as the system ClassLoader. The cause for this is a loop variable that is not changed during the loop. BUG=1732214
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0330-0/+14595
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0330-14595/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-105-36/+72
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-154-6/+18
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-19/+34
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1725-2871/+4462
|
* Initial ContributionThe Android Open Source Project2008-10-2130-0/+12941