summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
Commit message (Collapse)AuthorAgeFilesLines
* Track libcore tests moving from frameworks/base to libcore.Jesse Wilson2011-12-135-1365/+2
| | | | | Bug: http://b/3073226 Change-Id: I07076e6ed74fcae5482dff477ed102c770c197c9
* WifiWatchdogService - disable bad connectionsIsaac Levy2011-06-241-0/+0
| | | | | | Complete rewrite of WifiWatchdogService.java. Checking for connectivity and managing wifi upon failure detection. Change-Id: Ifcb8b5d7e0112cbc2f2282d76fdc93ea15527a44
* Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-071-10/+9
| | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* am f7a9b869: am 1e7fb7ae: Merge "Error in compound cache-control header."Brad Fitzpatrick2011-03-301-0/+42
|\ | | | | | | | | * commit 'f7a9b8691918642db74a667a71028c0a77b527ff': Error in compound cache-control header.
| * Error in compound cache-control header.Henrik Baard2011-03-291-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | A cache control header containing both no-cache and max-age attribute does not behave as expected. Cache-Control: no-cache, max-age=200000 Will set expired to 20000ms seconds, ignoring the no-cache header. My interpretation is that the no-cache header should not be ignored in this case. Change-Id: Iadd1900e4d2c6c0dacc6bb3e7b944cf78ca9b266
* | Remove SSLPerformanceTest and DatabaseSessionCache.Jesse Wilson2011-02-102-744/+0
| | | | | | | | | | | | These aren't being run. Change-Id: I9afc617a424c675578185ac66a4f6ac3af9afacf
* | Removing android.security.MessageDigestBrian Carlstrom2011-02-011-1/+1
| | | | | | | | | | Bug: 3392028 Change-Id: I6b9732da17d086ba00c846c3ad1c7fb39baf9502
* | Move URLTest tests to libcore.Jesse Wilson2011-01-211-228/+0
| | | | | | | | | | | | These tests were migrated to libcore in change ID I5a6bcdf1c03d0c36b11552ae086d0dece0440f64. Change-Id: Idc2d8fc3681b77c9a4c19a192a202bc556a48d23
* | Remove minimum heap size test now that the underlying interface is gone.Carl Shapiro2011-01-121-67/+0
| | | | | | | | Change-Id: I4431247286dfd93ad0c3af9ebbba2ece92c35308
* | Remove tests for dead API.Elliott Hughes2011-01-101-90/+0
| | | | | | | | | | | | | | | | We removed the implementation, so there's no point trying to test it. (The methods are still there for binary compatibility, which is why this still compiled.) Change-Id: I51f392f3dab542fca0c80fab4974354e2c689b9e
* | 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