d2183654e03d589b120467f4e98da1b178ceeadb |
09-Oct-2011 |
Jeff Brown <jeffbrown@google.com> |
Fix ownership of CursorWindows across processes. Bug: 5332296 Ensure that there is always an owner for each CursorWindow and that references to each window are acquired/released appropriately at all times. Added synchronization to CursorToBulkCursorAdaptor to prevent the underlying Cursor and CursorWindow from being remotely accessed in ways that might violate invariants, resulting in leaks or other problems. Ensured that CursorToBulkCursorAdaptor promptly releases its references to the Cursor and CursorWindow when closed so they don't stick around longer than they should, even if the remote end hangs onto the IBulkCursor for some reason. CursorWindow respects Parcelable.FLAG_WRITE_RETURN_VALUE as an indication that one reference to the CursorWindow is being released. Correspondingly, CursorToBulkCursorAdaptor acquires a reference to the CursorWindow before returning it to the caller. This change also prevents races from resulting in the transfer of an invalid CursorWindow over the wire. Ensured that BulkCursorToCursorAdaptor promptly releases its reference to the IBulkCursor when closed and throws on attempts to access the cursor while closed. Modified ContentProviderNative to handle both parts of the wrapping and unwrapping of Cursors into IBulkCursors. This makes it a lot easier to ensure that the right things happen on both ends. Also, it turns out that the only caller of IContentProvider.bulkQuery was ContentProviderNative itself so there was no need to support bulkQuery on ContentProviderProxy and it was just getting in the way. Implement CloseGuard on CursorWindow. Change-Id: Ib3c8305d3cc62322f38a06698d404a2989bb6ef9
est/mock/MockContentProvider.java
est/mock/MockIContentProvider.java
|
05ca4c90644921df9193d92b2abdc81ef77e4a62 |
15-Sep-2011 |
Kenny Root <kroot@google.com> |
Allow non-required package verifiers * Verifiers can be specified in the AndroidManifest.xml * Those verifiers can respond to the new Intent action * PackageManager API for those verifiers: verifyPendingInstall Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
est/mock/MockPackageManager.java
|
0d3647dc00849872ec5e18cce8ffe0e6ae02dd47 |
22-Sep-2011 |
Kenny Root <kroot@google.com> |
am 9c711282: Merge "Unhide new PackageManager APIs for API 14" into ics-factoryrom * commit '9c711282ad234e104c34eb4408d85fc1bb149ded': Unhide new PackageManager APIs for API 14
|
3a9b5fbb97e65019abec97f172b4cbf2100d1225 |
20-Sep-2011 |
Kenny Root <kroot@google.com> |
Unhide new PackageManager APIs for API 14 Change-Id: I83110285ccee39a4cd872a1c2af8357f541833d4
est/mock/MockPackageManager.java
|
97567340a4194070ffefe6249e3ae5ba4e458e70 |
19-Sep-2011 |
David Hu <hud@google.com> |
Merge "Return the bundle object"
|
cbc584d7ebe332f78bf8012d21265ccb482c7cfc |
17-Sep-2011 |
David Hu <hud@google.com> |
Return the bundle object Added the ability for the test runner to return the bundle object so the tests can get access to input arguments Change-Id: I73a704bb2279238bd91a376aacecbe5f607af649
est/InstrumentationTestRunner.java
|
0aaa0d931716e9f57a1d84d795fab2df75092756 |
13-Sep-2011 |
Kenny Root <kroot@google.com> |
Add verifier device identity This adds a special device identifier that is usable only for device validation. The user will be presented with this number encoded in easily-transcribable Base32 in the Developer options of Settings. Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
est/mock/MockPackageManager.java
|
c69efa5efce6d9a820f8902ca62305cddea163e6 |
07-Sep-2011 |
Jesse Wilson <jessewilson@google.com> |
Remove frameworks' reference to an obsolete Bouncycastle keystore file. Without this, some SSL code fails with an exception: java.io.FileNotFoundException: /system/etc/security/cacerts.bks: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:410) at java.io.FileInputStream.<init>(FileInputStream.java:78) at java.io.FileInputStream.<init>(FileInputStream.java:105) at org.apache.harmony.xnet.provider.jsse.DefaultSSLContextImpl.getTrustManagers(DefaultSSLContextImpl.java:115) at org.apache.harmony.xnet.provider.jsse.SSLContextImpl.<init>(SSLContextImpl.java:71) at org.apache.harmony.xnet.provider.jsse.OpenSSLContextImpl.<init>(OpenSSLContextImpl.java:34) at org.apache.harmony.xnet.provider.jsse.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:59) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1319) at java.security.Provider.newInstance(Provider.java:989) ... 15 more Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98) at libcore.io.IoBridge.open(IoBridge.java:393) ... 24 more Change-Id: I91de30746c1355ff9e0c2a9479392a50fe45aa23
est/InstrumentationCoreTestRunner.java
|
5ab2157bf1f105b02d3e2913cd3a33f9765b74ca |
27-Jul-2011 |
Kenny Root <kroot@google.com> |
Infrastructure to support package verifier Allow a package verifier to approve or disapprove of a package being installed. Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
est/mock/MockPackageManager.java
|
3fe3f7328fb4a6f5e067eedc76086dd7b44ffc25 |
01-Aug-2011 |
Rodrigo Damazio Bovendorp <rdamazio@google.com> |
Fixing initialization cleanup in activity instrumentation test case Change-Id: I798fed657ccdc27430edc07d1e911b34c45426b5
est/ActivityInstrumentationTestCase2.java
|
877d428e39200fc5f289bfc88d67069cf7b9662a |
02-Jun-2011 |
Brett Chabot <brettchabot@android.com> |
Test runner cleanup: delete unused old classes. Change-Id: Iaaabd47d4074f936a811fc1b6575088d70842564
est/BundlePrinter.java
est/BundleTestListener.java
est/ServiceLocator.java
est/TestBrowserActivity.java
est/TestBrowserController.java
est/TestBrowserControllerImpl.java
est/TestBrowserView.java
est/TestListActivity.java
est/TestRecorder.java
est/TestRunnerView.java
|
44bc17c6b517aef35a390c81b5aa79c4f284f744 |
21-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
Rework display size access. Applications now get the display size from the window manager. No behavior should be changed yet, this is just prep for some real changes. Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
est/TouchUtils.java
|
beb182a4945b9b762fac77edd1183897bcac5b32 |
11-Apr-2011 |
Amith Yamasani <yamasani@google.com> |
Merge "Package manager changes to store and update user information."
|
4b2e934928a2eb65927bd39197198c28c49efb94 |
31-Mar-2011 |
Amith Yamasani <yamasani@google.com> |
Package manager changes to store and update user information. Some API stubs for managing users and storing their details. List of users is stored in an xml file. Each user's properties are stored in a separate xml file. Some unit tests for modifying the XML files. Change-Id: If2ce2420723111bd426f6762def3c2afc19a0ae5
est/mock/MockPackageManager.java
|
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 |
07-Apr-2011 |
Joe Onorato <joeo@google.com> |
Remove the deprecated things from Config.java. These haven't been working since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
est/ClassPathPackageInfoSource.java
|
08065b9f09ead8895d97b2971622af8c179e1768 |
02-Apr-2011 |
Brian Carlstrom <bdc@google.com> |
Tracking merge of dalvik-dev to master git cherry-pick --no-commit a80febd83c8bf0b6717da2a7136179bdc906a5b7 git cherry-pick --no-commit 5e642b41cf44c5da7afdd95ab3d5e2bdbf7b31dd git cherry-pick --no-commit 4886db14c9eee4b6fee69bd54c57c5af04709c4c git cherry-pick --no-commit 560c685e448769904047507b9484ce8111967d7e git cherry-pick --no-commit 63dde7a2fcfa53dc531558635b64cea613d3cdb4 git cherry-pick --no-commit 74e5cb91060a379d98dd3a333b5f231bfb4f502e git cherry-pick --no-commit 1cc8c9708b555e2e338b7798d38887a2fefcfea6 git cherry-pick --no-commit 09625a21f5abe0c0db15757f58585d552d62c3d7 git cherry-pick --no-commit fcb02dfe0f5a2bb7c07e6d6fc69f756a484b5458 git cherry-pick --no-commit a68cb7fa3ab42854768b8145ff85231663770292 git cherry-pick --no-commit 716beb1c131dd2c6b805d4f681debaa20075010c git cherry-pick --no-commit 8c29b1097a7afe3a77e27546a56e396f3620a4ec git cherry-pick --no-commit 9c6a1a55d1c8086c1cc57464eea43725694ff70c git cherry-pick --no-commit b14f5ea5c57acdd009ba5b51f1bbe430f3d353b8 Change-Id: I8cc94175441b009e23549762d6baee1dbace4881
est/ClassPathPackageInfoSource.java
|
71431bb5ca0d8d566d4ebd9d0bc7eb20950290dc |
28-Feb-2011 |
Jean-Baptiste Queru <jbq@google.com> |
am 79b66725: am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase." * commit '79b66725b7755e403e10a9d073121789f09b1a9e': Fix of tearDown() in SingleLaunchActivityTestCase.
|
25be2c725eba1c94c7fc700e37b194fdcd83a1fb |
28-Feb-2011 |
Jean-Baptiste Queru <jbq@google.com> |
am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase." * commit 'e0537f1859664ba9c9cf87eb9d6dc3c16986dbb8': Fix of tearDown() in SingleLaunchActivityTestCase.
|
7aee61f5a96e94e158bf5ad3d8e192c4d4f7eff6 |
08-Feb-2011 |
Scott Main <smain@google.com> |
docs: fix links to revised fundamentals documents Change-Id: Ie2a660cce1d00f924c9fde5c6a00776307e5e1c7
est/ServiceTestCase.java
|
e8a534d8f0008e27f24016c5978ca0a5f0ecbce2 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Remove API that snuck into MockPackageManager 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
est/mock/MockPackageManager.java
|
849dc24fa6a2bb6e1e5496c4710ee60c32abdb7f |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
am 524133cc: Remove API that snuck into MockPackageManager * commit '524133cc793b5e372cc97c62653281605f57b5b3': Remove API that snuck into MockPackageManager
|
a1cbb94dbc9a82d4eb3a47242fe161af21803858 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Revert "Add the {get,set}PackageObbPaths calls to API" This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4. Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
est/mock/MockPackageManager.java
|
524133cc793b5e372cc97c62653281605f57b5b3 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Remove API that snuck into MockPackageManager 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
est/mock/MockPackageManager.java
|
e26aa3f78a33af5720e141e98a1ab0c77ef0456d |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
am 34d2b41e: Revert "Add the {get,set}PackageObbPaths calls to API" * commit '34d2b41e48281d1df2c844e004740f008e699093': Revert "Add the {get,set}PackageObbPaths calls to API"
|
34d2b41e48281d1df2c844e004740f008e699093 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Revert "Add the {get,set}PackageObbPaths calls to API" This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb. Going with a different tactic that doesn't dump stuff on PackageManagerService. Bug: 3214719 Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
est/mock/MockPackageManager.java
|
805fd7ee0e5dc2939e85c84f78d9890a51982bc0 |
17-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Add API to get path to OBBs. 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
est/mock/MockContext.java
|
5d40fe9c6846ba765072e50ed1254293cb9195e4 |
14-Jan-2011 |
Kenny Root <kroot@google.com> |
Add the {get,set}PackageObbPaths calls to API Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
est/mock/MockPackageManager.java
|
470750793b6e930a323ee63cbed05c43dc435ba1 |
13-Jan-2011 |
Kenny Root <kroot@google.com> |
am e8c04db7: Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread * commit 'e8c04db71e347396e9537ead7113ba9f46706e44': Add the {get,set}PackageObbPaths calls to API
|
c6bf4075c96d8738ee375835a5b92b1332e4d929 |
01-Dec-2010 |
Mikael Andreen <mikael.andreen@sonyericsson.com> |
Fix of tearDown() in SingleLaunchActivityTestCase. 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
est/SingleLaunchActivityTestCase.java
|
6c4d904851772313930f800ac7c323cf90c709bb |
19-Nov-2010 |
Kenny Root <kroot@google.com> |
Add the {get,set}PackageObbPaths calls to API Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
est/mock/MockPackageManager.java
|
ac77f4629c1bbdf2e440d0fcc9fd665e5dd1ae6e |
07-Jan-2011 |
Dmitri Plotnikov <dplotnikov@google.com> |
Prevent ActivityTestCase from erasing constants. If you test case is declaring a non-primitive constant, this method would clear out the constant between individual tests. Change-Id: I570f2bbbbbb0a170bf63b7473b4aaf84869e93e0
est/ActivityTestCase.java
|
f48e94005b6f7d648ebe659960bed32998779439 |
21-Dec-2010 |
Jesse Wilson <jessewilson@google.com> |
Remove an obsolete import for performance tests. Change-Id: Ifc76ef821f71ea7469b4044b15071f5d2a7418fd
est/InstrumentationTestRunner.java
|
bd1c5da28dab9c3fb7e19bdadb22d7ad960fa3c3 |
21-Dec-2010 |
Jesse Wilson <jessewilson@google.com> |
Remove unused performance tests. Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
est/InstrumentationTestRunner.java
est/PerformanceTestBase.java
est/suitebuilder/TestPredicates.java
est/suitebuilder/TestSuiteBuilder.java
est/suitebuilder/UnitTestSuiteBuilder.java
|
c91893511dc1b9e634648406c9ae61b15476e65d |
15-Dec-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #3272082: Contacts: when going back from edit view, 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
est/LoaderTestCase.java
|
4f3867e3ce92101224ad79b8f2ff446bb4f99108 |
15-Dec-2010 |
Dianne Hackborn <hackbod@google.com> |
Time to remove some old APIs! Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
est/ActivityUnitTestCase.java
|
621e17de87f18003aba2dedb719a2941020a7902 |
23-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Implement issue #3221502: New APIs to support new back stack / task navigation 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
est/mock/MockContext.java
|
be4e1c8f6f2731e61d1c9302662892007a4579b9 |
20-Nov-2010 |
Jean-Baptiste Queru <jbq@google.com> |
am 7b76ed69: am e3bef7c4: Merge "Added noop unregisterReceiver to complement existing noop registerReceiver." * commit '7b76ed693e42caea0c5f1bcbe7059c580e9cb314': Added noop unregisterReceiver to complement existing noop registerReceiver.
|
7b76ed693e42caea0c5f1bcbe7059c580e9cb314 |
20-Nov-2010 |
Jean-Baptiste Queru <jbq@google.com> |
am e3bef7c4: Merge "Added noop unregisterReceiver to complement existing noop registerReceiver." * commit 'e3bef7c48d7ec13cb8c7c81dba8d775377e69bed': Added noop unregisterReceiver to complement existing noop registerReceiver.
|
880119bf43d738ca632b5d3861eb52d655c1c0fc |
19-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Implement issue #2367442: Please add API for manipulating installer package names Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
est/mock/MockPackageManager.java
|
48983959a34f67024bd0411c8353c196e6a87717 |
17-Nov-2010 |
Brian Muramatsu <btmura@google.com> |
Fix NPE in InstrumentationTestRunner 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
est/InstrumentationTestRunner.java
|
3fc03e619fb01678549b80e7a89af2c8e3f19968 |
20-Oct-2010 |
Jack Wang <jackwang@google.com> |
Added RepetitiveTest annotation and test runner support Change-Id: I7bf0871ede6dd69512c6b6ea3484693ba5b78e89
est/InstrumentationTestRunner.java
|
d672475753af1feff1c0f81bba72637ec0b536cd |
30-Sep-2010 |
Jonas Schwertfeger <jschwertfeger@gmail.com> |
Added noop unregisterReceiver to complement existing noop registerReceiver. 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
est/IsolatedContext.java
|
cca1f0e3476edd09cdd81b075a6b7780a2959b46 |
27-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Allow all apps to call ContentResolver.getType(). 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
est/mock/MockContentResolver.java
|
8313fc7e94e46e5cc09f457a15a771a325b9f74f |
27-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Allow all apps to call ContentResolver.getType(). 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
est/mock/MockContentResolver.java
|
8e34203c41f2f38f9d58547881bb4febd7c07bc7 |
07-Sep-2010 |
Makoto Onuki <omakoto@google.com> |
Add getApplicationContext to the mock implementation. 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
est/ProviderTestCase2.java
|
2394c164a76f6d3f8ad9f1c1517f58f72adab9d7 |
01-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
am ec438e14: am 361199b5: Add PackageManager API to get information about a provider component. Merge commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e' * commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e': Add PackageManager API to get information about a provider component.
|
361199b5e742c6635d4d7a03de6cf37b31cf442c |
31-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add PackageManager API to get information about a provider component. Kind-of useful when all you have is a ComponentName. Change-Id: I9a99f12daabb29e97e882e09c43ca0df70c00651
est/mock/MockPackageManager.java
|
23fdaf6fb62a9b5154b2508916a21c678462c5d0 |
06-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add new ContentProvider for doing conversions to data streams. 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
est/mock/MockContentProvider.java
est/mock/MockIContentProvider.java
|
b6d1437f32d92369da208f6201df7bcdb5d17763 |
05-Aug-2010 |
Vasu Nori <vnori@google.com> |
fix build breakage eclipse doesn't complain but our build does.. Change-Id: If0289b68e91e7eb2ae7a9b7bd90d5cb6b728e944
est/ProviderTestCase.java
est/ProviderTestCase2.java
|
0c9e14aa4aa1370e01872dc05238f822f2dd552c |
04-Aug-2010 |
Vasu Nori <vnori@google.com> |
add shutdown() to ContentProvider & call in ProviderTestCase*.tearDown Change-Id: I3dd69b6907d68b7c1184139f22297ab92337f043
est/ProviderTestCase.java
est/ProviderTestCase2.java
|
ebd19e0f48b0cb246c246274a256a9bb494b7e7a |
21-Jul-2010 |
Jeff Hamilton <jham@android.com> |
Add LoaderTestCase that makes it easier to test Loaders. Change-Id: I4e91d6767cfd5cc61d7893e9cd71e963e42601a4
est/LoaderTestCase.java
|
d93f4e5b70f37feae0cbdf1f456c167a1ea37433 |
13-Jul-2010 |
Joe Malin <jmalin@google.com> |
Merge "DO NOT MERGE Doc Change: Javadoc for test case classes" into gingerbread
|
bbfe0b2264703c243e2e74631abd26fdf4459e36 |
09-Jul-2010 |
Brett Chabot <brettchabot@android.com> |
am 243f7f85: am f6120cf4: Merge "Improve InstrumentationTestRunner exception handling." into gingerbread Merge commit '243f7f85ea9e57716590b9cf355e55d1f0236fce' * commit '243f7f85ea9e57716590b9cf355e55d1f0236fce': Improve InstrumentationTestRunner exception handling.
|
511d9ec363c5bb460e4695de56edc1b7785dc7bf |
09-Jul-2010 |
Kenny Root <kroot@google.com> |
am 0a21801f: am a5402dab: Merge "OBB API for PackageManager" into gingerbread Merge commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b' * commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b': OBB API for PackageManager
|
f6120cf431804e072f34699a5d8a3fae62492cee |
08-Jul-2010 |
Brett Chabot <brettchabot@android.com> |
Merge "Improve InstrumentationTestRunner exception handling." into gingerbread
|
31e7ce762ccbbb747fabb4581e42a0a2fe56e780 |
08-Jul-2010 |
Brett Chabot <brettchabot@android.com> |
Improve InstrumentationTestRunner exception handling. 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
est/InstrumentationTestRunner.java
|
93565c4b3265c16aee4a82d7556f811776c17db8 |
19-Jun-2010 |
Kenny Root <kroot@google.com> |
OBB API for PackageManager 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
est/mock/MockPackageManager.java
|
87e98cda1c864cb2069d387a64346702a05574c4 |
31-May-2010 |
Joe Malin <jmalin@google.com> |
DO NOT MERGE Doc Change: Javadoc for test case classes Change-Id: I21b78a84ee1345a98631dcaab937a10b4fa4344d Original change was SHA1 7d433aabb731a790fc8d06d260c826751215113f
est/ProviderTestCase2.java
est/ServiceTestCase.java
est/mock/MockContentResolver.java
|
7d433aabb731a790fc8d06d260c826751215113f |
31-May-2010 |
Joe Malin <jmalin@google.com> |
Javadoc for test case classes Change-Id: Ibfa035cfe9091a81fca8bd0a6c141ec26c2de139
est/ProviderTestCase2.java
est/ServiceTestCase.java
est/mock/MockContentResolver.java
|
25f3ab4ee7d14ac9453396e2100d27f3f52c7077 |
19-Jun-2010 |
Evan Millar <emillar@google.com> |
Manual merge of change 53051 from master (DO NOT MERGE) Change-Id: Ia4697a15cb874f25849655994e10aa88ae60b328
est/ServiceTestCase.java
|
f6b979a04f38659177e06ff81cf7bc1b87389fe9 |
05-Jun-2010 |
Makoto Onuki <omakoto@google.com> |
Fix UnsupportedOperationException from MockContext. Added the new variant of openOrCreateDatabase to RenamingDelegatingContext too. Bug 2739822 Change-Id: I65868d0975e0a0a87ade6b5a0d625b96676af0ba
est/RenamingDelegatingContext.java
|
74f170f9468d3cf6d7d0ef453320141a3e63571b |
02-Jun-2010 |
Vasu Nori <vnori@google.com> |
new API in Context. on openDatabase, new param DatabaseErrorHandler 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
est/mock/MockContext.java
|
8b0dd7da360d70920a37802eb455ba41500d3b45 |
18-May-2010 |
Vasu Nori <vnori@google.com> |
add API to Cursor to get column value type Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
est/mock/MockCursor.java
|
71be4b5ed994030171fb3bd3f08fbc8c43c47567 |
01-Jun-2010 |
Evan Millar <emillar@google.com> |
Bring ServiceTestCase in line with current Service APIs and remove 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
est/ServiceTestCase.java
|
e26867793b6a0c226e02f7da880b06efbcb8707e |
13-May-2010 |
Jeff Hamilton <jham@android.com> |
Remove the unused modification APIs from MockCursor. They shouldn't have been public in the first place. Change-Id: I2932e5287f838f72acdc4c0c1fd5601ffa8c3f84
est/mock/MockCursor.java
|
631447c6049c2ee18e6cd1553905dd8f15b3bcbd |
26-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
Merge "Add test runner log when test case class is not loaded."
|
bb469fe3da7e6d17e851a95026a9eea905c52daa |
24-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
Add test runner log when test case class is not loaded. The test runner will only load TestCase classes that have a public constructor with either no params or a single String parameter. This is fairly subtle behavior and can be difficult to catch. This change adds a log message when a TestCase class is not loaded, and adds some associated unit tests. Change-Id: I6fc63e4179c949620f5773e0ae134f99905a6fb2
est/suitebuilder/TestGrouping.java
|
81cd2e90ccdda498234384c8207afe2213714e60 |
22-Apr-2010 |
Adam Powell <adamp@google.com> |
Logo attribute for manifest and PackageManager methods to fetch it Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
est/mock/MockPackageManager.java
|
d7c096845dee7616095eda0fe9e7aa08f0ba9c20 |
30-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Package manager optimizations. 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
est/mock/MockPackageManager.java
|
89c0ef4aba57172bbc9288f2d22c943f220a3dd1 |
19-Mar-2010 |
Brett Chabot <brettchabot@android.com> |
Add -e package description to InstrumentationTestRunner javadoc. Bug 2528316 Change-Id: Ic707115e40a18521e0d57ee12f43df96be7033f2
est/InstrumentationTestRunner.java
|
10362ab9d67d87c0c3217e804e64d3e7038211df |
12-Mar-2010 |
Kenny Root <kroot@google.com> |
Add missing license notices on test classes 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
est/BundlePrinter.java
est/IsolatedContext.java
est/ProviderTestCase.java
est/ProviderTestCase2.java
est/RenamingDelegatingContext.java
|
1877d0158b529663b8315482e7346a7bcaa96166 |
05-Mar-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Add "call" method on ContentProvider. 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.
est/mock/MockContentProvider.java
est/mock/MockIContentProvider.java
|
69120a73d0f7a1862d51e0a95ebd5e507fee8cd2 |
27-Feb-2010 |
Paul Westbrook <pwestbro@google.com> |
Bug 2306842 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
est/IsolatedContext.java
|
0375fa12c7f94bfc9c840721dcc5215b6c7575d6 |
23-Feb-2010 |
Doug Zongker <dougz@android.com> |
fix error in javadoc The "@link LargeTest" is broken since it doesn't know where that class is. Change-Id: Ie15e40bac8a1965427e351926b2208775e79cb13
est/InstrumentationTestRunner.java
|
88e03a97366d08fc69d852cf2219f9d0b1916af4 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Add ability to run tests restricted to given annotation. And ability to exclude tests with given annotation. Also fix class cast compile warning in emma output method. Bug 2239240 Change-Id: I56273a51a8c58a690680bdb612615fab69e6e13f
est/InstrumentationTestRunner.java
|
08d13c3cbb0b250b84ca861edb462060556aead9 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Fix code coverage output message when running tests in non-raw mode. Bug 2082804
est/InstrumentationTestRunner.java
|
e70f61b1160e953e5e4d18d30a463fa9ba821779 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Retry test-runner tests move. This time change the frameworks makefile so it only includes test-runner/src in the public API.
est/ActivityInstrumentationTestCase.java
est/ActivityInstrumentationTestCase2.java
est/ActivityTestCase.java
est/ActivityUnitTestCase.java
est/AndroidTestRunner.java
est/ApplicationTestCase.java
est/AssertionFailedError.java
est/BundlePrinter.java
est/BundleTestListener.java
est/ClassPathPackageInfo.java
est/ClassPathPackageInfoSource.java
est/ComparisonFailure.java
est/DatabaseTestUtils.java
est/InstrumentationCoreTestRunner.java
est/InstrumentationTestRunner.java
est/InstrumentationUtils.java
est/IsolatedContext.java
est/LaunchPerformanceBase.java
est/MoreAsserts.java
est/NoExecTestResult.java
est/PackageInfoSources.java
est/PerformanceCollectorTestCase.java
est/PerformanceTestBase.java
est/ProviderTestCase.java
est/ProviderTestCase2.java
est/RenamingDelegatingContext.java
est/ServiceLocator.java
est/ServiceTestCase.java
est/SimpleCache.java
est/SingleLaunchActivityTestCase.java
est/SyncBaseInstrumentation.java
est/TestBrowserActivity.java
est/TestBrowserController.java
est/TestBrowserControllerImpl.java
est/TestBrowserView.java
est/TestCase.java
est/TestCaseUtil.java
est/TestListActivity.java
est/TestPrinter.java
est/TestRecorder.java
est/TestRunner.java
est/TestRunnerView.java
est/TestSuiteProvider.java
est/TimedTest.java
est/TouchUtils.java
est/ViewAsserts.java
est/mock/MockApplication.java
est/mock/MockContentProvider.java
est/mock/MockContentResolver.java
est/mock/MockContext.java
est/mock/MockCursor.java
est/mock/MockDialogInterface.java
est/mock/MockIContentProvider.java
est/mock/MockPackageManager.java
est/mock/MockResources.java
est/mock/package.html
est/suitebuilder/AssignableFrom.java
est/suitebuilder/InstrumentationTestSuiteBuilder.java
est/suitebuilder/SmokeTestSuiteBuilder.java
est/suitebuilder/TestGrouping.java
est/suitebuilder/TestMethod.java
est/suitebuilder/TestPredicates.java
est/suitebuilder/TestSuiteBuilder.java
est/suitebuilder/UnitTestSuiteBuilder.java
est/suitebuilder/annotation/HasAnnotation.java
est/suitebuilder/annotation/HasClassAnnotation.java
est/suitebuilder/annotation/HasMethodAnnotation.java
est/suitebuilder/annotation/package.html
est/suitebuilder/package.html
|
c1ca8c51c616d1517b18bf24feaa9f8f1430c835 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Revert "Move framework test-runner unit tests to be closer to their source." This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
est/ActivityInstrumentationTestCase.java
est/ActivityInstrumentationTestCase2.java
est/ActivityTestCase.java
est/ActivityUnitTestCase.java
est/AndroidTestRunner.java
est/ApplicationTestCase.java
est/AssertionFailedError.java
est/BundlePrinter.java
est/BundleTestListener.java
est/ClassPathPackageInfo.java
est/ClassPathPackageInfoSource.java
est/ComparisonFailure.java
est/DatabaseTestUtils.java
est/InstrumentationCoreTestRunner.java
est/InstrumentationTestRunner.java
est/InstrumentationUtils.java
est/IsolatedContext.java
est/LaunchPerformanceBase.java
est/MoreAsserts.java
est/NoExecTestResult.java
est/PackageInfoSources.java
est/PerformanceCollectorTestCase.java
est/PerformanceTestBase.java
est/ProviderTestCase.java
est/ProviderTestCase2.java
est/RenamingDelegatingContext.java
est/ServiceLocator.java
est/ServiceTestCase.java
est/SimpleCache.java
est/SingleLaunchActivityTestCase.java
est/SyncBaseInstrumentation.java
est/TestBrowserActivity.java
est/TestBrowserController.java
est/TestBrowserControllerImpl.java
est/TestBrowserView.java
est/TestCase.java
est/TestCaseUtil.java
est/TestListActivity.java
est/TestPrinter.java
est/TestRecorder.java
est/TestRunner.java
est/TestRunnerView.java
est/TestSuiteProvider.java
est/TimedTest.java
est/TouchUtils.java
est/ViewAsserts.java
est/mock/MockApplication.java
est/mock/MockContentProvider.java
est/mock/MockContentResolver.java
est/mock/MockContext.java
est/mock/MockCursor.java
est/mock/MockDialogInterface.java
est/mock/MockIContentProvider.java
est/mock/MockPackageManager.java
est/mock/MockResources.java
est/mock/package.html
est/suitebuilder/AssignableFrom.java
est/suitebuilder/InstrumentationTestSuiteBuilder.java
est/suitebuilder/SmokeTestSuiteBuilder.java
est/suitebuilder/TestGrouping.java
est/suitebuilder/TestMethod.java
est/suitebuilder/TestPredicates.java
est/suitebuilder/TestSuiteBuilder.java
est/suitebuilder/UnitTestSuiteBuilder.java
est/suitebuilder/annotation/HasAnnotation.java
est/suitebuilder/annotation/HasClassAnnotation.java
est/suitebuilder/annotation/HasMethodAnnotation.java
est/suitebuilder/annotation/package.html
est/suitebuilder/package.html
|
12093976a4842a795491cfd2b1d3b71e18503f2d |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Move framework test-runner unit tests to be closer to their source. Move the test-runner source into a separate src folder to accommodate the test move.
est/ActivityInstrumentationTestCase.java
est/ActivityInstrumentationTestCase2.java
est/ActivityTestCase.java
est/ActivityUnitTestCase.java
est/AndroidTestRunner.java
est/ApplicationTestCase.java
est/AssertionFailedError.java
est/BundlePrinter.java
est/BundleTestListener.java
est/ClassPathPackageInfo.java
est/ClassPathPackageInfoSource.java
est/ComparisonFailure.java
est/DatabaseTestUtils.java
est/InstrumentationCoreTestRunner.java
est/InstrumentationTestRunner.java
est/InstrumentationUtils.java
est/IsolatedContext.java
est/LaunchPerformanceBase.java
est/MoreAsserts.java
est/NoExecTestResult.java
est/PackageInfoSources.java
est/PerformanceCollectorTestCase.java
est/PerformanceTestBase.java
est/ProviderTestCase.java
est/ProviderTestCase2.java
est/RenamingDelegatingContext.java
est/ServiceLocator.java
est/ServiceTestCase.java
est/SimpleCache.java
est/SingleLaunchActivityTestCase.java
est/SyncBaseInstrumentation.java
est/TestBrowserActivity.java
est/TestBrowserController.java
est/TestBrowserControllerImpl.java
est/TestBrowserView.java
est/TestCase.java
est/TestCaseUtil.java
est/TestListActivity.java
est/TestPrinter.java
est/TestRecorder.java
est/TestRunner.java
est/TestRunnerView.java
est/TestSuiteProvider.java
est/TimedTest.java
est/TouchUtils.java
est/ViewAsserts.java
est/mock/MockApplication.java
est/mock/MockContentProvider.java
est/mock/MockContentResolver.java
est/mock/MockContext.java
est/mock/MockCursor.java
est/mock/MockDialogInterface.java
est/mock/MockIContentProvider.java
est/mock/MockPackageManager.java
est/mock/MockResources.java
est/mock/package.html
est/suitebuilder/AssignableFrom.java
est/suitebuilder/InstrumentationTestSuiteBuilder.java
est/suitebuilder/SmokeTestSuiteBuilder.java
est/suitebuilder/TestGrouping.java
est/suitebuilder/TestMethod.java
est/suitebuilder/TestPredicates.java
est/suitebuilder/TestSuiteBuilder.java
est/suitebuilder/UnitTestSuiteBuilder.java
est/suitebuilder/annotation/HasAnnotation.java
est/suitebuilder/annotation/HasClassAnnotation.java
est/suitebuilder/annotation/HasMethodAnnotation.java
est/suitebuilder/annotation/package.html
est/suitebuilder/package.html
|