• Home
  • History
  • Annotate
  • only in /frameworks/base/test-runner/
History log of /frameworks/base/test-runner/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
98edc951712823dbf5db2b7e9c203a0e98fc616b 25-Sep-2012 Amith Yamasani <yamasani@google.com> Load resources for the correct user

For apps that are only installed on secondary users, the SystemUI is
unable to see them by default. Added some methods to explicitly pass the
userId of the user the resources are requested for by the StatusBarIcon

Bug: 7214384

Also fix binding to remote views

Bug: 7192802

Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
rc/android/test/mock/MockPackageManager.java
11820f7386ce86fd89e9e6b49d9231dce6e1ed07 23-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Allow acquiring ContentProviders across users." into jb-mr1-dev
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

Otherwise services like SystemUI will always open content://-style
Uris as USER_OWNER. Surfaces through createPackageContextAsUser()
which points all ContentResolver operations towards a given user.

Start using in RemoteViews, so that Notifications correctly resolve
image Uris to the sending user. Also add user support for "content"
shell tool.

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
rc/android/test/mock/MockContext.java
58d37b55bd228032355360ea3303e46a804e0516 18-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Multi-user support for the accessibility layer.

1. This change converts the accessibility manager service to
maintain a state per user. When the user changes the services
for the user that is going away are disconnected, the local
accessibility managers in the processes for this user are
disabled, the state is swapped with the new user's one, and
the new user state is refreshed.

This change updates all calls into the system to use their
user specific versions when applicable. For example, regisetring
content observers, package monitors, calls into other system
services, etc.

There are some components that are shared across users such
as UI created by the system process and the SystemUI package.
Such components are managed as a global state shared across
all users and are updated accordingly on a user switch. Since
the SystemUI is running in a normal app process this change
adds hidden APIs on the local window manager to allow the
SystemUI to notify the accessibility layer that it will run
accross users.

Calls to AccessibiltyManager's isEnabled(), isTouchExplorationEnabled()
and sendAccessibilityEvent return false or a are a nop for a
background user sice he should not send accessibility events,
and should not perform touch exploration.

Update the internal accessibility tests due to changes in the
AccessibilityManager.

This change also fixes several issues that were encountered
such as calling out the accessibility manager service with a
lock held.

Removed some incorrect debugging code from the TouchExplorer
that was leading to a system crash.

bug:6967373

Change-Id: I2cf32ffdee1d827a8197ae4ce717dc0ff798b259
rc/android/test/mock/MockPackageManager.java
151ec4c9f8ca34625733730a4551a23eb97cda23 08-Sep-2012 Amith Yamasani <yamasani@google.com> More multi-user methods in PM

pm can list installed packages by user now.

Bug: 6926465

Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6
rc/android/test/mock/MockPackageManager.java
20e809870d8ac1e5b848f2daf51b2272ef89bdfc 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Add registering for explicit users.

New API to register as an explicit user, which allows you to
also select ALL to see broadcasts for all users.

New BroadcastReceiver API to find out which user the broadcast
was sent to.

Use this in app widget service to handle per-user package broadcasts
and boot completed broadcasts correctly.

Change-Id: Ibbe28993bd4aa93900c79e412026c27863019eb8
rc/android/test/mock/MockContext.java
a492c3a7b2c18426fd0cb4d017eacbc368195dc5 24-Aug-2012 Jeff Brown <jeffbrown@google.com> Initial draft of high-level multi-display APIs.

This patch introduces the ability to create a Context that
is bound to a Display. The context gets its configuration and
metrics from that display and is able to provide a WindowManager
that is bound to the display.

To make it easier to use, we also add a new kind of Dialog
called a Presentation. Presentation takes care of setting
up the context as needed and watches for significant changes
in the display configuration. If the display is removed,
then the presentation simply dismisses itself.

Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
rc/android/test/mock/MockContext.java
f203aeef993b0f4ce65c9630d06bbd50a504e89f 30-Aug-2012 Amith Yamasani <yamasani@google.com> Enforce permissions for calls with specified userId

Fix a couple of places where incorrect userIds were being passed in.

Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
rc/android/test/mock/MockPackageManager.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
rc/android/test/mock/MockContext.java
7767eac3232ba2fb9828766813cdb481d6a97584 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Keep track of whether an app is installed for each user.

This add a new per-user state for an app, indicating whether
it is installed for that user.

All system apps are always installed for all users (we still
use disable to "uninstall" them).

Now when you call into the package manager to install an app,
it will only install the app for that user unless you supply
a flag saying to install for all users. Only being installed
for the user is just the normal install state, but all other
users have marked in their state for that app that it is not
installed.

When you call the package manager APIs for information about
apps, uninstalled apps are treated as really being not visible
(somewhat more-so than disabled apps), unless you use the
GET_UNINSTALLED_PACKAGES flag.

If another user calls to install an app that is already installed,
just not for them, then the normal install process takes place
but in addition that user's installed state is toggled on.

The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED,
PACKAGE_REPLACED etc broadcasts to users who don't have a package
installed or not being involved in a change in the install state.
There are a few things that are not quite right with this -- for
example if you go through a full install (with a new apk) of an
app for one user who doesn't have it already installed, you will
still get the PACKAGED_REPLACED messages even though this is
technically the first install for your user. I'm not sure how
much of an issue this is.

When you call the existing API to uninstall an app, this toggles
the installed state of the app for that user to be off. Only if
that is the last user user that has the app uinstalled will it
actually be removed from the device. Again there is a new flag
you can pass in to force the app to be uninstalled for all users.

Also fixed issues with cleaning external storage of apps, which
was not dealing with multiple users. We now keep track of cleaning
each user for each package.

Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
rc/android/test/mock/MockContext.java
rc/android/test/mock/MockPackageManager.java
d9ef3e5495db1c46bcfcc1a2d4386af8db6deb0c 22-Aug-2012 rich cannings <richc@google.com> Allow verifiers to extend timeout

Create a new verifier API to extend the timeout for a giving package,
including the resulting action (allow or deny) upon the timeout occuring.

Bug: 6901038
Change-Id: I351f7944327f863aff1d7dd1227be74652fa1511
rc/android/test/mock/MockPackageManager.java
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user app management.

Introduce API to get per-user storage information, keep track
of services associated with users, and various small cleanup.

Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
rc/android/test/mock/MockPackageManager.java
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 20-Aug-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

This change passes the originating URL and accompanied referrer to
package verifiers, when available.

Bug: 6544677
Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
rc/android/test/mock/MockPackageManager.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
rc/android/test/mock/MockContext.java
79af1dd54c16cde063152922b42c96d72ae9eca8 17-Aug-2012 Dianne Hackborn <hackbod@google.com> Switch public APIs to use new UserHandle class for identifying users.

Gets rid of "yet another integer" confusion.

Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
rc/android/test/mock/MockContext.java
756220bd1912535840388a6743830d2e59ad4964 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Add API to create new contexts with custom configurations.

This allows you to, say, make a Context whose configuration
is set to a different density than the actual density of the device.

The main API is Context.createConfigurationContext(). There is
also a new API on ContextThemeWrapper that allows you to apply
an override context before its resources are retrieved, which
addresses some feature requests from developers to be able to
customize the context their app is running in.

Change-Id: I88364986660088521e24b567e2fda22fb7042819
rc/android/test/mock/MockContext.java
258848d2ae04f447ff1c18023fa76b139fcc0862 11-Aug-2012 Amith Yamasani <yamasani@google.com> User Manager service to manage users and query user details

Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
rc/android/test/mock/MockPackageManager.java
a56d9cecee8a34e0554770ac6253dd3a76b9199c 08-Aug-2012 Rich Cannings <richc@google.com> Merge "Revert "Pass URLs to package verifiers"" into jb-mr1-dev
e1d7c711df3e3a2d2f195457882aa4ddb5626167 08-Aug-2012 Rich Cannings <richc@google.com> Revert "Pass URLs to package verifiers"

This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09

Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
rc/android/test/mock/MockPackageManager.java
537915828b45693e846a126292e026c5b4f05152 08-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "More mult-user API work." into jb-mr1-dev
7d19e0242faac8017033dabb872cdf1542fa184c 08-Aug-2012 Dianne Hackborn <hackbod@google.com> More mult-user API work.

- You can now use android:singleUser with receivers and providers.
- New API to send ordered broadcasts as a user.
- New Process.myUserHandle() API.

For now I am trying out "user handle" as the name for the numbers
representing users.

Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
rc/android/test/mock/MockContext.java
b53e9b42c302a5c5ccd837aece6bfffdf0cb5bf2 07-Aug-2012 Scott Main <smain@google.com> am a8583c29: am 40eee61e: docs: fix broken links and update sitemap text file

* commit 'a8583c2934836572632bb82d1fe7607392d4ca72':
docs: fix broken links and update sitemap text file
40eee61e25fb887f5267686f8a0a7c5bd9f95769 07-Aug-2012 Scott Main <smain@google.com> docs: fix broken links
and update sitemap text file

Change-Id: I6982c3f029c46135ae856b8484d906c2882bad3a
rc/android/test/ServiceTestCase.java
329465c6b2407ee086a171cac1a3581f83dbb048 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Add APIs for interacting across users." into jb-mr1-dev
b4163a6e12ee7100c758c6d3d062ade1f2843fce 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Add APIs for interacting across users.

- Expose the existing Context.sendBroadcast() as
Context.sendBroadcastAsUser().
- Add new android:singleUser attribute for services.
- Add new INTERACT_ACROSS_USERS_FULL permission for full
system-level access to cross-user interface (allows
sendBroadcastAsUser() to send to any receiver).
- Add new INTERACT_ACROSS_USERS_FULL permission for
more restricted cross-user interaction: this is required
for android:singleUser, and allows you to use
sendBroadcastAsUser() but only to send to your own
receivers.

Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
rc/android/test/mock/MockContext.java
24713907fe4632d263aea82f7a35c8fb08918a09 26-Jul-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

This change passes the originating URL and accompanied referrer to
package verifiers, when available.

Bug: 6544677
Change-Id: If9ff6663ad7f3426b7aea2aceb1413b689788138
rc/android/test/mock/MockPackageManager.java
54da5b5d683e27924eb6573f544616bc217c6c37 26-Jul-2012 Scott Main <smain@google.com> am dd4448ef: am 32189e26: Merge "misc doc bug fixes" into jb-dev

* commit 'dd4448ef6807f096cdfdf632857baefd7cbc85ec':
misc doc bug fixes
ddd88726a247e4100cb62b3dc9d0887ca2ae2ec4 26-Jul-2012 Jeff Smith <whydoubt@yahoo.com> am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214

* commit '71930dd77e4dc6f6be5c648019d2ab0da5f0584c':
Fix several cases of broken droiddoc syntax external issue 35214
32189e260c8dee27d561bf67c0333c9b9927636b 25-Jul-2012 Scott Main <smain@google.com> Merge "misc doc bug fixes" into jb-dev
a45746efadd11bb7dfab026fb3c81a25fae74ca4 19-Jul-2012 Jeff Smith <whydoubt@yahoo.com> Fix several cases of broken droiddoc syntax
external issue 35214

patch contributed by Jeff Smith <whydoubt@yahoo.com>

Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
rc/android/test/MoreAsserts.java
rc/android/test/ServiceTestCase.java
fe3b1cb27dd7ded1358bf3c4cc047de97158ed1e 25-Jul-2012 Scott Main <smain@google.com> misc doc bug fixes

Change-Id: I68963d79422e5cedb1726e91e9639860b13a2471
rc/android/test/ProviderTestCase2.java
adba6ffbb949e3644f0effdaffee349b0b49688a 22-Jun-2012 Scott Main <smain@google.com> am 101a120c: am 9be0105f: docs: fix several links

* commit '101a120c27f68fb7d44e6221244cb9441dfc4285':
docs: fix several links
9be0105fbc56eb1b1813bb7c5fe258a144867a43 22-Jun-2012 Scott Main <smain@google.com> docs: fix several links

Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
rc/android/test/mock/package.html
b8151ecd6ef4faa5c16d0a4c3abb45ec84d1f97a 19-Apr-2012 Amith Yamasani <yamasani@google.com> Add an icon to the user information.

