summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
Commit message (Collapse)AuthorAgeFilesLines
* Tracking merge of dalvik-dev to masterBrian Carlstrom2010-07-282-10/+10
| | | | Change-Id: Id4c19401ad0aa238219aaf5d9a20d2889d0a4b18
* am c9ecd445: merge from open-source masterThe Android Open Source Project2010-07-162-0/+94
|\ | | | | | | | | | | | | Merge commit 'c9ecd445b86552265b4adb90e5df2fbe5f71cb8e' * commit 'c9ecd445b86552265b4adb90e5df2fbe5f71cb8e': Added method getPreferredHttpHost
| * 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
* | | am 3b97e5a6: merge from open-source masterThe Android Open Source Project2010-07-161-0/+62
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3b97e5a6270f40111117c4d3f1e964154ddea0fe' * commit '3b97e5a6270f40111117c4d3f1e964154ddea0fe': Make HTTP Header class handle multiple cache-control fields.
| * | 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
* | frameworks/base updates to track merge from dalvik-devBrian Carlstrom2010-06-302-127/+1
|/ | | | | | | | | - frameworks and CoreTests modules now depend on bouncycastle - update preloades classes for NativeBN package change - moved CryptoTest to libcore - updated api Change-Id: I47363a463f074af205b5bd128cd98faab70ac849
* 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
| | |
* | | am ae1ba650: Merge change 8227 into donutAndroid (Google) Code Review2009-07-221-0/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383' * commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383': Handle null in MatrixCursor.get*()
| * | Handle null in MatrixCursor.get*()Bjorn Bringert2009-07-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, if a column contained null, MatrixCursor.getString() returned the string "null", and the get<Number>() methods threw exceptions. Now, getString() returns null, and get<Number>() return 0. Fixes http://b/issue?id=1996628
* | | am 113eaa59: Merge change 8131 into donutAndroid (Google) Code Review2009-07-221-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '113eaa59c1dfafd548a13919e48c0346c0c925ac' * commit '113eaa59c1dfafd548a13919e48c0346c0c925ac': Fix android.core.FileTest#testFile: add sdcard write permission to test.
| * | Fix android.core.FileTest#testFile: add sdcard write permission to test.Brett Chabot2009-07-211-0/+1
| |/
* | Remove all our old high priority knowledge since WebCore will manage it.Patrick Scott2009-07-151-12/+12
| | | | | | | | Also removed an unused variable in RequestQueue.java.
* | Rename registerPhoneStateChange to registerPreciseCallStateChangeJaikumar Ganesh2009-07-141-2/+2
| | | | | | | | | | As registerPhoneStateChange was actually notifying CallStateChange, rename appropriately.
* | am 8aadf7ae: Merge change 5359 into donutAndroid (Google) Code Review2009-07-011-0/+7
|\ \ | |/ | | | | | | | | | | Merge commit '8aadf7ae278961926de5452a46863503303735cf' * commit '8aadf7ae278961926de5452a46863503303735cf': fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper
| * fix potential string index problems in ↵Tammo Spalink2009-06-291-0/+7
| | | | | | | | | | | | PhoneNumberUtils.numberToCalledPartyBCDHelper addresses http://buganizer/issue?id=1489784
* | am 6190fe6e: Merge change 2758 into donutAndroid (Google) Code Review2009-05-291-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '6190fe6e7d7c8a917472637f5ab2fb21fc8a6eea' * commit '6190fe6e7d7c8a917472637f5ab2fb21fc8a6eea': Fix concat SMS for GSM.
| * Fix concat SMS for GSM.jsh2009-05-291-1/+1
| | | | | | | | | | | | Bug 1883998: We only support sending 8-bit references for now. Bug 1885080: Also fix the GsmAlphabetTest, which started failing when SmsHeader was re-worked.