summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* am dfc54a44: am 0b12dc3a: am aebcaec3: Merge change I2e90d640 into eclairGuang Zhu2009-10-291-3/+3
|\ | | | | | | | | | | | | Merge commit 'dfc54a44123f32d6b44bdbce54c155d9135baddc' * commit 'dfc54a44123f32d6b44bdbce54c155d9135baddc': Remove the activity restart between urls.
| * am 0b12dc3a: am aebcaec3: Merge change I2e90d640 into eclairGuang Zhu2009-10-291-3/+3
| |\ | | | | | | | | | | | | | | | | | | Merge commit '0b12dc3acaa5e6b2b0ac05374faf65a7e212ae4f' into eclair-mr2-plus-aosp * commit '0b12dc3acaa5e6b2b0ac05374faf65a7e212ae4f': Remove the activity restart between urls.
| | * am aebcaec3: Merge change I2e90d640 into eclairGuang Zhu2009-10-291-3/+3
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'aebcaec3c171f636a24051ce85ded2f86b09461b' into eclair-mr2 * commit 'aebcaec3c171f636a24051ce85ded2f86b09461b': Remove the activity restart between urls.
| | | * Remove the activity restart between urls.Guang Zhu2009-10-271-3/+3
| | | |
* | | | am d7185d0b: am f5633bc7: Fix test breakage in testNickNameV21().Daisuke Miyakawa2009-10-291-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'd7185d0bd250ff5f006ea94d305539ac7d499977' * commit 'd7185d0bd250ff5f006ea94d305539ac7d499977': Fix test breakage in testNickNameV21().
| * | | am f5633bc7: Fix test breakage in testNickNameV21().Daisuke Miyakawa2009-10-281-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit 'f5633bc7e2fddbd1104d129b9d55d74fa8c2666b' into eclair-mr2-plus-aosp * commit 'f5633bc7e2fddbd1104d129b9d55d74fa8c2666b': Fix test breakage in testNickNameV21().
| | * | Fix test breakage in testNickNameV21().Daisuke Miyakawa2009-10-291-1/+1
| | | | | | | | | | | | | | | | Internal issue number: 2079082
* | | | am aa06a0e0: am 3c828e24: Merge change I9195a354 into eclair-mr2Daisuke Miyakawa2009-10-291-3/+19
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'aa06a0e086d57ad3a0d063dfb5ab2cfb7936e4b4' * commit 'aa06a0e086d57ad3a0d063dfb5ab2cfb7936e4b4': Add partial support of Android-specific properties.
| * | | am 3c828e24: Merge change I9195a354 into eclair-mr2Daisuke Miyakawa2009-10-281-3/+19
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '3c828e24a950a7fa4d17e22b5afa37a4006126f0' into eclair-mr2-plus-aosp * commit '3c828e24a950a7fa4d17e22b5afa37a4006126f0': Add partial support of Android-specific properties.
| | * | Merge change I9195a354 into eclair-mr2Android (Google) Code Review2009-10-281-3/+19
| | |\ \ | | | | | | | | | | | | | | | | | | | | * changes: Add partial support of Android-specific properties.
| | | * | Add partial support of Android-specific properties.Daisuke Miyakawa2009-10-291-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the near future, all the values which cannot be converted to vCard property is expressed as "X-ANDROID-CUSTOM" property + MIME_TYPE. Example (Nick name): X-ANDROID-CUSTOM:vnd.android.cursor.item/nickname;Nicky;;;;;;;;;;;;; All the data are stored ordered by its column name ("data1" - "data15"). Currently the code assumes the max num is 15. Internal Issue number: 2079082
* | | | | am 473bbd21: am 95240270: Instead of a raw AIDL interface, give DropBox a ↵Dan Egnor2009-10-291-59/+65
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Java interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the u Merge commit '473bbd2140a2515a6a9a450ee955a790e0b6dcff' * commit '473bbd2140a2515a6a9a450ee955a790e0b6dcff': Instead of a raw AIDL interface, give DropBox a Java
| * | | | am 95240270: Instead of a raw AIDL interface, give DropBox a Java interface ↵Dan Egnor2009-10-281-59/+65
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the usual getSyste Merge commit '952402704a175ba27f6c89dff1ada634c5ce5626' into eclair-mr2-plus-aosp * commit '952402704a175ba27f6c89dff1ada634c5ce5626': Instead of a raw AIDL interface, give DropBox a Java
| | * | | Instead of a raw AIDL interface, give DropBox a JavaDan Egnor2009-10-281-59/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the usual getSystemService(DROPBOX_SERVICE) type thing. Update the tests accordingly.
* | | | | am 32be57d1: am 622b190c: am b81df8e3: Merge change I5535bbdf into eclairBrett Chabot2009-10-2811-19/+36
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '32be57d1000df0356f19eab01bbf828510d488f6' * commit '32be57d1000df0356f19eab01bbf828510d488f6': Disable flaky and failing tests.
| * | | | am 622b190c: am b81df8e3: Merge change I5535bbdf into eclairBrett Chabot2009-10-2811-19/+36
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '622b190c878e38468096ef0fe1cd28dbc10c3b33' into eclair-mr2-plus-aosp * commit '622b190c878e38468096ef0fe1cd28dbc10c3b33': Disable flaky and failing tests.
| | * | | am b81df8e3: Merge change I5535bbdf into eclairBrett Chabot2009-10-2811-19/+36
| | |\ \ \ | | | |/ / | | |/| / | | | |/ | | | | | | | | | | | | Merge commit 'b81df8e3a2f72546508fcdf92adc39cfa2985c56' into eclair-mr2 * commit 'b81df8e3a2f72546508fcdf92adc39cfa2985c56': Disable flaky and failing tests.
| | | * Disable flaky and failing tests.Brett Chabot2009-10-2611-19/+36
| | | | | | | | | | | | | | | | Bugs 2118268, 2176089
| | | * Disable known failure math tanhd tests (DO NOT MERGE)Brett Chabot2009-10-202-2/+4
| | | | | | | | | | | | | | | | BUG 2139334
* | | | am 1cb34d48: am bb88e3ad: Move verification code to VCardTestsBase.Daisuke Miyakawa2009-10-265-320/+376
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '1cb34d4850ec807eda5742ecad8b7469b98173d8' * commit '1cb34d4850ec807eda5742ecad8b7469b98173d8': Move verification code to VCardTestsBase.
| * | | am bb88e3ad: Move verification code to VCardTestsBase.Daisuke Miyakawa2009-10-265-320/+376
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit 'bb88e3ad568a05cc816fa786fcf1902fa9497499' into eclair-mr2-plus-aosp * commit 'bb88e3ad568a05cc816fa786fcf1902fa9497499': Move verification code to VCardTestsBase.
| | * | Move verification code to VCardTestsBase.Daisuke Miyakawa2009-10-275-320/+376
| | | | | | | | | | | | | | | | Internal Issue number: 2195990, 2079082
* | | | am 9fb078ae: am d263a064: Add a test for vCard composer.Daisuke Miyakawa2009-10-262-10/+103
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '9fb078ae70b3ded5641a3ec40655a99d768ff032' * commit '9fb078ae70b3ded5641a3ec40655a99d768ff032': Add a test for vCard composer.
| * | | am d263a064: Add a test for vCard composer.Daisuke Miyakawa2009-10-262-10/+103
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit 'd263a064f7a77768c3e70a98f286960b67dc1aa5' into eclair-mr2-plus-aosp * commit 'd263a064f7a77768c3e70a98f286960b67dc1aa5': Add a test for vCard composer.
| | * | Add a test for vCard composer.Daisuke Miyakawa2009-10-272-10/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also modify the behavior of vCard composer so that it honer FN than N toward DISPLAY_NAME. Internal issuen number: 2195990
* | | | Speed up Uri.getQueryParameter by allocating less.Brad Fitzpatrick2009-10-261-0/+29
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sample hierarchial URL, from my ContactsProvider test case: content://com.android.contacts/data?account_name=braddroid%40gmail.com&account_type=com.google.GAIA&caller_is_syncadapter=true Without this patch: (fetching the "account_name" parameter) 10000 iters: 0.5293 ms average 10000 iters: 0.5119 ms average 10000 iters: 0.5158 ms average With this patch, rewriting it to not allocate memory (no implicit StringBuilder), but still no caching: 1) when it needs to decode something (i.e account_name above; allocates memory) 50000 iters: 0.28724 ms average 50000 iters: 0.31774 ms average 50000 iters: 0.28764 ms average 2) when it doesn't need to decode (and thus allocate memory, i.e. account_type above) 50000 iters: 0.0954 ms average 50000 iters: 0.09124 ms average 50000 iters: 0.09088 ms average
* | | am 45db67f2: Merge change I808651dc into eclair-mr2Wei Huang2009-10-231-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '45db67f2e89341412613ea6b162dd0ad36f091c6' into eclair-mr2-plus-aosp * commit '45db67f2e89341412613ea6b162dd0ad36f091c6': bug #2180646: make comparing "404-04" and "40404" return true in PhoneNumberUtils.compare().
| * | bug #2180646: make comparing "404-04" and "40404" return true in ↵Wei Huang2009-10-231-0/+3
| | | | | | | | | | | | | | | | | | | | | PhoneNumberUtils.compare(). - when comparing two numbers whose dialable char length is less than the MIN_MATCH (7), treat them as equal if the dialable portion of the numbers match. - update unit test.
* | | am 5f2ae667: am 76bb9a36: Merge change I1932e8f8 into eclairBrett Chabot2009-10-211-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5f2ae667e89e5ddfd7aa2bcbe3017b746b7b1de2' into eclair-mr2-plus-aosp * commit '5f2ae667e89e5ddfd7aa2bcbe3017b746b7b1de2': Disable com.android.unit_tests.HeapTest:testExternalOomeLarge.
| * | am 76bb9a36: Merge change I1932e8f8 into eclairBrett Chabot2009-10-211-1/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '76bb9a363633b5741937ebe58b01a8b2024753b0' into eclair-mr2 * commit '76bb9a363633b5741937ebe58b01a8b2024753b0': Disable com.android.unit_tests.HeapTest:testExternalOomeLarge.
| | * Disable com.android.unit_tests.HeapTest:testExternalOomeLarge.Brett Chabot2009-10-191-1/+2
| | | | | | | | | | | | BUG 2170975
* | | am 54616f34: Make MockCursor class a part of public SDK.Daisuke Miyakawa2009-10-212-255/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '54616f3435e67029006d2f77462c61ed0635a3f6' into eclair-mr2-plus-aosp * commit '54616f3435e67029006d2f77462c61ed0635a3f6': Make MockCursor class a part of public SDK.
| * | Make MockCursor class a part of public SDK.Daisuke Miyakawa2009-10-222-255/+1
| | | | | | | | | | | | | | | | | | | | | With this class, external developers will be able to reduce their redundant work related to testing around ContentProvider/ContentResolver. Internal Issue number: 2181010
* | | am 8785c064: Merge change Ie5df08ef into eclair-mr2Tammo Spalink2009-10-211-1/+63
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '8785c064fab3429c792ac160aeeb19e9926382f0' into eclair-mr2-plus-aosp * commit '8785c064fab3429c792ac160aeeb19e9926382f0': Let PLUS occur once anywhere in dial-str network portion.
| * | Merge change Ie5df08ef into eclair-mr2Android (Google) Code Review2009-10-211-1/+63
| |\ \ | | | | | | | | | | | | | | | | * changes: Let PLUS occur once anywhere in dial-str network portion.
| | * | Let PLUS occur once anywhere in dial-str network portion.Tammo Spalink2009-10-211-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new extractNetworkPortion() function, since the old one is public, that does effectively the same thing but is more flexible as just mentioned. Addresses issue: http://buganizer/issue?id=2013998 Change-Id: Ie5df08ef9c871881e8728a44abf0385908000823
* | | | am 2a2805b7: Merge change Ib3b06fc3 into eclair-mr2Dan Egnor2009-10-201-52/+107
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '2a2805b7fbd25ee11ad554e33bf34dbb2e8b71c5' into eclair-mr2-plus-aosp * commit '2a2805b7fbd25ee11ad554e33bf34dbb2e8b71c5': It turns out to be useful to allow enumeration on a per-tag basis,
| * | | Merge change Ib3b06fc3 into eclair-mr2Android (Google) Code Review2009-10-201-52/+107
| |\ \ \ | | |/ / | |/| | | | | | | | | | * changes: It turns out to be useful to allow enumeration on a per-tag basis, and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
| | * | It turns out to be useful to allow enumeration on a per-tag basis,Dan Egnor2009-10-201-52/+107
| | | | | | | | | | | | | | | | | | | | and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
* | | | am d1a720d0: am 9e58e642: Enable some tests that requires local http serverGuang Zhu2009-10-151-2/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'd1a720d06f92a7228f28361a01f3a158c560cd18' into eclair-mr2-plus-aosp * commit 'd1a720d06f92a7228f28361a01f3a158c560cd18': Enable some tests that requires local http server
| * | | am 9e58e642: Enable some tests that requires local http serverGuang Zhu2009-10-151-2/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | Merge commit '9e58e6427c8e5fefb65432ea4b56c6cb31e80bbd' into eclair-mr2 * commit '9e58e6427c8e5fefb65432ea4b56c6cb31e80bbd': Enable some tests that requires local http server
| | * | Enable some tests that requires local http serverGuang Zhu2009-10-151-2/+1
| | | |
* | | | am 8b12144d: Merge change I170c8251 into eclair-mr2Daisuke Miyakawa2009-10-143-57/+862
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '8b12144dad94bc0807e20590d72b4aadc56189d4' into eclair-mr2-plus-aosp * commit '8b12144dad94bc0807e20590d72b4aadc56189d4': Add tests and fix vCard code.
| * | | Add tests and fix vCard code.Daisuke Miyakawa2009-10-143-57/+862
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, basic tests are almost ready. TODO: - importer test toward multiple vCard input (though it was tested with real usage) - exporter tests for multiple composition - tests with non-Ascii - tests with special types like TYPE_DOCOMO ISSUE: In order to fully check the validity of exporter, we may have to develop some vCard importer which rejects vCard which is valid but a kind of dubious. Internal Issue Number: 2160039
* | | am 5c8a80b8: Merge change I4410ec8f into eclair-mr2Dan Egnor2009-10-133-13/+492
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '5c8a80b8fc7a25dda269cd16e0b90b35227fd625' into eclair-mr2-plus-aosp * commit '5c8a80b8fc7a25dda269cd16e0b90b35227fd625': Framework-side DropBox service that maintains a size-bounded
| * | Framework-side DropBox service that maintains a size-boundedDan Egnor2009-10-133-13/+492
| | | | | | | | | | | | | | | | | | | | | queue of data chunks (sort of a blob-oriented logcat). In the future, this will be coupled with a revised checkin service that would actually upload this data.
* | | am d48e25d4: Merge change I83b3bddf into eclair-mr2Daisuke Miyakawa2009-10-121-0/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'd48e25d4e3278c5e975db01adb98661ee59923fe' into eclair-mr2-plus-aosp * commit 'd48e25d4e3278c5e975db01adb98661ee59923fe': Add a new TestSuites: VCardTests
| * | Add a new TestSuites: VCardTestsDaisuke Miyakawa2009-10-121-0/+15
| | | | | | | | | | | | | | | | | | | | | Now, the following command is available. adb shell am instrument -w -e class com.android.unit_tests.vcard.VCardTests com.android.unit_tests/android.test.InstrumentationTestRunner Internal Issuer number: 2160039
* | | am 347daf3a: Merge change I2a52a60a into eclair-mr2Daisuke Miyakawa2009-10-126-356/+1009
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '347daf3a9802b2a4184ff8aa90b4af6c5de79ab7' into eclair-mr2-plus-aosp * commit '347daf3a9802b2a4184ff8aa90b4af6c5de79ab7': Implement unit tests for vCard exporter, which depends on the sucess in vCard importer.
| * | Implement unit tests for vCard exporter, which depends on the sucess in ↵Daisuke Miyakawa2009-10-126-356/+1009
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vCard importer. In order to share the logic between tests for importer and those for exporter, PropertyNodesVerifier is now a separated class and drastically modified. Now the class accept "unordered" expected PropertyNode objects, which allows vCard composer to not care the exact order of each elements. MockCursor is added, which may be added into the public API in the future, but in the test directory for now. Another MockContentProvider is (temporarily) developed so that it can be accepted by MockContentResolver#addProvider(), which does not allow IContentProvider and its descendants but only exact ContentProvider, while the original MockContentProvider in android.test.mock.MockContentProvider implements IContentProvider. The test development is still on-going, but this test suffices minimal requirement of vCard tests. Internal issue number: 2160039