• Home
  • History
  • Annotate
  • only in /frameworks/base/test-runner/src/android/test/
History log of /frameworks/base/test-runner/src/android/test/
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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/MockContext.java
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
erviceTestCase.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
ock/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
ock/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
oreAsserts.java
erviceTestCase.java
fe3b1cb27dd7ded1358bf3c4cc047de97158ed1e 25-Jul-2012 Scott Main <smain@google.com> misc doc bug fixes

Change-Id: I68963d79422e5cedb1726e91e9639860b13a2471
roviderTestCase2.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
ock/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
ock/MockPackageManager.java
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
ock/MockContentResolver.java
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
ock/MockContentResolver.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
ock/MockContentProvider.java
ock/MockIContentProvider.java
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
ock/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
ssertionFailedError.java
omparisonFailure.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
ndroidTestRunner.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
ock/MockPackageManager.java
b2e822fc2ac87703ac12d062add62408574cbf7c 20-Mar-2012 David Hu <hud@google.com> Remove unused BandwidthTestRunner

Change-Id: I5d77682cf662cc88e3d182501c78bb77805e74d1
andwidthTestRunner.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
andwidthTest.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
ock/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
ock/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
ock/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
ock/MockContext.java
4c1241df8f8b7fd5ec3dff6c7e0f66271248e76e 03-Feb-2012 Jeff Brown <jeffbrown@google.com> Rename CancellationSignal using preferred spelling.

Bug: 5943637
Change-Id: I12a339f285f4db58e79acb5fd8ec2fc1acda5265
ock/MockContentProvider.java
ock/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
ock/MockContentProvider.java
ock/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
ctivityInstrumentationTestCase2.java
nstrumentationTestRunner.java
erviceTestCase.java
ock/MockContentResolver.java
ock/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
andwidthTest.java
andwidthTestRunner.java
nstrumentationTestRunner.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
ock/MockContentProvider.java
ock/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
ock/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
ock/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
nstrumentationTestRunner.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
ock/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
nstrumentationCoreTestRunner.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
ock/MockPackageManager.java
3fe3f7328fb4a6f5e067eedc76086dd7b44ffc25 01-Aug-2011 Rodrigo Damazio Bovendorp <rdamazio@google.com> Fixing initialization cleanup in activity instrumentation test case

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

Change-Id: Iaaabd47d4074f936a811fc1b6575088d70842564
undlePrinter.java
undleTestListener.java
erviceLocator.java
estBrowserActivity.java
estBrowserController.java
estBrowserControllerImpl.java
estBrowserView.java
estListActivity.java
estRecorder.java
estRunnerView.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
ouchUtils.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
ock/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
lassPathPackageInfoSource.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
lassPathPackageInfoSource.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
erviceTestCase.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
ock/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
ock/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
ock/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
ock/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
ock/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
ock/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
ingleLaunchActivityTestCase.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
ock/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
ctivityTestCase.java
f48e94005b6f7d648ebe659960bed32998779439 21-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove an obsolete import for performance tests.

Change-Id: Ifc76ef821f71ea7469b4044b15071f5d2a7418fd
nstrumentationTestRunner.java
bd1c5da28dab9c3fb7e19bdadb22d7ad960fa3c3 21-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove unused performance tests.

Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
nstrumentationTestRunner.java
erformanceTestBase.java
uitebuilder/TestPredicates.java
uitebuilder/TestSuiteBuilder.java
uitebuilder/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
oaderTestCase.java
4f3867e3ce92101224ad79b8f2ff446bb4f99108 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Time to remove some old APIs!

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

Change-Id: I7bf0871ede6dd69512c6b6ea3484693ba5b78e89
nstrumentationTestRunner.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
solatedContext.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
ock/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
ock/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
roviderTestCase2.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
ock/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
ock/MockContentProvider.java
ock/MockIContentProvider.java
b6d1437f32d92369da208f6201df7bcdb5d17763 05-Aug-2010 Vasu Nori <vnori@google.com> fix build breakage

eclipse doesn't complain but our build does..

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

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

Change-Id: I4e91d6767cfd5cc61d7893e9cd71e963e42601a4
oaderTestCase.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
nstrumentationTestRunner.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
ock/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
roviderTestCase2.java
erviceTestCase.java
ock/MockContentResolver.java
7d433aabb731a790fc8d06d260c826751215113f 31-May-2010 Joe Malin <jmalin@google.com> Javadoc for test case classes

