summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add BT test instrumentation for reboot tests.Eric Rowe2010-09-281-0/+94
| | | | Change-Id: If8134a1c11f3982086b7299e5c8bd3ef8eaa5959
* DO NOT MERGE Separate utility methods into utility class.Eric Rowe2010-09-282-415/+458
| | | | | | | | Methods in BluetoothTestUtils remain the same as they were in BluetoothStressTest except for the constructor and close(). The constructor is derived from setUp() and close() from tearDown(). Change-Id: I09f9637d3969c98e46cbde1d61bc6c3223aec7c1
* Improve logging and flexibility of BT stress tests.Eric Rowe2010-09-283-37/+158
| | | | Change-Id: I657638b3b410175919da545e9a9b7d9df6466362
* Remove @LargeTest annotationsEric Rowe2010-09-281-8/+3
| | | | Change-Id: Ib7e6f6e8b6437db5ca2ad2bcb89f079a0cbf7453
* Merge branch 'froyo' of ↵Steve Kondik2010-08-092-0/+442
|\ | | | | | | | | | | | | git://android.git.kernel.org/platform/frameworks/base into froyo Conflicts: services/java/com/android/server/PowerManagerService.java
| * Checkin initial bluetooth stress tests.Eric Rowe2010-08-052-0/+442
| | | | | | | | | | | | | | Bluetooth stress tests include stress tests for enabling/disabling bluetooth, making the device discoverable/undiscoverable, and starting and stopping scans. Change-Id: Ic8ba09475ffe5551717438673e0ed3f4bd17cf2f
* | Merge branch 'froyo' of ↵Steve Kondik2010-07-281-0/+43
|\ \ | |/ | | | | | | | | | | | | | | git://android.git.kernel.org/platform/frameworks/base into froyo Conflicts: core/java/android/net/SSLCertificateSocketFactory.java docs/html/resources/dashboard/platform-versions.jd docs/html/resources/dashboard/screens.jd
| * Add the hook which can set the device to connect to wifi and in airplane ↵Yu Shan Emily Lau2010-07-161-0/+43
| | | | | | | | | | | | mode after reboot. This is for the power test. Change-Id: I42527612764252d1c47bd29a2b88d5e3019cfdf9
* | Allow ListPreference summary to use entryKenny Root2010-07-241-0/+45
|/ | | | | | | | | | | | | | | | | | | Currently when ListPreferences are used in a PreferenceActivity, the summary values are set to the same as the current index in mEntryValue. This patch adds the ability for a string substitution to be used in the summary which points to the corresponding entry in mEntries to aid in localization. For example a preference may be named "color" with the following attributes in the locale "de" (German): mEntryValues = { "red", "green", "blue" } mEntries = { "rot", "grün", "blau" } mSummary = "Die Farbe ist %1$s." getSummary() returns "Die Farbe ist grün." Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90
* 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
* Uncomment a test that was marked as STOPSHIPSuchi Amalapurapu2010-05-181-3/+2
| | | | | | Add MediumTest tag Change-Id: I0699d168d7ec70c076f4713e0e405c0779a290c6
* 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
* Fix 2672155Suchi Amalapurapu2010-05-131-0/+43
| | | | | | | | Check the code path when enabling disabling packages. Add unit test Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
* 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
* | Merge "Advance encodedKeySearchIndex if encodedKey matches a suffix of a ↵Kenny Root2010-03-221-0/+8
|\ \ | |/ |/| | | parameter."
| * Advance encodedKeySearchIndex if encodedKey matches a suffix of a parameter.Keith Ito2010-03-211-0/+8
| | | | | | | | | | Bug: 2524610 Change-Id: I51bbf8248133b61825d2ae14afe175cb4d0413b8
* | Merge "Allow transitionTo in enter/exit."Wink Saville2010-03-181-1/+149
|\ \
| * | Allow transitionTo in enter/exit.Wink Saville2010-03-181-1/+149
| |/ | | | | | | | | bug: 2435366 Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101
* | Make the VCardEntry more robust against badly behaving resolvers. ↵Daniel Lehmann2010-03-181-1/+1
|/ | | | | | | | Additionally make the ImportTestResolver return the right result Bug:2521447 Change-Id: I39e3e686b1fd75f5e633a467f6ccb736751355ed
* Add additional sendMessage methods.Wink Saville2010-03-171-27/+27
| | | | | | | To simplify sending messages add sendMessage methods that take what and obj as parameters. Change-Id: Ib22d752eb3cb32fe3dfa8dd2e65915acec3e5db6
* Merge "Make JNI function for setLocale() call register_localized_collators() ↵Daisuke Miyakawa2010-03-161-13/+93
|\ | | | | | | with the current locale, not previous one, every time it is possible."
| * Make JNI function for setLocale() call register_localized_collators()Daisuke Miyakawa2010-03-161-13/+93
| | | | | | | | | | | | | | | | | | with the current locale, not previous one, every time it is possible. Add a unit test verifying this fix. BUG: 2514026 Change-Id: I4dd1b047e1ab4bf399e2c3ebc0304c0cfa3a0928