summaryrefslogtreecommitdiffstats
path: root/test-runner/src
Commit message (Collapse)AuthorAgeFilesLines
* Allow all apps to call ContentResolver.getType().Dianne Hackborn2010-09-261-0/+6
| | | | | | | | | I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
* Add PackageManager API to get information about a provider component.Dianne Hackborn2010-08-311-0/+6
| | | | | | Kind-of useful when all you have is a ComponentName. Change-Id: I9a99f12daabb29e97e882e09c43ca0df70c00651
* Merge "DO NOT MERGE Doc Change: Javadoc for test case classes" into gingerbreadJoe Malin2010-07-133-118/+307
|\
| * DO NOT MERGE Doc Change: Javadoc for test case classesJoe Malin2010-07-023-118/+307
| | | | | | | | | | | | Change-Id: I21b78a84ee1345a98631dcaab937a10b4fa4344d Original change was SHA1 7d433aabb731a790fc8d06d260c826751215113f
* | Merge "Improve InstrumentationTestRunner exception handling." into gingerbreadBrett Chabot2010-07-081-3/+19
|\ \
| * | Improve InstrumentationTestRunner exception handling.Brett Chabot2010-07-071-3/+19
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes two somewhat related problems: - Attempting to run a method which does not exist caused a runtime exception which stopped the test run. Change this so the runner reports an individual test failure instead - A runtime exception during the test run would cause it to stop completely, with no information dumped to the logcat or stdout. Now exceptions are trapped and reported to stdout. Also added associated unit tests to test these two conditions. Related bug 2812262. Change-Id: I383f9b9bad99f14cb51071800fa9bdbf6a6a1119
* | OBB API for PackageManagerKenny Root2010-07-071-0/+5
|/ | | | | | | | | Simple API for tracking .obb files associated with packages. Stores the path in the PackageSettings. No verification of file content is done now since the PackageManagerService can't read the SD card where these files will likely live. Change-Id: Ibeaf26ba0526b6d60f401137e58f46ee9faff39e
* Manual merge of change 53051 from master (DO NOT MERGE)Evan Millar2010-06-181-7/+1
| | | | Change-Id: Ia4697a15cb874f25849655994e10aa88ae60b328
* Logo attribute for manifest and PackageManager methods to fetch itAdam Powell2010-04-231-0/+20
| | | | Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
* Package manager optimizations.Dianne Hackborn2010-03-301-0/+5
| | | | | | | | | | | | | | | Addresses: Issue #2550648: PackageManagerService setComponentEnabledSetting unconditionally writes Settings xml Issue #2549084: Make PackageManager.addPermission have async version Also make the writing of settings when changing the preferred activities to use the same async mechanism, and fiddle with thread priorities in the background thread to go up to foreground priority when holding the lock to write settings and a few other places. (At some point we should really clean this up to never acquire the main lock while in the background.) Change-Id: Ib2b7632543f6fb3f92a225518579f3b2d15e1413
* Add -e package description to InstrumentationTestRunner javadoc.Brett Chabot2010-03-191-0/+4
| | | | | | Bug 2528316 Change-Id: Ic707115e40a18521e0d57ee12f43df96be7033f2
* Add missing license notices on test classesKenny Root2010-03-125-1/+81
| | | | | | | | | | | | Change number and file origin info 34691-p9 frameworks/base/test-runner/src/android/test/ProviderTestCase2.java 48099-p9 frameworks/base/test-runner/src/android/test/RenamingDelegatingContext.java 40550-p9 frameworks/base/test-runner/src/android/test/BundlePrinter.java 87783-p9 frameworks/base/test-runner/src/android/test/IsolatedContext.java 34691-p9 frameworks/base/test-runner/src/android/test/ProviderTestCase.java Change-Id: I1fea36db24e73f91ffdf43b84ff73be55478b53a
* Add "call" method on ContentProvider.Brad Fitzpatrick2010-03-052-1/+25
| | | | | | | | | | | | | This permits implementing interfaces which are faster than using remote Cursors. It then uses it for Settings & SettingProvider, which together account for ~50% of total ContentProvider event loop stalls across Froyo dogfooders. For fetching Settings this looks like it should reduce average Settings lookup from 10 ms to 0.4 ms on Sholes, once the SettingsProvider serves most gets from in-memory cache. Currently it brings the Sholes average down from 10ms to 2.5 ms while still using SQLite queries on each get.
* Bug 2306842Paul Westbrook2010-02-261-1/+61
| | | | | | | | | | | | | Since MockAccountManager was passing null to the AccountManager constructor, unit tests where the AccountManager attempts to call the AccountManagerService were crashing. Now the getAccountsByTypeAndFeatures and blockingGetAuthToken (which are the calls that the Gmail unit tests call) call a small stub At some point, all of the other AccountManager calls should be stubbed out
* fix error in javadocDoug Zongker2010-02-231-0/+1
| | | | | | The "@link LargeTest" is broken since it doesn't know where that class is. Change-Id: Ie15e40bac8a1965427e351926b2208775e79cb13
* Add ability to run tests restricted to given annotation.Brett Chabot2010-02-221-1/+86
| | | | | | | | | | And ability to exclude tests with given annotation. Also fix class cast compile warning in emma output method. Bug 2239240 Change-Id: I56273a51a8c58a690680bdb612615fab69e6e13f
* Fix code coverage output message when running tests in non-raw mode.Brett Chabot2010-02-201-1/+4
| | | | Bug 2082804
* Retry test-runner tests move.Brett Chabot2010-02-2090-0/+11779
| | | | | 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-1990-11770/+0
| | | | This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
* Move framework test-runner unit tests to be closer to their source.Brett Chabot2010-02-1990-0/+11770
Move the test-runner source into a separate src folder to accommodate the test move.