Change-Id: Ibfa035cfe9091a81fca8bd0a6c141ec26c2de139
roviderTestCase2.java
erviceTestCase.java
ock/MockContentResolver.java
25f3ab4ee7d14ac9453396e2100d27f3f52c7077 19-Jun-2010 Evan Millar <emillar@google.com> Manual merge of change 53051 from master (DO NOT MERGE)

Change-Id: Ia4697a15cb874f25849655994e10aa88ae60b328
erviceTestCase.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
enamingDelegatingContext.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
ock/MockContext.java
8b0dd7da360d70920a37802eb455ba41500d3b45 18-May-2010 Vasu Nori <vnori@google.com> add API to Cursor to get column value type

Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
ock/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
erviceTestCase.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
ock/MockCursor.java
631447c6049c2ee18e6cd1553905dd8f15b3bcbd 26-Apr-2010 Brett Chabot <brettchabot@android.com> Merge "Add test runner log when test case class is not loaded."
bb469fe3da7e6d17e851a95026a9eea905c52daa 24-Apr-2010 Brett Chabot <brettchabot@android.com> Add test runner log when test case class is not loaded.

The test runner will only load TestCase classes that have a public
constructor with either no params or a single String parameter.

This is fairly subtle behavior and can be difficult to catch. This change
adds a log message when a TestCase class is not loaded, and adds some
associated unit tests.

Change-Id: I6fc63e4179c949620f5773e0ae134f99905a6fb2
uitebuilder/TestGrouping.java
81cd2e90ccdda498234384c8207afe2213714e60 22-Apr-2010 Adam Powell <adamp@google.com> Logo attribute for manifest and PackageManager methods to fetch it

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

Bug 2528316

Change-Id: Ic707115e40a18521e0d57ee12f43df96be7033f2
nstrumentationTestRunner.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
undlePrinter.java
solatedContext.java
roviderTestCase.java
roviderTestCase2.java
enamingDelegatingContext.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.
ock/MockContentProvider.java
ock/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
solatedContext.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
nstrumentationTestRunner.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
nstrumentationTestRunner.java
08d13c3cbb0b250b84ca861edb462060556aead9 19-Feb-2010 Brett Chabot <brettchabot@android.com> Fix code coverage output message when running tests in non-raw mode.

Bug 2082804
nstrumentationTestRunner.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.
ctivityInstrumentationTestCase.java
ctivityInstrumentationTestCase2.java
ctivityTestCase.java
ctivityUnitTestCase.java
ndroidTestRunner.java
pplicationTestCase.java
ssertionFailedError.java
undlePrinter.java
undleTestListener.java
lassPathPackageInfo.java
lassPathPackageInfoSource.java
omparisonFailure.java
atabaseTestUtils.java
nstrumentationCoreTestRunner.java
nstrumentationTestRunner.java
nstrumentationUtils.java
solatedContext.java
aunchPerformanceBase.java
oreAsserts.java
oExecTestResult.java
ackageInfoSources.java
erformanceCollectorTestCase.java
erformanceTestBase.java
roviderTestCase.java
roviderTestCase2.java
enamingDelegatingContext.java
erviceLocator.java
erviceTestCase.java
impleCache.java
ingleLaunchActivityTestCase.java
yncBaseInstrumentation.java
estBrowserActivity.java
estBrowserController.java
estBrowserControllerImpl.java
estBrowserView.java
estCase.java
estCaseUtil.java
estListActivity.java
estPrinter.java
estRecorder.java
estRunner.java
estRunnerView.java
estSuiteProvider.java
imedTest.java
ouchUtils.java
iewAsserts.java
ock/MockApplication.java
ock/MockContentProvider.java
ock/MockContentResolver.java
ock/MockContext.java
ock/MockCursor.java
ock/MockDialogInterface.java
ock/MockIContentProvider.java
ock/MockPackageManager.java
ock/MockResources.java
ock/package.html
uitebuilder/AssignableFrom.java
uitebuilder/InstrumentationTestSuiteBuilder.java
uitebuilder/SmokeTestSuiteBuilder.java
uitebuilder/TestGrouping.java
uitebuilder/TestMethod.java
uitebuilder/TestPredicates.java
uitebuilder/TestSuiteBuilder.java
uitebuilder/UnitTestSuiteBuilder.java
uitebuilder/annotation/HasAnnotation.java
uitebuilder/annotation/HasClassAnnotation.java
uitebuilder/annotation/HasMethodAnnotation.java
uitebuilder/annotation/package.html
uitebuilder/package.html
c1ca8c51c616d1517b18bf24feaa9f8f1430c835 19-Feb-2010 Brett Chabot <brettchabot@android.com> Revert "Move framework test-runner unit tests to be closer to their source."

