summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Stop the NANP number formatter from putting dashes in shortcodes.Ficus Kirkpatrick2009-05-261-0/+5
| | | | | | | | | | This changes the result of PhoneNumberUtils.formatNumber("46645") from "466-45" to "46645".
* | am 5bc21aa0: Merge change 1127 into donutAndroid (Google) Code Review2009-05-202-23/+32
|\ \ | |/ | | | | | | | | | | Merge commit '5bc21aa0671d83e406b46e0431816dea8d9ca5cb' * commit '5bc21aa0671d83e406b46e0431816dea8d9ca5cb': SmsHeader rewrite, in preparation for migration to public API.
| * SmsHeader rewrite, in preparation for migration to public API.Tammo Spalink2009-05-202-23/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | See http://b/issue?id=1751571 Changes the semantics of SmsHeader from containing only opaque data to exposing occurs-once frequently-used fields together with a list of opaque fields. Also changes the coding to and from byte array to be symmetrical, whereas previous encoding had an extra length field. Cdma SmsMessage -- cleanup of code paths along with adjustments to match the new header semantics, which should address at least some of the issues with concatenated messages. See http://b/issue?id=1809759
* | am 15e74b9d: Merge change 1939 into donutAndroid (Google) Code Review2009-05-191-1/+4
|\ \ | |/ | | | | | | | | | | | | | | | | Merge commit '15e74b9da8b4cda11ee54da1e77a02d1a86c944a' * commit '15e74b9da8b4cda11ee54da1e77a02d1a86c944a': Temporarily suppress flaky test LocationManagerProximityTest until test harness support can be rolled out. Fix build breakage Revise the ImageButton class description to include information Record statistics about whether HTTP connections are reused.
| * Temporarily suppress flaky test LocationManagerProximityTest until test ↵Brett Chabot2009-05-181-1/+4
| | | | | | | | harness support can be rolled out.
* | am b4735b6: am 25f9637: AI 148665: Disabling a test that does not work aJorg Pleumann2009-05-111-23/+29
|\ \ | |/ | | | | | | | | | | Merge commit 'b4735b6c04c6bca3219115395748a1b5ef02ff6c' * commit 'b4735b6c04c6bca3219115395748a1b5ef02ff6c': AI 148665: Disabling a test that does not work as
| * am 25f9637: AI 148665: Disabling a test that does not work asJorg Pleumann2009-05-111-23/+29
| |\ | | | | | | | | | | | | | | | | | | Merge commit '25f963753ea762c12c74c0dcb861b023ac92177a' into donut * commit '25f963753ea762c12c74c0dcb861b023ac92177a': AI 148665: Disabling a test that does not work as
| | * AI 148665: Disabling a test that does not work asJorg Pleumann2009-05-111-23/+29
| | | | | | | | | | | | | | | | | | | | | expected on a device with a SIM. BUG=1657996 Automated import of CL 148665
| | * AI 145757: Suppress the flaky testsYu Shan Emily Lau2009-04-101-3/+4
| | | | | | | | | | | | | | | | | | BUG=174601,1569749 Automated import of CL 145757
| | * AI 145743: Excise the "de" locale out of testResourceBundles(), leaving aDan Bornstein2009-04-101-1/+44
| | | | | | | | | | | | | | | | | | | | | TODO and long comment about the situation. BUG=1746810 Automated import of CL 145743
* | | am 08d00b9: Merge change 1159 into donutAndroid (Google) Code Review2009-05-071-5/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '08d00b9ad794d9f627f1c2c4b282c3950806f4bd' * commit '08d00b9ad794d9f627f1c2c4b282c3950806f4bd': CoreTests: Fix LocationManagerProximityTest.
| * | CoreTests: Fix LocationManagerProximityTest.Mike Lockwood2009-05-071-5/+2
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581Dianne Hackborn2009-05-061-2/+1
|\ \ \ | |/ /
| * | Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
| * | AI 145971: am: CL 145757 Suppress the flaky testsYu Shan Emily Lau2009-04-131-3/+4
| | | | | | | | | | | | | | | | | | | | | Original author: yslau Merged from: //branches/cupcake/... Automated import of CL 145971
| * | AI 145970: am: CL 145743 Excise the "de" locale out of ↵Dan Bornstein2009-04-131-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testResourceBundles(), leaving a TODO and long comment about the situation. Original author: danfuzz Merged from: //branches/cupcake/... Automated import of CL 145970
| * | AI 145971: am: CL 145757 Suppress the flaky testsYu Shan Emily Lau2009-04-131-3/+4
| | | | | | | | | | | | | | | | | | | | | Original author: yslau Merged from: //branches/cupcake/... Automated import of CL 145971
| * | AI 145970: am: CL 145743 Excise the "de" locale out of ↵Dan Bornstein2009-04-131-1/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testResourceBundles(), leaving a TODO and long comment about the situation. Original author: danfuzz Merged from: //branches/cupcake/... Automated import of CL 145970
| * | AI 144185: Integrate cdma into the main code base.Wink Saville2009-04-027-74/+74
| |/ | | | | | | Automated import of CL 144185
* | change the sync framework and users to understand AccountFred Quintana2009-04-231-1/+2
| |
* | AI 146179: am: CL 145971 am: CL 145757 Suppress the flaky testsYu Shan Emily Lau2009-04-141-3/+4
| | | | | | | | | | | | | | | | Original author: yslau Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 146179