summaryrefslogtreecommitdiffstats
path: root/libcore
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Implementing Document.renameNode() and DOMImplementation.getFeature().Jesse Wilson2010-03-157-100/+228
| | | | | | | | | | | | | | | | | | | | | The rename code required moving some behaviour from ElementImpl and AttrImpl up to their common superclass, NodeImpl. Change-Id: I30910de146f525a5ecc837895ce5808928b858a0
* | | Increase the SHORT_DELAY amount in the JSR166 test.Ben Cheng2010-03-141-1/+4
|/ / | | | | | | Change-Id: I890621226c5ea412baee568f3e9b31833185849a
* | Adding an Apache-licensed implementation of org.jsonJesse Wilson2010-03-126-0/+0
| | | | | | | | Change-Id: I1b67bac70bd25220a619e6ebe61f7f1c6f316faa
* | Removing the non-free org.json implementationJesse Wilson2010-03-125-2662/+0
| | | | | | | | Change-Id: Ife53082824f5916665f198d4b2fb863271841ce0
* | Merge "A cleanroom implementation of the org.json API."Jesse Wilson2010-03-1213-161/+2362
|\ \
| * | A cleanroom implementation of the org.json API.Jesse Wilson2010-03-1213-161/+2362
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implementation lacks documentation. I intend to write that after checking it into the master branch. By not waiting we'll have more time to exercise the code, if only in Google's own applications. This passes all of my tests. I rewrote some of the tests to make Crockford's implementation fail. The tests that fail on Crockford's implementation are: JSONArrayTest testEqualsAndHashCode equals() not consistent with hashCode() testTokenerConstructorParseFail StackOverflowError testStringConstructorParseFail StackOverflowError JSONObjectTest testOtherNumbers Object.put() accepted a NaN (via a custom Number class) testMapConstructorWithBogusEntries JSONObject constructor doesn't validate its input! JSONTokenerTest testNextNWithAllRemaining off-by-one error? testNext0 Returning an empty string should be valid testNextCleanCommentsTrailingSingleSlash nextClean doesn't consume a trailing slash assertNotClean The character line tabulation is not whitespace according to the JSON spec. testNextToDoesntStopOnNull nextTo() shouldn't stop after \0 characters testNextToConsumesNull nextTo shouldn't consume \0. testSkipToStopsOnNull skipTo shouldn't stop when it sees '\0' ParsingTest testParsingLargeHexValues For input "0x80000000" Hex values are parsed as Strings if their signed value is greater than Integer.MAX_VALUE. testSyntaxProblemUnterminatedArray Stack overflowed on input "[" Change-Id: I44c4a4a698a66bf043ed339d6bd804951e732cbf
* | Add a native method dalvik.system.VMDebug.infopoint(int id).Ben Cheng2010-03-121-0/+8
| | | | | | | | | | | | | | With gdb, the JIT can use it to inspect the VM state when an instrumented line is reached. Change-Id: Id39ac4cd564bc1a61208cb7527c30f62b5de3e4e
* | Adding support for DOM3 attribute IDs and SchemaTypeInfos.Jesse Wilson2010-03-114-12/+107
|/ | | | Change-Id: I35e56ed989820df6b8fea36bbf81fe0314c76304
* Merge "Implementing getBaseUri() for DOM."Jesse Wilson2010-03-112-29/+212
|\
| * Implementing getBaseUri() for DOM.Jesse Wilson2010-03-112-29/+212
| | | | | | | | | | | | | | | | The tests for this uncover problems with the RI's implementation. It does bizarre things with hashes, trashing the absolute URI and returning a page-relative one (like "#foo"). Change-Id: Ib8af163a7b359e3f72a9c94eb3dd7e81e3a9a95c
* | remove System.*.println when ddm dispatch fails.Xavier Ducrohet2010-03-101-3/+0
|/ | | | | | | | Those messages are sometimes displayed to the user executing the am command and can be really confusing (they are totally benign) Change-Id: I09c194a02ddc956ec52f19faa03ca9aa1eba604b
* Merge "New tests for JSONObject and for JSON's self-use."Jesse Wilson2010-03-105-7/+1090
|\
| * New tests for JSONObject and for JSON's self-use.Jesse Wilson2010-03-105-7/+1090
| | | | | | | | | | | | | | | | | | Alongside development of these tests, I'm working on a new cleanroom implementation. The self use test was written to prevent me from self-using in a way that the original implementation does not. Change-Id: Ie617aca1978bd39d85b05e5c2c7bd657ed159dd6
* | Work around droiddoc bug http://b/2022288.Elliott Hughes2010-03-091-3/+3
| | | | | | | | Change-Id: Ib46a260916dee99f190aa8b9465f4f2d3b04aa67
* | Another go at making droiddoc as happy as javadoc...Elliott Hughes2010-03-091-1/+1
| | | | | | | | Change-Id: I70dd8d57053a6e60b9be0cbe8a95d9937d9b00ef
* | Fix javadoc errors.Elliott Hughes2010-03-092-2/+2
| | | | | | | | Change-Id: Ib3eb500006f5b4b1dadf959397fce7737fb53fe7
* | Merge "Print errors encountered while writing XML reports"Jesse Wilson2010-03-091-1/+2
|\ \
| * | Print errors encountered while writing XML reportsJesse Wilson2010-03-091-1/+2
| |/ | | | | | | Change-Id: I7fdf9f6989c94a3f0fd3ff93db3426a4d080120f
* | Merge "Implement adoptNode() and importNode()."Jesse Wilson2010-03-095-132/+432
|\ \
| * | Implement adoptNode() and importNode().Jesse Wilson2010-03-095-132/+432
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | importNode() shares all of its implementation with Node.clone(); the only areas they differ are the ones we don't support. The shared code is in 2 new methods, shallowCopy() and cloneOrImportNode(), both based on the old clone() method. Also removing some unnecessary "throws DOMException" clauses. The tests for the new methods are slightly cumbersome. Most move/copy nodes to another document, serialize that, and compare. Change-Id: Id9fb076e020d8327a8f70da401af9bd95d7a3d1b
* | Merge "Minor documentation improvements."Elliott Hughes2010-03-0919-147/+212
|\ \
| * | Minor documentation improvements.Elliott Hughes2010-03-0919-147/+212
| | | | | | | | | | | | | | | | | | | | | | | | Based on user-submitted bugs that were just misunderstandings, plus implementation bugs caused by the intended behavior being somewhat subtle. Change-Id: Ic2606b5e57dadc95a35c2d0a977c01434a2fa28a
* | | Merge "Fix certimport.sh to check for Bouncy Castle provider installation ↵Brian Carlstrom2010-03-091-4/+32
|\ \ \ | |_|/ |/| | | | | (and add 1.6 JDK to PATH)"
| * | Fix certimport.sh to check for Bouncy Castle provider installation (and add ↵Brian Carlstrom2010-03-091-4/+32
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.6 JDK to PATH) Now if certimport.sh is run on a machine without the BouncyCastleProvider installed, it will suggest how to apt-get install the proper package. At enh's suggestion, I tried running with out own local Bouncy Castle classes to see what would happen, but the code ended up depending on our NativeCrypto JNI code and there that isn't proper JNI code to be loading into a RI JDK. Also at enh's suggestion, we now prepend a JDK 1.6 bin directory to the path for correctly correct default behavior. I do make sure it exists and warn if it does not. Change-Id: Ic936a6cc69fa3795e917c052ed79d19b2e66b5a1
* | Merge "Adding support for getUserData() and setUserData() to DOM nodes."Jesse Wilson2010-03-0810-28/+199
|\ \ | |/ |/|
| * Adding support for getUserData() and setUserData() to DOM nodes.Jesse Wilson2010-03-0810-28/+199
| | | | | | | | | | | | Also making sure both Document and DocumentType get assigned a Document value when possible; this is necessary to store the user data objects.
* | Merge "Fix server side SSLEngine ServerKeyExchange signature."Costin Manolache2010-03-052-26/+30
|\ \
| * | Fix server side SSLEngine ServerKeyExchange signature.Costin Manolache2010-03-052-26/+30
| | | | | | | | | | | | | | | | | | | | | | | | Code using SSLEngine for non-blocking SSL can't talk with openssl as a client, since the signature is computed on different content (and openssl checks it, unlike java). The fix is to use strip the 0x00 prefix when signing - like it is done when generating the message, refactored both to use a common method. We also include the length in the signature, it was also missing.
* | | Merge "Implementing the Java 7 APIs for DeflaterOutputStreams."Jesse Wilson2010-03-055-16/+295
|\ \ \ | |/ / |/| |
| * | Implementing the Java 7 APIs for DeflaterOutputStreams.Jesse Wilson2010-03-055-16/+295
| |/ | | | | | | See bug 1729487.
* | Prevent java.text.Normalizer from getting a default constructor.Elliott Hughes2010-03-031-0/+2
| | | | | | | | The dalvik continuous build's new jdiff run caught this.
* | Don't call a method that can be overridden from File's constructors.Elliott Hughes2010-03-032-1/+19
| | | | | | | | Bug: 2486943
* | Use assertEquals rather than assertTrue/assertFalse.Elliott Hughes2010-03-021-23/+9
| |
* | Add our home-grown Normalizer tests.Elliott Hughes2010-03-022-0/+100
|/ | | | Originally https://android-git.corp.google.com/g/42517.
* Merge "Implement (but @hide) java.text.Normalizer from Java 6."Elliott Hughes2010-03-017-0/+363
|\
| * Implement (but @hide) java.text.Normalizer from Java 6.Elliott Hughes2010-03-017-0/+363
| | | | | | | | | | | | | | | | Based on https://android-git.corp.google.com/g/42516. Includes the harmony tests from their Java 6 branch. Bug: 719001
* | Implementing almost all of Document.normalizeDocument().Jesse Wilson2010-03-0110-48/+446
|/ | | | | | | | | | | This follows the rules specified by DOMConfiguration. In particular: - replacing CDATA nodes with text - splitting CDATA nodes - merging text nodes - stripping comments - detecting invalid characters I haven't added the normalization code for XML validation or namespaces.
* Merge "New implementation for DOMConfiguration."Jesse Wilson2010-03-015-21/+808
|\
| * New implementation for DOMConfiguration.Jesse Wilson2010-03-015-21/+808
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API is disgusting. Its not regular, not typesafe, sparsely implemented and overly specific. I'm implementing the minimum I can get away with - exactly the same route taken by the RI. The Parameter stuff feels a little bit like overkill, but it allowed me to group related chunks of code together and avoid long chains of equalsIgnoreCase if statements. This is necessary to implement Document.normalize(), one of the last remaining APIs in DOMv3. Also fixing our implementation of Node.normalize() and adding tests to discover a bug in that code. Previously a document like this: "<foo>abc<br>def</foo>" Would be normalized to this: "<foo>abcdef<br></foo>" Which is a horrible bug! Yuck. Implementation and tests for Document.normalize() are forthcoming.
* | Merge "Fix a FormatFlagsConversionMismatchException bug I introduced in Froyo."Elliott Hughes2010-03-011-1/+1
|\ \ | |/ |/|
| * Fix a FormatFlagsConversionMismatchException bug I introduced in Froyo.Elliott Hughes2010-02-281-1/+1
| | | | | | | | | | | | | | | | We want to show the characters representing the flags, not the decimal values of their ASCII representation. "Use overloading judiciously", as the man says, or cause errors like this. Seen in FRE56B (see https://android-git.corp.google.com/g/42528).
* | Merge "Adding tests to parse document attributes from the DOM."Jesse Wilson2010-02-265-24/+142
|\ \
| * | Adding tests to parse document attributes from the DOM.Jesse Wilson2010-02-265-24/+142
| | | | | | | | | | | | | | | | | | | | | | | | This adds implementation and tests for these methods: getInputEncoding(), getDocumentURI(). And tests for these methods: getXmlEncoding(), getXmlVersion(), getXmlStandalone().
* | | Merge "First pass at reorganizing org.apache.harmony.xnet.provider.jsse ↵Brian Carlstrom2010-02-257-2559/+2293
|\ \ \ | |_|/ |/| | | | | native code into a single file."
| * | First pass at reorganizing org.apache.harmony.xnet.provider.jsse native code ↵Brian Carlstrom2010-02-257-2559/+2293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into a single file. At enh's suggestion, I'm consoldiating the OpenSSL related native code into a single wrapper class NativeCrypto. This changes is the firs step, combining the cpp code into a single NativeCode.cpp. The next step will involved introducting a single SSL_CTX in NativeCode and cleaning up SSL_CTX use. As part of this, I'll start moving the native wrappers to from various OpenSSL*.java classes into NativeCode.
* | | 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
* | Merge "Keep the order from getaddrinfo() unchanged if preferIPv6Addresses() ↵Elliott Hughes2010-02-251-10/+6
|\ \ | | | | | | | | | is true."
| * | Keep the order from getaddrinfo() unchanged if preferIPv6Addresses() is true.Steinar H. Gunderson2010-02-171-10/+6
| | |
* | | Merge "Add class init stats to alloc counters (API change)."Andy McFadden2010-02-241-5/+19
|\ \ \
| * | | Add class init stats to alloc counters (API change).Andy McFadden2010-02-231-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add calls to retrieve class initialization stats via the allocation count mechanism. Also: deprecate a method that is never used, and a redundantly declared default filename that begins with "/sdcard". For bug 2461549.