Store the icon in the user folder under /data/system,
similar to how the wallpaper is stored.

Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
rc/android/test/mock/MockPackageManager.java
ce783749b191a58e4fed9a397066376915c1db65 30-May-2012 Dianne Hackborn <hackbod@google.com> am f3b4c93e: am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev

* commit 'f3b4c93e0da9af2db9e16864faa734cf70fecfe3':
Fix (mostly) issue #5109947: Race condition between retrieving a...
6ae8d1821822296df0606c9cd1c46708cc21cb58 23-May-2012 Dianne Hackborn <hackbod@google.com> Fix (mostly) issue #5109947: Race condition between retrieving a...

...content provider and updating its oom adj

This introduces the concept of an "unstable" reference on a content
provider. When holding such a reference (and no normal stable ref),
the content provider dying will not cause the client process to be
killed.

This is used in ContentResolver.query(), .openAssetFileDescriptor(),
and .openTypedAssetFileDescriptor() to first access the provider
with an unstable reference, and if at the point of calling into the
provider we find it is dead then acquiring a new stable reference
and doing the operation again. Thus if the provider process dies
at any point until we get the result back, our own process will not
be killed and we can safely retry the operation.

Arguably there is still the potential for a race -- if somehow the
provider is killed way late by the OOM killer after the query or
open has returned -- but this should now be *extremely* unlikely.
We also continue to have the issue with the other calls, but these
are much less critical, and the same model can't be used there (we
wouldn't want to execute two insert operations for example).

The implementation of this required some significant changes to the
underlying plumbing of content providers, now keeping track of the
two different reference counts, and managing them appropriately. To
facilitate this, the activity manager now has a formal connection
object for a client reference on a content provider, which hands to
the application when opening the provider.

These changes have allowed a lot of the code to be cleaned up and
subtle issues closed. For example, when a process is crashing, we
now have a much better idea of the state of content provider clients
(olding a stable ref, unstable ref, or waiting for it to launch), so
that we can correctly handle each of these.

The client side code is also a fair amount cleaner, though in the
future there is more than should be done. In particular, the two
ProviderClientRecord and ProviderRefCount classes should be combined
into one, part of which is exposed to the ContentResolver internal
API as a reference on a content provider with methods for updating
reference counts and such. Some day we'll do that.

Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
rc/android/test/mock/MockContentResolver.java
1b953b8fbfb510a968259ad78d86399bde8bc292 11-May-2012 Brett Chabot <brettchabot@android.com> Merge "Delete duplicate copies of junit source."
652b6d1e591f6684cda4b93d4712920f287991b4 10-May-2012 Dianne Hackborn <hackbod@google.com> Add infrastructure for accessing "unstable" content providers.

We have an API and some stuff that purports to this, but no real
implementation yet.

Change-Id: I93555440014a50fdf79fa3f65318d90fb82265b4
rc/android/test/mock/MockContentResolver.java
a0b2786304a83f6083423b1996f675dc08e48a56 10-May-2012 Brett Chabot <brettchabot@android.com> Delete duplicate copies of junit source.

Bug 5826326

Change-Id: Ie361b3778076686c5a59d8392aadb8c86a9ae981
ndroid.mk
rc/junit/runner/BaseTestRunner.java
rc/junit/runner/StandardTestSuiteLoader.java
rc/junit/runner/TestRunListener.java
rc/junit/runner/TestSuiteLoader.java
rc/junit/runner/Version.java
rc/junit/textui/ResultPrinter.java
rc/junit/textui/TestRunner.java
947f1c8db00bd3805838ff49a5f4d220df507b47 08-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Move CancellationSignal to android.os package." into jb-dev
a7771df3696954f0e279407e8894a916a7cb26cc 08-May-2012 Jeff Brown <jeffbrown@google.com> Move CancellationSignal to android.os package.

Bug: 6427830
Change-Id: I39451bb1e1d4a8d976ed1c671234f0c8c61658dd
rc/android/test/mock/MockContentProvider.java
rc/android/test/mock/MockIContentProvider.java
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
rc/android/test/mock/MockPackageManager.java
f1253cd68a1ef45f4bb0c15d3e2834ca8f91e03f 30-Jan-2012 Brett Chabot <brettchabot@android.com> Upgrade junit.runner classes to their JUnit4.10 implementation.

Bug 5826326

Change-Id: If7e4c48a4369c1056dee5a2049c891bb6ab7d8d0
rc/android/test/AssertionFailedError.java
rc/android/test/ComparisonFailure.java
rc/junit/runner/BaseTestRunner.java
rc/junit/runner/ClassPathTestCollector.java
rc/junit/runner/FailureDetailView.java
rc/junit/runner/LoadingTestCollector.java
rc/junit/runner/ReloadingTestSuiteLoader.java
rc/junit/runner/SimpleTestCollector.java
rc/junit/runner/Sorter.java
rc/junit/runner/StandardTestSuiteLoader.java
rc/junit/runner/TestCaseClassLoader.java
rc/junit/runner/TestCollector.java
rc/junit/runner/TestRunListener.java
rc/junit/runner/TestSuiteLoader.java
rc/junit/runner/Version.java
rc/junit/textui/ResultPrinter.java
rc/junit/textui/TestRunner.java
87571b75e6560d33b8de7ca04801612a20a04d98 03-Apr-2012 Brian Muramatsu <btmura@google.com> Try Alternate Constructor for Single Method Tests

Some tests do not have a no argument constructor. If they don't
have one, then try a constructor with a String argument. A lot
of CTS tests from open source projects have different practices
and may not have a no arg constructor.

Change-Id: I87c490c22347a2f4b03c3125308be0d2259f9208
rc/android/test/AndroidTestRunner.java
135936072b24b090fb63940aea41b408d855a4f3 23-Mar-2012 Amith Yamasani <yamasani@google.com> User management and switching

Broadcast intents that get sent out when users are added/removed/switched.

More work on generating user-specific information in package manager queries.
APIs to update user name and query a user by id.
Removed Package.mSetStopped and mSetEnabled, since they're not user specific.

User removal:
- Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService
and AccountManager.
- Shutdown processes belonging to the user.

Don't show vibrate option in long-press power if there's no vibrator.

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
rc/android/test/mock/MockPackageManager.java
b2e822fc2ac87703ac12d062add62408574cbf7c 20-Mar-2012 David Hu <hud@google.com> Remove unused BandwidthTestRunner

Change-Id: I5d77682cf662cc88e3d182501c78bb77805e74d1
rc/android/test/BandwidthTestRunner.java
ca4aab9cd724708af30abb4bfcb2f9b45087f449 14-Mar-2012 David Hu <hud@google.com> BandwidthTestCase

A test case that measures bandwidth metrics when annotated with
android.test.BandwidthTest and adds the metrics to the status bundle

Change-Id: I085110c66c7fcf651aefeeac3d4cdf5bd438ff67
rc/android/test/BandwidthTest.java
a4972e951bf2bdb7afdafee95b3ab0c15b8bacae 14-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new "options" argument to all startActivity APIs.

This will be used to allow new features to be requested... such as,
say, a special kind of animation. Right now there are no options
defined.

Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
rc/android/test/mock/MockContext.java
e639da7baa23121e35aa06d6e182558e0e755696 22-Feb-2012 Dianne Hackborn <hackbod@google.com> New development permissions.

These are permissions that an application can request, but won't
normally be granted. To have the permission granted, the user
must explicitly do so through a new "adb shell pm grant" command.

I put these permissions in the "development tools" permission
group. Looking at the stuff there, I think all of the permissions
we already had in that group should be turned to development
permissions; I don't think any of them are protecting public APIs,
and they are really not things normal applications should use.

The support this, the protectionLevel of a permission has been
modified to consist of a base protection type with additional
flags. The signatureOrSystem permission has thus been converted
to a signature base type with a new "system" flag; you can use
"system" and/or "dangerous" flags with signature permissions as
desired.

The permissions UI has been updated to understand these new types
of permissions and know when to display them. Along with doing
that, it also now shows you which permissions are new when updating
an existing application.

This also starts laying the ground-work for "optional" permissions
(which development permissions are a certain specialized form of).
Completing that work requires some more features in the package
manager to understand generic optional permissions (having a
facility to not apply them when installing), along with the
appropriate UI for the app and user to manage those permissions.

Change-Id: I6571785c6bb5f6b291862b7a9be584885f88f3a5
rc/android/test/mock/MockPackageManager.java
67cf7d314b5b94db1a9f1c57140b6615b0ea8291 16-Feb-2012 Amith Yamasani <yamasani@google.com> Fix Power Control widget

Some changes in AppWidgetService were interfering with widget permissions.

Added some hidden methods in Context to communicate the requesting user
information instead of using the calling uid.

Bug: 6019296
Change-Id: I5e519fd3fbbfa5b3fcc5c297b729c671dac8e7c7
rc/android/test/mock/MockContext.java
37ce3a8af6faab675319d0803b288ab1dddc76be 06-Feb-2012 Amith Yamasani <yamasani@google.com> Multi-user - wallpaper service

- Allow each user to have their own wallpaper (live or static).
- Migrate old wallpaper on upgrade.
- Update SystemBackupAgent to backup/restore from primary user's
new wallpaper directory.

Reduce dependency on Binder.getOrigCallingUser() by passing the
userId for bindService.

Change-Id: I19c8c3296d3d2efa7f28f951d4b84407489e2166
rc/android/test/mock/MockContext.java
4c1241df8f8b7fd5ec3dff6c7e0f66271248e76e 03-Feb-2012 Jeff Brown <jeffbrown@google.com> Rename CancellationSignal using preferred spelling.

Bug: 5943637
Change-Id: I12a339f285f4db58e79acb5fd8ec2fc1acda5265
rc/android/test/mock/MockContentProvider.java
rc/android/test/mock/MockIContentProvider.java
75ea64fc54f328d37b115cfb1ded1e45c30380ed 26-Jan-2012 Jeff Brown <jeffbrown@google.com> Implement a cancelation mechanism for queries.

Added new API to enable cancelation of SQLite and content provider
queries by means of a CancelationSignal object. The application
creates a CancelationSignal object and passes it as an argument
to the query. The cancelation signal can then be used to cancel
the query while it is executing.

If the cancelation signal is raised before the query is executed,
then it is immediately terminated.

Change-Id: If2c76e9a7e56ea5e98768b6d4f225f0a1ca61c61
rc/android/test/mock/MockContentProvider.java
rc/android/test/mock/MockIContentProvider.java
0df0ed5814a83c4cf0dd3d6d6e177f5ed9003863 05-Jan-2012 David Hu <hud@google.com> Merge "BandwidthTestRunner"
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 20-Dec-2011 Joe Fernandez <joefernandez@google.com> docs: Add developer guide cross-references, Project ACRE, round 4

Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
rc/android/test/ActivityInstrumentationTestCase2.java
rc/android/test/InstrumentationTestRunner.java
rc/android/test/ServiceTestCase.java
rc/android/test/mock/MockContentResolver.java
rc/android/test/mock/package.html
8cc9a8e132ebbf852e055ed17ab91f35b02fd974 14-Dec-2011 David Hu <hud@google.com> BandwidthTestRunner

Added BandwidthTest annotation and BandwidthTestRunner to start
and stop the network traffic profiler

Change-Id: Id29ac21ab99ff36bd864121276db59b61eb6e154
rc/android/test/BandwidthTest.java
rc/android/test/BandwidthTestRunner.java
rc/android/test/InstrumentationTestRunner.java
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
rc/android/test/mock/MockContentProvider.java
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/mock/MockPackageManager.java
3fe3f7328fb4a6f5e067eedc76086dd7b44ffc25 01-Aug-2011 Rodrigo Damazio Bovendorp <rdamazio@google.com> Fixing initialization cleanup in activity instrumentation test case

Change-Id: I798fed657ccdc27430edc07d1e911b34c45426b5
rc/android/test/ActivityInstrumentationTestCase2.java
877d428e39200fc5f289bfc88d67069cf7b9662a 02-Jun-2011 Brett Chabot <brettchabot@android.com> Test runner cleanup: delete unused old classes.

