summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move out all framework-tests classes.Brett Chabot2010-06-143-0/+460
| | | | | | | | | | | | | | Previously tests/framework-tests contained a quarantined set of test classes that needed access to package-private framework api. Running these tests normally would cause the dalvik verifier to throw errors. runtest now has support for turning off the dalvik verifier for frameworks tests, so move this tests into their recommended location, close to the source being tested. Also move policy source into a 'src' folder to accommodate the tests move. Change-Id: I62f839da185a55bc553b653bf583fd99da438512
* am ee7e6a78: merge from open-source masterThe Android Open Source Project2010-06-031-0/+20
|\ | | | | | | | | | | | | Merge commit 'ee7e6a78e28b360826f215e0e84d43b1513b6401' into kraken * commit 'ee7e6a78e28b360826f215e0e84d43b1513b6401': Improved error-handling in Rfc822Tokenizer
| * merge from open-source masterThe Android Open Source Project2010-06-031-0/+20
| | | | | | | | Change-Id: Idf8d5661d7b261b74ac0b1271af98795ac5faff9
* | am 3716ea04: am 06906796: If the network SSID is a string, it should be ↵Xia Wang2010-05-201-1/+5
|\ \ | |/ | | | | | | | | | | | | | | enclosed in double quotation marks. Merge commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc' into kraken * commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc': If the network SSID is a string, it should be enclosed in double quotation marks.
| * am 06906796: If the network SSID is a string, it should be enclosed in ↵Xia Wang2010-05-201-1/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | double quotation marks. Merge commit '069067963cf0117cfb4a1aef99b550b126d9ca92' into froyo-plus-aosp * commit '069067963cf0117cfb4a1aef99b550b126d9ca92': If the network SSID is a string, it should be enclosed in double quotation marks.
| | * If the network SSID is a string, it should be enclosed in double quotation ↵Xia Wang2010-05-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | marks. bug id: 2701058 Change-Id: I40e10ba096053710d4974b005d0d2e7c309ccffe
* | | Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage.Wink Saville2010-05-191-31/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EBNF statemachine description language was to difficult to remember changed to use a simpler and more obvious psuedo language. Added HANDLED and NOT_HANDLED as it makes the psuedo code more obvious. Added getCurrentMessage primarily for use by code in enter so that it can know why the new state is being entered. Change-Id: I1446e417b77684fbde0020b1da0975eedc57cce4
* | | am 7361b741: am 4a0823e5: Merge "Uncomment a test that was marked as ↵Suchi Amalapurapu2010-05-181-3/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | STOPSHIP Add MediumTest tag" into froyo Merge commit '7361b7410f2427022cc8917b00553dc26107cded' into kraken * commit '7361b7410f2427022cc8917b00553dc26107cded': Uncomment a test that was marked as STOPSHIP
| * | am 4a0823e5: Merge "Uncomment a test that was marked as STOPSHIP Add ↵Suchi Amalapurapu2010-05-181-3/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | MediumTest tag" into froyo Merge commit '4a0823e5486f16b10762076d629f2f7e4d5da476' into froyo-plus-aosp * commit '4a0823e5486f16b10762076d629f2f7e4d5da476': Uncomment a test that was marked as STOPSHIP
| | * Uncomment a test that was marked as STOPSHIPSuchi Amalapurapu2010-05-181-3/+2
| | | | | | | | | | | | | | | | | | Add MediumTest tag Change-Id: I0699d168d7ec70c076f4713e0e405c0779a290c6
* | | am aa4db173: am 9a212adc: Fix 2641875 Initialize the cache path only if the ↵Suchi Amalapurapu2010-05-181-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | container exists. This did exist before but was somehow removed. Fix a known test failure as well. Merge commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c' into kraken * commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c': Fix 2641875
| * | am 9a212adc: Fix 2641875 Initialize the cache path only if the container ↵Suchi Amalapurapu2010-05-181-2/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | exists. This did exist before but was somehow removed. Fix a known test failure as well. Merge commit '9a212adcffbc4b32d51f512889b33ba584647aa9' into froyo-plus-aosp * commit '9a212adcffbc4b32d51f512889b33ba584647aa9': Fix 2641875
| | * Fix 2641875Suchi Amalapurapu2010-05-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well. Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
* | | ConnectivityManagerTestActivity can be launched from launcher.Xia Wang2010-05-172-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | Help to track bug 2680352. Add a resource file for string. Corrent some typos. Change-Id: I42fefe49c360168ec807ed82dc220ab68681d14e
* | | am b63ea5f7: am c928a11e: Merge "Fix 2672155 Check the code path when ↵Suchi Amalapurapu2010-05-131-0/+43
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | enabling disabling packages." into froyo Merge commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810' into kraken * commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810': Fix 2672155
| * | am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling ↵Suchi Amalapurapu2010-05-131-0/+43
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | packages." into froyo Merge commit 'c928a11e34678296511d5ea34582292be7368618' into froyo-plus-aosp * commit 'c928a11e34678296511d5ea34582292be7368618': Fix 2672155
| | * Fix 2672155Suchi Amalapurapu2010-05-131-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | Check the code path when enabling disabling packages. Add unit test Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
* | | am b1110149: merge from open-source masterThe Android Open Source Project2010-05-131-0/+285
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Merge commit 'b1110149cccc3b99e59ead34ca46e5ac026f6db9' into kraken * commit 'b1110149cccc3b99e59ead34ca46e5ac026f6db9': Use integer for loop counter instead of float New test in FrameworkTest for the VelocityTracker class Preserve '+' in phone numbers imported from SIM.
| * | merge from open-source masterThe Android Open Source Project2010-05-131-0/+285
| |/ | | | | | | Change-Id: I88a580162b34a80d1e3e7987b7a301c253afa0e8
* | Merge "Add FLAG_RERAIN_PHONE_NUMBER_FORMATTING." into krakenJaikumar Ganesh2010-05-131-0/+10
|\ \ | |/ |/|
| * Add FLAG_RERAIN_PHONE_NUMBER_FORMATTING.Daisuke Miyakawa2010-05-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes using PhoneNumberUtils takes unexpected side effects. For example, PAUSE mark (#) is removed and operation on the phone number does not work well in some devices. I also concern removing the PhoneNumberUtils logic since some other mobile phones cannot understand # or alphabets and starts emitting errors after the modification. I'll add a flag instead of just removing the code and let users choose it. Bug: 2329952 Change-Id: I4ffdd01ebb8ac320b8b67a5848a747af13c6ad1a
* | Fix for bug 2672749: StringIndexOutOfBoundsException in Uri.getQueryParameterKeith Ito2010-05-101-0/+20
| | | | | | | | Change-Id: I10b02306478d9c595dbcae0767b44c403d50e24a
* | Add unit test for passing thread priority & cgroup through Binder.Dan Egnor2010-05-075-11/+239
| | | | | | | | | | | | | | | | | | This test actually exposes some bugs -- the test passes as written, but certain parts are commented out with references to the bugs in question. Bug: 2665914 Bug: 2665954 Change-Id: I61220e0efadc4edbb6ad419d26fa1f0f50bbc24c
* | Avoid UNKNOWN state for Wifi in bug2542613, not a common user case.Xia Wang2010-05-061-0/+9
| | | | | | | | Change-Id: Ief0a953e2909cb5c808f0d683ab95d14f6c53e72
* | Propagating IOException from RemoteAndroidTestRunner#run() in ↵Neal Nguyen2010-05-061-2/+2
| | | | | | | | | | | | PackageManagerHostTestUtils. Change-Id: Ia50d58760b4cc1e222927be054c52cc3b2993395
* | Adding a few host-based stress tests for Apps on SD.Neal Nguyen2010-05-0536-32/+2485
|/ | | | Change-Id: I0ccb1f3574688f60b6296dac6f6859ba5d0597ea
* Add good international characters to the path part of Url pattern.Shimeng (Simon) Wang2010-04-271-0/+4
| | | | Change-Id: Ib24f8ffc8554366cb4350ec2f9d7e77efb0cb083
* Re-enabling unit tests for PackageManager/Apps on SD.Neal Nguyen2010-04-231-49/+158
| | | | Change-Id: I305d2e6d96418ab5b2df0ee7a31261180676204f
* Dont fall back to installing on sdcard when internal storage is filled upSuchi Amalapurapu2010-04-141-104/+99
| | | | | | | | | | | when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard is filled up. If nothing is specified ie install location is set to let system decide, we just check on internal storage. Fix tests Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
* Fix 2579461Suchi Amalapurapu2010-04-071-7/+7
| | | | | | | | Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm. Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
* Merge "Fix 2578016." into froyoSuchi Amalapurapu2010-04-0741-35/+275
|\
| * Fix 2578016.Suchi Amalapurapu2010-04-0741-35/+275
| | | | | | | | | | | | | | | | Add some checks before moving package. Checkin test code. Regenerate test apks Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
* | Merge " Fix bug2537659 When airplane mode is disabled, Mobile connection ↵Xia Wang2010-04-071-11/+4
|\ \ | |/ |/| | | may be bring up before connecting to a known wifi." into froyo
| * Fix bug2537659Xia Wang2010-04-051-11/+4
| | | | | | | | | | | | | | When airplane mode is disabled, Mobile connection may be bring up before connecting to a known wifi. Change-Id: I92e395aefd141c8bc4b8b2e497a71e5fd131eec2
* | Add makefile so package manager test apks can get buitl from root.Brett Chabot2010-04-061-0/+5
|/ | | | Change-Id: I89e3d50793a48a404c7d8e5699baea8b195b7684
* Merge "More framework tests cleanup." into froyoBrett Chabot2010-04-0140-25/+4592
|\
| * More framework tests cleanup.Brett Chabot2010-04-0140-25/+4592
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Refactor in PositionTesterContextMenuListener.Gilles Debunne2010-04-012-17/+57
|/ | | | | | | | | | | | | The asserts were removed from that class and replaced by a status String object. This allows ExpandableListTester to do the asserts instead. These tests passed on a sapphire and passion devices as well as in the emulator. The asserts in the main thread are expected to make these tests pass during the continuous build too. This is 7fbddb1db1beeac7c6762fb7a11612e348f6ff90 cherrypicked to froyo. http://b/issue?id=2525846
* Merge "Test connecitvity manager functionality in state change. * Verify ↵Xia Wang2010-03-314-41/+482
|\ | | | | | | state change when enabling/disabling wifi * Verify network connectivity change while switching among 3G, Wifi, and Airplane mode" into froyo
| * Test connecitvity manager functionality in state change.Xia Wang2010-03-314-41/+482
| | | | | | | | | | | | | | * Verify state change when enabling/disabling wifi * Verify network connectivity change while switching among 3G, Wifi, and Airplane mode Change-Id: Ia4581b10b794c7b301d28019563bca832bcd8b90
* | Change certificate policy.Suchi Amalapurapu2010-03-3123-8/+395
|/ | | | | | | | | | | | | | | | | The certificates of the package and its shared user certificates are initialized only when installing the package. When scanning the packages, the certificates are collected from the apk if the time stamp changes. If not the one's from PackageSetting(read from packages.xml) are reused. Removed mergeSignatures and updateSignatures since we don't support this any more. Also fix some bugs related to reinstalling failed upgrades. Some unit tests. Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb
* - changed periodic sync scheduling to just creating pendingFred Quintana2010-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | and changed the "get next operation to sync" logic just look at pending syncs, rather than them and periodic syncs - made syncoperation dup-detection ignore the initialization sync extra - made the sync dispatcher treat initialization syncs as just a regular sync request and also made it explicitly set or clear the initialization extra based on whether the sync adapter was in the syncable or unknown state - change the getNextSync logic to prioritize syncable "unknown" syncs above everything else (since they should be fast and are important) - make it reschedule completed initialization syncs if the sync adapter is now marked syncable - fix some logging in SyncStorageEngine - change SyncStorageEngine to not reuse authority ids when one is removed http://b/issue?id=2531359 http://b/issue?id=2429638 Change-Id: I79805b582da74f4f0b6193eafaff24c2371d51e8
* some changes due to an API reviewFred Quintana2010-03-301-1/+4
| | | | | | | | | | | | | | | - make EntityIterator extend Iterator and thus not throw a RemoteException, instead converting it into a RuntimeException. - rename ActiveSyncInfo to SyncInfo - change getActiveSync to getCurrentSync - remove the accessors in SyncInfo and instead make the final fields publicly accessible - made AbstractThreadedSyncAdapter.cancelSync not take a thread Change-Id: I99fde5585bc5f1e95f4873ffbba189074a8d6372 http://b/issue?id=2553539 http://b/issue?id=2553541 http://b/issue?id=2553550
* relocate android.util.base64.* -> android.util.*Doug Zongker2010-03-291-1/+1
| | | | | | b/2553469 - API REVIEW: android.util.base64 Change-Id: I6a514032152a8b1899db52d020aca8e8b19e74e9
* Move PackageManagerTests and AsecTests.Brett Chabot2010-03-2611-0/+2830
| | | | | | | | Remove PackageManagerTests test's from continuous due to flakiness. merged from abandoned master. Change-Id: I0a542df9df572c37bd1aa987cdc9fb2f95001a7c
* Refactoring PackageManagerHostTests helper functions into a utility class ↵Neal Nguyen2010-03-242-279/+393
| | | | | | for easier sharing with future stress tests. Change-Id: I4ec77b005e2f480687b13c92676c5f62962c2e66
* Merge "fix bug where sync settings set lost upon upgrade from donut and ↵Fred Quintana2010-03-241-4/+86
|\ | | | | | | eclair to froyo"
| * fix bug where sync settings set lost upon upgrade from donut and eclairFred Quintana2010-03-241-4/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to froyo - intepret a missing syncavble attribute from donut as "unsynced" rather than the traditional "true" - copy the sync settings from the authorities "contacts" and "calendar" to "com.android.contacts" and "com.android.calendar" if the latter don't already have settings - delay the database cleanup until after boot completed, which will give the GoogleLoginService accounts migration code a chance to run; this was causing all the settings to get removed upon a donut to froyo upgrade Change-Id: I8795e97ba0c9b930d1a50784229ca9ab15dff9d2 http://b/issue?id=2531359
* | Adding some automated tests for apps on SD (and their corresponding apps).Neal Nguyen2010-03-2340-6/+1288
| | | | | | | | Change-Id: I3af1a2d8fb658087c6945b2eb2b4233becb6053f
* | * Move connectivity manager test closer to source.Xia Wang2010-03-236-0/+831
| | | | | | | | | | | | | | * Add license header to java files * Remove google related information from the test Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0