summaryrefslogtreecommitdiffstats
path: root/test-runner/src
Commit message (Collapse)AuthorAgeFilesLines
* am 79b66725: am 25be2c72: am e0537f18: Merge "Fix of tearDown() in ↵Jean-Baptiste Queru2011-02-281-1/+1
|\ | | | | | | | | | | | | SingleLaunchActivityTestCase." * commit '79b66725b7755e403e10a9d073121789f09b1a9e': Fix of tearDown() in SingleLaunchActivityTestCase.
| * am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."Jean-Baptiste Queru2011-02-281-1/+1
| |\ | | | | | | | | | | | | * commit 'e0537f1859664ba9c9cf87eb9d6dc3c16986dbb8': Fix of tearDown() in SingleLaunchActivityTestCase.
| | * Fix of tearDown() in SingleLaunchActivityTestCase.Mikael Andreen2011-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before a suite of SingleLaunchActivityTestCase tests are run, an activity is started. The activity is supposed to close when all the tests in the suite have run. The activity is however finished one test too early. This causes problems for the last test. Change-Id: Ie9fb2df350a70f827495a0dc30952e30fbe491e0
| * | am 524133cc: Remove API that snuck into MockPackageManagerKenny Root2011-01-171-4/+0
| |\ \ | | | | | | | | | | | | | | | | * commit '524133cc793b5e372cc97c62653281605f57b5b3': Remove API that snuck into MockPackageManager
| | * | Remove API that snuck into MockPackageManagerKenny Root2011-01-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We didn't release the get/setPackageObbPath API, but it snuck into MockPackageManager. However, it is not usable as a developer anyway. Removing it so it doesn't stay in the API forever. Change-Id: Ia569754691dc3a9f2672c1f25e4e08d780db6028
| * | | am 34d2b41e: Revert "Add the {get,set}PackageObbPaths calls to API"Kenny Root2011-01-171-10/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '34d2b41e48281d1df2c844e004740f008e699093': Revert "Add the {get,set}PackageObbPaths calls to API"
| | * | Revert "Add the {get,set}PackageObbPaths calls to API"Kenny Root2011-01-171-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb. Going with a different tactic that doesn't dump stuff on PackageManagerService. Bug: 3214719 Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
| * | | am e8c04db7: Merge "Add the {get,set}PackageObbPaths calls to API" into ↵Kenny Root2011-01-121-1/+10
| |\ \ \ | | |/ / | | | / | | |/ | |/| | | | | | | gingerbread * commit 'e8c04db71e347396e9537ead7113ba9f46706e44': Add the {get,set}PackageObbPaths calls to API
| | * Add the {get,set}PackageObbPaths calls to APIKenny Root2011-01-091-1/+10
| | | | | | | | | | | | | | | | | | | | | Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
* | | docs: fix links to revised fundamentals documentsScott Main2011-02-081-3/+3
| | | | | | | | | | | | Change-Id: Ie2a660cce1d00f924c9fde5c6a00776307e5e1c7
* | | Remove API that snuck into MockPackageManagerKenny Root2011-01-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We didn't release the get/setPackageObbPath API, but it snuck into MockPackageManager. However, it is not usable as a developer anyway. Removing it so it doesn't stay in the API forever. Cherry-pick from gingerbread Change-Id: I2083a8f398d983d53661c33270854442e34f9bc9
* | | Revert "Add the {get,set}PackageObbPaths calls to API"Kenny Root2011-01-171-10/+0
| | | | | | | | | | | | | | | | | | This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4. Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
* | | Add API to get path to OBBs.Dianne Hackborn2011-01-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also hide the bitmap thumbnail stuff, we can't support it in its current form. And fix some bugs with propagating paths to native code. Yikes! Change-Id: I13ab37ddbdba5c073489cba5eab035117d3c1574
* | | Add the {get,set}PackageObbPaths calls to APIKenny Root2011-01-141-1/+10
| | | | | | | | | | | | | | | | | | | | | Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
* | | Prevent ActivityTestCase from erasing constants.Dmitri Plotnikov2011-01-071-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | If you test case is declaring a non-primitive constant, this method would clear out the constant between individual tests. Change-Id: I570f2bbbbbb0a170bf63b7473b4aaf84869e93e0
* | | Remove an obsolete import for performance tests.Jesse Wilson2010-12-211-2/+0
| | | | | | | | | | | | Change-Id: Ifc76ef821f71ea7469b4044b15071f5d2a7418fd
* | | Remove unused performance tests.Jesse Wilson2010-12-215-51/+6
| | | | | | | | | | | | Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
* | | Fix issue #3272082: Contacts: when going back from edit view,Dianne Hackborn2010-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | list UI is not ready yet This involves some reworking of Loaders. Loaders, in particular CursorLoader, are now expected to retain their current data after being stopped. This allows applications to keep that data across onStop() -> onStart(), so when the user returns to the app it doesn't have to wait for the data to reload and thus cause flicker. This includes various API changes to better reflect the new semantics, plus a new LoaderCallbacks method to tell the application when it is actually time to stop their use of a loader's data. Note this is somewhat half-done, to help checking in the extensive application changes that are required without causing build breakage. Change-Id: Ib4b3bf8185a6da46e7f06ca125521d65e2e380a1
* | | Time to remove some old APIs!Dianne Hackborn2010-12-141-1/+0
| | | | | | | | | | | | Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
* | | Implement issue #3221502: New APIs to support new back stack / task navigationDianne Hackborn2010-11-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What this adds: - A new Intent activity flag to completely replace an existing task. - A new Intent activity flag to bring the current home task up behind a new task being started/brought to the foreground. - New versions of startActivity() that take an array of Intents to be started, allowing applications to start a task in a specific state. - A public moveTaskToFront() method on ActivityManager, with a new flag that allows the caller to have the task moved to the front with the current home task immediately behind it. Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
* | | am 7b76ed69: am e3bef7c4: Merge "Added noop unregisterReceiver to complement ↵Jean-Baptiste Queru2010-11-191-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | existing noop registerReceiver." * commit '7b76ed693e42caea0c5f1bcbe7059c580e9cb314': Added noop unregisterReceiver to complement existing noop registerReceiver.
| * | am e3bef7c4: Merge "Added noop unregisterReceiver to complement existing ↵Jean-Baptiste Queru2010-11-191-0/+5
| |\ \ | | |/ | |/| | | | | | | | | | | | | noop registerReceiver." * commit 'e3bef7c48d7ec13cb8c7c81dba8d775377e69bed': Added noop unregisterReceiver to complement existing noop registerReceiver.
| | * Added noop unregisterReceiver to complement existing noop registerReceiver.Jonas Schwertfeger2010-09-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this addition, code that is being tested using an isolated context can cause an exception if it unregisters a previously registered broadcast receiver. This is because the isolated context never actually registered the receiver in the first place. The fix is to make sure the isolated context is consistent in ignoring both recevier registration and unregistration calls. Change-Id: Ie0ba6f4bb10f5248704327a0ffc8e37ee8b71ae2
| * | 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
* | | Implement issue #2367442: Please add API for manipulating installerDianne Hackborn2010-11-191-0/+6
| | | | | | | | | | | | | | | | | | package names Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
* | | Fix NPE in InstrumentationTestRunnerBrian Muramatsu2010-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | This fixes a problem where the test runner would die when a test case has tests that are not methods of the test class. Change-Id: I5adc464bb4a0c8d282428895e422a47dcb6bfe1f
* | | Added RepetitiveTest annotation and test runner supportJack Wang2010-10-191-5/+21
| | | | | | | | | | | | Change-Id: I7bf0871ede6dd69512c6b6ea3484693ba5b78e89
* | | Allow all apps to call ContentResolver.getType().Dianne Hackborn2010-09-271-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 getApplicationContext to the mock implementation.Makoto Onuki2010-09-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | So that it'll be compatible with Loaders, which uses this method. (Otherwise MockContext.getApplicationContext(), which just throws an exception, will be used.) Change-Id: I529b60466cf086b514fcddbef4583d1c5b750b9c
* | | am ec438e14: am 361199b5: Add PackageManager API to get information about a ↵Dianne Hackborn2010-08-311-0/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | provider component. Merge commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e' * commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e': Add PackageManager API to get information about a provider component.
| * | 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
* | | | Add new ContentProvider for doing conversions to data streams.Dianne Hackborn2010-08-082-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces basic infrastructure that should allow content providers holding complex data to perform on-demand conversion of their data to streams of various types. It is achieved through two new content provider APIs, one to interrogate the possible stream MIME types the provider can return, and the other to request a stream of data in a particular MIME type. Because implementations of this will often need to do on-demand data conversion, there is also a utility intoduced in ContentProvider for subclasses to easily run a function to write data into a pipe that is read by the client. This feature is mostly intended for cut and paste and drag and drop, as the complex data interchange allowing the source and destination to negotiate data types and copy (possible large) data between them. However because it is fundamental facility of ContentProvider, it can be used in other places, such as for more advanced GET_CONTENT data exchanges. An example implementation of this would be in ContactsProvider, which can now provider a data stream when a client opens certain pieces of it data, to return data as flat text, a vcard, or other format. Change-Id: I58627ea4ed359aa7cf2c66274adb18306c209cb2
* | | | fix build breakageVasu Nori2010-08-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | eclipse doesn't complain but our build does.. Change-Id: If0289b68e91e7eb2ae7a9b7bd90d5cb6b728e944
* | | | add shutdown() to ContentProvider & call in ProviderTestCase*.tearDownVasu Nori2010-08-042-0/+24
| | | | | | | | | | | | | | | | Change-Id: I3dd69b6907d68b7c1184139f22297ab92337f043
* | | | Add LoaderTestCase that makes it easier to test Loaders.Jeff Hamilton2010-07-271-0/+101
| | | | | | | | | | | | | | | | Change-Id: I4e91d6767cfd5cc61d7893e9cd71e963e42601a4
* | | | am 243f7f85: am f6120cf4: Merge "Improve InstrumentationTestRunner exception ↵Brett Chabot2010-07-081-3/+19
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling." into gingerbread Merge commit '243f7f85ea9e57716590b9cf355e55d1f0236fce' * commit '243f7f85ea9e57716590b9cf355e55d1f0236fce': Improve InstrumentationTestRunner exception handling.
| * | | 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
* | | | am 0a21801f: am a5402dab: Merge "OBB API for PackageManager" into gingerbreadKenny Root2010-07-081-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b' * commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b': OBB API for PackageManager
| * | | 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
* | | Javadoc for test case classesJoe Malin2010-06-293-118/+307
| | | | | | | | | | | | Change-Id: Ibfa035cfe9091a81fca8bd0a6c141ec26c2de139
* | | Fix UnsupportedOperationException from MockContext.Makoto Onuki2010-06-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Added the new variant of openOrCreateDatabase to RenamingDelegatingContext too. Bug 2739822 Change-Id: I65868d0975e0a0a87ade6b5a0d625b96676af0ba
* | | new API in Context. on openDatabase, new param DatabaseErrorHandlerVasu Nori2010-06-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add new method openOrCreateDatabase in Context.java to allow callers specify a DatabaseErrorHandler object to be used when database corruption occurs. add new constructor in SQLiteOpenHelper to accept DatabaseErrorHandler as an additional param to be used when SQLiteDatabase instance is created. Change-Id: I912a0202a74510f9ca0206dd8101c4abab9102ae
* | | add API to Cursor to get column value typeVasu Nori2010-06-021-0/+4
| | | | | | | | | | | | Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
* | | Bring ServiceTestCase in line with current Service APIs and remove ↵Evan Millar2010-06-011-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unnecessary asserts. -Updated onStart() call to onStartCommand() -Removed asserts that disallowed starting an already bound service and vice versa, since that is a valid Service usage pattern. Change-Id: I79804aef5319a590c74fca54fc990954f7c3fdaa
* | | Remove the unused modification APIs from MockCursor. They shouldn't have ↵Jeff Hamilton2010-05-131-70/+0
| | | | | | | | | | | | | | | | | | been public in the first place. Change-Id: I2932e5287f838f72acdc4c0c1fd5601ffa8c3f84
* | | Merge "Add test runner log when test case class is not loaded."Brett Chabot2010-04-261-1/+7
|\ \ \ | |/ / |/| |