Change-Id: Iaaabd47d4074f936a811fc1b6575088d70842564
rc/android/test/BundlePrinter.java
rc/android/test/BundleTestListener.java
rc/android/test/ServiceLocator.java
rc/android/test/TestBrowserActivity.java
rc/android/test/TestBrowserController.java
rc/android/test/TestBrowserControllerImpl.java
rc/android/test/TestBrowserView.java
rc/android/test/TestListActivity.java
rc/android/test/TestRecorder.java
rc/android/test/TestRunnerView.java
rc/junit/runner/logo.gif
rc/junit/runner/smalllogo.gif
ests/src/android/test/StubTestBrowserActivity.java
ests/src/android/test/TestBrowserActivityTest.java
ests/src/android/test/TestBrowserControllerImplTest.java
ests/src/android/test/TestBrowserTests.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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/ActivityTestCase.java
f48e94005b6f7d648ebe659960bed32998779439 21-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove an obsolete import for performance tests.

Change-Id: Ifc76ef821f71ea7469b4044b15071f5d2a7418fd
rc/android/test/InstrumentationTestRunner.java
bd1c5da28dab9c3fb7e19bdadb22d7ad960fa3c3 21-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove unused performance tests.

Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
rc/android/test/InstrumentationTestRunner.java
rc/android/test/PerformanceTestBase.java
rc/android/test/suitebuilder/TestPredicates.java
rc/android/test/suitebuilder/TestSuiteBuilder.java
rc/android/test/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
rc/android/test/LoaderTestCase.java
4f3867e3ce92101224ad79b8f2ff446bb4f99108 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Time to remove some old APIs!

Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/InstrumentationTestRunner.java
3fc03e619fb01678549b80e7a89af2c8e3f19968 20-Oct-2010 Jack Wang <jackwang@google.com> Added RepetitiveTest annotation and test runner support

Change-Id: I7bf0871ede6dd69512c6b6ea3484693ba5b78e89
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/mock/MockContentProvider.java
rc/android/test/mock/MockIContentProvider.java
3c7c351a6217ac48b741740167c201a679a0ca65 05-Aug-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to gingerbread

git cherry-pick --no-commit f77cf7f0
git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113
git cherry-pick --no-commit 570bb561
git cherry-pick --no-commit e2417541
git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30
git cherry-pick --no-commit 5e8a587d

Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
ndroid.mk
b6d1437f32d92369da208f6201df7bcdb5d17763 05-Aug-2010 Vasu Nori <vnori@google.com> fix build breakage

eclipse doesn't complain but our build does..

Change-Id: If0289b68e91e7eb2ae7a9b7bd90d5cb6b728e944
rc/android/test/ProviderTestCase.java
rc/android/test/ProviderTestCase2.java
0c9e14aa4aa1370e01872dc05238f822f2dd552c 04-Aug-2010 Vasu Nori <vnori@google.com> add shutdown() to ContentProvider & call in ProviderTestCase*.tearDown

Change-Id: I3dd69b6907d68b7c1184139f22297ab92337f043
rc/android/test/ProviderTestCase.java
rc/android/test/ProviderTestCase2.java
ebd19e0f48b0cb246c246274a256a9bb494b7e7a 21-Jul-2010 Jeff Hamilton <jham@android.com> Add LoaderTestCase that makes it easier to test Loaders.

Change-Id: I4e91d6767cfd5cc61d7893e9cd71e963e42601a4
rc/android/test/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
rc/android/test/InstrumentationTestRunner.java
ests/src/android/test/InstrumentationTestRunnerTest.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
rc/android/test/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
rc/android/test/ProviderTestCase2.java
rc/android/test/ServiceTestCase.java
rc/android/test/mock/MockContentResolver.java
7d433aabb731a790fc8d06d260c826751215113f 31-May-2010 Joe Malin <jmalin@google.com> Javadoc for test case classes

Change-Id: Ibfa035cfe9091a81fca8bd0a6c141ec26c2de139
rc/android/test/ProviderTestCase2.java
rc/android/test/ServiceTestCase.java
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/mock/MockContext.java
8b0dd7da360d70920a37802eb455ba41500d3b45 18-May-2010 Vasu Nori <vnori@google.com> add API to Cursor to get column value type

Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
rc/android/test/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
rc/android/test/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
rc/android/test/mock/MockCursor.java
c8f503b5285e30c1a881d0ba860ba9021f57d113 05-May-2010 Jesse Wilson <jessewilson@google.com> Moving junit out of core.jar and into core-junit.jar.

Change-Id: I38b585044aaa0f0ef5a243a33d942ab0e490f8f1
ndroid.mk
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
rc/android/test/suitebuilder/TestGrouping.java
ests/src/android/test/suitebuilder/TestGroupingTest.java
ests/src/android/test/suitebuilder/examples/constructor/NoPublicConstructorTest.java
ests/src/android/test/suitebuilder/examples/constructor/ProtectedConstructorTest.java
ests/src/android/test/suitebuilder/examples/constructor/PublicConstructorTest.java
81cd2e90ccdda498234384c8207afe2213714e60 22-Apr-2010 Adam Powell <adamp@google.com> Logo attribute for manifest and PackageManager methods to fetch it

Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
rc/android/test/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
rc/android/test/mock/MockPackageManager.java
89c0ef4aba57172bbc9288f2d22c943f220a3dd1 19-Mar-2010 Brett Chabot <brettchabot@android.com> Add -e package description to InstrumentationTestRunner javadoc.

Bug 2528316

Change-Id: Ic707115e40a18521e0d57ee12f43df96be7033f2
rc/android/test/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
rc/android/test/BundlePrinter.java
rc/android/test/IsolatedContext.java
rc/android/test/ProviderTestCase.java
rc/android/test/ProviderTestCase2.java
rc/android/test/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.
rc/android/test/mock/MockContentProvider.java
rc/android/test/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
rc/android/test/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
rc/android/test/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
rc/android/test/InstrumentationTestRunner.java
ests/src/android/test/InstrumentationTestRunnerTest.java
08d13c3cbb0b250b84ca861edb462060556aead9 19-Feb-2010 Brett Chabot <brettchabot@android.com> Fix code coverage output message when running tests in non-raw mode.

Bug 2082804
rc/android/test/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.
ndroid.mk
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/ActivityTestCase.java
ndroid/test/ActivityUnitTestCase.java
ndroid/test/AndroidTestRunner.java
ndroid/test/ApplicationTestCase.java
ndroid/test/AssertionFailedError.java
ndroid/test/BundlePrinter.java
ndroid/test/BundleTestListener.java
ndroid/test/ClassPathPackageInfo.java
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/ComparisonFailure.java
ndroid/test/DatabaseTestUtils.java
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/InstrumentationUtils.java
ndroid/test/IsolatedContext.java
ndroid/test/LaunchPerformanceBase.java
ndroid/test/MoreAsserts.java
ndroid/test/NoExecTestResult.java
ndroid/test/PackageInfoSources.java
ndroid/test/PerformanceCollectorTestCase.java
ndroid/test/PerformanceTestBase.java
ndroid/test/ProviderTestCase.java
ndroid/test/ProviderTestCase2.java
ndroid/test/RenamingDelegatingContext.java
ndroid/test/ServiceLocator.java
ndroid/test/ServiceTestCase.java
ndroid/test/SimpleCache.java
ndroid/test/SingleLaunchActivityTestCase.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestBrowserActivity.java
ndroid/test/TestBrowserController.java
ndroid/test/TestBrowserControllerImpl.java
ndroid/test/TestBrowserView.java
ndroid/test/TestCase.java
ndroid/test/TestCaseUtil.java
ndroid/test/TestListActivity.java
ndroid/test/TestPrinter.java
ndroid/test/TestRecorder.java
ndroid/test/TestRunner.java
ndroid/test/TestRunnerView.java
ndroid/test/TestSuiteProvider.java
ndroid/test/TimedTest.java
ndroid/test/TouchUtils.java
ndroid/test/ViewAsserts.java
ndroid/test/mock/MockApplication.java
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockContentResolver.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockCursor.java
ndroid/test/mock/MockDialogInterface.java
ndroid/test/mock/MockIContentProvider.java
ndroid/test/mock/MockPackageManager.java
ndroid/test/mock/MockResources.java
ndroid/test/mock/package.html
ndroid/test/suitebuilder/AssignableFrom.java
ndroid/test/suitebuilder/InstrumentationTestSuiteBuilder.java
ndroid/test/suitebuilder/SmokeTestSuiteBuilder.java
ndroid/test/suitebuilder/TestGrouping.java
ndroid/test/suitebuilder/TestMethod.java
ndroid/test/suitebuilder/TestPredicates.java
ndroid/test/suitebuilder/TestSuiteBuilder.java
ndroid/test/suitebuilder/UnitTestSuiteBuilder.java
ndroid/test/suitebuilder/annotation/HasAnnotation.java
ndroid/test/suitebuilder/annotation/HasClassAnnotation.java
ndroid/test/suitebuilder/annotation/HasMethodAnnotation.java
ndroid/test/suitebuilder/annotation/package.html
ndroid/test/suitebuilder/package.html
unit/MODULE_LICENSE_CPL
unit/runner/BaseTestRunner.java
unit/runner/ClassPathTestCollector.java
unit/runner/FailureDetailView.java
unit/runner/LoadingTestCollector.java
unit/runner/ReloadingTestSuiteLoader.java
unit/runner/SimpleTestCollector.java
unit/runner/Sorter.java
unit/runner/StandardTestSuiteLoader.java
unit/runner/TestCaseClassLoader.java
unit/runner/TestCollector.java
unit/runner/TestRunListener.java
unit/runner/TestSuiteLoader.java
unit/runner/Version.java
unit/runner/excluded.properties
unit/runner/logo.gif
unit/runner/package.html
unit/runner/smalllogo.gif
unit/textui/ResultPrinter.java
unit/textui/TestRunner.java
unit/textui/package.html
rc/android/test/ActivityInstrumentationTestCase.java
rc/android/test/ActivityInstrumentationTestCase2.java
rc/android/test/ActivityTestCase.java
rc/android/test/ActivityUnitTestCase.java
rc/android/test/AndroidTestRunner.java
rc/android/test/ApplicationTestCase.java
rc/android/test/AssertionFailedError.java
rc/android/test/BundlePrinter.java
rc/android/test/BundleTestListener.java
rc/android/test/ClassPathPackageInfo.java
rc/android/test/ClassPathPackageInfoSource.java
rc/android/test/ComparisonFailure.java
rc/android/test/DatabaseTestUtils.java
rc/android/test/InstrumentationCoreTestRunner.java
rc/android/test/InstrumentationTestRunner.java
rc/android/test/InstrumentationUtils.java
rc/android/test/IsolatedContext.java
rc/android/test/LaunchPerformanceBase.java
rc/android/test/MoreAsserts.java
rc/android/test/NoExecTestResult.java
rc/android/test/PackageInfoSources.java
rc/android/test/PerformanceCollectorTestCase.java
rc/android/test/PerformanceTestBase.java
rc/android/test/ProviderTestCase.java
rc/android/test/ProviderTestCase2.java
rc/android/test/RenamingDelegatingContext.java
rc/android/test/ServiceLocator.java
rc/android/test/ServiceTestCase.java
rc/android/test/SimpleCache.java
rc/android/test/SingleLaunchActivityTestCase.java
rc/android/test/SyncBaseInstrumentation.java
rc/android/test/TestBrowserActivity.java
rc/android/test/TestBrowserController.java
rc/android/test/TestBrowserControllerImpl.java
rc/android/test/TestBrowserView.java
rc/android/test/TestCase.java
rc/android/test/TestCaseUtil.java
rc/android/test/TestListActivity.java
rc/android/test/TestPrinter.java
rc/android/test/TestRecorder.java
rc/android/test/TestRunner.java
rc/android/test/TestRunnerView.java
rc/android/test/TestSuiteProvider.java
rc/android/test/TimedTest.java
rc/android/test/TouchUtils.java
rc/android/test/ViewAsserts.java
rc/android/test/mock/MockApplication.java
rc/android/test/mock/MockContentProvider.java
rc/android/test/mock/MockContentResolver.java
rc/android/test/mock/MockContext.java
rc/android/test/mock/MockCursor.java
rc/android/test/mock/MockDialogInterface.java
rc/android/test/mock/MockIContentProvider.java
rc/android/test/mock/MockPackageManager.java
rc/android/test/mock/MockResources.java
rc/android/test/mock/package.html
rc/android/test/suitebuilder/AssignableFrom.java
rc/android/test/suitebuilder/InstrumentationTestSuiteBuilder.java
rc/android/test/suitebuilder/SmokeTestSuiteBuilder.java
rc/android/test/suitebuilder/TestGrouping.java
rc/android/test/suitebuilder/TestMethod.java
rc/android/test/suitebuilder/TestPredicates.java
rc/android/test/suitebuilder/TestSuiteBuilder.java
rc/android/test/suitebuilder/UnitTestSuiteBuilder.java
rc/android/test/suitebuilder/annotation/HasAnnotation.java
rc/android/test/suitebuilder/annotation/HasClassAnnotation.java
rc/android/test/suitebuilder/annotation/HasMethodAnnotation.java
rc/android/test/suitebuilder/annotation/package.html
rc/android/test/suitebuilder/package.html
rc/junit/MODULE_LICENSE_CPL
rc/junit/runner/BaseTestRunner.java
rc/junit/runner/ClassPathTestCollector.java
rc/junit/runner/FailureDetailView.java
rc/junit/runner/LoadingTestCollector.java
rc/junit/runner/ReloadingTestSuiteLoader.java
rc/junit/runner/SimpleTestCollector.java
rc/junit/runner/Sorter.java
rc/junit/runner/StandardTestSuiteLoader.java
rc/junit/runner/TestCaseClassLoader.java
rc/junit/runner/TestCollector.java
rc/junit/runner/TestRunListener.java
rc/junit/runner/TestSuiteLoader.java
rc/junit/runner/Version.java
rc/junit/runner/excluded.properties
rc/junit/runner/logo.gif
rc/junit/runner/package.html
rc/junit/runner/smalllogo.gif
rc/junit/textui/ResultPrinter.java
rc/junit/textui/TestRunner.java
rc/junit/textui/package.html
ests/Android.mk
ests/AndroidManifest.xml
ests/src/android/test/AndroidTestRunnerTest.java
ests/src/android/test/InstrumentationTestRunnerTest.java
ests/src/android/test/StubTestBrowserActivity.java
ests/src/android/test/TestBrowserActivityTest.java
ests/src/android/test/TestBrowserControllerImplTest.java
ests/src/android/test/TestBrowserTests.java
ests/src/android/test/TestCaseUtilTest.java
ests/src/android/test/suitebuilder/AssignableFromTest.java
ests/src/android/test/suitebuilder/InstrumentationTestSuiteBuilderTest.java
ests/src/android/test/suitebuilder/ListTestCaseNames.java
ests/src/android/test/suitebuilder/SmokeTestSuiteBuilderTest.java
ests/src/android/test/suitebuilder/TestSuiteBuilderTest.java
ests/src/android/test/suitebuilder/UnitTestSuiteBuilderTest.java
ests/src/android/test/suitebuilder/annotation/HasAnnotationTest.java
ests/src/android/test/suitebuilder/annotation/HasClassAnnotationTest.java
ests/src/android/test/suitebuilder/annotation/HasMethodAnnotationTest.java
ests/src/android/test/suitebuilder/examples/OuterTest.java
ests/src/android/test/suitebuilder/examples/error/ErrorTest.java
ests/src/android/test/suitebuilder/examples/error/FailingTest.java
ests/src/android/test/suitebuilder/examples/instrumentation/InstrumentationTest.java
ests/src/android/test/suitebuilder/examples/nested/Level1Test.java
ests/src/android/test/suitebuilder/examples/nested/nested/Level2Test.java
ests/src/android/test/suitebuilder/examples/simple/AnotherSimpleTest.java
ests/src/android/test/suitebuilder/examples/simple/SimpleTest.java
ests/src/android/test/suitebuilder/examples/smoke/NonSmokeTest.java
ests/src/android/test/suitebuilder/examples/smoke/SmokeTest.java
ests/src/android/test/suitebuilder/examples/subclass/SubclassTest.java
ests/src/android/test/suitebuilder/examples/subclass/SuperclassTest.java
ests/src/android/test/suitebuilder/examples/suppress/PartiallySuppressedTest.java
ests/src/android/test/suitebuilder/examples/suppress/SuppressedTest.java
8946dd3355fc1dcbad872c0546e356474d4cc5de 19-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move package from internal to external and vice versa.
ndroid/test/mock/MockPackageManager.java
642b7c0f1964389ed0b049df275c7b4daaf35b7a 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Include install location preference when installing packages. Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests"
5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2 12-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Include install location preference when installing packages.
Changes include
Add new remote call in default container service to determine
install location.
Rename INSTALL_ON_SDCARD
Remove recommentAppInstall method
Add some additional flags used in remote stubs.
Move check for protected apps prior to copy.
Unit tests

