summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused performance tests.Jesse Wilson2010-12-2113-4559/+0
| | | | Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
* Merge "Move 41 tests to libcore, closer to the tested code. (2nd half)"Jesse Wilson2010-12-1442-6703/+0
|\
| * Move 41 tests to libcore, closer to the tested code. (2nd half)Jesse Wilson2010-12-1442-6703/+0
| | | | | | | | | | Change-Id: I18650718a7e49c84a0cc3c5b0c1172c71d2d54cf http://b/3073226
* | Move HashMapTest from frameworks/base to libcore (second half)Jesse Wilson2010-12-141-281/+0
|/ | | | | Change-Id: I178e376ab12d82e23a8b0ddd267a6c150c9bbddf http://b/3073226
* Merge "NIOTest fixes."Elliott Hughes2010-10-081-19/+32
|\
| * NIOTest fixes.Elliott Hughes2010-10-071-19/+32
| | | | | | | | | | | | | | | | | | I've also broken the test up a bit, so it's easier to see what's failing. (For the particular bug I'm investigating, only heap byte[]-backed Buffers are broken.) Bug: 3066167 Change-Id: I2f747414bd48eb8c666da5b31870bf39601911e2
* | am b9a40068: Merge "Failing test cleanup." into gingerbreadBrett Chabot2010-10-051-31/+0
|\ \ | |/ |/| | | | | | | | | Merge commit 'b9a40068b590b86904b40bf466571b140d0f94b4' into gingerbread-plus-aosp * commit 'b9a40068b590b86904b40bf466571b140d0f94b4': Failing test cleanup.
| * Failing test cleanup.Brett Chabot2010-10-041-31/+0
| | | | | | | | Change-Id: I7cabc6ff2ec1fcb80dede5da03b03622a5bae021
* | am 94126238: Merge "Remove SSLContextImpl.engineInit(..) that takes ↵Brian Carlstrom2010-09-142-11/+16
|\ \ | |/ | | | | | | | | | | | | | | persistent cache arguments" into gingerbread Merge commit '94126238427f04ecb86fe6832113afb2f04e89b5' into gingerbread-plus-aosp * commit '94126238427f04ecb86fe6832113afb2f04e89b5': Remove SSLContextImpl.engineInit(..) that takes persistent cache arguments
| * Remove SSLContextImpl.engineInit(..) that takes persistent cache argumentsBrian Carlstrom2010-09-142-11/+16
| | | | | | | | | | | | Bug: 2672817 Change-Id: If5f10fa16eaf5676a0c1540463759cd4e0e837de
* | am 4d672988: Merge "Remove "StringTest.java"." into gingerbreadBrian Carlstrom2010-08-252-952/+0
|\ \ | |/ | | | | | | | | | | Merge commit '4d672988fed7fbdd887fe78603fa2eaf713031ad' into gingerbread-plus-aosp * commit '4d672988fed7fbdd887fe78603fa2eaf713031ad': Remove "StringTest.java".
| * Remove "StringTest.java".Brian Carlstrom2010-08-242-952/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This only tests stuff that's already better tested in dalvik/libcore, plus private ICU API (RuleBasedNumberFormat) we'd like to remove, and that this is the only caller of. Conflicts: tests/CoreTests/android/core/StringTest.java git cherry-pick -e 935022a99dac5454fc478e221b6392f3ba467009 Change-Id: I0bd172f2703bbcd6381920d40244165234fef4a1
* | am 4ae1e382: Merge "Tracking merge of dalvik-dev to gingerbread" into ↵Brian Carlstrom2010-08-054-137/+11
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af' into gingerbread-plus-aosp * commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af': Tracking merge of dalvik-dev to gingerbread
| * Tracking merge of dalvik-dev to gingerbreadBrian Carlstrom2010-08-044-137/+11
| | | | | | | | | | | | | | | | | | | | | | git cherry-pick --no-commit f77cf7f0 git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113 git cherry-pick --no-commit 570bb561 git cherry-pick --no-commit e2417541 git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30 git cherry-pick --no-commit 5e8a587d Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
* | Merge "Added method getPreferredHttpHost"Romain Guy2010-07-152-0/+94
|\ \
| * | Added method getPreferredHttpHostAndreas Sandblad2010-07-142-0/+94
| |/ | | | | | | | | | | | | | | | | | | | | Added method for returning preferred proxy which takes both localhost and Wi-Fi into account. This is a convenient method to clients which only wants to set a correct proxy and don't want to build in dependency to if Wi-Fi is active or not. Currently no Wi-Fi proxy is supported by the system, but once added, this method could return a suitable proxy for Wi-Fi. Change-Id: I8c9c2879351fd25a20ea82a2cb000f226248c357
* | Make HTTP Header class handle multiple cache-control fields.Henrik Baard2010-07-141-0/+62
|/ | | | | | | | | | | | | | | | The HTTP specification states the following about the fields: Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that header field is defined as a comma-separated list [i.e., #(values)]. It MUST be possible to combine the multiple header fields into one "field-name: field-value" pair, without changing the semantics of the message, by appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is therefore significant to the interpretation of the combined field value, and thus a proxy MUST NOT change the order of these field values when a message is forwarded. Change-Id: I1a6fe5cc8f541f8e80d559641d270d09eac9d85c
* More framework tests cleanup.Brett Chabot2010-04-0125-398/+6863
| | | | | | | | | | | | Move all tests for android.* classes from tests/AndroidTests and tests/CoreTests into framework/base/<core|graphics>/tests. Consolidate all tests for java.* classes to tests/CoreTests. Eventually hopefully these will be moved to dalvik/ somewhere. Remove tests/AndroidTests entirely. Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
* Issue 5697: getContextClassLoader returns a non-application classloaderBrian Carlstrom2010-02-231-0/+10
| | | | | | | | | | | | | | | | | | | | | ActivityThread should try to set the value for Java Thread.getContextClassLoader to the PathClassLoader that loaded the APK's classes so that Java frameworks that use the Java context class loader, which is not to be confused with the android.content.Context.getClassLoader which serves a similar purpose in the Android framework. However, we avoid setting the Java context ClassLoader to the APK's PathClassLoader if there is a static indication that multiple packages may share the VM, since they could load in an unpredictable order leading to different values for the thread local Java context ClassLoader. In this case, we instead use a specially created WarningContextClassLoader that warns the user the first time the Java context ClassLoader. Currently the static indications that a package might share a VM with other packages are the presence in the AndroidManifest of a sharedUserId or requesting a non-default application process name.
* Retry test-runner tests move.Brett Chabot2010-02-2031-2388/+0
| | | | | This time change the frameworks makefile so it only includes test-runner/src in the public API.
* Revert "Move framework test-runner unit tests to be closer to their source."Brett Chabot2010-02-1931-0/+2388
| | | | This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
* Move framework test-runner unit tests to be closer to their source.Brett Chabot2010-02-1931-2388/+0
| | | | | Move the test-runner source into a separate src folder to accommodate the test move.
* add sync pollingFred Quintana2010-02-051-15/+15
| | | | | | | | | - added the ability to specify that a sync (of account/authority/extras) should occur at a given frequency - the existing daily poll code was replaced with seeding each account/authority with a 24 hour periodic sync - enhanced the "adb shell dumpsys content" output to show the periodic syncs and when they will next run
* Remove "StringTest.java".Elliott Hughes2010-02-031-149/+0
| | | | | | This only tests stuff that's already better tested in dalvik/libcore, plus private ICU API (RuleBasedNumberFormat) we'd like to remove, and that this is the only caller of.
* There is no ../com directory and the build (find) agrees.Patrick Scott2010-01-281-2/+0
|
* Moving framework core tests closer to their source files.Neal Nguyen2010-01-2733-7056/+0
| | | | Phase 2 of test case cleanup; distributing CoreTests files closer to their respective sources under frameworks.
* enhance the sync manager backoff logic and add support for retry-afterFred Quintana2010-01-251-0/+164
| | | | | | | moved SyncQueue and SyncOperation into their own top-level classes to ease maintainability and testing6 removed some dead code
* Merge "Framework Tests Cleanup: Removing CTS duplicate files"Neal Nguyen2010-01-132-194/+0
|\
| * Framework Tests Cleanup: Removing CTS duplicate filesNeal Nguyen2009-12-232-194/+0
| | | | | | | | CookieTest.java is already included in CTS, so removing this one under frameworks.
* | change remaining frameworks/base Gservices to Secure settingsDoug Zongker2010-01-071-3/+3
|/ | | | Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
* Create android-common static library which gets included in frameworks.jar,Dan Egnor2009-11-181-1/+0
| | | | | | | but can also be used by unbundled apps. Move android.text.util.Regex there as a starting example, renamed to a more sensible (?) com.android.common.Patterns. Set up a corresponding test package, and move RegexTest (to PatternsTest). Update clients.
* 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.
* 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
* DO NOT MERGE: Cleaning up the PipedStreamTestJesse Wilson2009-09-261-30/+27
|
* Merge change 25879 into eclairAndroid (Google) Code Review2009-09-221-7/+35
|\ | | | | | | | | * changes: Setting the default HTTP user agent at runtime init.
| * Setting the default HTTP user agent at runtime init.Jesse Wilson2009-09-181-7/+35
| | | | | | | | | | I can't do this in HttpURLConnection directly, since that would cause a forbidden dependency from Dalvik on Android.
* | fix bug 2134685: fix tests for PhoneNumberUtilsTest.Wei Huang2009-09-211-6/+6
|/ | | | Change-Id: I28c4e69775c7ce20983c052b8b77ba2df6d5c63b
* The empty path and no path mean default path. So "a=d" should replace "a=c".Grace Kloba2009-09-091-1/+1
|
* Fix CDMA BCD unit test.Tammo Spalink2009-09-071-1/+1
| | | | | | | Addresses issues: http://buganizer/issue?id=2056263 Change-Id: I80e2412bd53b9045ae3cdc95cdf132da0946c2ea
* Add tests for RecurrenceSet.Ken Shirriff2009-08-211-0/+82
| | | | Tests only cover populateContentValues. See bug 1594638
* Fix +NANP issue and cleanup plus code conversion.Libin Tang2009-08-211-20/+23
| | | | | | | | This patch includes the plus code conversion clean up. 1. change the plus code conversion based on the current and default number systems retrieved from MCC. 2. for format such as +NANP, replace the '+' with the current IDP (011). 3. comments changes.
* Merge change 21171Android (Google) Code Review2009-08-131-0/+23
|\ | | | | | | | | * changes: Allow max_retires to be set to infinite.
| * Allow max_retires to be set to infinite.Wink Saville2009-08-131-0/+23
| | | | | | | | | | | | Setting max_retires to infinite sets mRetryForever to true and therefore isRetryNeeded will always be true. This is better than an alternative which is to set max_retires to a large value such as 2147483647.
* | Rename bcdByteToInt to gsmBcdByteToInt and beBcdByteToInt to cdmaBcdByteToInt.Wink Saville2009-08-131-5/+13
|/
* Fix the issue of incorrect conversion of the plus sign in a dial string.Tang@Motorola.com2009-08-121-0/+69
| | | | | | | | | | The issue is that the plus sign in a dial string is always converted to the IDP (International Dial Prefix). This fix implements a plus sign conversion mechanism based on the default telephone numbering system that the phone is activated and the current telephone number system that the phone is camped on. Currently, we only support the cases where the default and current telephone numbering system are NANP.
* Add configurable data-retry.Wink Saville2009-08-092-0/+197
| | | | | | | Add RetryManager and change GsmDataConnectionTracker and CdmaDataConnectionTracker to use it. Add TelephonyUtilsTest which tests RetryManager.
* fix the build. handleSslErrorRequest needs a return value now.Grace Kloba2009-08-031-1/+4
|
* am ad346278: Merge change 8208 into donutAndroid (Google) Code Review2009-07-291-11/+0
|\ | | | | | | | | | | | | Merge commit 'ad346278fe129a341543d4a75bf9cc08c50742f8' * commit 'ad346278fe129a341543d4a75bf9cc08c50742f8': Removing MD2
| * Merge change 8208 into donutAndroid (Google) Code Review2009-07-291-11/+0
| |\ | | | | | | | | | | | | * changes: Removing MD2
| | * Removing MD2Urs Grob2009-07-221-11/+0
| | |