This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
ctivityInstrumentationTestCase.java
ctivityInstrumentationTestCase2.java
ctivityTestCase.java
ctivityUnitTestCase.java
ndroidTestRunner.java
pplicationTestCase.java
ssertionFailedError.java
undlePrinter.java
undleTestListener.java
lassPathPackageInfo.java
lassPathPackageInfoSource.java
omparisonFailure.java
atabaseTestUtils.java
nstrumentationCoreTestRunner.java
nstrumentationTestRunner.java
nstrumentationUtils.java
solatedContext.java
aunchPerformanceBase.java
oreAsserts.java
oExecTestResult.java
ackageInfoSources.java
erformanceCollectorTestCase.java
erformanceTestBase.java
roviderTestCase.java
roviderTestCase2.java
enamingDelegatingContext.java
erviceLocator.java
erviceTestCase.java
impleCache.java
ingleLaunchActivityTestCase.java
yncBaseInstrumentation.java
estBrowserActivity.java
estBrowserController.java
estBrowserControllerImpl.java
estBrowserView.java
estCase.java
estCaseUtil.java
estListActivity.java
estPrinter.java
estRecorder.java
estRunner.java
estRunnerView.java
estSuiteProvider.java
imedTest.java
ouchUtils.java
iewAsserts.java
ock/MockApplication.java
ock/MockContentProvider.java
ock/MockContentResolver.java
ock/MockContext.java
ock/MockCursor.java
ock/MockDialogInterface.java
ock/MockIContentProvider.java
ock/MockPackageManager.java
ock/MockResources.java
ock/package.html
uitebuilder/AssignableFrom.java
uitebuilder/InstrumentationTestSuiteBuilder.java
uitebuilder/SmokeTestSuiteBuilder.java
uitebuilder/TestGrouping.java
uitebuilder/TestMethod.java
uitebuilder/TestPredicates.java
uitebuilder/TestSuiteBuilder.java
uitebuilder/UnitTestSuiteBuilder.java
uitebuilder/annotation/HasAnnotation.java
uitebuilder/annotation/HasClassAnnotation.java
uitebuilder/annotation/HasMethodAnnotation.java
uitebuilder/annotation/package.html
uitebuilder/package.html
12093976a4842a795491cfd2b1d3b71e18503f2d 19-Feb-2010 Brett Chabot <brettchabot@android.com> Move framework test-runner unit tests to be closer to their source.
Move the test-runner source into a separate src folder to accommodate the test
move.
ctivityInstrumentationTestCase.java
ctivityInstrumentationTestCase2.java
ctivityTestCase.java
ctivityUnitTestCase.java
ndroidTestRunner.java
pplicationTestCase.java
ssertionFailedError.java
undlePrinter.java
undleTestListener.java
lassPathPackageInfo.java
lassPathPackageInfoSource.java
omparisonFailure.java
atabaseTestUtils.java
nstrumentationCoreTestRunner.java
nstrumentationTestRunner.java
nstrumentationUtils.java
solatedContext.java
aunchPerformanceBase.java
oreAsserts.java
oExecTestResult.java
ackageInfoSources.java
erformanceCollectorTestCase.java
erformanceTestBase.java
roviderTestCase.java
roviderTestCase2.java
enamingDelegatingContext.java
erviceLocator.java
erviceTestCase.java
impleCache.java
ingleLaunchActivityTestCase.java
yncBaseInstrumentation.java
estBrowserActivity.java
estBrowserController.java
estBrowserControllerImpl.java
estBrowserView.java
estCase.java
estCaseUtil.java
estListActivity.java
estPrinter.java
estRecorder.java
estRunner.java
estRunnerView.java
estSuiteProvider.java
imedTest.java
ouchUtils.java
iewAsserts.java
ock/MockApplication.java
ock/MockContentProvider.java
ock/MockContentResolver.java
ock/MockContext.java
ock/MockCursor.java
ock/MockDialogInterface.java
ock/MockIContentProvider.java
ock/MockPackageManager.java
ock/MockResources.java
ock/package.html
uitebuilder/AssignableFrom.java
uitebuilder/InstrumentationTestSuiteBuilder.java
uitebuilder/SmokeTestSuiteBuilder.java
uitebuilder/TestGrouping.java
uitebuilder/TestMethod.java
uitebuilder/TestPredicates.java
uitebuilder/TestSuiteBuilder.java
uitebuilder/UnitTestSuiteBuilder.java
uitebuilder/annotation/HasAnnotation.java
uitebuilder/annotation/HasClassAnnotation.java
uitebuilder/annotation/HasMethodAnnotation.java
uitebuilder/annotation/package.html
uitebuilder/package.html