DefaultContainerService first parses the file uri(if content uri is specified
it returns a default install internal only value) and returns
a recommended location. Based on which the temporary id is determined
either a file name or a container id and the file is copied there.
This is then later renamed during install.
Todo's light weight parsing of package when determining location since we
just need the install location attribute only when finding out
recomended location. This will also enable to move the check for
updated system apps(cannot be on sdcard) prior to copying.
ndroid/test/mock/MockPackageManager.java
90762d35a99e32ed22cdfb1f81252544ee22e30b 12-Feb-2010 Brett Chabot <brettchabot@android.com> Modify ActivityInstrumentationTestCase2 to not require hardcoded package name.

Deprecate old constructor.

Bug 2440167
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
470969346d7958f859d97d1a136b4ecc11e2a464 12-Feb-2010 Dianne Hackborn <hackbod@google.com> Add APIs for mapping between new and current package names.

This will allow Market and others to find out what the "real" name
of a package is, when it is currently running under the old name of
a previously installed version.
ndroid/test/mock/MockPackageManager.java
1048108f1f57c96f746241b36b5181ff6cd0a8ee 11-Feb-2010 Paul Westbrook <pwestbro@google.com> Fix some Gmail tests

The SSLSessionCache attempts to create a directory through the context
In MockContext, this throws an UnsupportedOperationExcetion

This CL changes MockContext2 in ProviderTestCase2 to allow getDir
to be called, but the directory is named so it will be seperated from
a directory created by a regular context
ndroid/test/ProviderTestCase2.java
117818e4f171b1fd9daa05349c48f61388f04567 09-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add new manifest option for install location
Change recommendAppInstallLocation api
add code to parse new attribute.
Define flags in PackageInfo
Add new settings attributes for enabling setting and value for install location
Some tests
The policy for install location: if explicitly set in manifest as internal only we try to install the app only on internal storage. if set to preferExternal, we try to install it on sdcard if possible. If not we fall back to internal.
If the user enables setting SET_INSTALL_LOCATION(which will always
be set to false in final release builds) and sets a prefered location, we try
to honour it.
ndroid/test/mock/MockPackageManager.java
d03ff94fe58045b5bd1dd783fb98026778a4265d 09-Feb-2010 Mike Lockwood <lockwood@android.com> Clean up interface between LocationManagerService and the location providers:

LocationManagerService now uses new Java interface LocationProviderInterface
rather than LocationProviderProxy to refer to location providers internally.

LocationProviderProxy and the ILocationProvider binder interface are only
used for location providers implemented as services (NetworkLocationProvider)

Built-in location providers (GpsLocationProvider and mock providers) now just
implement LocationProviderInterface rather than using a Binder interface and proxy object.

Delete obsolete and unused TestLocationProvider class.

Change-Id: Id800e7c1864f7c666f8e37125c05896493b9c8c4
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/test/TestLocationProvider.java
e83cefcef07f9ac025642c1ffec76b4c7ab39cf2 05-Feb-2010 Dianne Hackborn <hackbod@google.com> New external storage APIs.

This implements the spec for external storage organization, and
properly reflects how the media scanner organizes the files it finds.

Also includes package manager support for removing app private
files from external storage when the application is uninstalled.

For the new APIs and paths, the main place to look is Environment
and Context.
ndroid/test/mock/MockContext.java
53bd2522ca7767f46646606123b6e2689b811850 06-Feb-2010 Fred Quintana <fredq@google.com> - change the SyncManager to retry MANUAL syncs that encounter a soft error
- make the sync dump handle the case where there are no accounts
- fix a bug that caused the SyncManager to burn up CPU in the system process

The following was implemented:

scheduler offers:
- settings to disable sync
- retries of certain errors
- backoffs

want a way to control these when scheduling a sync
- "ignore_settings"
- "ignore initial backoff"
- "manual" : ignore settings, ignore initial backoff
- "do not retry"

- need to change the default behavior of not retrying manual syncs to retry regardless
ndroid/test/SyncBaseInstrumentation.java
5d36c46d2d8fb3f1bdc8fd1ff407e14b4433272a 08-Feb-2010 The Android Open Source Project <initial-contribution@android.com> am ad9bcb22: merge from open-source master

Merge commit 'ad9bcb22d05fbf130ac64254abd51a137e9a3d3f'

* commit 'ad9bcb22d05fbf130ac64254abd51a137e9a3d3f':
Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method
Fixed Android animation framework, for using interpolators that do not start at 0.0f
Fix for GPS engines without separate session and engine status events.
Be tolerant of GPS session and engine on status messages arriving out of order.
GpsLocationProvider: Do not release wakelock until the GPS engine is fully off
ad9bcb22d05fbf130ac64254abd51a137e9a3d3f 05-Feb-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master
8621cfa43fd12b5ad1376eb1a2454729ce9d9c7e 05-Feb-2010 Marc Capdevielle <marc.capdevielle@gmail.com> Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method

The ACTION_UP event was fired at the "fromX" position instead of being
fired at the "toX" position which is the current value of local var "x".

This bug had no real impact as the VelocityTracker always ignores the last
MotionEvent when it received more than 3 events...
ndroid/test/TouchUtils.java
539d3c475f44b1499499a8b70375a192545cf113 30-Jan-2010 Oscar Montemayor <oam@google.com> Apps on SD card project.
Refactored recommendAppInstallLocation(..) method in PackageManager by making it an instance method.
Since PackageManager has only abstarct instance methods, moved implementation to ApplicationContext.ApplicationPackageManager class, in line with the rest of the method
implementations. Tah way, chage is consistent with best coding practices.
Also MockPackageManager received the additional method.
ndroid/test/mock/MockPackageManager.java
717f0eb34b67639b33a17b215dbfd81402ba8feb 10-Dec-2009 Fred Quintana <fredq@google.com> am 029074ff: fix build

Merge commit '029074ff0fca198676997c7453cfffa932361081' into eclair-mr2-plus-aosp

* commit '029074ff0fca198676997c7453cfffa932361081':
fix build
ndroid/test/mock/MockContentProvider.java
f99e2e042dbec5eba997eb0ac5e00d5fa23f7840 10-Dec-2009 Fred Quintana <fredq@google.com> am 563bfade: fix a build breakage

Merge commit '563bfade6601f3410681b3cd8b069ed22af5b048' into eclair-mr2-plus-aosp

* commit '563bfade6601f3410681b3cd8b069ed22af5b048':
fix a build breakage
ndroid/test/mock/MockContentProvider.java
8ad6ec2eb4a58a6dad34be60d49f32a53f2419f4 04-Dec-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 8280c2b1: Implement new MockContentProvider. Also make ContentProvider aware of the class.

Merge commit '8280c2b15f6875b2d387c05df23d264864eb9cd5' into eclair-mr2-plus-aosp

* commit '8280c2b15f6875b2d387c05df23d264864eb9cd5':
Implement new MockContentProvider. Also make ContentProvider aware of the class.
8280c2b15f6875b2d387c05df23d264864eb9cd5 22-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Implement new MockContentProvider. Also make ContentProvider aware of the class.

