summaryrefslogtreecommitdiffstats
path: root/test-runner
Commit message (Collapse)AuthorAgeFilesLines
* Add new API to compare certs of two UIDs.Dianne Hackborn2009-08-121-0/+5
|
* Adding "test context" to AndroidTestCaseDmitri Plotnikov2009-08-032-5/+9
|
* Merge change 8886Android (Google) Code Review2009-07-281-1/+10
|\ | | | | | | | | * changes: Fix broken calendar tests.
| * Fix broken calendar tests.Ken Shirriff2009-07-281-1/+10
| | | | | | | | | | | | | | The tests end up in the widget code, which calls getResources(). This needs to be supported by the mock. bug=1985641
* | resolved conflicts for merge of f0d83fd9 to masterDianne Hackborn2009-07-281-0/+1
|\ \
| * | Updates from API review.Dianne Hackborn2009-07-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * AccessibilityService -- document onBind() to not be implemented. * GestureLibrary.getLearner() -- needs to be hidden. * IntentSender -- remove protected constructors, document that it is retrieved from a PendingIntent. * Hide permissions: SHUTDOWN, STOP_APP_SWITCHES. * Context -- hide BACKUP_SERVICE. * ContextWrapper -- hide getSharedPrefs bla h blah * Intent.parseUri() -- fix docs. * ApplicationInfo.FLAG_TEST_ONLY?!? * Hide MockContext.getSharedPrefs blah blah
* | | Add getCacheDir() to RenamingDelegatingContext.Andrew Stadler2009-07-241-0/+30
| |/ |/| | | | | This allows providers under ProviderTestCase2 to access getCacheDir().
* | Merge change 6223Android (Google) Code Review2009-07-091-0/+5
|\ \ | | | | | | | | | | | | * changes: Changes for new sync.
| * | Changes for new sync.Ken Shirriff2009-07-061-0/+5
| | | | | | | | | | | | | | | Add ContentValues-based RecurrenceSet processing. Add test stub needed by SSL caching.
* | | am 870e09fc: Fixes #1963229. Introduces Context#isRestricted().Romain Guy2009-07-061-0/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '870e09fcd2dfdc12ac318962efd28b0420c562bb' * commit '870e09fcd2dfdc12ac318962efd28b0420c562bb': Fixes #1963229. Introduces Context#isRestricted().
| * | Fixes #1963229. Introduces Context#isRestricted().Romain Guy2009-07-061-0/+5
| | | | | | | | | | | | | | | | | | | | | A restricted Context is a special type of Context that prevents specific features from being used. For instance, android:onClick, used by View, can be dangerous when used from within apps widgets. By using a restricted Context to inflate apps widgets, widgets providers are prevented from using android:onClick.
* | | am 441cb04e: Merge change 5732 into donutAndroid (Google) Code Review2009-07-011-2/+6
|\ \ \ | |/ / | | / | |/ |/| | | | | Merge commit '441cb04efc0048585b3a6e6fa3d564e3d1b26f62' * commit '441cb04efc0048585b3a6e6fa3d564e3d1b26f62': Fix assertContentsInOrder (bug 1790350).
| * Fix assertContentsInOrder (bug 1790350).Karl Rosaen2009-06-291-2/+6
| | | | | | | | | | | | if we ever get an updated Lists class that includes a Lists.newArrayList(Iterable<?> implementation, that would work too.
* | Add missing filename remap to RenamingDelegatingContextAndrew Stadler2009-06-241-0/+5
| | | | | | | | | | | | | | | | | | This makes ProviderTestCase2 work better by enabling code under test to make calls to context.getDatabasePath(). Without this fix the call throws an exception. It would be reasonable (and useful) to backport this to donut, but I'm not even building donut these days.
* | - clean up the sync settings names to:Fred Quintana2009-06-231-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | (get|set)SyncAutomatically (get|set)MasterSyncAutomatically - change SYNC_EXTRAS_FORCE to SYNC_EXTRAS_MANUAL to mace clear that this overrides the .*SyncAutomatically settings - make ContentResolver methods that call the sync controls methods in IContentService so that SDK users can use them - rename startSync to requestSync to reinforce the fact that a sync is not immediately or always started when this method is called - add an Account parameter to all the sync settings and control methods - change the sync control methods to take a String authority rather than a Uri uri
* | am bc806f65: Remove deprecated api. Aptly rename freeStorageWithIntent to ↵Suchi Amalapurapu2009-06-191-11/+1
|\ \ | |/ | | | | | | | | | | | | | | freeStorage. Merge commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90' * commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90': Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
| * Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.Suchi Amalapurapu2009-06-191-11/+1
| |
* | am 63e7155c: Merge change 4696 into donutAndroid (Google) Code Review2009-06-181-0/+6
|\ \ | |/ | | | | | | | | | | Merge commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d' * commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d': Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
| * Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ↵Dianne Hackborn2009-06-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ApplicationInfo. - Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid. Also make sure to fail if minSdkVersion is for a code name. Really stupid. - Change the API for resize compatibility mode to be a bit in the flags field, instead of a separate boolean. - Implement delayed dexopting, to avoid the looong full dexopt during boot. This is only enabled for "eng" builds. When in this mode, the activity manager will make sure that a dexopt has been done before loading an .apk into a process, and will try to avoid displaying ANRs if they are due to the dexopt causing some operation to take longer than it normally would (though I make no guarantees about this totally working). - Add API to Context to get the ApplicationInfo for its package, for easy access to things like targetSdkVersion.
* | am c14b9ccd: Extend Intent/Uri conversion for use by BrowserDianne Hackborn2009-06-171-5/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b' * commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b': Extend Intent/Uri conversion for use by Browser
| * Extend Intent/Uri conversion for use by BrowserDianne Hackborn2009-06-171-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | This introduces a new Uri form of Intent with an "intent:" scheme, and a corresponding update to the parser to handle these, so that the browser can use this generic facility for starting activities based on the links that are clicked and allow for web pages to link to arbitrary intents. There is also a new "package" field on Intent which allows you to limit the components it finds to a given package. This replaces the new method that was added to PackageManger for doing this when resolving activities, and implements it for all Intent queries against the package manager.
* | Merge commit '0781df94' into manualmergeSuchi Amalapurapu2009-06-171-0/+10
|\ \ | |/ | | | | | | | | Conflicts: Android.mk api/current.xml
| * Remove circular dependency in PackageManager. api freeStorage uses ↵Suchi Amalapurapu2009-06-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | PendingIntent from android.app Create a new public IntentSender class that can be used by PackageManager instead. This new class uses IIntentSender internally and can only be created by PendingIntent for now. Provide a new getIntentSender api in PendingIntent to create an instance of this class. Move IIntentSender and IIntentReceiver from android.app to android.content Change imports of IIntentSender and IIntentReceiver to reflect the new package name The PackageManager api has been named as freeStorageWithIntent and will be renamed as freeStorage once the older api(which has been deprecated) will be removed shortly.
* | am 78f0f8cb: Merge changes 3953,3954 into donutAndroid (Google) Code Review2009-06-121-0/+5
|\ \ | |/ | | | | | | | | | | | | Merge commit '78f0f8cb2efe9410127c39201e240f6d438eb53c' * commit '78f0f8cb2efe9410127c39201e240f6d438eb53c': Make the file backup helper not crash if a file you requested Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
| * Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-0/+5
| | | | | | | | This took quite a bit of refactoring.
* | am 9189cabb: * Moved supports-density tag under manifest * Refactored ↵Mitsuru Oshima2009-06-031-8/+0
|\ \ | |/ | | | | | | | | | | | | | | Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered. Merge commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a' * commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a': * Moved supports-density tag under manifest
| * * Moved supports-density tag under manifestMitsuru Oshima2009-06-031-8/+0
| | | | | | | | | | | | | | | | | | | | | | * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
* | am 8dbe612d: Adding internal method replacePreferredActivity.Satish Sampath2009-06-031-0/+10
|\ \ | |/ | | | | | | | | | | Merge commit '8dbe612dc60526d635e57257b58627b33a099678' * commit '8dbe612dc60526d635e57257b58627b33a099678': Adding internal method replacePreferredActivity.
| * Adding internal method replacePreferredActivity.Satish Sampath2009-06-031-0/+10
| | | | | | | | | | | | | | | | | | | | This was required because we need a way to set the preferred activity for a particular intent filter based on user selection (in our case the ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from the list of available search engines providers). The current addPreferredActivity call was not sufficient since it leaves the existing preferred activities in the list and does not remove them, which this call does.
* | - create a new generic ISyncAdapter implementation, SyncAdapterNewFred Quintana2009-06-011-1/+3
| | | | | | | | | | | | - change the applyBatch to take an ArrayList rather than an [] - change Entity to be a final flass that contains ContentValues - remove the ability to update/insert Entities by a ContentProviderOperation
* | am ecad93e5: Merge change 2685 into donutAndroid (Google) Code Review2009-05-291-6/+20
|\ \ | |/ | | | | | | | | | | Merge commit 'ecad93e5f3c7345febcfa078b1d2aa00a2e1fd66' * commit 'ecad93e5f3c7345febcfa078b1d2aa00a2e1fd66': Change code coverage to write to app data folder rather than sdcard.
| * Change code coverage to write to app data folder rather than sdcard.Brett Chabot2009-05-281-6/+20
| | | | | | | | The InstrumentationTestRunner would previously write code coverage data to the sdcard. With the recent SDCARD_WRITE permission addition, generating code coverage would fail if test app did not declare the SDCARD_WRITE permission. This CL changes InstrumentationTestRunner so by default, the coverage data is saved to the app's private data folder. At the test run conclusion it outputs the path to this file so runtest or another test harness find the path to the coverage file.
* | add ipc support to batchingFred Quintana2009-05-221-3/+10
| |
* | am 8c690ea9: Merge change 2182 into donutAndroid (Google) Code Review2009-05-211-0/+3
|\ \ | |/ | | | | | | | | | | Merge commit '8c690ea9976d644db3c96eddbbbd2d50eac56913' * commit '8c690ea9976d644db3c96eddbbbd2d50eac56913': location: Replace ILocationCollector interface with new ILocationProvider method
| * location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am eae850ce: Allow intent resolution to be constrained by package name.Mihai Preda2009-05-151-3/+7
|\ \ | |/ | | | | | | | | | | Merge commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0' * commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0': Allow intent resolution to be constrained by package name.
| * Allow intent resolution to be constrained by package name.Mihai Preda2009-05-151-3/+7
| |
* | content provider entitiesFred Quintana2009-05-131-1/+15
| |
* | am ade3eca: Implement issue #1783881 (manifest option for adb-install-onDianne Hackborn2009-05-121-5/+3
|\ \ | |/ | | | | | | | | | | Merge commit 'ade3ecad94d1f4431576f53bae26c35efbf7a2c9' * commit 'ade3ecad94d1f4431576f53bae26c35efbf7a2c9': Implement issue #1783881 (manifest option for adb-install-only apps)
| * Implement issue #1783881 (manifest option for adb-install-only apps)Dianne Hackborn2009-05-121-5/+3
| | | | | | | | | | | | | | | | | | | | | | You can now use android:testOnly="true" to not allow your .apk to be installed as a normal app. The only way to do so is with the pm command and giving the -t option, which sets a new INSTALL_ALLOW_TEST flag when installing. I also used this to clean up the install API... actually, mostly to hide it, since it is not accessible to apps so shouldn't be in the SDK. We will be doing some more work on it, so this will prevent adding yet another backwards-compatibility-for-no-reason version.
| * PackageManager keeps track of who installed what.Jacek Surazski2009-05-121-1/+9
| | | | | | | | Stores the package name of the installer app in packages.xml
* | PackageManager keeps track of who installed what.Jacek Surazski2009-05-121-1/+6
| | | | | | | | Stores the package name of the installer app in packages.xml
* | am f792fc5: Merge change 1150 into donutAndroid (Google) Code Review2009-05-071-6/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02' * commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02': location: Location Manager wakelock cleanup
| * location: Location Manager wakelock cleanupMike Lockwood2009-05-071-6/+0
| | | | | | | | | | | | | | | | | | | | | | Location Providers are now responsible for their own wakelocks and scheduling. Also fixed a deadlock in LocationManagerService in the code for releasing wakelocks after client notifications have been received. The fix is to use the Receiver object and mWakeLock for synchronization instead of the global mLock lock. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581Dianne Hackborn2009-05-061-35/+8
|\ \ | |/
| * Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
* | am 275555c: location: Add support for location providers outside of the Mike Lockwood2009-05-011-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '275555c8eb3fb5df6e7320873b88b77cdde85a9e' * commit '275555c8eb3fb5df6e7320873b88b77cdde85a9e': location: Add support for location providers outside of the system process.
| * location: Add support for location providers outside of the system process.Mike Lockwood2009-05-011-1/+1
| | | | | | | | | | | | | | Also added new permissions android.permission.INSTALL_LOCATION_PROVIDER and android.permission.INSTALL_LOCATION_COLLECTOR to the public API. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 15e3d0f: location: Use ILocationProvider Binder interface for all locMike Lockwood2009-05-011-22/+44
|\ \ | |/ | | | | | | | | | | Merge commit '15e3d0f082d551f8819fbe4b0d502cc108627876' * commit '15e3d0f082d551f8819fbe4b0d502cc108627876': location: Use ILocationProvider Binder interface for all location providers.
| * location: Use ILocationProvider Binder interface for all location providers.Mike Lockwood2009-05-011-22/+44
| | | | | | | | | | | | | | | | | | | | This change eliminates the LocationProviderImpl class which had been used for location providers running in the system process. Now the LocationProvider base class is only used to implement the LocationManager.createProvider() method for retrieving provider information. Added a new IGpsStatusProvider interface for providers that serve GPS status. Signed-off-by: Mike Lockwood <lockwood@android.com>