Rename the old MockContentProvider to MockIContentProvider since it is
more appropriate name.

Detail:
Current developers inevitably depend on the backend used by ContentProvider,
which is useful but not ideal nor "testable" from the view of them.

Current MockContentResolver only accepts exact "ContentProvider" class, not
IContentProvider interface, since we want to hide "IContentProvider" while
the old MockContentProvider implements IContentProvider and as a result some
methods we want to hide may be exposed to the public SDK now and probably
for the future.

On the other hand, ContentProvider is not interface but an exact class
heavily depends on the internal logic and not suitable for external
developers to use for tests.

The new MockContentProvider introduces the mock implementation
for ContentProvider.
It extends ContentProvider, so "is" ContentProvider, but tries to avoid
depending on any backend System like IPC in Android, etc.
This should be useful from the view of application developers who do not
want to be confused with ContentProvider/ContentResolver backend
implementation "at all" and want to use MockContentResolver without
any other ContentProvider implementations tightly connected to the
external worlds.
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockIContentProvider.java
e5fa335b0dffbd06385b6de05ae04b2bd2ea277e 17-Nov-2009 Jack Wang <jackwang@google.com> am 6e045e0a: am e0cadd7c: Merge change Iffbb6e55 into eclair

Merge commit '6e045e0aa1b465e9e989d3058a5d2fa13dcf026b' into eclair-mr2-plus-aosp

* commit '6e045e0aa1b465e9e989d3058a5d2fa13dcf026b':
Make perf metrics collection & output via instrumentation simpler
6e045e0aa1b465e9e989d3058a5d2fa13dcf026b 17-Nov-2009 Jack Wang <jackwang@google.com> am e0cadd7c: Merge change Iffbb6e55 into eclair

Merge commit 'e0cadd7cd811a674df62279dec00d17678b2c501' into eclair-mr2

* commit 'e0cadd7cd811a674df62279dec00d17678b2c501':
Make perf metrics collection & output via instrumentation simpler
2c13b9d155e3beed801dc472ee44a67cc94edbb2 17-Nov-2009 Jack Wang <jackwang@google.com> am e0cadd7c: Merge change Iffbb6e55 into eclair

Merge commit 'e0cadd7cd811a674df62279dec00d17678b2c501' into eclair-plus-aosp

* commit 'e0cadd7cd811a674df62279dec00d17678b2c501':
Make perf metrics collection & output via instrumentation simpler
478de466ce0504b9af639c3338b883893670a8e8 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
9db3d07b9620b4269ab33f78604a36327e536ce1 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
ndroid/test/AndroidTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/IsolatedContext.java
ndroid/test/PerformanceTestBase.java
ndroid/test/ProviderTestCase.java
ndroid/test/RenamingDelegatingContext.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestLocationProvider.java
ndroid/test/TestRunner.java
ndroid/test/TouchUtils.java
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockPackageManager.java
4f414bd7a76fc7ff063db70d1cdd09303c28cbe5 07-Nov-2009 Jack Wang <jackwang@google.com> Make perf metrics collection & output via instrumentation simpler

- Added includeDetailedStats metadata to TimedTest for collecting additional
metrics like memory usage and binder transactions
- Added PerformanceCollectorTestCase interface for hard-typing test class as
performance test while still able to inherit from instrumenation test classes
- Reverted previous changes to PerformanceTestBase, will deprecate
PerformanceTestBase/Case in a future CL
- Removed 'performance.' prefix from keys written to instrumentation output
ndroid/test/AndroidTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/PerformanceCollectorTestCase.java
ndroid/test/PerformanceTestBase.java
ndroid/test/TimedTest.java
af93c05c9a25018daf375094c8e697b83795b2d4 31-Oct-2009 Jack Wang <jackwang@google.com> am 227ba207: am e8228afb: Merge change I92cdc5ed into eclair

Merge commit '227ba2072df1474a0b3abaae7c415f152d32bcc2' into eclair-mr2-plus-aosp

* commit '227ba2072df1474a0b3abaae7c415f152d32bcc2':
PerformanceCollector: Collect & report perf measurements in key/value form
227ba2072df1474a0b3abaae7c415f152d32bcc2 31-Oct-2009 Jack Wang <jackwang@google.com> am e8228afb: Merge change I92cdc5ed into eclair

Merge commit 'e8228afb2bd005ae25ce58719f9d678389b26a16' into eclair-mr2

* commit 'e8228afb2bd005ae25ce58719f9d678389b26a16':
PerformanceCollector: Collect & report perf measurements in key/value form
1d225d67d94049151fef90bc431dcd5def9e948a 31-Oct-2009 Jack Wang <jackwang@google.com> am e8228afb: Merge change I92cdc5ed into eclair

Merge commit 'e8228afb2bd005ae25ce58719f9d678389b26a16' into eclair-plus-aosp

* commit 'e8228afb2bd005ae25ce58719f9d678389b26a16':
PerformanceCollector: Collect & report perf measurements in key/value form
075997f12e2fb2b646172a92926be0f26f739099 28-Oct-2009 Jack Wang <jackwang@google.com> PerformanceCollector: Collect & report perf measurements in key/value form

- Added new functions to PerformanceCollector and PerformanceResultsWriter
- Modified unit tests to test new functionality and fix flakiness reported in
2218327 and 2118268
- Added PerformanceCollectorTest to small suite
ndroid/test/InstrumentationTestRunner.java
ae27c576643a821d78ef330a5e1834c42d2cc94a 22-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 54616f34: Make MockCursor class a part of public SDK.

Merge commit '54616f3435e67029006d2f77462c61ed0635a3f6' into eclair-mr2-plus-aosp

* commit '54616f3435e67029006d2f77462c61ed0635a3f6':
Make MockCursor class a part of public SDK.
54616f3435e67029006d2f77462c61ed0635a3f6 15-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make MockCursor class a part of public SDK.

With this class, external developers will be able to reduce their
redundant work related to testing around ContentProvider/ContentResolver.

Internal Issue number: 2181010
ndroid/test/mock/MockCursor.java
a4f6c96f1acb4f0e7aaa233c2a5b884aaac2f573 09-Oct-2009 Mike Lockwood <lockwood@android.com> am 348b92bd: Merge change Iee227ace into eclair

Merge commit '348b92bd513087369ac682e29620d7829fa1381b' into eclair-plus-aosp

* commit '348b92bd513087369ac682e29620d7829fa1381b':
GPS: Fix problem with SUPL when SUPL APN is already active.
03d246779ea65fc2bd10d0b4f32620f45211133a 08-Oct-2009 Mike Lockwood <lockwood@android.com> GPS: Fix problem with SUPL when SUPL APN is already active.

Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService
to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED,
which is not sent in all cases.
Expand LocationProvider.updateNetworkState() to include NetworkInfo object.

Fixes bug b/2155661

Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/test/TestLocationProvider.java
6c0af3b2453ae25fb08fda966c4701b37a86960d 07-Oct-2009 Fred Quintana <fredq@google.com> am 5bba632d: - hide Entity and all its references - remove updateEntity and insertEntity, since they are not used - add the RawContacts.Entity class, which is used in lieu of the android.content.Entity

Merge commit '5bba632d877c2878384ff21566c8eb6a1a22f37b' into eclair-plus-aosp

* commit '5bba632d877c2878384ff21566c8eb6a1a22f37b':
- hide Entity and all its references
1eeca9291050ef0acc54e8abdedc065fb6be13fc 07-Oct-2009 Fred Quintana <fredq@google.com> am f7ae77cd: account manager api review changes

Merge commit 'f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d' into eclair-plus-aosp

* commit 'f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d':
account manager api review changes
5bba632d877c2878384ff21566c8eb6a1a22f37b 05-Oct-2009 Fred Quintana <fredq@google.com> - hide Entity and all its references
- remove updateEntity and insertEntity, since they are not
used
- add the RawContacts.Entity class, which is used in lieu of the
android.content.Entity
ndroid/test/mock/MockContentProvider.java
f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
ndroid/test/IsolatedContext.java
264f9b4530d6ecbd9e9d02cf5c61c7b19f4c6376 30-Sep-2009 Costin Manolache <costin@google.com> am 3348f14b: Remove GAIA string

Merge commit '3348f14b3d46b172a5b557f81aac526b7e8bf5fb' into eclair-plus-aosp

* commit '3348f14b3d46b172a5b557f81aac526b7e8bf5fb':
Remove GAIA string
3348f14b3d46b172a5b557f81aac526b7e8bf5fb 30-Sep-2009 Costin Manolache <costin@google.com> Remove GAIA string
ndroid/test/SyncBaseInstrumentation.java
bc21ba2410233b40b21a190b26285a791ac5cc58 27-Sep-2009 Dianne Hackborn <hackbod@google.com> am 093f5810: Merge change 27238 into eclair

Merge commit '093f581090d8cf98f5877746d924107f7695dd8b' into eclair-plus-aosp

* commit '093f581090d8cf98f5877746d924107f7695dd8b':
The touch screen is probably a feature.
039c68e75606e837cf021815a0210836724574ad 27-Sep-2009 Dianne Hackborn <hackbod@google.com> The touch screen is probably a feature.

Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
ndroid/test/mock/MockPackageManager.java
b7b083090f7312f83453e3f3c2e40a91644a3059 19-Sep-2009 Dianne Hackborn <hackbod@google.com> am a382cb81: Merge change 25929 into eclair

Merge commit 'a382cb81187437aa389dc131687e181ceaefa8ba' into eclair-plus-aosp

* commit 'a382cb81187437aa389dc131687e181ceaefa8ba':
Add API to send an ordered sticky broadcast.
efa199f016985b0a9d0471e42c803ee9f7941f0e 19-Sep-2009 Dianne Hackborn <hackbod@google.com> Add API to send an ordered sticky broadcast.

Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
ndroid/test/mock/MockContext.java
1f3914b7f2f3c233da8b643c426c0ffd42f32f87 18-Sep-2009 Dianne Hackborn <hackbod@google.com> am fa82f22f: Fix issue #2093608: Calendar widget takes a few seconds to launch

Merge commit 'fa82f22f1d8c4c828bdf9b670006be4f4fec772e' into eclair-plus-aosp

* commit 'fa82f22f1d8c4c828bdf9b670006be4f4fec772e':
Fix issue #2093608: Calendar widget takes a few seconds to launch
fa82f22f1d8c4c828bdf9b670006be4f4fec772e 18-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2093608: Calendar widget takes a few seconds to launch

Avert your eyes!

The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.

Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
ndroid/test/mock/MockContext.java
e525eef4b8e284ac8eb023bd0df4eeed37916d4b 17-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
2419fa842b5c940de23c9f22a52282554ded1217 15-Sep-2009 Android Code Review <code-review@android.com> Merge change 10326

* changes:
Javadoc used startApplication() which doesnt exists, changed to createApplication()
ff1df69dd4835c177c724e1b5f1ba02d1f674047 27-Aug-2009 Jack Wang <jackwang@google.com> Performance measurement framework:

+ For bug 1810508
- Added PerformanceCollector class to collect runtime and memory usage data
* Moved performance snapshotting from Intrumentation to PerformanceCollector
- Added PerformanceResultsWriter interface which defines functions for
reporting performance data

+ Framework integration
- Added TimedTest annotation to automatically time tests and write results
to instrumentation output
- Modified PerformanceTestBase to add collection hooks and wrapper methods
- Modified WatcherResultPrinter in InstrumentationTestRunner to implement
PerformanceResultsWriter for instrumentation output of performance data
- Modified InstrumentationTestRunner and AndroidTestRunner to pass writer
instance to test
ndroid/test/AndroidTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/PerformanceTestBase.java
904de61465abff8dba6fcc768d6bf5586f86ed0f 03-Sep-2009 Cynthia Wong <cynthiaw@google.com> Override getAccounts to return an empty AccountSet in MockAccountManager. This used to throw an NPE instead since IAccountManagerService is set to NULL.
ndroid/test/IsolatedContext.java
49237345d83e62fdb9eb8d50b13ad086636a04fa 28-Aug-2009 Dianne Hackborn <hackbod@google.com> Add platform infrastructure for features.

This introduces a new mechanism to define features associated with
a platform, query the current device for the available features,
and enforce that apps requiring features that aren't available can't
be installed.

Also now allows uses-library to specify that a library is optional,
so the lack of such a library will not prevent the app from being
installed (but if it does exist it will be correctly linked into
the app).

Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
ndroid/test/mock/MockPackageManager.java
7aba54b2edcb94f43c991c555b23fc1de364835e 21-Aug-2009 Jack Wang <jackwang@google.com> Fix bug 1546445: Correct spelling errors in API
- InstrumentationTestCase.injectInsrumentation
- AndroidTestRunner.setInstrumentaiton
ndroid/test/AndroidTestRunner.java
ndroid/test/InstrumentationTestRunner.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
ndroid/test/ProviderTestCase.java
ndroid/test/TouchUtils.java
a8db0a4ff6689f9f00dea6af44e65aa32a8546e1 17-Aug-2009 Jack Wang <jackwang@google.com> Fix bug 2056252: android.test.AndroidTestRunnerTest:testRunTestWithNullListener is failing
- Verify mInstrumentation is not null before calling getContext()
ndroid/test/AndroidTestRunner.java
766cbfe44be3c5013a6a22bd6cd8ad1055a37256 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Add new API to compare certs of two UIDs.
ndroid/test/mock/MockPackageManager.java
ac1e59d887651220f5367cc7fa4207b34eab774d 11-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/test/ProviderTestCase2.java
44a29dd097350e3050e44a2f64aa4c75d26ec695 03-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding "test context" to AndroidTestCase
ndroid/test/AndroidTestRunner.java
ndroid/test/TestRunner.java
5c1207be90fdf296c1b83034b7c68915e1749284 01-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/test/IsolatedContext.java
ndroid/test/mock/MockContext.java
bfefdcda94e056f6dee68debefb35ce9e7cd03b7 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8886

* changes:
Fix broken calendar tests.
04cc0e121f0f9fb236150be5e9afa1b8d0105026 29-Jul-2009 Ken Shirriff <kens@google.com> Fix broken calendar tests.

The tests end up in the widget code, which calls getResources(). This needs to
be supported by the mock.

bug=1985641
ndroid/test/ProviderTestCase2.java
02f5228c3c224dc8804cbedd40899fa0c42bfd4a 29-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f0d83fd9 to master
7f2054392e9957d3ba8579ef08c29cfb27df564e 28-Jul-2009 Dianne Hackborn <hackbod@google.com> Updates from API review.

* 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
ndroid/test/mock/MockContext.java
54a16f059040d8680b71e2e962fb438c993b674b 24-Jul-2009 Andrew Stadler <stadler@android.com> Add getCacheDir() to RenamingDelegatingContext.

This allows providers under ProviderTestCase2 to access getCacheDir().
ndroid/test/RenamingDelegatingContext.java
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/test/InstrumentationTestRunner.java
ndroid/test/MoreAsserts.java
ndroid/test/TestLocationProvider.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockPackageManager.java
70277a21d9e935b4afd30e14efd8a371e8a1aa9a 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6223

* changes:
Changes for new sync.
a2b5dab5b7796d3967c73df95154810ae38efd82 07-Jul-2009 Romain Guy <romainguy@android.com> am 870e09fc: Fixes #1963229. Introduces Context#isRestricted().

Merge commit '870e09fcd2dfdc12ac318962efd28b0420c562bb'

* commit '870e09fcd2dfdc12ac318962efd28b0420c562bb':
Fixes #1963229. Introduces Context#isRestricted().
870e09fcd2dfdc12ac318962efd28b0420c562bb 07-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1963229. Introduces Context#isRestricted().

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.
ndroid/test/mock/MockContext.java
3b95f5378957c4e985429dfefda3975416c1a039 06-Jul-2009 Ken Shirriff <kens@google.com> Changes for new sync.

Add ContentValues-based RecurrenceSet processing.
Add test stub needed by SSL caching.
ndroid/test/IsolatedContext.java
f888bc4dfe75c990874a8ca793a6217d38ef2757 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 441cb04e: Merge change 5732 into donut

Merge commit '441cb04efc0048585b3a6e6fa3d564e3d1b26f62'

* commit '441cb04efc0048585b3a6e6fa3d564e3d1b26f62':
Fix assertContentsInOrder (bug 1790350).
97eb32e2cad1871f89f9d7e91681b2977c8a4d19 30-Jun-2009 Karl Rosaen <krosaen@android.com> Fix assertContentsInOrder (bug 1790350).

if we ever get an updated Lists class that includes a
Lists.newArrayList(Iterable<?>
implementation, that would work too.
ndroid/test/MoreAsserts.java
b09296dbd8a5cff3a13308d6fc1ab504a8c63221 25-Jun-2009 Andrew Stadler <stadler@android.com> Add missing filename remap to RenamingDelegatingContext

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.
ndroid/test/RenamingDelegatingContext.java
ac9385ef3105fb7464e1f46049c62755a8b7f0e9 23-Jun-2009 Fred Quintana <fredq@google.com> - clean up the sync settings names to:
(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
ndroid/test/SyncBaseInstrumentation.java
c73e9ad55a28f6bec3260e919573e0597fdd23ab 19-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> am bc806f65: Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.

Merge commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90'

* commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90':
Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
bc806f65edc33f6eda0f475ac84e5e037a013a90 18-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
ndroid/test/mock/MockPackageManager.java
8dbbe3b52f815c49be986814743a521f802b4785 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 63e7155c: Merge change 4696 into donut

Merge commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d'

* commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d':
Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
5c1e00b14d2ef10ec76abf3e951fa8003a67f558 19-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy 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.
ndroid/test/mock/MockContext.java
abb01dba70fa52b3576fa9f6a175f3840b959fde 18-Jun-2009 Dianne Hackborn <hackbod@google.com> am c14b9ccd: Extend Intent/Uri conversion for use by Browser

Merge commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b'

* commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b':
Extend Intent/Uri conversion for use by Browser
c14b9ccdf13163cae5ce5d21bcf377010b37594b 18-Jun-2009 Dianne Hackborn <hackbod@google.com> Extend Intent/Uri conversion for use by Browser

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.
ndroid/test/mock/MockPackageManager.java
e1fae30e20b1515eeb036a7c103e1e70de130bdd 18-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Merge commit '0781df94' into manualmerge

Conflicts:
Android.mk
api/current.xml
1ccac75e1f1b97eccb916a8de04fc1012b30f6e5 12-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Remove circular dependency in PackageManager. api freeStorage uses 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.
ndroid/test/mock/MockPackageManager.java
bf85d63cb8858432ff845250fdaffdb556d2ef1b 12-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 78f0f8cb: Merge changes 3953,3954 into donut

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.
23ecae3bbb60c5af940f3a22170d75eb6ac05b69 11-Jun-2009 Joe Onorato <joeo@android.com> Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.

This took quite a bit of refactoring.
ndroid/test/mock/MockContext.java
ae5d46fddf39e784427a9c344a782001dd6f195c 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Javadoc used startApplication() which doesnt exists, changed to createApplication()
ndroid/test/ApplicationTestCase.java
342d59d3197caa1cd1de7a600c6e0ba4a59883f4 04-Jun-2009 Mitsuru Oshima <oshima@google.com> am 9189cabb: * Moved supports-density tag under manifest * 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.

Merge commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a'

* commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a':
* Moved supports-density tag under manifest
9189cabb0b6c6c28232fe6f412b7ba7a37352a6a 03-Jun-2009 Mitsuru Oshima <oshima@google.com> * Moved supports-density tag under manifest
* 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.
ndroid/test/mock/MockContext.java
ae8c5b868fa518306b50e08da9e5258ad075fa61 03-Jun-2009 Satish Sampath <satish@android.com> am 8dbe612d: Adding internal method replacePreferredActivity.

Merge commit '8dbe612dc60526d635e57257b58627b33a099678'

* commit '8dbe612dc60526d635e57257b58627b33a099678':
Adding internal method replacePreferredActivity.
8dbe612dc60526d635e57257b58627b33a099678 03-Jun-2009 Satish Sampath <satish@android.com> Adding internal method replacePreferredActivity.

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.
ndroid/test/mock/MockPackageManager.java
03d9490758c9318cee6d14d3cc5007556dce92d0 22-May-2009 Fred Quintana <fredq@google.com> - create a new generic ISyncAdapter implementation, SyncAdapterNew
- 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
ndroid/test/mock/MockContentProvider.java
8c5e96fb680fb6a90c07645797c889f785da4696 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> am ecad93e5: Merge change 2685 into donut

Merge commit 'ecad93e5f3c7345febcfa078b1d2aa00a2e1fd66'

* commit 'ecad93e5f3c7345febcfa078b1d2aa00a2e1fd66':
Change code coverage to write to app data folder rather than sdcard.
51e03642cee5a695d6ff6f5b318925efcab05100 29-May-2009 Brett Chabot <brettchabot@google.com> Change code coverage to write to app data folder rather than sdcard.

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.
ndroid/test/InstrumentationTestRunner.java
8943737692169f564cd34a9c8d471f3a5d438712 16-May-2009 Fred Quintana <fredq@google.com> add ipc support to batching
ndroid/test/mock/MockContentProvider.java
9b1e1400df4c6c4b69985f164097f0c842dd796f 21-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 8c690ea9: Merge change 2182 into donut

Merge commit '8c690ea9976d644db3c96eddbbbd2d50eac56913'

* commit '8c690ea9976d644db3c96eddbbbd2d50eac56913':
location: Replace ILocationCollector interface with new ILocationProvider method
fd6e5f0dda50e113db4ccc55338b6c4f09da37a4 21-May-2009 Mike Lockwood <lockwood@android.com> location: Replace ILocationCollector interface with new ILocationProvider method

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>
ndroid/test/TestLocationProvider.java
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/SingleLaunchActivityTestCase.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestLocationProvider.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockPackageManager.java
dd6face5a66ed6c9ac24b2754ec046b82881182c 15-May-2009 Mihai Preda <preda@google.com> am eae850ce: Allow intent resolution to be constrained by package name.

Merge commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0'

* commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0':
Allow intent resolution to be constrained by package name.
eae850cefe7e149f396c9e8ca1f34ec02b20a3f0 13-May-2009 Mihai Preda <preda@google.com> Allow intent resolution to be constrained by package name.
ndroid/test/mock/MockPackageManager.java
6a8d5332f00bdfade6674b312e7166940aa28348 08-May-2009 Fred Quintana <fredq@google.com> content provider entities
ndroid/test/mock/MockContentProvider.java
d2b4929ba00939c1aa5037927f27427637cc2f68 13-May-2009 Dianne Hackborn <hackbod@google.com> am ade3eca: Implement issue #1783881 (manifest option for adb-install-on

Merge commit 'ade3ecad94d1f4431576f53bae26c35efbf7a2c9'

* commit 'ade3ecad94d1f4431576f53bae26c35efbf7a2c9':
Implement issue #1783881 (manifest option for adb-install-only apps)
ade3ecad94d1f4431576f53bae26c35efbf7a2c9 12-May-2009 Dianne Hackborn <hackbod@google.com> Implement issue #1783881 (manifest option for adb-install-only apps)

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.
ndroid/test/mock/MockPackageManager.java
c64322c35212e919906ffd66118c7d5d3ad36636 28-Apr-2009 Jacek Surazski <jaceks@google.com> PackageManager keeps track of who installed what.

Stores the package name of the installer app in packages.xml
ndroid/test/mock/MockPackageManager.java
65e13171e12cb9e9fc2f608d0c8a92cd3c098648 28-Apr-2009 Jacek Surazski <jaceks@google.com> PackageManager keeps track of who installed what.

Stores the package name of the installer app in packages.xml
ndroid/test/mock/MockPackageManager.java
158b2129cfd50105305ca0c170163d59e9804106 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f792fc5: Merge change 1150 into donut

Merge commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02'

* commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02':
location: Location Manager wakelock cleanup
0528b9b26a9d64ba43acd0e334638303d514b8eb 07-May-2009 Mike Lockwood <lockwood@android.com> location: Location Manager wakelock cleanup

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>
ndroid/test/TestLocationProvider.java
7a1355950172b7a549820e9a2cd4a9b2099ec32f 06-May-2009 Dianne Hackborn <hackbod@google.com> merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581
231cc608d06ffc31c24bf8aa8c8275bdd2636581 28-Apr-2009 Dianne Hackborn <hackbod@google.com> Rewrite SyncStorageEngine to use flat files and in-memory data structures.

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.
ndroid/test/SyncBaseInstrumentation.java
e90c0da675a945a86ac06098c1f5694ddc4efb23 01-May-2009 Mike Lockwood <lockwood@android.com> am 275555c: location: Add support for location providers outside of the

Merge commit '275555c8eb3fb5df6e7320873b88b77cdde85a9e'

* commit '275555c8eb3fb5df6e7320873b88b77cdde85a9e':
location: Add support for location providers outside of the system process.
275555c8eb3fb5df6e7320873b88b77cdde85a9e 01-May-2009 Mike Lockwood <lockwood@android.com> location: Add support for location providers outside of the system process.

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>
ndroid/test/TestLocationProvider.java
ac7a3de471da65ae3111560a1404c12985c8741f 01-May-2009 Mike Lockwood <lockwood@android.com> am 15e3d0f: location: Use ILocationProvider Binder interface for all loc

Merge commit '15e3d0f082d551f8819fbe4b0d502cc108627876'

* commit '15e3d0f082d551f8819fbe4b0d502cc108627876':
location: Use ILocationProvider Binder interface for all location providers.
15e3d0f082d551f8819fbe4b0d502cc108627876 01-May-2009 Mike Lockwood <lockwood@android.com> location: Use ILocationProvider Binder interface for all location providers.

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>
ndroid/test/TestLocationProvider.java
718d8a2d7ff3e864a73879eb646f46c14ab74d07 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
ndroid/test/mock/MockContentProvider.java
e07cd1a4c359dcc7cb9e92c37e0893aea3cadaf8 29-Apr-2009 Jorg Pleumann <> am 19aa8e0: am b867019: AI 147725: Some fixes for the CTS test runner. O

Merge commit '19aa8e01b8fe4ebd6d518bd48ea9b53ec95a49a7'

* commit '19aa8e01b8fe4ebd6d518bd48ea9b53ec95a49a7':
AI 147725: Some fixes for the CTS test runner. One is a
c2839e087041b16a1ee7292b85459a396c25c771 29-Apr-2009 Mitsuru Oshima <> am 13735a2: Merge branch \'readonly-p4-donut\' into donut

Merge commit '13735a255dedd2c2e3b0cff66f0be2e17671f553'

* commit '13735a255dedd2c2e3b0cff66f0be2e17671f553':
AI 147976: Compatibility mode support. Part 2.
05d024329604bb92dca02f1ecdff4876d6d7b28c 29-Apr-2009 Mike Lockwood <lockwood@android.com> am 79762a3: location: Move DummyLocationProvider.java and LocationProvid

Merge commit '79762a3ee34eb8be5549bcb183af844b6f19c266'

* commit '79762a3ee34eb8be5549bcb183af844b6f19c266':
location: Move DummyLocationProvider.java and LocationProviderImpl.java to the internal package.
19aa8e01b8fe4ebd6d518bd48ea9b53ec95a49a7 29-Apr-2009 Jorg Pleumann <> am b867019: AI 147725: Some fixes for the CTS test runner. One is a

Merge commit 'b867019173d20cd4fd7ee79a3ce924096e95a241' into donut

* commit 'b867019173d20cd4fd7ee79a3ce924096e95a241':
AI 147725: Some fixes for the CTS test runner. One is a
13735a255dedd2c2e3b0cff66f0be2e17671f553 29-Apr-2009 Mitsuru Oshima <> Merge branch 'readonly-p4-donut' into donut
8169daed2f7a8731d478b884b1f455c747b88478 29-Apr-2009 Mitsuru Oshima <> AI 147976: Compatibility mode support. Part 2.
* Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea)
* Changes to RootView / SurfaceView
- Makes the app believe it's running in the supported density/resolution.
- Makes the window manager believe it's running at the right density/resolution.
* Added methods to Rect/Event for scaling up/down.
Known issues:
* certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account,
which, in turn, is causing layout issue.
* ZoomButton in MapView is rendered in wrong place
* Transparent region on Surface is not correct
* Specifying different densities in one process is not working.
BUG=1770627

Automated import of CL 147976
ndroid/test/mock/MockContext.java
79762a3ee34eb8be5549bcb183af844b6f19c266 28-Apr-2009 Mike Lockwood <lockwood@android.com> location: Move DummyLocationProvider.java and LocationProviderImpl.java to the internal package.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/test/TestLocationProvider.java
0eabf0228a17e07ef831bc1ee1951c9697d2a079 28-Apr-2009 Fred Quintana <fredq@google.com> change the IsolatedContext to have a test version of the AccountManager that has no IBinder to the AccountManagerService.
ndroid/test/IsolatedContext.java
b867019173d20cd4fd7ee79a3ce924096e95a241 24-Apr-2009 Jorg Pleumann <> AI 147725: Some fixes for the CTS test runner. One is a
workaround for the binder problems which occur
when too many tests are executed in too little
time. The other is a fix for the memory cleanup
that was added a while ago, but should have
affected non-static fields, not static ones.
BUG=1796494

Automated import of CL 147725
ndroid/test/InstrumentationCoreTestRunner.java
d9d2f1140b52fd0c014e9deac59f6000564b7e84 23-Apr-2009 Fred Quintana <fredq@google.com> change the sync framework and users to understand Account
ndroid/test/SyncBaseInstrumentation.java
72d5de71f205d1c7f43c495d01185b0fbba7c47f 21-Apr-2009 Andy Stadler <> AI 147169: am: CL 147167 am: CL 147162 Emphasize in the javadoc that the "pkg" parameters to
InstrumentationTestCase and its descendants should be the
package manager package name (not the java package name, and
not the test package) of the package holding the Activity
under test.
Added similar notations to the ApiDemos call sites.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 147169
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/SingleLaunchActivityTestCase.java
df2a463b01fe5222e377828225ca6710d5c14743 21-Apr-2009 Andy Stadler <> AI 147167: am: CL 147162 Emphasize in the javadoc that the "pkg" parameters to
InstrumentationTestCase and its descendants should be the
package manager package name (not the java package name, and
not the test package) of the package holding the Activity
under test.
Added similar notations to the ApiDemos call sites.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...

Automated import of CL 147167
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/SingleLaunchActivityTestCase.java
54bd245f574379319769471279c7cbf295feac46 21-Apr-2009 Andy Stadler <> AI 147162: Emphasize in the javadoc that the "pkg" parameters to
InstrumentationTestCase and its descendants should be the
package manager package name (not the java package name, and
not the test package) of the package holding the Activity
under test.
Added similar notations to the ApiDemos call sites.
JAVADOC ONLY - should be safe change for cupcake sdk.
BUG=1783981

Automated import of CL 147162
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/SingleLaunchActivityTestCase.java
7d41b8c26a2e255978393e9447d5c4a6f240e67e 19-Apr-2009 Urs Grob <> AI 146828: am: CL 146743 am: CL 146711 Enhancing the test runner. Now it filters BrokenTests and only executes tests
annotated with SideEffect if the host is running in single test mode.
Also adding some cleanup mechanism and some logcat logging about memory consumption
Original author: ursg
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146828
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
da13ef5dca5cac0e89b82a6d7360a575610b7bcc 17-Apr-2009 Urs Grob <> AI 146743: am: CL 146711 Enhancing the test runner. Now it filters BrokenTests and only executes tests
annotated with SideEffect if the host is running in single test mode.
Also adding some cleanup mechanism and some logcat logging about memory consumption
Original author: ursg
Merged from: //branches/cupcake/...

Automated import of CL 146743
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
358d23017d0d6c4636eb7599ae7a9b48108899a3 17-Apr-2009 Urs Grob <> AI 146711: Enhancing the test runner. Now it filters BrokenTests and only executes tests
annotated with SideEffect if the host is running in single test mode.
Also adding some cleanup mechanism and some logcat logging about memory consumption
BUG=1789657

Automated import of CL 146711
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
935ae463d495d41155e27feb849768ad2b8b16db 14-Apr-2009 Dianne Hackborn <> AI 145994: Integrate #145778 from Donut.

Automated import of CL 145994
ndroid/test/ProviderTestCase2.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
ndroid/test/ProviderTestCase2.java
48276ab989a4d775961ce30a43635a317052672a 09-Apr-2009 Dianne Hackborn <> AI 145383: API review: clean up a bunch of @hides that have been pending API review.
Either expose them, or official hide them with an explanation for why.
BUG=1779439

Automated import of CL 145383
ndroid/test/ProviderTestCase2.java
f6f9792d44ae9242981dab5ecc1ebf40190aada6 03-Apr-2009 Mike Lockwood <> AI 144453: am: CL 144452 More Location Manager cleanup:
Remove 1 Hz "heartbeat" polling of location providers from LocationManagerService.
Now location providers report their location to LocationManagerService via
LocationManager.setLocation() rather than waiting to be polled.
This reduces GPS fix latency by up to one second.
Remove LocationProvderImpl.getLocation().
Since we are no longer polling, this method is no longer necessary.
BUG=1729031
Original author: lockwood

Automated import of CL 144453
ndroid/test/TestLocationProvider.java
4e50b78bda9cd58be61581d2886c88ff6348a1c1 03-Apr-2009 Mike Lockwood <> AI 144452: More Location Manager cleanup:
Remove 1 Hz "heartbeat" polling of location providers from LocationManagerService.
Now location providers report their location to LocationManagerService via
LocationManager.setLocation() rather than waiting to be polled.
This reduces GPS fix latency by up to one second.
Remove LocationProvderImpl.getLocation().
Since we are no longer polling, this method is no longer necessary.
BUG=1729031

Automated import of CL 144452
ndroid/test/TestLocationProvider.java
ff51fe211d87fd97377f7ac1afb783ea154dba6e 02-Apr-2009 Brett Chabot <> AI 144107: am: CL 144098 am: CL 144093 Fix NPE in ActivityUnitTestCase.
Original author: brettchabot
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144107
ndroid/test/ActivityUnitTestCase.java
79ad6262314281dff10f7c4ed90fec893a60e274 02-Apr-2009 Brett Chabot <> AI 144098: am: CL 144093 Fix NPE in ActivityUnitTestCase.
Original author: brettchabot
Merged from: //branches/cupcake/...

Automated import of CL 144098
ndroid/test/ActivityUnitTestCase.java
9a89f145d38a2461fcce6f5223f94f20d05ebd2b 02-Apr-2009 Brett Chabot <> AI 144093: Fix NPE in ActivityUnitTestCase.
BUG=1751731

Automated import of CL 144093
ndroid/test/ActivityUnitTestCase.java
2c62f84add1fdddd51b38d0cc373be6b8b75a28b 01-Apr-2009 Brett Chabot <> AI 143872: am: CL 143870 am: CL 143869 Change InstrumentationTestRunner so all tests in the application are run when no other arguments are supplied, instead of running only tests in the app's package.
Original author: brettchabot
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143872
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/InstrumentationTestRunner.java
61b10ac95de29c3ff826250cf12b04b932e0cfd7 01-Apr-2009 Brett Chabot <> AI 143870: am: CL 143869 Change InstrumentationTestRunner so all tests in the application are run when no other arguments are supplied, instead of running only tests in the app's package.
Original author: brettchabot
Merged from: //branches/cupcake/...

Automated import of CL 143870
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/InstrumentationTestRunner.java
a1d701ef2f0302ad18ff356c697466f87214a924 01-Apr-2009 Brett Chabot <> AI 143869: Change InstrumentationTestRunner so all tests in the application are run when no other arguments are supplied, instead of running only tests in the app's package.
BUG=1749513

Automated import of CL 143869
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/InstrumentationTestRunner.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid.mk
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/ActivityTestCase.java
ndroid/test/ActivityUnitTestCase.java
ndroid/test/AndroidTestRunner.java
ndroid/test/ApplicationTestCase.java
ndroid/test/AssertionFailedError.java
ndroid/test/BundlePrinter.java
ndroid/test/BundleTestListener.java
ndroid/test/ClassPathPackageInfo.java
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/ComparisonFailure.java
ndroid/test/DatabaseTestUtils.java
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/InstrumentationUtils.java
ndroid/test/IsolatedContext.java
ndroid/test/LaunchPerformanceBase.java
ndroid/test/MoreAsserts.java
ndroid/test/NoExecTestResult.java
ndroid/test/PackageInfoSources.java
ndroid/test/PerformanceTestBase.java
ndroid/test/ProviderTestCase.java
ndroid/test/ProviderTestCase2.java
ndroid/test/RenamingDelegatingContext.java
ndroid/test/ServiceLocator.java
ndroid/test/ServiceTestCase.java
ndroid/test/SimpleCache.java
ndroid/test/SingleLaunchActivityTestCase.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestBrowserActivity.java
ndroid/test/TestBrowserController.java
ndroid/test/TestBrowserControllerImpl.java
ndroid/test/TestBrowserView.java
ndroid/test/TestCase.java
ndroid/test/TestCaseUtil.java
ndroid/test/TestListActivity.java
ndroid/test/TestLocationProvider.java
ndroid/test/TestPrinter.java
ndroid/test/TestRecorder.java
ndroid/test/TestRunner.java
ndroid/test/TestRunnerView.java
ndroid/test/TestSuiteProvider.java
ndroid/test/TouchUtils.java
ndroid/test/ViewAsserts.java
ndroid/test/mock/MockApplication.java
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockContentResolver.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockDialogInterface.java
ndroid/test/mock/MockPackageManager.java
ndroid/test/mock/MockResources.java
ndroid/test/mock/package.html
ndroid/test/suitebuilder/AssignableFrom.java
ndroid/test/suitebuilder/InstrumentationTestSuiteBuilder.java
ndroid/test/suitebuilder/SmokeTestSuiteBuilder.java
ndroid/test/suitebuilder/TestGrouping.java
ndroid/test/suitebuilder/TestMethod.java
ndroid/test/suitebuilder/TestPredicates.java
ndroid/test/suitebuilder/TestSuiteBuilder.java
ndroid/test/suitebuilder/UnitTestSuiteBuilder.java
ndroid/test/suitebuilder/annotation/HasAnnotation.java
ndroid/test/suitebuilder/annotation/HasClassAnnotation.java
ndroid/test/suitebuilder/annotation/HasMethodAnnotation.java
ndroid/test/suitebuilder/annotation/package.html
ndroid/test/suitebuilder/package.html
unit/MODULE_LICENSE_CPL
unit/runner/BaseTestRunner.java
unit/runner/ClassPathTestCollector.java
unit/runner/FailureDetailView.java
unit/runner/LoadingTestCollector.java
unit/runner/ReloadingTestSuiteLoader.java
unit/runner/SimpleTestCollector.java
unit/runner/Sorter.java
unit/runner/StandardTestSuiteLoader.java
unit/runner/TestCaseClassLoader.java
unit/runner/TestCollector.java
unit/runner/TestRunListener.java
unit/runner/TestSuiteLoader.java
unit/runner/Version.java
unit/runner/excluded.properties
unit/runner/logo.gif
unit/runner/package.html
unit/runner/smalllogo.gif
unit/textui/ResultPrinter.java
unit/textui/TestRunner.java
unit/textui/package.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid.mk
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/ActivityTestCase.java
ndroid/test/ActivityUnitTestCase.java
ndroid/test/AndroidTestRunner.java
ndroid/test/ApplicationTestCase.java
ndroid/test/AssertionFailedError.java
ndroid/test/BundlePrinter.java
ndroid/test/BundleTestListener.java
ndroid/test/ClassPathPackageInfo.java
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/ComparisonFailure.java
ndroid/test/DatabaseTestUtils.java
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/InstrumentationUtils.java
ndroid/test/IsolatedContext.java
ndroid/test/LaunchPerformanceBase.java
ndroid/test/MoreAsserts.java
ndroid/test/NoExecTestResult.java
ndroid/test/PackageInfoSources.java
ndroid/test/PerformanceTestBase.java
ndroid/test/ProviderTestCase.java
ndroid/test/ProviderTestCase2.java
ndroid/test/RenamingDelegatingContext.java
ndroid/test/ServiceLocator.java
ndroid/test/ServiceTestCase.java
ndroid/test/SimpleCache.java
ndroid/test/SingleLaunchActivityTestCase.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestBrowserActivity.java
ndroid/test/TestBrowserController.java
ndroid/test/TestBrowserControllerImpl.java
ndroid/test/TestBrowserView.java
ndroid/test/TestCase.java
ndroid/test/TestCaseUtil.java
ndroid/test/TestListActivity.java
ndroid/test/TestLocationProvider.java
ndroid/test/TestPrinter.java
ndroid/test/TestRecorder.java
ndroid/test/TestRunner.java
ndroid/test/TestRunnerView.java
ndroid/test/TestSuiteProvider.java
ndroid/test/TouchUtils.java
ndroid/test/ViewAsserts.java
ndroid/test/mock/MockApplication.java
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockContentResolver.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockDialogInterface.java
ndroid/test/mock/MockPackageManager.java
ndroid/test/mock/MockResources.java
ndroid/test/mock/package.html
ndroid/test/suitebuilder/AssignableFrom.java
ndroid/test/suitebuilder/InstrumentationTestSuiteBuilder.java
ndroid/test/suitebuilder/SmokeTestSuiteBuilder.java
ndroid/test/suitebuilder/TestGrouping.java
ndroid/test/suitebuilder/TestMethod.java
ndroid/test/suitebuilder/TestPredicates.java
ndroid/test/suitebuilder/TestSuiteBuilder.java
ndroid/test/suitebuilder/UnitTestSuiteBuilder.java
ndroid/test/suitebuilder/annotation/HasAnnotation.java
ndroid/test/suitebuilder/annotation/HasClassAnnotation.java
ndroid/test/suitebuilder/annotation/HasMethodAnnotation.java
ndroid/test/suitebuilder/annotation/package.html
ndroid/test/suitebuilder/package.html
unit/MODULE_LICENSE_CPL
unit/runner/BaseTestRunner.java
unit/runner/ClassPathTestCollector.java
unit/runner/FailureDetailView.java
unit/runner/LoadingTestCollector.java
unit/runner/ReloadingTestSuiteLoader.java
unit/runner/SimpleTestCollector.java
unit/runner/Sorter.java
unit/runner/StandardTestSuiteLoader.java
unit/runner/TestCaseClassLoader.java
unit/runner/TestCollector.java
unit/runner/TestRunListener.java
unit/runner/TestSuiteLoader.java
unit/runner/Version.java
unit/runner/excluded.properties
unit/runner/logo.gif
unit/runner/package.html
unit/runner/smalllogo.gif
unit/textui/ResultPrinter.java
unit/textui/TestRunner.java
unit/textui/package.html
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockPackageManager.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockPackageManager.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
ndroid/test/ServiceTestCase.java
ndroid/test/TestCaseUtil.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ndroid/test/InstrumentationTestRunner.java
ndroid/test/TouchUtils.java
ndroid/test/mock/MockPackageManager.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
ndroid/test/mock/MockPackageManager.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
ndroid/test/TouchUtils.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityInstrumentationTestCase2.java
ndroid/test/AndroidTestRunner.java
ndroid/test/DatabaseTestUtils.java
ndroid/test/InstrumentationCoreTestRunner.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/NoExecTestResult.java
ndroid/test/ProviderTestCase.java
ndroid/test/ProviderTestCase2.java
ndroid/test/mock/MockContentResolver.java
ndroid/test/mock/MockPackageManager.java
ndroid/test/suitebuilder/TestMethod.java
ndroid/test/suitebuilder/TestPredicates.java
ndroid/test/suitebuilder/TestSuiteBuilder.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid.mk
ndroid/test/ActivityInstrumentationTestCase.java
ndroid/test/ActivityTestCase.java
ndroid/test/ActivityUnitTestCase.java
ndroid/test/AndroidTestRunner.java
ndroid/test/ApplicationTestCase.java
ndroid/test/AssertionFailedError.java
ndroid/test/BundlePrinter.java
ndroid/test/BundleTestListener.java
ndroid/test/ClassPathPackageInfo.java
ndroid/test/ClassPathPackageInfoSource.java
ndroid/test/ComparisonFailure.java
ndroid/test/InstrumentationTestRunner.java
ndroid/test/InstrumentationUtils.java
ndroid/test/IsolatedContext.java
ndroid/test/LaunchPerformanceBase.java
ndroid/test/MoreAsserts.java
ndroid/test/PackageInfoSources.java
ndroid/test/PerformanceTestBase.java
ndroid/test/ProviderTestCase.java
ndroid/test/RenamingDelegatingContext.java
ndroid/test/ServiceLocator.java
ndroid/test/ServiceTestCase.java
ndroid/test/SimpleCache.java
ndroid/test/SingleLaunchActivityTestCase.java
ndroid/test/SyncBaseInstrumentation.java
ndroid/test/TestBrowserActivity.java
ndroid/test/TestBrowserController.java
ndroid/test/TestBrowserControllerImpl.java
ndroid/test/TestBrowserView.java
ndroid/test/TestCase.java
ndroid/test/TestCaseUtil.java
ndroid/test/TestListActivity.java
ndroid/test/TestLocationProvider.java
ndroid/test/TestPrinter.java
ndroid/test/TestRecorder.java
ndroid/test/TestRunner.java
ndroid/test/TestRunnerView.java
ndroid/test/TestSuiteProvider.java
ndroid/test/TouchUtils.java
ndroid/test/ViewAsserts.java
ndroid/test/mock/MockApplication.java
ndroid/test/mock/MockContentProvider.java
ndroid/test/mock/MockContentResolver.java
ndroid/test/mock/MockContext.java
ndroid/test/mock/MockDialogInterface.java
ndroid/test/mock/MockPackageManager.java
ndroid/test/mock/MockResources.java
ndroid/test/mock/package.html
ndroid/test/suitebuilder/AssignableFrom.java
ndroid/test/suitebuilder/InstrumentationTestSuiteBuilder.java
ndroid/test/suitebuilder/SmokeTestSuiteBuilder.java
ndroid/test/suitebuilder/TestGrouping.java
ndroid/test/suitebuilder/TestMethod.java
ndroid/test/suitebuilder/TestPredicates.java
ndroid/test/suitebuilder/TestSuiteBuilder.java
ndroid/test/suitebuilder/UnitTestSuiteBuilder.java
ndroid/test/suitebuilder/annotation/HasAnnotation.java
ndroid/test/suitebuilder/annotation/HasClassAnnotation.java
ndroid/test/suitebuilder/annotation/HasMethodAnnotation.java
ndroid/test/suitebuilder/annotation/package.html
ndroid/test/suitebuilder/package.html
unit/MODULE_LICENSE_CPL
unit/runner/BaseTestRunner.java
unit/runner/ClassPathTestCollector.java
unit/runner/FailureDetailView.java
unit/runner/LoadingTestCollector.java
unit/runner/ReloadingTestSuiteLoader.java
unit/runner/SimpleTestCollector.java
unit/runner/Sorter.java
unit/runner/StandardTestSuiteLoader.java
unit/runner/TestCaseClassLoader.java
unit/runner/TestCollector.java
unit/runner/TestRunListener.java
unit/runner/TestSuiteLoader.java
unit/runner/Version.java
unit/runner/excluded.properties
unit/runner/logo.gif
unit/runner/package.html
unit/runner/smalllogo.gif
unit/textui/ResultPrinter.java
unit/textui/TestRunner.java
unit/textui/package.html