• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/app/
History log of /frameworks/base/core/java/android/app/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
27cba3895282ac1da1f1d43d37d53f8113527569 23-Jan-2013 Adam Powell <adamp@google.com> Touch action bar title text: you will go to space today!

Title/subtitle text in an action bar is now a full alias for home/up.

Add some prototype ActionBar functionality around titles for future
API consideration.

Bug 7966136

Change-Id: I14377121dcb976d0a5f1e1862f35c3d267eb5458
ctionBar.java
026f91915f2ad710b93284b9a604d3c39161b2ed 14-Jan-2013 Scott Kennedy <skennedy@google.com> am 08342698: Merge "docs: Fix a bunch of issues" into jb-mr1-dev

* commit '083426980dbe6607a0cfc8b4ec5944d5b414ecbe':
docs: Fix a bunch of issues
7ed189e457b16c06b0425bd28aeeb1df5c8ff5b8 12-Jan-2013 Scott Kennedy <skennedy@google.com> docs: Fix a bunch of issues

External tracker 42609
External tracker 42607
External tracker 42604
External tracker 42600
External tracker 42574
External tracker 42450
External tracker 41050
External tracker 40995
External tracker 40970
External tracker 40935
External tracker 40507
External tracker 40481
External tracker 40435
External tracker 40406
External tracker 40297
External tracker 40281
External tracker 39978
External tracker 39929
External tracker 39803
External tracker 39715
External tracker 39441

Change-Id: If4215cef850ba8e4e8df356a68192566806e7914
lertDialog.java
dmin/DeviceAdminInfo.java
25505f959cc5faada8f9d2af7784f898439fc264 09-Jan-2013 Scott Main <smain@google.com> am cdf5106a: docs: a few doc bugs

* commit 'cdf5106aafb77d17584d5401b207cbcc7a20f5f3':
docs: a few doc bugs
cdf5106aafb77d17584d5401b207cbcc7a20f5f3 09-Jan-2013 Scott Main <smain@google.com> docs: a few doc bugs

Change-Id: I20d2ff2f3abfe674ca20f713c7213ee031c9bb1d
ctivity.java
8aa9ae69a24c3ae00106235c119e1b02de894839 05-Dec-2012 Daniel Sandler <dsandler@android.com> Fix longstanding nonsense in javadocs.

Change-Id: Iea2c7b8e5dc7591a9586a628e891d71d215daec6
otification.java
38e847004978031c2b914714e92bc5407ba3ce65 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7585876: When changing the font settings, the movie..." into jb-mr1.1-dev
7ac8bbddfcaa2539f6311be54323d22f2dcc4a35 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7585876: When changing the font settings, the movie...

...just keeps attempting to load and doesn't play on the TV

Change-Id: Ifcdc969a037a113224632f907d55f60a168dd05a
resentation.java
10479a29cbdc55cfd25b30cd792a151234b55fa6 29-Nov-2012 Adam Powell <adamp@google.com> Merge "Clean up behavior of type arguments for MediaRouter#getSelectedRoute" into jb-mr1.1-dev
68e0da7e397f6808a90509615c08c62bb00af6ba 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Quiet down a lot of logging." into jb-mr1.1-dev
1cf2ca83584a4cf0aa3ded787bd191b9a60e3521 28-Nov-2012 Adam Powell <adamp@google.com> Clean up behavior of type arguments for MediaRouter#getSelectedRoute

MediaRouter's policy so far has been around a single selected route,
but when route types are entirely orthogonal this should not be the
case. However we still don't want to get into a situation where we
have multiple, very different routes selected for different types at
the same time, we still want to have more of an element of
predictability.

Behavior of getSelectedRoute is now:

* If the selected route matches at least one type with the requested
type flags, it is still considered selected for that request.

* If the caller specifically requested the selected user route and the
currently selected route is not a user route, return null.

* If the requested type flags do not match any types with the selected
route, return the default system route.

Note that this is "any" behavior instead of "all" - this matches
existing usage of the method. We may consider adding an "all" variant
later on.

Bug 7588042

Change-Id: I3a79d8153ca6b882fd3ef6b9b1de8f538873dec2
ediaRouteButton.java
40e9f2922cae76ffcbc521481e5be8e80e8744ef 28-Nov-2012 Dianne Hackborn <hackbod@google.com> Quiet down a lot of logging.

Also fix a little problem where the USER_STARTED broadcasts
were not being sent as ordered broadcasts(!).

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
ctivityThread.java
ontextImpl.java
bf0e106a7d755355d7ff53a2b319e2e91c154641 28-Nov-2012 Daniel Sandler <dsandler@android.com> Merge "Cleanups in Notification.java." into jb-mr1.1-dev
8103890a59de6ed4abaedaad80e66666ea59f9b5 27-Nov-2012 Dianne Hackborn <hackbod@google.com> Improve debugging for issue #7586414: AlarmManager wakelocks held

In alarm manager, print a summary of the top 10 alarms by time
being executed. Keep track of execution time (and wake count) of
each type of alarm for each application so this can be printed in
the summary (and used to compute the top 10 alarms). Rework how
the alarm summary stats are tracked so that we don't need to hold
on to the full Intent for each stat and can get the Intent information
at the time the alarm is sent rather than waiting for whatever Intent
comes back in the result.

Also in the battery stats: sort the kernel wake locks by time, add
a new section showing all partial wake locks across all applications
sorted by time.

Finally a new LocalLog class that is used by AlarmManager to log
important warning messages, so these can also be later found in
its dumpsys output.

Change-Id: Icc07810053e60fb623a49937e696819cb8352b06
ctivityManagerNative.java
ActivityManager.java
endingIntent.java
6738eeec009d266e6b1a20c19f94d72874b89b31 16-Nov-2012 Daniel Sandler <dsandler@android.com> Cleanups in Notification.java.

Bug: 7555827 // remove named TODO, fix toString output
Bug: 6440961 // remove longstanding and mysterious "MUMBLE MUMBLE"
Change-Id: I8b5e16fb1f7ccbe5cbda37f260fdc6bc0e1b8ee3
otification.java
faa38a08d5998e32dcfe21e084076cbbb64ca0ea 13-Nov-2012 Joe Malin <jmalin@google.com> am 4422596d: am ce37f1da: am 4979a0b5: am 5f32d337: Merge "Notification.java javadoc: addAction" into jb-dev-docs

* commit '4422596ddb295f812bb0970ec7f75d3c45d05020':
Notification.java javadoc: addAction
4422596ddb295f812bb0970ec7f75d3c45d05020 13-Nov-2012 Joe Malin <jmalin@google.com> am ce37f1da: am 4979a0b5: am 5f32d337: Merge "Notification.java javadoc: addAction" into jb-dev-docs

* commit 'ce37f1da3619dcb4e53ca014cf4a17885cc3af0f':
Notification.java javadoc: addAction
ce37f1da3619dcb4e53ca014cf4a17885cc3af0f 13-Nov-2012 Joe Malin <jmalin@google.com> am 4979a0b5: am 5f32d337: Merge "Notification.java javadoc: addAction" into jb-dev-docs

* commit '4979a0b59486d737a4d9267af9b38f237705e26f':
Notification.java javadoc: addAction
4979a0b59486d737a4d9267af9b38f237705e26f 13-Nov-2012 Joe Malin <jmalin@google.com> am 5f32d337: Merge "Notification.java javadoc: addAction" into jb-dev-docs

* commit '5f32d3375b13e581d3101ed8e928fd6a463f3809':
Notification.java javadoc: addAction
43d84518f2380e45659fbb31455479ef018b9329 09-Nov-2012 John Spurlock <jspurlock@google.com> Disable navbar searchlight if search assist not available.

Bug:7506441
Change-Id: I55c740d4c3a45b9f7fdfa38346d1bc3fb1299153
earchManager.java
8d40d04afadd9fd285797fed92bab8f8b0f9dfde 05-Nov-2012 Joe Malin <jmalin@google.com> Notification.java javadoc: addAction

Change-Id: I86fe116f50d8462494cfc9f138e1c885ae5a41ea
otification.java
8768278974082decc8fe7b4a6da132bd38f30d7c 07-Nov-2012 Daniel Sandler <dsandler@android.com> Fix docs to refer to the correct class.

Bug: 6676920
Change-Id: Ib79635cb3ff464b4686268fcf64b99cacaa9e627
otification.java
7c6863be5028346a2074d1489386c35083209ca7 05-Nov-2012 Scott Main <smain@google.com> am 44c4bba2: Merge "docs: fix markup error bug: 7456071" into jb-mr1-dev

* commit '44c4bba2530b430895ef1c72e8ce2712e8ca9f6e':
docs: fix markup error bug: 7456071
44c4bba2530b430895ef1c72e8ce2712e8ca9f6e 05-Nov-2012 Scott Main <smain@google.com> Merge "docs: fix markup error bug: 7456071" into jb-mr1-dev
9cc531cc26d928c7b53105def0d80647fba1acd7 05-Nov-2012 Scott Main <smain@google.com> docs: fix markup error
bug: 7456071

Change-Id: I3d34a2d6741784d9b33af54afd6d97803720264d
resentation.java
81e77360b2fe6695e9baa4f1818fed14055189f9 03-Nov-2012 Jim Miller <jaggies@google.com> Merge "Update DevicePolicyManager documentation with new keyguard flags" into jb-mr1-lockscreen-dev
3520774a91aee6fd59200aef4238efbdb580202a 02-Nov-2012 Jim Miller <jaggies@google.com> Update DevicePolicyManager documentation with new keyguard flags

Change-Id: Idb1fa306a5706ba5b9543d7dff5450a4af5c394f
dmin/DevicePolicyManager.java
ecbd68b0de73a16ce9d0cf2baa7153e1db14b34a 02-Nov-2012 Amith Yamasani <yamasani@google.com> Resolve USER_ALL when inflating notification views.

Fixes the OTA icon display when the OTA is to be shown to all users.

Bug: 7462511
Change-Id: I185d9d5340d866d0a4b0ae273a361e8db160e33b
otification.java
92130f6407dc51c58b3b941d28a6daf4e04b8d62 25-Oct-2012 Jeff Brown <jeffbrown@google.com> Add MediaRouter API to get presentation display.

This new API makes it possible for an application to ask on
which Display it should show a Presentation based on the currently
selected media route.

Also added a new API on DisplayManager to query displays that
support a certain category of uses.

Improved the documentation of the Presentation class to explain
how to choose an appropriate Display for presentation.

Bug: 7409073
Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
resentation.java
6018aeec27914f138f36b00d8f00136a87562fd3 23-Oct-2012 Craig Mautner <cmautner@google.com> Add throwing InvalidDisplayException from addView.

Throw an InvalidDisplayException to addView if the display being
added to has been removed. Handle this exception in Dialog.show()
by removing the view after it has been added and rethrow the
exception from there.

Add javadoc to ViewManager.addView and Presentation.show explaining
the new exception and how best to handle it.

Bug: 7368565 partially fixed. It remains for the Videos app to
handle Presentation.show throwing the InvalidDisplayException.

Change-Id: Ib4303c9b3f7bf7a0cfa95d19bd60a0c128658c48
resentation.java
cd75706117432e33d11639e675bcff50479a6bb9 20-Oct-2012 Amith Yamasani <yamasani@google.com> System server should always send broadcasts to a specific or all users

Bug: 7368245

Log a warning if the system process calls unqualified sendBroadcast()
and other calls.

As a result of the logging above, found a few more method calls such as
bindService() that would benefit from being more explicit to avoid
future confusion and reduce the log warnings.

Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
ontextImpl.java
2dd0c3a576925be4b5f0438a57af626e6e162e0e 22-Oct-2012 Daniel Sandler <dsandler@android.com> Merge "New lockscreen: allow search gesture from nav bar." into jb-mr1-dev
935415a050be75f582f632dd168be9fbb047137b 19-Oct-2012 Christopher Tate <ctate@google.com> Merge "Document immutable requirement of SharedPreferences return objects" into jb-mr1-dev
d5483c3157a28e2ebc05a0c918df8a2be0a7fc89 19-Oct-2012 Daniel Sandler <dsandler@android.com> New lockscreen: allow search gesture from nav bar.

Show a lights-out pip if home is invisible but search is
still OK.

Change-Id: Ifc69c12296cc8e8cf7c89dd06173d7abf499a878
tatusBarManager.java
01ed79c5786c527628544828abf8b70d02b989cd 19-Oct-2012 Christopher Tate <ctate@google.com> Document immutable requirement of SharedPreferences return objects

In particular, make it quite clear that the set returned by
getStringSet() must not be modfied by the app, period; and
add a similar caution about the map returned via getAll().

Also, fix a bug that could lead to unexpected data being committed
if the set instance passed to putStringSet() was mutated by the
app after that call (including mutations after commit() was
invoked).

Bug 7312641

Change-Id: If9a1be1b0669ac879ff7a7dc67a8805548ea10cc
haredPreferencesImpl.java
346acb123dd87396726941b484be6fdd5cd4ea44 16-Oct-2012 Christopher Tate <ctate@google.com> Sanity-check erroneous backup agent instantiations

Two distinct changes:

Fix a bug seen in the wild where a newly-launched application will be
spuriously asked to instantiate a backup agent. What was happening
there is that some Activity Manager state was being left stale in certain
circumstances, and then in combination with app uninstall / install, there
could be a case where uid reuse wound up looking like an app identity
match.

We now positively verify before instantiating the agent that the intended
backup target package is uid-compatible with the app process that the
instantiation was requested of. The incomplete bookkeeping in the
Activity Manager has also been tightened up, and the Backup Manager is
more aggressive about cleaning up pending operations pertaining to
apps being uninstalled.

Bug 5874010

Change-Id: Ic389f4a96c9dcd0ba6b3962b579084033d8ae9f8
ctivityManagerNative.java
ctivityThread.java
ActivityManager.java
6ffbe600696396a0444f20f61223923146e9520b 12-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7325609 FragmentBreadCrumbs should be RTL-aware" into jb-mr1-dev
3cc10f420ff432d7c45d0eefe0b92a0c264b00fa 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7325609 FragmentBreadCrumbs should be RTL-aware

- add horizontal gravity support
- use gravity for doing layout depending on layout direction

Change-Id: I562e824d15da9b00e1392f125b293aee21f8ee16
ragmentBreadCrumbs.java
8d866e52b209cb683159f2701cc4204163de245c 11-Oct-2012 Dianne Hackborn <hackbod@google.com> More on issue #7318666: hide developer options from user build

The action to launch the developer settings panel is now required
by the platform.

Add a new hidden API to LauncherActivity so I can better integrate
these into the existing Dev Tools app.

Change-Id: I9c082622fd4c8f4a5be51cabb664741a3782ece1
auncherActivity.java
c0bd747b0605af251ff136277f14220a5a4c9818 09-Oct-2012 Dianne Hackborn <hackbod@google.com> Further work on issue #7307399: Framework needs a new pre-user-shutdown...

...phase & callback API

I realized there were a few things wrong with what was there. The new
ACTION_USER_STARTING was not being sent for the first user at boot, and
there was an existing problem where ACTION_USER_STARTED was sent every
time there was a user switch.

Also improved some debug output of broadcasts to make it easier to see
what is going on in this stuff, and better reporting of why a service
couldn't be started.

Change-Id: Id8a536defbbad1f73d94a37d13762436b822fbe3
ontextImpl.java
a8a9bd65bf5865d83ef44f54552ca39522bfbcf0 10-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7311376: Add API to allow apps to know if they are...

...running as the foreground user

Add UserManager.isUserRunning() which is the public version of the
existing method on ActivityManager.

Also add UserManager.isUserRunningOrStopping() since that seems like
it will be useful.

And fix the internal function that returns the array of currently
running users to not include stopped users.

Change-Id: I84672fa8748fc027fd402729586b5603f640e498
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
9c2a38ed10592a54d9bb753ef882632f7a8cd446 08-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix resource reading for secondary users" into jb-mr1-dev
64442c11555d828a41af0b8a58ab933357889061 07-Oct-2012 Amith Yamasani <yamasani@google.com> Fix resource reading for secondary users

Bug: 7086881

Load resources for the correct user.

Also clean up package monitoring and locking.
Added dump method to SearchManagerService.

Sneaking in a change to make crash dialogs visible to current user.

Change-Id: Id56dd15428d66084de995e28be242db27c15fda3
ontextImpl.java
earchableInfo.java
6f2a3d298205522f2e799800dace0e6c345dd4d3 06-Oct-2012 Adam Powell <adamp@google.com> Quick settings user display and switching

Load user information for the current user and display in quick
settings tile. Name is pulled from the contacts DB from the "Me"
profile, which will override the raw name on the system user if
needed.

Open the user switcher on the lock screen if this tile is clicked and
there is more than one user registered on the system. If there is only
one user, show the "Me" quick contact card.

Darken the background protection behind the user's name on the QS tile
layout so that it's readable against very light profile pic
backgrounds.

Bug 7175023
Bug 7257997

Change-Id: Ia1e7dd7af72dbd49113a827f9228e0a32e20a0dc
ontextImpl.java
5fe7e2a3043d6a8ca933c77ccf95c791b57b221a 04-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6968859: home not exiting an ANR'd dream

Add a new call to the activity manager for the input dispatcher
to report about any pid having an ANR. This has a new feature
where it can also tell the activity manager that it is above the
system alert layer, so the activity manager can pop its ANR dialog
on top of everything if it needs to. (Normally we don't want
these dialogs appearing on top of the lock screen.)

Also fixed some debugging stuff here and there that was useful
as I was working on this -- windows now very clearly include
their uid, various system dialogs now have titles so you know
what they are in the window manager, etc.

Change-Id: Ib8f5d29a5572542cc506e6d338599ab64088ce4e
ctivityManagerNative.java
ActivityManager.java
c428aae6429c3fd5e2037c3793af399d9f6e23bf 04-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7267494, issue #7212347

7267494 Calendar is not syncing
Check for whether a content provider is dead before returning
it. This is kind-of a band-aid, but probably the right thing
to do; I'm just not sure exactly the full details of why this
problem is happening. Hopefully this "fixes" it, though I don't
have a way to repro to tell.

7212347 System power off dialog is only visible to user 0
Make it visible. Also turn on some battery debugging stuff and
clean it up so we can just keep it.

Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
ctivityThread.java
720d14db87a5683ef2d4ad976fd8c28a5d2af611 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7273573: Need API to find out if activity is destroyed" into jb-mr1-dev
fc3f24b4b60c10e0d3f41f70df37e11ea311cc2c 02-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make USB services multi-user aware.

USB settings are now isolated per-user, since they revolve around
installed packages. User-specific settings are returned based on
calling user, or referenced by UserHandle passed to SystemUI. Each
settings Context is wrapped as a specific user, so all broadcasts are
sent correctly. Upgrades any existing USB settings to OWNER.

Physical events, like new devices, are routed to the currently active
user. Switch to using AtomicFile when persisting settings.

Bug: 7244888
Change-Id: I8a723ad3d55ac1bff99276c5f3a3f5e8f013432f
ontextImpl.java
6d9dcbccec126d9b87ab6587e686e28b87e5a04d 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7273573: Need API to find out if activity is destroyed

Also update 17.txt with all of the recent API additions.

Change-Id: I21fc669267935261a741c19e22b0bf35c3a76b81
ctivity.java
ragmentManager.java
11d8481f10a12caef0cfd9be7fe86e61d953d58f 02-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix framework side of #7132432 com.android.vending:..." into jb-mr1-dev
689586d067c780c704b6ccef70adf5344b395fb6 02-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix framework side of #7132432 com.android.vending:...

...java.lang.IllegalStateException: Can not perform this action
after onSaveInstanceStateat android.support.v4.app.FragmentManagerImpl
.checkStateLoss(FragmentManager.java:1300)

Framework fragment manager also needs to be told its state is not
saved earlier.

Change-Id: Ie5bb327fca6208f7eea6146a1b3223c61c9ecef6
ctivityThread.java
2ee6a2a83262d05a566bd713d238e89edfd33a29 01-Oct-2012 Adam Powell <adamp@google.com> MediaRouter/Wifi Display improvements

* Don't select the default route on initialization in a process

* Add "connecting" state to MediaRouteButton

Bug 7258981
Bug 7262522

Change-Id: I5cd39b09843783b7e1e17620ca33193f0f3b8fca
ediaRouteButton.java
c56e5600501a5c376dc13e6a99fcec7782fc8718 01-Oct-2012 Adam Powell <adamp@google.com> Merge "Construct a task stack for picking a wifi network from notification" into jb-mr1-dev
d56b4d1db34bd6928f599e7e9a7321c2a81cb995 01-Oct-2012 Adam Powell <adamp@google.com> Construct a task stack for picking a wifi network from notification

Bug 7001327

Change-Id: I5a79e6933cd33386cd0aa4df626f15902deedd67
endingIntent.java
askStackBuilder.java
fe37f8f51d90fc4c6230e54dcd1270df5fcc6be3 30-Sep-2012 Dianne Hackborn <hackbod@google.com> Work on issue #6949468: android.dpi.cts.ConfigurationScreenLayoutTest...

...#testScreenLayout failures on JO

This doesn't actually fix it; I have concluded that the test is broken
(the platform is correctly reporting that this is a NOT LONG device
because in portrait once you account for the status bar and system
bar our size is 880dp high and 600dp wide, which is not enough for us
to be in the LONG config).

However while working on this I noticed that the code for computing
the configuration of the external display was wrong. I have fixed
that by putting this code for computing these parts of the configuration
in a common place that both the window manager and external display
code can use.

Change-Id: Ic6a84b955e9ec345a87f725203a29e4712dac0ad
ctivityThread.java
3ff8e1a80058e5557d13693d3223e1aa011c0038 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev
d4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7211769 and #7244492, thrash around on #7226656.

Issue #7211769: Crash dialog from background user has non-working "report"

The report button now launches the issue reporter for the correct user.
Also for crashes on background users, either disable the report button,
or simply don't show the dialog depending on the build config.

Issue #7244492: Bugreport button in Quick Settings doesn't actually do anything

Now they do.

Issue #7226656: second user seeing primary user's apps

I haven't had any success at reproducing this. I have tried to tighten up
the path where we create the user to ensure nothing could cause the
user's applications to be accessed before the user it fully created and thus
make them installed... but I can't convince myself that is the actual problem.

Also tightened up the user switch code to use forground broadcasts for all
of the updates about the switch (since this is really a foreground operation),
added a facility to have BOOT_COMPELTED broadcasts not get launched for
secondary users and use that on a few key system receivers, fixed some debug
output.

Change-Id: Iadf8f8e4878a86def2e495e9d0dc40c4fb347021
ctivityManagerNative.java
ActivityManager.java
705ab808cf023e0cc38c2ba7cdb9571942cdc04f 17-Sep-2012 Adam Powell <adamp@google.com> Add wireless display selection support to MediaRouter.

* Adds the new route type LIVE_VIDEO

* Wireless displays support both LIVE_VIDEO and LIVE_AUDIO, making
wireless display routes valid selections in when apps make selecting
live audio routes available.

* MediaRouter will only report/manipulate wireless displays that have
already been paired at the system level.

Bug 7177920

Change-Id: Ic221b8687d77b4c0df9801c396b74870e86206e9
ediaRouteButton.java
ad8bda219e9d9b18144ace7853997c536bb2f1fc 28-Sep-2012 Christopher Tate <ctate@google.com> am 64d1f3ef: DO NOT MERGE - Full (local) restore security changes

* commit '64d1f3efd759b70462aecb6cf1d8c733872a8911':
DO NOT MERGE - Full (local) restore security changes
0dc2b81ce1400ae23faa5cc386caeef235856307 28-Sep-2012 Daniel Sandler <dsandler@android.com> Merge "Cleanup internal status bar APIs." into jb-mr1-dev
5e9187a3cf2a33e559212004795e1278eb60da81 28-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Fix "system" resources; more context user work." into jb-mr1-dev
ded653b168b19f6061889907d4f562d764c5559b 28-Sep-2012 Jeff Sharkey <jsharkey@android.com> Fix "system" resources; more context user work.

Special-case "system" resources, since it doesn't have an
ApplicationInfo. Also switch Context and PackageManager to using
the wrapped UserHandle for outgoing calls.

Bug: 7242361
Change-Id: I1ecd2a4752399a6dce2de97c59bd5545996c9a99
pplicationPackageManager.java
ontextImpl.java
64d1f3efd759b70462aecb6cf1d8c733872a8911 27-Sep-2012 Christopher Tate <ctate@google.com> DO NOT MERGE - Full (local) restore security changes

(1) Prevent full restore from creating files/directories that are
accessible by other applications

(2) Don't restore filesets from "system" packages; i.e. any that runs
as a special uid, unless they define their own agent for handling
the restore process.

Bug 7168284

This is a cherry-pick from the originating tree.

Change-Id: I9f39ada3c4c3b7ee63330b015e62745e84ccb58f
ackup/FullBackup.java
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
pplicationErrorReport.java
3f91e43eb00764cebfdffb42a3ddcb723ae439e0 27-Sep-2012 Christopher Tate <ctate@google.com> Merge "Full (local) restore security changes" into jb-mr1-dev
f6d6fa8cbc0251da1900e858bb0379cda5014b6f 27-Sep-2012 Christopher Tate <ctate@google.com> Full (local) restore security changes

(1) Prevent full restore from creating files/directories that are
accessible by other applications

(2) Don't restore filesets from "system" packages; i.e. any that runs
as a special uid, unless they define their own agent for handling
the restore process.

Bug 7168284

Change-Id: Id6a0cb4c113c2e4a8c4605252cffa41bea22d8a3
ackup/FullBackup.java
11cf178100e71d3f9f34ab5865e03a277c5eadaa 27-Sep-2012 Daniel Sandler <dsandler@android.com> Cleanup internal status bar APIs.

IStatusBarService.collapseQuickSettings is gone;
collapseNotifications is now collapsePanels, which does what
collapse() used to do. Similarly,
IStatusBar.animateCollapseQuickSettings is now simply
IStatusBar.animateCollapse().

Bug: 7245229
Change-Id: Id157d2fdf34926d3c85ffa8b81c741a5359aede4
tatusBarManager.java
f43a33c5ea5adb8d100ab0c3da965bac33155cb8 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Work on issue #7232641: ISE crash when rotating phone in label list mode

This doesn't fix the problem; I think it is an app problem. It does
improve a bunch of the debugging to help better identify what is going
on, and introduces some checks when adding a fragment to fail
immediately if we are getting into a state when a fragment is going to
be in the added list multiple times (which is pretty much guaranteed
to lead to a failure at some point in the future).

Change-Id: If3a8700763facd61c4505c6ff872ae66875afc8d
ackStackRecord.java
ragmentManager.java
e521573097390ce5465fc9b88dee2ae62f2317c6 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix issue #7211766: bindService() to User u0 While u10 is..." into jb-mr1-dev
b12e1354f25f04e9c9a71da76c6fca858b7d39d0 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Maybe fix issue #7211766: bindService() to User u0 While u10 is...

...Forground Sometimes Doesn't Take

The main change here is a one-liner in ActiveServices to check the
uid when deciding whether to remove an item from mPendingServices.
This could cause the problem being seen -- if the same service for
two users is starting at the same time, the second one would blow
away the pending start of the first one. Unfortunately I have had
trouble reproducing the bug, so I don't know if this is actually
fixing it. It's a bug, anyway.

The reason so much has changed here is because I spread around
logging and printing of the user ID associated with operations and
objects to make it easier to debug these kind of multi-user things.

Also includes some tweaks to the oom manager to allow more background
processes (I have seen many times in logs where we thrash through
processes because the LRU list is too short), plus to compensate an
additional time-based metric for when to get rid of background processes,
plus some new logic to try to help things like Chrome keep around
their service processes.

Change-Id: Icda77fb2a1dd349969e3ff2c8fff0f19b40b31d3
ctivityManagerNative.java
ctivityThread.java
1951db86f527ff4e8c2ddf4306779ce956cd372d 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user ringtone playback." into jb-mr1-dev
65c4a2b26cd8776b0927e9b0e07ecf53bd31b627 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user ringtone playback.

Change RingtonePlayer to open content:// Uris based on requesting
UserHandle. Grant SystemUI visibility to all emulated storage so
it can play ringtones for apps without READ_EXTERNAL_STORAGE.

Resolve canonical file:// Uris before passing out of source app,
replacing any /emulated_legacy/-style paths with user-specific
variant so they can be opened by SystemUI. Calling for RemoteViews,
Ringtones, and Notifications.

Bug: 7202982
Change-Id: Ibf0eca8df80c1486711144a7b648f464aadfe099
otificationManager.java
b32e221699201cb647beae3fe0a1771fd5a41cf4 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I332f020f,I632648ac into jb-mr1-dev

* changes:
Update references to migrated global settings.
Handle user switched for settings changes.
61ad1bacf8985e088c039d90123bf0d2a5de94fe 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix AbsListView to correctly retain its state if not layed out." into jb-mr1-dev
c91fb5875bfd7f91d50d6fe939873872b53c8b2f 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev
e20a177d3f147f3011647c3bdab401f90b2c5d1d 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding a global accessibility action to open quick settings.

1. Added APIs for opening the quick settings to the StatusBarManagerService
and the local StatausBarManager. The new APIs are protected by the old
EXPAND_STATUS_BAR permission.
Renamed the expand* and collapse* non-public APIs that are expanding
the notifications to expandNotifications* collapseNotifications* to
better convey what they do given that this change adds
expandQuickSettings* and collapseQuickSettings*.
Added a global action to the accessibility layer to expand the quick
settings which is calling into the new status bar manager APIs.

bug:7030487

Change-Id: Ic7b46e1a132f1c0d71355f18e7c5a9a2424171c3
tatusBarManager.java
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
ctivityThread.java
pplicationPackageManager.java
ontextImpl.java
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
ownloadManager.java
e181bd9b5e6a3e5382a1ff3c40b9ce2cb43c7971 25-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix AbsListView to correctly retain its state if not layed out.

This covers a hole where if the list view restores its state and
then is asked to save its state before its layout happens, the
original state is lost. Instead we just store that original state.

Also tweak FragmentManager to make sure an inactive fragment can
not have its state moved up out of CREATED.

Bug #7232088: ListView saved state being lost in some cases

Change-Id: I5b40f37c259c7bcbe17dd1330016f9531f1b5534
ragmentManager.java
7951c459aefeb012638477b762e19b792ecbe009 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

Change-Id: Ifc2328e30a52c2baebc1322c9b161104dcf21618
7a7c6aa0c35d80145e163d9e637180d3be127441 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

Change-Id: I821410e9ffcc7148139465c04ef335f0becc18c2
ea7e91514ee1968d15713e82a5cca745e2c46a05 25-Sep-2012 Amith Yamasani <yamasani@google.com> AppInfo from Notifications for secondary users

Required wiring up startActivitiesAsUser()

Bug: 7224950

Also fix a bug in navigateUp in secondary user

Change-Id: I114ae2de0457362d62e899fdb94b12239a3eb778
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
nstrumentation.java
askStackBuilder.java
efd43bdb831351f1b0332ec3d55197e61e38bbb3 22-Sep-2012 Jeff Brown <jeffbrown@google.com> Force activities to run on the second display for testing.

This is a simple hack for testing and development purposes.
It makes the framework place the main window of an activity
on to a secondary display instead of on the default display.

Set the "debug.second-display.pkg" to a substring of the
package name of the activity that you want to have show
up on the secondary display, such as "com.example.android.apis"

Bug: 7183618
Change-Id: I0a9e7f27c8ff253253b9de57d4bc49f31d95a0e2
ctivityThread.java
9ceac5a02f08bc350d6047660ed75019313f4703 24-Sep-2012 Adam Powell <adamp@google.com> TaskStackBuilder and intents without an explicit target

When Activity#getParentActivityIntent() returns an Intent without an
explicit target, resolve it in order to determine a correct parent
stack.

Bug 7223318

Change-Id: I3e88129f1e538cc3d932d6b4f735a5bec54bb4ad
askStackBuilder.java
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
endingIntent.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
ctivityManagerNative.java
ctivityThread.java
ontextImpl.java
ActivityManager.java
otification.java
0a5c5567f2d7e203d95c80a8d3353d0acd98b5f9 22-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Multi-user support for the accessibility layer." into jb-mr1-dev
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
pplicationPackageManager.java
1ed9fa10de3e94678ddb2929936caa3ff4164cf8 22-Sep-2012 Jim Miller <jaggies@google.com> Merge "Make DPM API for disabling keyguard widgets more generic" into jb-mr1-dev
0887711d0f76d858501fd017259ddfdc1950eb3f 21-Sep-2012 Daniel Sandler <dsandler@android.com> Merge "Add Notification.Builder.setShowWhen(boolean)." into jb-mr1-dev
a95a3b494fd88f83c9f5d32e001452575ba235ec 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Fix javadoc.

Bug: 7172727
Change-Id: I55ee0099ea2e61f5f0a9de7b434fb8fb858ad5f9
resentation.java
6de76d21ff60818f8b296fc8f645897203f475da 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement multi-user PackageMonitor." into jb-mr1-dev
c72fc674a33b8d17585764d09d3bb6c77d7d947e 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Implement multi-user PackageMonitor.

New APIs let you indicate what user(s) to monitor, and tell you
what user is changing when receiving a callback.

Fix package manager to only deliver package brpadcasts to the
running users. (This isn't really a change in behavior, since
the activity manager would not deliver to stopped users anyway).
Make sure all broadcasts that package monitor receives also include
user information for it to use.

Update wallpaper service to (hopefully) now Really Correctly
monitor package changes per user.

Change-Id: Idd952dd274abcaeab452277d9160d1ae62919aa0
ctivityManagerNative.java
ActivityManager.java
e6f6380027d5c209eb17ec2567f00356ad32038a 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7196015: system_server deadlock during setup wizard" into jb-mr1-dev
d053554f80adaa84d4bdde53656ccce5ae3332b6 20-Sep-2012 Geremy Condra <gcondra@google.com> Merge "Push dropbox logging into libcore." into jb-mr1-dev
683ab00a2ec2e02f8ad1296efb381aa72d364b57 20-Sep-2012 Chris Wren <cwren@android.com> fix underfull content bug in inbox and big text templates.

Bug: 7172721
Change-Id: I22019009eec31ca18b54eec5f6ed5b626cee1540
otification.java
48b9b0d068844af9eb37c215484831c4d6b831b0 20-Sep-2012 Jim Miller <jaggies@google.com> Make DPM API for disabling keyguard widgets more generic

This change renames the widget-specific API to be more generic
to allow further disabling of keyguard-specific customizations
in the future. Currently only allows disabling widgets and the
secure camera but can now easily be extended to disable other
features we add.

Fixes bug: 7021368

Change-Id: I3934cc2e7c64e0c6d511efb86980fc38a849708d
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
b7faaf4c4029ea26f5f93958a51b7ae318feb50b 20-Sep-2012 Geremy Condra <gcondra@google.com> Push dropbox logging into libcore.

Change-Id: I74c0644c6938d28c20c42d88d995ffb56a71d703
ctivityThread.java
73c14161ec85629ebd6b5e24605a174305187e24 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7196015: system_server deadlock during setup wizard

Can't aquire the providers lock while holding the main activity thead
lock, because we call into the activity manager with that lock held.

Change-Id: If27326a2caa46480d0f1b98608be9e8a862febe0
ctivityThread.java
09ad0832e0c28fa43a2e2bf53bef87df39bd4416 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Switch to showing top-most thumbnail of recent apps." into jb-mr1-dev
15491c6a728131e322c45bc440500a8a78e4a410 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Switch to showing top-most thumbnail of recent apps.

The way it should have been, and with the new recents enter animation
the way it must be.

Added a new method to retrieve this thumbnail, since it would be less
efficient to use the existing API (which always returns the "base"
thumbnail). Probably at some point that existing API should be tweaked
to always return the top thumbnail instead, but that is for a later time.

Also removed code that would clear the thumbnail associated with an
activity when it is resumed. I don't think there should ever be a
reason to clear a thumbnail -- it's much better to have *something*
for the task, even if it is a little out of date.

Change-Id: I83e6ca6403eb2df5e4de3009dfe8c210e8cf8d5b
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
4adb9d34162b109db3c67e352ad50c76dc7f2d45 19-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "DevicePolicyManager per user" into jb-mr1-dev
599dd7ce9adf8ca067cefb0b191a5ac20ec35a79 15-Sep-2012 Amith Yamasani <yamasani@google.com> DevicePolicyManager per user

Bug: 7136483

Store device policy information for each user and apply them when user switches.

Global proxy can only be controlled by owner.
Camera restriction applies to all users, if any one has an admin that disables it.
Storage encryption can only be controlled by owner, although other users can query the state.
Wipe data will only remove the user if non-zero, wipe the device, if zero.

Change-Id: I359be46c1bc3828fd13d4be3228f11495081c8f2
endingIntent.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
27bd34d9d9fe99f11b80aa0bbdb402fb47ef4158 16-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user MTP.

The current MTP kernel driver at /dev/mtp_usb is exclusive, meaning
only one process can have it open. In addition, each MTP session
with a desktop requires unique object IDs, which doesn't hold true
across users on the device.

To solve these two issues, when switching users we cycle the USB host
stack to disconnect both local and remote MTP connections, giving the
new user's media process a chance to claim /dev/mtp_usb, and causing
the desktop to initiate a new MTP session.

This change also allows BroadcastReceivers to registerReceiver()
allow retrieval of a current sticky broadcast. Adds a system property
to override maximum users. Removes MOUNTED broadcasts for secondary
users. Allows INTERACT_ACROSS_USERS to getCurrentUser().

Bug: 6925114
Change-Id: I02b4a1b535af95fb2142655887b6d15a8068d18a
ontextImpl.java
c33f94e2a50c9b03cb771237e8672743da8b1314 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix API review bugs." into jb-mr1-dev
8832c18d8b63367929c2d394c9c508f56003d400 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix API review bugs.

7173152 API REVIEW: android.content.pm.PackageUserState
7172969 API REVIEW: android.app.PendingIntent
7172730 API REVIEW: android.content.Context
7172726 API REVIEW: android.manifest.permission

Change-Id: Iad470256d3b5ca5596487f6a699ec1871457c3b5
endingIntent.java
49a22f2969df6e4f53653d16400268e8d06aa1c2 18-Sep-2012 Adam Powell <adamp@google.com> Merge "TaskStackBuilder correctness fixes" into jb-mr1-dev
4246f695f44386ce74d94f5be73cde409dc2dd12 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Try again to fix issue #6912004:tap on gmail notification sends me to home screen" into jb-mr1-dev
75e0af8982cd29cfe8a01c18d1e82d7abcfd1711 17-Sep-2012 Adam Powell <adamp@google.com> TaskStackBuilder correctness fixes

* Don't mutate original intents when adding default flags.

* Add the relevant flags to the array returned by getIntents() such
that it can be used directly in a call to startActivities or
similar.

* Deep copy the component intents when building an intent array for
getIntents()

* Clean up some internal code duplication

Change-Id: I71d3b7f30d4f7d8f1cce778d406ea0e513d382c5
askStackBuilder.java
ad9b32115bf8c84a93ab30e6f30f8c46e86d7244 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Try again to fix issue #6912004:tap on gmail notification sends me to home screen

Add a new call to the activity manager to tell it when the activity
is resumed, so it can mark its state as dirty then instead of when
it first tries to create it.

Also tweak things to update the LRU list for the upcoming activity
at the point we start pausing the current activity, to avoid an
inefficiency where we may decide to kill the process of the upcoming
activity if it is at the end of the LRU list.

Change-Id: Ia6dc8c34dc6d4b085a1efbe3a5d5f47721d55078
ctivityManagerNative.java
ctivityThread.java
ActivityManager.java
6b6c90523ed8779aa962ff4f5ef8c368a96269e2 17-Sep-2012 Adam Powell <adamp@google.com> TaskStackBuilder - use the correct package for looking up parents

Fix bug 7179104

Change-Id: Ia5d2d285cf22e97c452e0c385ef38c8bce330491
askStackBuilder.java
5a4010c054a4449156df885ad0f46f8db3263d87 17-Sep-2012 Adam Powell <adamp@google.com> Create main activity intents as needed for TaskStackBuilder/Up nav

If a generated parent intent targets an Activity that itself has no
parent specified, generate the intent using Intent.makeMainActivity
to gather the correct flags for the root intent of a task.

Bug 6457058

Change-Id: I8d4a3823eda752306da18c2c38fa7e57f0a33bf3
ctivity.java
askStackBuilder.java
d65afc65ea5b2bf83889dd88a9c94f895da8aece 16-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "More multi-user stuff." into jb-mr1-dev
5dc5a00e7ebadc085ded7e29feacd17e53698486 16-Sep-2012 Dianne Hackborn <hackbod@google.com> More multi-user stuff.

- New public APIs to find out when a user goes to the foreground,
background, and is first initializing.
- New activity manager callback to be involved in the user switch
process, allowing other services to let it know when it is safe
to stop freezing the screen.
- Wallpaper service now implements this to handle its user switch,
telling the activity manager when it is done. (Currently this is
only handling the old wallpaper going away, we need a little more
work to correctly wait for the new wallpaper to get added.)
- Lock screen now implements the callback to do its user switch. It
also now locks itself when this happens, instead of relying on
some other entity making sure it is locked.
- Pre-boot broadcasts now go to all users.
- WallpaperManager now has an API to find out if a named wallpaper is
in use by any users.

Change-Id: I27877aef1d82126c0a1428c3d1861619ee5f8653
ctivityManagerNative.java
ActivityManager.java
UserSwitchObserver.aidl
WallpaperManager.aidl
allpaperManager.java
ce24985ad636c38b6ee01ec9cdecfb038bfeaeb6 15-Sep-2012 Kenny Root <kroot@google.com> Remove AndroidKeyStore from API

Change-Id: Ibe09d78e5a5b86604f01144f344525bff94c2dde
ctivityThread.java
0c89049ebf463bde186c41fe9fad63ad27182eb2 13-Sep-2012 Daniel Sandler <dsandler@android.com> Add Notification.Builder.setShowWhen(boolean).

No more setting when to 0 to hide the timestamp! *cheering*

Bug: 6915046
Change-Id: I1560a1c2dd366d416d1d059704ca7c63149334eb
otification.java
69689a735695585603244a49386536bc39299227 12-Sep-2012 Geremy Condra <gcondra@google.com> DO NOT MERGE Push event logging down into libcore.EventLogger

This changes the default behavior of the EventLogger from logging
to the normal logs to logging to the event logs.

Change-Id: I4338a1605928b82246a369adb3514bd31cd552e8

Conflicts:

core/java/android/app/ActivityThread.java
ctivityThread.java
b049e212ab7fe8967893c202efcb30fecfdb82fb 08-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include user identifier in external storage paths.

When building external storage paths, always include user in path
to enable cross-user paths and aid debugging.

Each Zygote process continues to only have access to the appropriate
user-specific emulated storage through bind mounts. A second set of
mounts continue supporting legacy /sdcard-style paths. For example,
a process running as owner has these mount points:

/storage/emulated_legacy
/storage/emulated_legacy/Android/obb
/storage/emulated/0
/storage/emulated/obb

Since Environment is created before Zygote forks, we need to update
its internal paths after each process launches.

Bug: 7131382
Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
ctivityThread.java
4dc7a68dbeaa0edd8815b2105915753310d58343 11-Sep-2012 Christopher Tate <ctate@google.com> Set up default (random) Android IDs for all users

Also correct some now-misleading terminology in a permission-check
log message, and fix a bug in which a system component trying to
write to a secondary user's settings would wind up writing the
owner's settings instead.

Bug 7132405

Change-Id: I5b8fafc35720390a01652e386ab5b7c0ad751abe
ontextImpl.java
bc91c5f8b175c20f7e63ee245bd70c7e7bba2ba5 11-Sep-2012 Siva Velusamy <vsiva@google.com> Merge "Report the user id of every app to ddms." into jb-mr1-dev
1676c856d61b97c871dc2be0cb1f1fb1e12e24e9 10-Sep-2012 Dianne Hackborn <hackbod@google.com> Flesh out multi-user in am commands.

Now we default to the current user instead of user 0 for most commands
(except where we can do the command for all users).

Many more commands take a user argument: force-stop, kill, profile,
dumpheap.

Improved help text.

Change-Id: I719a13b4d31b668f57ca21e51d7043ac3e0d4e1b
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
d693dfa75b7a156898890014e7192a792314b757 10-Sep-2012 Siva Velusamy <vsiva@google.com> Report the user id of every app to ddms.

This CL extends the HELO and APNM packets to include the user id
of the application. This allows ddms users to differentiate between
the same app running for multiple users.

Bug 7110696.

Change-Id: I490d0e3781b8fb9db65cf81188677a0955650511
ctivityThread.java
1b8ecc5031051b4bba620fac27552e84ca666496 09-Sep-2012 Dianne Hackborn <hackbod@google.com> A little cleanup.

Change-Id: Ie33fd1b02011606e67ce08df3cce887c07680c60
ragment.java
ragmentManager.java
a3909a93958676d341424d574752bc7b3280d421 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Work around crash when display is removed.

After a display is removed, there may be a brief time
when a Context still exists that is bound to it.
We need to provide metrics in this case.

Bug: 7131637
Change-Id: I11b264a000653adbf0f3da399eaab66c4b40fb2a
ctivityThread.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
pplicationPackageManager.java
5e03e2ca7d25b899b129baad2dd5eca6bf99d88a 06-Sep-2012 Dianne Hackborn <hackbod@google.com> More multi-user stuff:

- New (hidden) isUserRunning() API.
- Maintain LRU list of visited users.
- New FLAG_IS_DATA_ONLY for ApplicationInfo.
- Clean up pending intent records when force-stopping a user (or package).
(Also fixes bug #6880627: PendingIntent.getService() returns stale
intent of force stopped app)
- Fix force-stopping when installing an app to do the force-stop across
all users for that app.
- When selecting which processes to kill during a force stop, do this
based on the actual packages loaded in the process, not just process
name matching.
- You can now use --user option in am when starting activities, services,
and instrumentation.
- The am --user option accepts "current" and "all" as arguments.
- The pm uninstall command now uninstalls for all users, so it matches
the semantics of the install command.
- PhoneWindowManager now explicitly says to start home in the current
user.
- Activity manager call to retrieve the MIME type from a content provider
now takes a user argument, so it will direct this to the proper user.
- The package manager uninstall paths are now implemented around
PackageSetting, not PackageParser.Package. This allows them to work
even if the application's apk has been removed (in which case it only
exists as a PackageSetting, not the PackageParser.Package parsed from
the apk).

Change-Id: I3522f6fcf32603090bd6e01cc90ce70b6c5aae40
ctivityManager.java
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
62bea2f1710be0d1a42c07109fd4307ded660d3b 05-Sep-2012 Dianne Hackborn <hackbod@google.com> Nested fragments.

Change-Id: I79acc19b391352c16b06afee2ca543223c38e364
ctivity.java
ragment.java
ragmentManager.java
oaderManager.java
b8ec470617590fa2025db869e8e80dcce8eaec23 01-Sep-2012 Jim Miller <jaggies@google.com> Update DevicePolicyManager with ability to disable keyguard widgets

Change-Id: I5876e9e180b2a995aaa355fbbb2b67cebb86104d
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
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
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ontextImpl.java
ActivityManager.java
ApplicationThread.java
oadedApk.java
endingIntent.java
2701f325a6d4acd920637d2ff6fd6972a9cf836b 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
430e5b23cf702d57aa662972c43d546806147d76 01-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Centralize the creation of the user system directory" into jb-mr1-dev
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
ctivityThread.java
lertDialog.java
pplicationPackageManager.java
ontextImpl.java
ialog.java
oadedApk.java
resentation.java
61f57379ca2c5b6290c8da7548fa17128f7ab24f 31-Aug-2012 Amith Yamasani <yamasani@google.com> Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

Use it all relevant places that was hardcoding it.
Also, wipe out the user's system directory when user is removed, otherwise old state
might be transferred to a new user.

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a
ackup/WallpaperBackupHelper.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
NotificationManager.aidl
otificationManager.java
endingIntent.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
pplicationPackageManager.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
ctivityManagerNative.java
ontextImpl.java
12631ec35eafc466e0deef315daa5fdfb5066372 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Start implementing concept of "running" users." into jb-mr1-dev
bd6e1500aedc5461e832f69e76341bff0e55fa2b 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Add initial multi-display support.

Split the DisplayManager into two parts. One part is bound
to a Context and takes care of Display compatibility and
caching Display objects on behalf of the Context. The other
part is global and takes care of communicating with the
DisplayManagerService, handling callbacks, and caching
DisplayInfo objects on behalf of the process.

Implemented support for enumerating Displays and getting
callbacks when displays are added, removed or changed.

Elaborated the roles of DisplayManagerService, DisplayAdapter,
and DisplayDevice. We now support having multiple display
adapters registered, each of which can register multiple display
devices and configure them dynamically.

Added an OverlayDisplayAdapter which is used to simulate
secondary displays by means of overlay windows. Different
configurations of overlays can be selected using a new
setting in the Developer Settings panel. The overlays can
be repositioned and resized by the user for convenience.

At the moment, all displays are mirrors of display 0 and
no display transformations are applied. This will be improved
in future patches.

Refactored the way that the window manager creates its threads.
The OverlayDisplayAdapter needs to be able to use hardware
acceleration so it must share the same UI thread as the Keyguard
and window manager policy. We now handle this explicitly as
part of starting up the system server. This puts us in a
better position to consider how we might want to share (or not
share) Loopers among components.

Overlay displays are disabled when in safe mode or in only-core
mode to reduce the number of dependencies started in these modes.

Change-Id: Ic2a661d5448dde01b095ab150697cb6791d69bb5
ctivityManager.java
ctivityThread.java
ontextImpl.java
80a4af2bbc6af42ae605e454bf89558e564f5244 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Start implementing concept of "running" users.

The activity manager now keeps track of which users are running.

Initially, only user 0 is running.

When you switch to another user, that user is started so it is
running. It is only at this point that BOOT_COMPLETED is sent
for that user and it is allowed to execute anything.

You can stop any user except user 0, which brings it back to the
same state as when you first boot the device. This is also used
to be able to more cleaning delete a user, by first stopping it
before removing its data.

There is a new broadcast ACTION_USER_STOPPED sent when a user is
stopped; system services need to handle this like they currently
handle ACTION_PACKAGE_RESTARTED when individual packages are
restarted.

Change-Id: I89adbd7cbaf4a0bb72ea201385f93477f40a4119
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
StopUserCallback.aidl
ac137b3211818f9e72f9ffbaf541ad8a1ef27eb1 27-Aug-2012 Adam Powell <adamp@google.com> Merge "Add setOnDismissListener to AlertDialog.Builder" into jb-mr1-dev
7f02dc5c9c48a01bec459b71ac73a6ad37b9e12c 27-Aug-2012 Adam Powell <adamp@google.com> Add setOnDismissListener to AlertDialog.Builder

Add documentation to setOnCancelListener to clarify that the cancel
event plus the events for the various choice buttons are not the
exhaustive set of ways the dialog can be dismissed, and that a dismiss
listener should be used if the app needs to cover all cases of
dismissal.

Change-Id: I9e9d6f90f6f9ccaeb2c697474ab353e2d78f37b9
lertDialog.java
ialog.java
69ddab4575ff684c533c995e07ca15fe18543fc0 25-Aug-2012 Jeff Sharkey <jsharkey@android.com> Always-on VPN.

Adds support for always-on VPN profiles, also called "lockdown." When
enabled, LockdownVpnTracker manages the netd firewall to prevent
unencrypted traffic from leaving the device. It creates narrow rules
to only allow traffic to the selected VPN server. When an egress
network becomes available, LockdownVpnTracker will try bringing up
the VPN connection, and will reconnect if disconnected.

ConnectivityService augments any NetworkInfo based on the lockdown
VPN status to help apps wait until the VPN is connected.

This feature requires that VPN profiles use an IP address for both
VPN server and DNS. It also blocks non-default APN access when
enabled. Waits for USER_PRESENT after boot to check KeyStore status.

Bug: 5756357
Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
otificationManager.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
ctivityManagerNative.java
pplicationPackageManager.java
ontextImpl.java
ActivityManager.java
7646c773fab6a12b0727c5e25b8d17d6c5263f8e 24-Aug-2012 rich cannings <richc@google.com> Merge "Allow verifiers to extend timeout" into jb-mr1-dev
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
pplicationPackageManager.java
5d1122a3f84e1df80c63aca56310f2cf29bea7dc 23-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7016987: Unable to attach a picture in gmail/emaill composer action." into jb-mr1-dev
f1c26e2fd03e9765fde519e238fc23d4e3d06df2 23-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7016987: Unable to attach a picture in gmail/emaill composer action.

Change-Id: I0c9336bb072b4622a5eab6d3ec104c4cc38e367a
ctivity.java
ontextImpl.java
nstrumentation.java
92d570529c72c00ab456521a5b0237f62a6abdf5 23-Aug-2012 Amith Yamasani <yamasani@google.com> Handle null cache directory

data/android directory doesn't exist sometimes, and hence cache
directory creation fails. Don't crash the process due to that.

Change-Id: I22d7ed5df9c70f021a87029e89a13a11b4b0303b
ctivityThread.java
ontextImpl.java
b4f56b5ea23325a492b61989a94a738be0fe9b8b 22-Aug-2012 Dianne Hackborn <hackbod@android.com> am 8b97ee6d: am b0b4a704: Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"

* commit '8b97ee6d8c26974a6fc9ce85c3d7a07ca1e9cac2':
ActivityThread: Avoid creating duplicate handlers and reuse mH
8b97ee6d8c26974a6fc9ce85c3d7a07ca1e9cac2 22-Aug-2012 Dianne Hackborn <hackbod@android.com> am b0b4a704: Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"

* commit 'b0b4a704400319ceaa1002f3194a40553a00cc82':
ActivityThread: Avoid creating duplicate handlers and reuse mH
b0b4a704400319ceaa1002f3194a40553a00cc82 22-Aug-2012 Dianne Hackborn <hackbod@android.com> Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"
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
ctivityManager.java
pplicationPackageManager.java
a811e0848dc28f73e31a3f84d8ceca3b1f504b52 20-Aug-2012 rich cannings <richc@google.com> Merge "Pass URLs to package verifiers" into jb-mr1-dev
672cfdc5b6194a416eae93f5ebe82cb624e2add6 20-Aug-2012 Kenny Root <kroot@google.com> Merge "Add AndroidKeyStore provider for KeyStore API" into jb-mr1-dev
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
pplicationPackageManager.java
e29df16cb57b69995df597e8a6d95d986c1c43fc 10-Aug-2012 Kenny Root <kroot@google.com> Add AndroidKeyStore provider for KeyStore API

This introduces a public API for the Android keystore that is accessible
via java.security.KeyStore API. This allows programs to store
PrivateKeyEntry and TrustedCertificateEntry items visible only to
themselves.

Future work should include:

* Implement KeyStore.CallbackHandlerProtection parameter to allow the
caller to request that the keystore daemon unlock itself via the
system password input dialog.

* Implement SecretKeyEntry once that support is in keystore daemon

Change-Id: I382ffdf742d3f9f7647c5f5a429244a340b6bb0a
ctivityThread.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
ctivity.java
ctivityManager.java
ctivityThread.java
ontextImpl.java
eyguardManager.java
allpaperManager.java
848c2dc93b6795e171f3dd6f64ea0be65e2762ca 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Stub out display manager service implementation.

Reverting to the previous stub as the display adapter registration
and the logical to physical mapping is not at all what we are going
to need moving forward.

Fixed up the service initialization order so that the display manager
service has a context from the start.

Change-Id: I717f2f1099c7a77180ef207c371ec8329258850a
ctivityThread.java
67645821a5c1501edac684b876e49562c70a9424 19-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Don't create cache directory for isolated processes" into jb-mr1-dev
7335cfd9bb420c570c712ee081bb0927991227dd 19-Aug-2012 Vairavan Srinivasan <vairav@codeaurora.org> ActivityThread: Avoid creating duplicate handlers and reuse mH

sMainThreadHandler is used for notification of changes in
SharedPreferences and refers to a new instance of Handler instead
of the existing instance, mH, of the ActivityThread. Fix to reuse
existing handlers associated with main looper.

Change-Id: I794a5802a9eacdb188bd0619db5e70e3ae89a07d
ctivityThread.java
11de39a5cfa41e6518b7e9d171a0dc5888538c94 18-Aug-2012 Amith Yamasani <yamasani@google.com> Don't create cache directory for isolated processes

They don't have access anyway
This makes Chrome work in secondary users

Change-Id: I4d30581bc6e807901e642893d6964854c0567fec
ctivityThread.java
f337a89b4d6f6fd0a49b6edd7f895f06cb96d28b 18-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "More view hierarchy, fragment debugging." into jb-mr1-dev
4702a856973a553deb82f71b1d3b6c3db5dbf4ba 18-Aug-2012 Dianne Hackborn <hackbod@google.com> More view hierarchy, fragment debugging.

Add a View.toString() method.

Rename all of the View private flags to have a PFLAG prefix to
avoid going insane trying to figure out which constant goes with
which flag.

Activity.dump() now includes a summary of the activity's view
hierarchy, using the View.toString() method.

All exceptions thrown by FragmentManager now perform a dump of
the owning activity state, where appropriate.

Change-Id: I6482e397e10cb5a0612ab02ce6ed5131823437a6
ctivity.java
ragmentManager.java
7fdaa3976d6082bd7e96329240bda478c08b751e 18-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Save preferred activity info with user id." into jb-mr1-dev
a3f133afe885f9e005dfc0584cb7b3b90f75f665 10-Aug-2012 Amith Yamasani <yamasani@google.com> Save preferred activity info with user id.

So each user can have their own set of intent resolution preferences.

ResolverActivity now launches the activity on the correct user, and
persists the preference for the correct user.

Bug: 6961905
Change-Id: I6d3a8a9af89bc649277d4fc8d0f367ee123f8392
pplicationPackageManager.java
d2ae85d41ec1651dd1bf4c33fe31833ba5c5cff5 17-Aug-2012 Michael Jurka <mikejurka@google.com> Merge "Adding a thumbnail scale down animation" into jb-mr1-dev
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
ontextImpl.java
endingIntent.java
9a994b5350731b8169a9b25463f57266ee2988fb 17-Aug-2012 Kenny Root <kroot@google.com> am 050c87f8: am a950daf5: Merge changes Ieb566a2a,I953057cd

* commit '050c87f87e2a48c7bc90f5b15fb6e4e37e667286':
Use Libcore's stat instead of FileUtils#getFileStatus
Use Libcore.os.stat instead of FileUtils
050c87f87e2a48c7bc90f5b15fb6e4e37e667286 17-Aug-2012 Kenny Root <kroot@google.com> am a950daf5: Merge changes Ieb566a2a,I953057cd

* commit 'a950daf5c14a0009c2c62e9c3e0e8d51eb0cf7d9':
Use Libcore's stat instead of FileUtils#getFileStatus
Use Libcore.os.stat instead of FileUtils
98e15e78934a00cf46f2be55472b7fd7a39ac0de 16-Aug-2012 Kenny Root <kroot@google.com> Use Libcore's stat instead of FileUtils#getFileStatus

Remove the last user of FileUtils#getFileStatus and move it to
Libcore.os.stat instead. Then we can remove the JNI code that does the
equivalent of a stat.

Change-Id: Ieb566a2a8a17c2dd0150724b4eb3ac1cc41c823d
haredPreferencesImpl.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
pplicationPackageManager.java
ontextImpl.java
oadedApk.java
endingIntent.java
earchManager.java
832cb229cd748505c90f74ae8154fc3557d61a73 13-Apr-2012 Michael Jurka <mikejurka@google.com> Adding a thumbnail scale down animation

Recents animation will temporarily look a bit
wrong, but a subsequent change will fix this.
ctivityOptions.java
e9c2f18c8ec9c5a09fce0d48a71bb2ce93ca75c4 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Add more debug info when a container view ID can't be found." into jb-mr1-dev
5bf6e1a1dbfffa0732d2cc5dd1d02cf1d2f3b9b4 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Add more debug info when a container view ID can't be found.

Change-Id: Ibb2afc49747bd2d0ac24605cb3ec390334f8abf8
ragmentManager.java
194b6e971668ea32124bdc1b0f534fcb3e06ef9f 15-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Power manager rewrite." into jb-mr1-dev
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

The major goal of this rewrite is to make it easier to implement
power management policies correctly. According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed. Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off. At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state. Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once. Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components. For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed. For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready. An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants. Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger). This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep. This change
removes ambiguity around forcing or disabling user activity
for various purposes. To wake the device, use wakeUp().
To put it to sleep, use goToSleep(). Simple.

The power manager service interface and API has been significantly
simplified and consolidated. Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
in previous version of the power manager service pending
an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
for more compactly specifying auto-brightness levels
in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
KEEP_SCREEN_ON_FLAG wake lock instead of talking
directly to the battery stats service.
- Optionally support animating screen brightness when
turning on/off instead of playing electron beam animation
(config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
ontextImpl.java
abac0cd16105c60fdd6c5ce37116c972dc7431bb 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Add PendingIntent and IntentSender APIs to get user handle." into jb-mr1-dev
c7501279ee36a80fc8dc98d8eb3e6393a2217909 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Add PendingIntent and IntentSender APIs to get user handle.

Also uid.

Change-Id: I0a328d0cc2bbc17dc0a49b7b8b8d515af80f1e15
endingIntent.java
34743ac7d688a7ecf4daec84078fc7ec74a6dac9 15-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Add API to create new contexts with custom configurations." into jb-mr1-dev
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
ctivityThread.java
pplicationPackageManager.java
ontextImpl.java
oadedApk.java
07d1b289041c67d42e1ad3fc9343833d8a781998 15-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Launch ASSIST intent on the current user" into jb-mr1-dev
a5d1dc9d0322d2c7b7d7f13816fd551a7042c2a3 14-Aug-2012 Scott Main <smain@google.com> am bd63fb87: am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev

* commit 'bd63fb875c49d69d5969df35ae159bd17cadb730':
docs: misc bug fixes from external issues
bd63fb875c49d69d5969df35ae159bd17cadb730 14-Aug-2012 Scott Main <smain@google.com> am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev

* commit '6958c161a9f12aaa1db33bdc526040c3691638dc':
docs: misc bug fixes from external issues
c1d07a4bd26c0ecf87bfa151ae43cb92c0c73791 14-Aug-2012 Amith Yamasani <yamasani@google.com> Launch ASSIST intent on the current user

Lockscreen and statusbar now launch the intent on the current user.
Make sure that the intent resolution is made to the package manager
for the specific user, as the app could have been disabled for that
user or may have an alternative app installed.

Change-Id: I93b0f972d6c7e8880b146da83dc3d08a68fe7e51
SearchManager.aidl
earchManager.java
183bf116978e3c44292c9ead2bceb47e972624a1 14-Aug-2012 Scott Main <smain@google.com> docs: misc bug fixes from external issues

Change-Id: I380b65341200c0519a93e2f8969f70f64aec0264
otification.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
pplicationPackageManager.java
ontextImpl.java
8264408f5995534f8e3147b001664ea0df52aaa5 03-Aug-2012 Amith Yamasani <yamasani@google.com> Start the correct settings from the status bar.

Added a new method to Context: startActivityAsUser() requiring the
INTERACT_ACROSS_USERS_FULL permission.

Show the correct Recents list, based on current user.
Added a getRecentTasksForUser() in ActivityManager. Hidden and requires
the INTERACT_ACROSS_USERS_FULL permission.

Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
ctivityManager.java
ctivityManagerNative.java
ontextImpl.java
ActivityManager.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
pplicationPackageManager.java
c98db2a7d1379eacef17029e03f1ff4532f32f0a 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 425d13a0: am 2278e60c: Merge "Adds missing Bluetooth as network type."

* commit '425d13a0aeded1f750addb2c64cd693109661415':
Adds missing Bluetooth as network type.
425d13a0aeded1f750addb2c64cd693109661415 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 2278e60c: Merge "Adds missing Bluetooth as network type."

* commit '2278e60c39f937b6eee14fbf0094d4be92d7f06b':
Adds missing Bluetooth as network type.
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
ctivityManager.java
ontextImpl.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
a8583c2934836572632bb82d1fe7607392d4ca72 07-Aug-2012 Scott Main <smain@google.com> am 40eee61e: docs: fix broken links and update sitemap text file

* commit '40eee61e25fb887f5267686f8a0a7c5bd9f95769':
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
ervice.java
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

Preloaded drawables now have a density associated with them, so we
can load the correct drawable if we are using a different density.

Window manager now formally keeps track of the density for each
screen, allowing it to be overridden like you can already do with
size, and relies on this density to drive itself internally and
the configurations it reports.

There are a new set of Bitmap constructors where you provide a
DisplayMetrics so they can be constructed with the correct density.
(This will be for when you can have different windows in the same
app running at different densities.)

ActivityThread now watches for density changes, and pushes them
to the DENSITY_DEVICE and Bitmap global density values for that
process.

A new am command allows you to change the density.
ctivityThread.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
ontextImpl.java
9866d60ea4f7476df781230a7f33ed5c2af031c9 02-Aug-2012 rich cannings <richc@google.com> Merge "Pass URLs to package verifiers" into jb-mr1-dev
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
pplicationPackageManager.java
e4681878702edaf0833294b3f1ce835705d3ad04 02-Aug-2012 Adam Powell <adamp@google.com> Make MediaRouteButton focusable by default

Bug 6921236

Add a default contentDescription for MediaRouteButton.

Add long-press "cheat sheet" support to MediaRouteButtons created by
MediaRouteActionProvider for use in the action bar to match standard
action button behavior.

Change-Id: I313cfcb2349210765b084c3388095de4624009e8
ediaRouteActionProvider.java
ediaRouteButton.java
45aaa4a8f47591231a97b61df59296c982a2db23 01-Aug-2012 Chris Wren <cwren@android.com> am 790474ba: am f11e0e71: Merge "Add missing docs to notification style rebuilder functions." into jb-dev

* commit '790474ba3a2fb149090ced7d38247aed6f6a2d59':
Add missing docs to notification style rebuilder functions.
790474ba3a2fb149090ced7d38247aed6f6a2d59 01-Aug-2012 Chris Wren <cwren@android.com> am f11e0e71: Merge "Add missing docs to notification style rebuilder functions." into jb-dev

* commit 'f11e0e7176489f5213acaa7e36c677882854cb8d':
Add missing docs to notification style rebuilder functions.
0bd664dab4c1af6ee2048671ed4847e0f52ea179 01-Aug-2012 Chris Wren <cwren@android.com> Add missing docs to notification style rebuilder functions.

Bug: 6914726
Change-Id: I13efae036610523ec6f83696d3337054e79856aa
otification.java
908aecc3a63c5520d5b11da14a9383f885b7d126 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Start moving away from DisplayMetrics.DENSITY_DEVICE.

This puts in most of the infrastructure needed to allow us to
switch between different densities at run time. The main remaining
uses of the global are to initialize the Bitmap object (not sure
what to do about that since it doesn't have anything passed in
the constructor to get this information from), and being able to
load drawables if we need a different density than what was preloaded
by zygote.

Change-Id: Ifdbfd6b7a5c59e6aa22e63b95b78d96af3d96848
ctivityThread.java
allpaperManager.java
1c43719c4709702fe3187e9c42ba9f4d22921034 01-Aug-2012 Craig Mautner <cmautner@google.com> Remove debugging for b6829431.

Change-Id: If7da858722d5d0a5e7db2bc249d454bdee1ec94e
ragmentManager.java
5dcbe638ee063201fb476ef475d2beb347f02097 31-Jul-2012 Nick Pelly <npelly@google.com> am 1af5ac1b: Merge "DO NOT MERGE. Add package-name-prefix blacklist for location updates." into jb-dev

* commit '1af5ac1b6801c4da2ef689449fd1fd2eba1ff48e':
DO NOT MERGE. Add package-name-prefix blacklist for location updates.
48c5eb018b1731bd47caccd43cda2cd36ebc271f 30-Jul-2012 Nick Pelly <npelly@google.com> DO NOT MERGE. Add package-name-prefix blacklist for location updates.

The Settings.Secure value locationPackagePrefixBlacklist and
locationPackagePrefixWhitelist contains comma seperated package-name
prefixes.

Location & geo-fence updates are silently dropped if the receiving
package name has a prefix on the blacklist. Status updates are
not affected. All other API's work as before.

A content observer is used so run-time updates to the blacklist
apply immediately. There is both a blacklist and a whitelist.
The blacklist applies first, and then exemptions are allowed
from the whitelist. In other words, if your package name prefix
matches both the black AND white list, then it is allowed.

Change-Id: I4ea2ad56fa6bd75d32151bc250ac25c26a5777c4
ontextImpl.java
75b052414833e19da4939cc494daf6016f8aec65 26-Jul-2012 Scott Main <smain@google.com> am 75bea2e8: am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev

* commit '75bea2e8d35044233ba892bedf102ed08406d653':
docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
fa25bf5382467b1018bd9af7f1cb30a23d7d59f7 24-Jul-2012 Jeff Brown <jeffbrown@google.com> Add display manager skeleton.

The purpose of this change is to remove direct reliance on
SurfaceFlinger for describing the size and characteristics of
displays.

This patch also starts to make a distinction between logical displays
and physical display devices. Currently, the window manager owns
the concept of a logical display whereas the new display
manager owns the concept of a physical display device.

Change-Id: I7e0761f83f033be6c06fd1041280c21500bcabc0
ontextImpl.java
75bea2e8d35044233ba892bedf102ed08406d653 26-Jul-2012 Scott Main <smain@google.com> am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev

* commit '7c00f81606de1880c3f28e54cea064c3b90da3e7':
docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
cba4d388201958449ca96d49a8a277ca0f47cf8d 25-Jul-2012 Irfan Sheriff <isheriff@google.com> Merge "Update WifiManager API"
7c00f81606de1880c3f28e54cea064c3b90da3e7 25-Jul-2012 Scott Main <smain@google.com> am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev

* commit '2f5b61a750e36169e37788a645f422cc8a8f7091':
docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
4c359b76f9a030f92a302ba74a528faa170bad4e 25-Jul-2012 Scott Main <smain@google.com> docs: fix a bunch of links from javadocs to api guides
and add some attributes to Spinner and Switch

Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
atePickerDialog.java
imePickerDialog.java
88759bbd31e05a4163e1f8e72804ca83000afd53 03-Jul-2012 Irfan Sheriff <isheriff@google.com> Update WifiManager API

Use feedback based on NSD to update WifiManager API

Change-Id: I0c1dc74f7e2fa7cd697a995b7194e3e0366d7981
ontextImpl.java
1c6b82b033caac323dd2f1ef17259c50cf0f5cff 21-Jul-2012 Jeff Brown <jeffbrown@google.com> Merge "Refactor local window manager implementation."
d32460c5b7bea7b06e345397fdbaca58d9732dcf 21-Jul-2012 Jeff Brown <jeffbrown@google.com> Refactor local window manager implementation.

The objective of this refactoring is to remove the reliance on
WindowManager wrapper objects for compatibility mode and for
managing sub-windows.

Removed the WindowManager.isHardwareAccelerated() method since
it is never used.

Change-Id: I4840a6353121859a5e0c07d5cc307a437c595d63
ctivityThread.java
ontextImpl.java
6d8f30f043516d2d5d103e7b2cb2cb6e78f33d85 20-Jul-2012 Craig Mautner <cmautner@google.com> Add debug to help with b6829431.

Change-Id: Id65f5c7c187072f5a5c1418c83e06c4a6767c658
ragmentManager.java
0fc5b2bea09a6d320884c5b12577caf426f547c1 19-Jul-2012 Adam Powell <adamp@google.com> Fun with Up navigation

For activities with a null taskAffinity, simply finish the current task.
(They probably shouldn't have specified a parentActivityName anyway.)

When launching into app info from ResolverActivity, launch the app info
page in the current task with FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. Back
will return to the resolver, and Up will jump to Settings.

When launching into app info from RecentsPanelView or BaseStatusBar,
since this is a system affordance akin to notifications or widgets,
build the full task stack for the app info activity with
TaskStackBuilder and launch it as a new task.

Change-Id: I73b1941d0f52bd8b30382b5e17edd8ceb058c70d
ctivity.java
5d1f11d9c23d5a63994e1ea7e389e29be699b12a 17-Jul-2012 Adam Powell <adamp@google.com> Merge "Fix MediaRouteActionProvider button sizing"
8c1b02e7592dd02f30750c56bf88c65f8acbd3c9 17-Jul-2012 Adam Powell <adamp@google.com> Fix MediaRouteActionProvider button sizing

Bug 6768999

Use proper layout height for MediaRouteButtons generated from
MediaRouteActionProvider.

Update ActionMenuView's LayoutParams handling to correctly propagate
width/height values if the supplied LayoutParams is of a different
type.

Change-Id: I1e1b250d873869ca27f59ffb06ccf2299d57b40d
ediaRouteActionProvider.java
3a6794cad739c2b6fcc9b3fc6c4461f88728af8a 17-Jul-2012 Matthew Xie <mattx@google.com> Merge "Changes to Bluetooth Service structure."
7d4252171c8f58e18359e476c9768fea39778489 16-Jul-2012 Nick Pelly <npelly@google.com> Merge "Improve geofencing: throttle location updates with distance to fence."
e0fd693c6098f59004f9e96ad75c058e26c337b0 11-Jul-2012 Nick Pelly <npelly@google.com> Improve geofencing: throttle location updates with distance to fence.

Previously any geofence (proximity alert) would turn the GPS on at full rate.
Now, we modify the GPS interval with the distance to the nearest geofence.
A speed of 100m/s is assumed to calculate the next GPS update.

Also
o Major refactor of geofencing code, to make it easier to continue to improve.
o Discard proximity alerts when an app is removed.
o Misc cleanup of nearby code. There are other upcoming changes
that make this a good time for some house-keeping.

TODO:
The new geofencing heuristics are much better than before, but still
relatively naive. The next steps could be:
- Improve boundary detection
- Improve update thottling for large geofences
- Consider velocity when throttling

Change-Id: Ie6e23d2cb2b931eba5d2a2fc759543bb96e2f7d0
ontextImpl.java
1abb1cb3a8fe17f7866150604c2fd73751da787e 26-Jan-2012 Jaikumar Ganesh <jaikumar@google.com> Changes to Bluetooth Service structure.

Changes to make Bluetooth Service part of the system_service.
These changes may be temporary.

Changes to update to the new disable API.

Change-Id: If89dba17e6e6c6daa53c37684221763a2da076e9

Conflicts:

services/java/com/android/server/pm/PackageManagerService.java
ontextImpl.java
cf1ba0298c48ae56608ed556dc715eb69c54f9b9 26-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Make ActionBar aware of layout direction

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Iea8a512311ee99548f39bbbe342f21eabaffbe09
ctionBar.java
011238bd8d4405779a80db8cfdf1b25adcd83e6d 08-Feb-2012 HÃ¥kan3 Johansson <hakan3.johansson@sonyericsson.com> Adds missing Bluetooth as network type.

The network connection type for Bluetooth is added so
that it is possible to use Bluetooth as Hotspot during
download from the Internet.

Change-Id: If8e8a3f69821beef742bc91d7a292a091861b48b
ownloadManager.java
6bbce19fd089bbce1812bdfa34ee377fc4c64fb6 09-Jul-2012 Adam Powell <adamp@google.com> am b0f35657: am 1ab2edbc: Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev

* commit 'b0f356579eb0348fac7157a6348f1e568556a4db':
Fix bug in parsing attributes for MediaRouteButton
b0f356579eb0348fac7157a6348f1e568556a4db 09-Jul-2012 Adam Powell <adamp@google.com> am 1ab2edbc: Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev

* commit '1ab2edbcff94d53856a87010e35ffa50ce4c0502':
Fix bug in parsing attributes for MediaRouteButton
1ab2edbcff94d53856a87010e35ffa50ce4c0502 09-Jul-2012 Adam Powell <adamp@google.com> Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev
6491e845457d38659d86d792e441a596e9b23358 04-Jul-2012 Scott Main <smain@google.com> am 480785da: am fd516987: docs: misc bugs from external tracker

* commit '480785dabb4f9ecc0cb7d68741b4a502d670916d':
docs: misc bugs from external tracker
480785dabb4f9ecc0cb7d68741b4a502d670916d 04-Jul-2012 Scott Main <smain@google.com> am fd516987: docs: misc bugs from external tracker

* commit 'fd516987de29a48425da5ee5aace5be40adcc674':
docs: misc bugs from external tracker
fd516987de29a48425da5ee5aace5be40adcc674 04-Jul-2012 Scott Main <smain@google.com> docs: misc bugs from external tracker

Change-Id: I02d0d82c220401ac3a1ca180e8331a0f6dcd9e50
ialogFragment.java
667ca82189dcdb6bf46ce03c78d38671da99f72e 28-Jun-2012 Mike Cleron <mcleron@google.com> am 9454e298: am 98fd6405: Merge "Fix NPEs when using the APIs a little oddly." into jb-dev

* commit '9454e29896e22268416082c99931d13a37b7c71e':
Fix NPEs when using the APIs a little oddly.
9454e29896e22268416082c99931d13a37b7c71e 28-Jun-2012 Mike Cleron <mcleron@google.com> am 98fd6405: Merge "Fix NPEs when using the APIs a little oddly." into jb-dev

* commit '98fd6405aec16c6062f562bf6e7c5f2d50da5d60':
Fix NPEs when using the APIs a little oddly.
98fd6405aec16c6062f562bf6e7c5f2d50da5d60 28-Jun-2012 Mike Cleron <mcleron@google.com> Merge "Fix NPEs when using the APIs a little oddly." into jb-dev
c08dea2aa4f66f888f01fa7ed2be46d4c4651a1e 28-Jun-2012 Daniel Sandler <dsandler@android.com> Fix NPEs when using the APIs a little oddly.

This should help developers use some of the features of
Style via subclassing rather than duplicating functionality.

Bug: 6716608
Change-Id: I048e8221c8046e9779e08e6e262ac3fb37b01cb3
otification.java
74d762a3ee7dd66fe9ce44f3232159811af8d5d8 28-Jun-2012 Adam Powell <adamp@google.com> Fix bug in parsing attributes for MediaRouteButton

Change-Id: Ib61506f7b09b1e043f3f21d2fd46281fbced00f4
ediaRouteButton.java
e6c2d62efb65fa7b4681d29ad0710df56bf9002b 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am 9906e784: am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev

* commit '9906e784faca2cc8388a04fdc544722ea93d51be':
Fix issue #6717667: expanded notification actions don't work on the lock screen
9906e784faca2cc8388a04fdc544722ea93d51be 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev

* commit '17990395bc62f8ce1bae4f1880899f231a8e613b':
Fix issue #6717667: expanded notification actions don't work on the lock screen
1927ae8a56a010919a7535231fa0f7db70f7e152 23-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6717667: expanded notification actions don't work on the lock screen

FLAG_ACTIVITY_CLOSE_SYSTEM_DIALOGS was a mistake.

Instead, and the infrastructure for the status bar to take care
of closing and hiding things itself when you press these buttons,
just like it does for the main Intent of the notification.

Bug: 6717667
Change-Id: I1b22186e0cedc05f46a1a3ec78053a72afaf61b1
ctivityManagerNative.java
ActivityManager.java
endingIntent.java
0c26f97684f131624aadc8cea05f0f07ac0e7d89 23-Jun-2012 Adam Powell <adamp@google.com> am 3b939b72: am fd3fd482: Merge "Update route count properly when MediaRouteButton detects grouped/ungrouped events" into jb-dev

* commit '3b939b7242f9c4155f4d8b34cb474abc77c6417f':
Update route count properly when MediaRouteButton detects grouped/ungrouped events
3b939b7242f9c4155f4d8b34cb474abc77c6417f 23-Jun-2012 Adam Powell <adamp@google.com> am fd3fd482: Merge "Update route count properly when MediaRouteButton detects grouped/ungrouped events" into jb-dev

* commit 'fd3fd482ab6ab67b687696f51fa67714bd36fa49':
Update route count properly when MediaRouteButton detects grouped/ungrouped events
f3b653a21cdffe04c94c275e69ecb56e00766e82 23-Jun-2012 Adam Powell <adamp@google.com> Update route count properly when MediaRouteButton detects
grouped/ungrouped events

Change-Id: I1b00678cc3b548f347c51c3fcbfce18ecc8fbabe
ediaRouteButton.java
adba6ffbb949e3644f0effdaffee349b0b49688a 22-Jun-2012 Scott Main <smain@google.com> am 101a120c: am 9be0105f: docs: fix several links

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

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

Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
dmin/package.html
ackup/package.html
608142060439f153ab409cb05a6b760fdd2cc1ec 22-Jun-2012 Adam Powell <adamp@google.com> am 92a175ca: am 3cd46244: Merge "Avoid memory leak by only registering callback while attached to window." into jb-dev

* commit '92a175ca6fae7b607d81f632b14b2219c64dc791':
Avoid memory leak by only registering callback while attached to window.
92a175ca6fae7b607d81f632b14b2219c64dc791 22-Jun-2012 Adam Powell <adamp@google.com> am 3cd46244: Merge "Avoid memory leak by only registering callback while attached to window." into jb-dev

* commit '3cd4624448dcaddecc75461ef645da72e7e5c098':
Avoid memory leak by only registering callback while attached to window.
3cd4624448dcaddecc75461ef645da72e7e5c098 22-Jun-2012 Adam Powell <adamp@google.com> Merge "Avoid memory leak by only registering callback while attached to window." into jb-dev
101c44915259fb76d14f917712a51fb0b08a7594 22-Jun-2012 Jack Palevich <jackpal@google.com> Avoid memory leak by only registering callback while attached to window.

Bug: 6710307
Change-Id: Idf57251e6feb48ec3e75e797144ff800fa874cc8
ediaRouteButton.java
7527b369af622c2bf061a9dee7b693400f336ebc 22-Jun-2012 Adam Powell <adamp@google.com> am 8e453a03: am 95cf8c11: Merge "Allow ungrouping media routes when a group is the only alternate route" into jb-dev

* commit '8e453a034183e8688e05d0c6991608626702d56f':
Allow ungrouping media routes when a group is the only alternate route
8e453a034183e8688e05d0c6991608626702d56f 22-Jun-2012 Adam Powell <adamp@google.com> am 95cf8c11: Merge "Allow ungrouping media routes when a group is the only alternate route" into jb-dev

* commit '95cf8c1121a95750358ee99169c96d8d4dfb4950':
Allow ungrouping media routes when a group is the only alternate route
f7e0a328c939fa61792d4b685e8f9047a3a0ad90 22-Jun-2012 Adam Powell <adamp@google.com> Allow ungrouping media routes when a group is the only alternate route

Fix a MediaRouteButton bug where group item counts weren't taken into
account when deciding whether to toggle between two available groups
or show the chooser dialog.

Change-Id: I6400ffd4cfe80c8072c5be360264b8ca91d71c41
ediaRouteButton.java
bae2fe870af85ced407525735b2849ea0b2a1673 21-Jun-2012 Chris Wren <cwren@android.com> resolved conflicts for merge of 0a43f67e to master

Change-Id: I072b756bc501c7669593eff012b120905a2fd962
0a43f67ef3c2551ae051da7bf2e856ddc051298d 21-Jun-2012 Daniel Sandler <dsandler@android.com> am 790024bf: Merge "Unhide new methods on RemoteViews and Notification." into jb-dev

* commit '790024bfe6dd2765dd5e552053797459aab72da1':
Unhide new methods on RemoteViews and Notification.
790024bfe6dd2765dd5e552053797459aab72da1 21-Jun-2012 Daniel Sandler <dsandler@android.com> Merge "Unhide new methods on RemoteViews and Notification." into jb-dev
064f9907c98283e76ed03fa65484fc6face22f92 21-Jun-2012 Daniel Sandler <dsandler@android.com> Unhide new methods on RemoteViews and Notification.

Change-Id: I0cbc270d9d7e9e728482c3b10650a32589636c9d
otification.java
ae5bd3a998fb0b811f2575899514e73243041a5d 20-Jun-2012 Dianne Hackborn <hackbod@google.com> am cb1c45ed: am b6ce1f31: Merge "Fix issue #6675499: java.lang.RuntimeException: Unable to start..." into jb-dev

* commit 'cb1c45ed80df368051368a478fa931d3333c99f6':
Fix issue #6675499: java.lang.RuntimeException: Unable to start...
cb1c45ed80df368051368a478fa931d3333c99f6 20-Jun-2012 Dianne Hackborn <hackbod@google.com> am b6ce1f31: Merge "Fix issue #6675499: java.lang.RuntimeException: Unable to start..." into jb-dev

* commit 'b6ce1f311ce154af713ebc4f543fc2aaed446939':
Fix issue #6675499: java.lang.RuntimeException: Unable to start...
b6ce1f311ce154af713ebc4f543fc2aaed446939 20-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6675499: java.lang.RuntimeException: Unable to start..." into jb-dev
b10345898c060f7a9b451ec46d7124a6e087ec06 20-Jun-2012 Adam Powell <adamp@google.com> am da828803: am 2dde147b: Merge "Add an XML attribute for controlling which route types a MediaRouteButton in a layout will alter." into jb-dev

* commit 'da8288037cff76367c3088adaa174ddb27bf55c2':
Add an XML attribute for controlling which route types a MediaRouteButton in a layout will alter.
da8288037cff76367c3088adaa174ddb27bf55c2 20-Jun-2012 Adam Powell <adamp@google.com> am 2dde147b: Merge "Add an XML attribute for controlling which route types a MediaRouteButton in a layout will alter." into jb-dev

* commit '2dde147b28684fc32f03ad748af8eb87d5408c7c':
Add an XML attribute for controlling which route types a MediaRouteButton in a layout will alter.
849df0b5a7a5ef72610d687a8b1c2f0a23f873ab 20-Jun-2012 Adam Powell <adamp@google.com> Add an XML attribute for controlling which route types a
MediaRouteButton in a layout will alter.

Change-Id: I897a68188fa87e4c2dbc88794117a3ef87ffaab0
ediaRouteButton.java
ec23ce5cb48409606617140f9fa8b2dadc469f58 20-Jun-2012 Adam Powell <adamp@google.com> am f99e81a6: am 2a2b021a: Merge "Permit MediaRouteButton to select system routes in toggle mode." into jb-dev

* commit 'f99e81a6ff22b6b93dd057802e553f66c0a7b97b':
Permit MediaRouteButton to select system routes in toggle mode.
f99e81a6ff22b6b93dd057802e553f66c0a7b97b 20-Jun-2012 Adam Powell <adamp@google.com> am 2a2b021a: Merge "Permit MediaRouteButton to select system routes in toggle mode." into jb-dev

* commit '2a2b021a2133b769e0b82fd6edc166ba98129680':
Permit MediaRouteButton to select system routes in toggle mode.
eba1b70d7a66fa8299307895ec6d6d6495b387f0 20-Jun-2012 Adam Powell <adamp@google.com> Permit MediaRouteButton to select system routes in toggle mode.

Bug 6694917

Change-Id: I82e68aee196c72f349e7638717b727ef3f23e9b5
ediaRouteButton.java
9ec426aba68d2f08130a6756006e075468b54e53 20-Jun-2012 Jim Miller <jaggies@google.com> am 2b7df368: am cab997b2: Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev

* commit '2b7df3686f24a5a653a6609556dd98210324f7bd':
Fix 6667238: allow market apps to support ACTION_ASSIST
2b7df3686f24a5a653a6609556dd98210324f7bd 20-Jun-2012 Jim Miller <jaggies@google.com> am cab997b2: Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev

* commit 'cab997b2020ddb67158397dccadd28d91a7710d0':
Fix 6667238: allow market apps to support ACTION_ASSIST
acdfbcca6f91bdf3f77ed7b2e699c97ce98c1fb8 20-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6675499: java.lang.RuntimeException: Unable to start...

...activity ComponentInfo{com.google.android.gm/
com.google.android.gm.ui.MailActivityGmail}: java.lang.NullPointerException

There were a number of places in FragmentManagerImpl where we were
not dealing with mAdded being null. In the original implementation,
mAdded would almost always be null if mActive is null. As we have
added features, this has become a less strong guarantee (and it actually
was never completely guaranteed), but there are a lot of places where
we would check for mActive being non-null and assume this meant
mAdded is non-null.

Fix these to correctly check for mAdded.

Bug: 6675499
Change-Id: I2a6a801d8bc89550fc73e12c9c3f8bb0ad6c7fa4
ragmentManager.java
45308b1b3b1582d048845df2ee5301241e52a5cf 19-Jun-2012 Jim Miller <jaggies@google.com> Fix 6667238: allow market apps to support ACTION_ASSIST

This change allows market apps and 3rd parties to supply an activity
that responds to ACTION_ASSIST (e.g. market apps).

It also adds a test app to respond to the ASSIST intent and force
the intent disambiguation dialog to appear.

Change-Id: I5a78863c6a9546d18c66275187d178f6a1c9ee17
earchManager.java
4d2bef3f850e75744ade93f95615c7cb4a7fefa0 19-Jun-2012 Nicolas Falliere <nicof@google.com> am 277c09f6: am 56bb344c: Merge "Added or fixed doctrings for required permissions." into jb-dev

* commit '277c09f6c16c4adfd50407e2fa4dbf61a0e06e55':
Added or fixed doctrings for required permissions.
277c09f6c16c4adfd50407e2fa4dbf61a0e06e55 19-Jun-2012 Nicolas Falliere <nicof@google.com> am 56bb344c: Merge "Added or fixed doctrings for required permissions." into jb-dev

* commit '56bb344ccfd3d261cea9987c98a17d0820279b17':
Added or fixed doctrings for required permissions.
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
ownloadManager.java
eyguardManager.java
allpaperManager.java
f8fd7ef97895524a0ce5735e19654549cb295cda 19-Jun-2012 Christopher Tate <ctate@google.com> Merge "Fail immediately if bindService() is passed a null ServiceConnection"
79b3317b775810bac088b0998c48eb6506e2578c 18-Jun-2012 Christopher Tate <ctate@google.com> Fail immediately if bindService() is passed a null ServiceConnection

Or if unbindService() is passed one, naturally.

Change-Id: Ib7f1f0b5e12c04e3affbcc9008612801081819d5
ontextImpl.java
9471faf5dcc3ebf88bbc1a01809eb7312e65f829 18-Jun-2012 Adam Powell <adamp@google.com> am 8f695c52: am 706a8699: Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

* commit '8f695c525f5baa623a8b951bd3a1fd2b5efd1ceb':
Make MediaRouter UI more robust around route count changes
7e8aac14c3a930dea0ca7a1d1e0e8a384fbf8916 18-Jun-2012 Adam Powell <adamp@google.com> am bb20575f: am 130b4572: ActionProvider API update

* commit 'bb20575f85ada8ccdacefc53f0da7e00fdf12a16':
ActionProvider API update
8f695c525f5baa623a8b951bd3a1fd2b5efd1ceb 18-Jun-2012 Adam Powell <adamp@google.com> am 706a8699: Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

* commit '706a8699008ce416a7fbd9a4215726fdb00ee803':
Make MediaRouter UI more robust around route count changes
bb20575f85ada8ccdacefc53f0da7e00fdf12a16 18-Jun-2012 Adam Powell <adamp@google.com> am 130b4572: ActionProvider API update

* commit '130b4572d1f3df702e5b296a655d15a41f6d4c66':
ActionProvider API update
39d5c6172503620ac3761148adac5fd7fa20d02d 16-Jun-2012 Adam Powell <adamp@google.com> Make MediaRouter UI more robust around route count changes

Improve the API around ActionProvider visibility overriding. Allow the
application to notify whatever is hosting the ActionProvider that
visibility has changed in a way that is friendly to alternate support
library-style reimplementations of MenuItem.

Allow MediaRouter.Callback implementations to add or remove themselves
or other Callbacks during dispatch of callback events.

Make MediaRouteActionProvider track the visibility of corresponding
menu items more accurately.

Change-Id: Ic7ddb6a87c3637904750d2661e4a9fa323b09ea0
ediaRouteActionProvider.java
130b4572d1f3df702e5b296a655d15a41f6d4c66 16-Jun-2012 Adam Powell <adamp@google.com> ActionProvider API update

* Add ActionProvider#overridesItemVisibility and isVisible.
These methods allow an ActionProvider to override the
visibility of a MenuItem that it is bound to. If a MenuItem
has been explicitly hidden by the application, it will not
be visible.

* Change MediaRouteActionProvider to not require a MediaRouter
callback, to avoid extra lifecycle management headaches.

Change-Id: I606fa98b3a6a3e60a953dd024274f9bf9c67acdd
ediaRouteActionProvider.java
2f115bc007b24144f3f673395bc83ac0bc3814c7 15-Jun-2012 Adam Powell <adamp@google.com> am 13b5c194: am 90b9f84c: Merge "API updates for MediaRouter" into jb-dev

* commit '13b5c194e1ca2ed5ca9187e15ca0518b8bb052d2':
API updates for MediaRouter
13b5c194e1ca2ed5ca9187e15ca0518b8bb052d2 15-Jun-2012 Adam Powell <adamp@google.com> am 90b9f84c: Merge "API updates for MediaRouter" into jb-dev

* commit '90b9f84c43145c51180c7253cd3a3f59862c2611':
API updates for MediaRouter
90b9f84c43145c51180c7253cd3a3f59862c2611 15-Jun-2012 Adam Powell <adamp@google.com> Merge "API updates for MediaRouter" into jb-dev
04ddf3c0508f3d50e6ab82cecc0adc92f52b7803 14-Jun-2012 Jeff Brown <jeffbrown@google.com> Allow applications to recover from IME related ANRs.

Timeout after 2.5 seconds.

Because communication with an IME occurs asynchronously
using oneway binder calls, it's possible for an input event
that was delegated to the IME to be dropped on the floor.
When this happens, the app (not the IME!) will get blamed
for the problem and will ANR forever.

Even if an event is not dropped on the floor, we should
eventually time out event dispatch to the IME if it's
being too slow.

This patch implements a timeout on all events delegated
to the IME. When the timeout expires, the event is marked
as having not been handled by the IME and the application
gets a crack at it. We also write a message to the log when
this occurs.

Ensure that we do not invoke the event finished callback
while holding the InputMethodManager's lock to avoid
potential deadlocks.

Fixed a minor bug where the InputMethodManager would not
remember the id of the current input method. This caused
the log messages and dumpsys state to print "null" as the
current input method id.

Bug: 6662465
Change-Id: Ibb3ddeb087ee6998996b0b845134e16a18aa3057
ativeActivity.java
0d03c042f90bf62d5bad7c64e77028a5f9f8fae0 15-Jun-2012 Adam Powell <adamp@google.com> API updates for MediaRouter

* Accept a Context when fetching the names of routes and
categories. This lets string resources resolve at time of access
with the correct configuration. The older versions remain available
that will use the static resources from the application. (There are
enough cases where applications will populate this from external
data that requiring it each time even when it was not initialized
from a resource doesn't seem reasonable.)

* Remove the ability for apps to programmatically select non-user
routes.

* Make MediaRouter.Callback an abstract class instead of an interface.
This will make further extensions easier to keep compatible in the
future.

Change-Id: If981c511dfbdfaf41ef0d1cfe4a377fc14bb5600
ediaRouteButton.java
2c89d171fa055255c629b4823739d6f44a3a9bea 14-Jun-2012 Jeff Brown <jeffbrown@google.com> am fc959a38: am 9e197141: Merge "Add new ASSIST key and map it to the global assist intent." into jb-dev

* commit 'fc959a389564f2ffef9c4ceba0b1ff119dd53933':
Add new ASSIST key and map it to the global assist intent.
fc959a389564f2ffef9c4ceba0b1ff119dd53933 14-Jun-2012 Jeff Brown <jeffbrown@google.com> am 9e197141: Merge "Add new ASSIST key and map it to the global assist intent." into jb-dev

* commit '9e197141f8249e36d3f19aeda332ae40dac7da05':
Add new ASSIST key and map it to the global assist intent.
9e197141f8249e36d3f19aeda332ae40dac7da05 14-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Add new ASSIST key and map it to the global assist intent." into jb-dev
185951004e777774950bf0197affcd4884468754 14-Jun-2012 Daniel Sandler <dsandler@android.com> am cb629f38: am 4365d066: Merge "Remove line3 in big notification unless there\'s text to show." into jb-dev

* commit 'cb629f38008ad4f48a956a8d74daa65eff351a75':
Remove line3 in big notification unless there's text to show.
cf815b56bf475bc9593a057edb234578e4abfcf1 14-Jun-2012 Adam Powell <adamp@google.com> am 6c143590: am 4b4a947b: Merge "MediaRouter dialog" into jb-dev

* commit '6c14359074ff5a93695ed37083c9178a4ca2d1f1':
MediaRouter dialog
de7a8ead2467a4a152a5a9b2416c8048f1b48bbb 14-Jun-2012 Jeff Brown <jeffbrown@google.com> Add new ASSIST key and map it to the global assist intent.

Moved some duplicate code from SearchPanelView and LockScreen
over to SearchManager to avoid creating yet another copy of it
in PhoneWindowManager.

Bug: 6594275
Change-Id: Ib4ebcd6817639d17548952ab2ce7cb876c05777c
earchManager.java
cb629f38008ad4f48a956a8d74daa65eff351a75 14-Jun-2012 Daniel Sandler <dsandler@android.com> am 4365d066: Merge "Remove line3 in big notification unless there\'s text to show." into jb-dev

* commit '4365d066e8beed17b61ba51c728d60a9baa499be':
Remove line3 in big notification unless there's text to show.
4365d066e8beed17b61ba51c728d60a9baa499be 14-Jun-2012 Daniel Sandler <dsandler@android.com> Merge "Remove line3 in big notification unless there's text to show." into jb-dev
6c14359074ff5a93695ed37083c9178a4ca2d1f1 13-Jun-2012 Adam Powell <adamp@google.com> am 4b4a947b: Merge "MediaRouter dialog" into jb-dev

* commit '4b4a947b5e4913d7f8b7df15d3a7cdf8f343471f':
MediaRouter dialog
70e11e50eecfc8f1dfb76316d099e4331ebd28f7 13-Jun-2012 Adam Powell <adamp@google.com> MediaRouter dialog

Add the dialog behavior for MediaRouteActionProvider/MediaRouteButton.

Still TODO:

* Switch audio icon based on source; speaker/bt/user

* Rig up volume slider

* Rig up item icons

* Rig up group button for groupable categories

* Make grouping work

Change-Id: I3f992516b184d5ae940ddb7bbb7f94ff58914589
ediaRouteActionProvider.java
ediaRouteButton.java
916ad91c3860344250c00b6b3597db6464229c02 13-Jun-2012 Daniel Sandler <dsandler@android.com> Remove line3 in big notification unless there's text to show.

If you have no subText or summaryText in a big template, but
you *do* have a number, the overflow bar (below the big text
or inbox or whatever) would have shown; now it does not.

Bug: 6657006
Change-Id: Ib2af2712da3a98227bd8d697560893adbdc427e9
otification.java
eb859df3f97afa84db85c18bda9c125071dc8747 13-Jun-2012 Daniel Sandler <dsandler@android.com> am e63d952a: am 7d2e8960: Merge ""Two actions ought to be enough for anybody."" into jb-dev

* commit 'e63d952a9294c1257598edc13b3457b7a0d81e63':
"Two actions ought to be enough for anybody."
e63d952a9294c1257598edc13b3457b7a0d81e63 13-Jun-2012 Daniel Sandler <dsandler@android.com> am 7d2e8960: Merge ""Two actions ought to be enough for anybody."" into jb-dev

* commit '7d2e8960d0fcebf924c60dbd0f6934368ceb80e3':
"Two actions ought to be enough for anybody."
7d2e8960d0fcebf924c60dbd0f6934368ceb80e3 13-Jun-2012 Daniel Sandler <dsandler@android.com> Merge ""Two actions ought to be enough for anybody."" into jb-dev
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
pplicationPackageManager.java
602ad1c978ddbf8be2c272cd610e18a626cd8b33 12-Jun-2012 Daniel Sandler <dsandler@android.com> "Two actions ought to be enough for anybody."

Bug: 6650170
Change-Id: I5ee6990a8e556f9ee1fbfb0989db33f75b07f4ea
otification.java
49a0b01bdc89059da49c807ae5d132534d55a773 12-Jun-2012 Adam Powell <adamp@google.com> am 0d637d6f: am 579ec308: Merge "MediaRouter work" into jb-dev

* commit '0d637d6f888cdddba554174284fb96f8354a15e4':
MediaRouter work
d4a0c49ffa5fb6d2a44e7727c54fdfc5a8ed4d1a 12-Jun-2012 Dianne Hackborn <hackbod@google.com> am 007f2b40: am f9d80b6b: Merge "Rework media router to be per-context with global process state." into jb-dev

* commit '007f2b40f952eab8951c6b22302a59a955a20561':
Rework media router to be per-context with global process state.
ea99d9af2db8c9490be3de750987969a2b31cfd1 12-Jun-2012 Adam Powell <adamp@google.com> am bee681a1: am fbce66cb: Merge "Further work on MediaRouter" into jb-dev

* commit 'bee681a1d54062dc0833cc9a45aac7b20725c1bb':
Further work on MediaRouter
0d637d6f888cdddba554174284fb96f8354a15e4 12-Jun-2012 Adam Powell <adamp@google.com> am 579ec308: Merge "MediaRouter work" into jb-dev

* commit '579ec3086c9ce3616735bc3cf63246f052973a7f':
MediaRouter work
007f2b40f952eab8951c6b22302a59a955a20561 12-Jun-2012 Dianne Hackborn <hackbod@google.com> am f9d80b6b: Merge "Rework media router to be per-context with global process state." into jb-dev

* commit 'f9d80b6b940540b5d7be22ae310e047fcd2472a8':
Rework media router to be per-context with global process state.
bee681a1d54062dc0833cc9a45aac7b20725c1bb 12-Jun-2012 Adam Powell <adamp@google.com> am fbce66cb: Merge "Further work on MediaRouter" into jb-dev

* commit 'fbce66cb259cb63b43fda654db68152b8b4a2c2f':
Further work on MediaRouter
b35c445f34e1a18e17aef3e3dfbc1c39b4d1815c 12-Jun-2012 Adam Powell <adamp@google.com> MediaRouter work

Fix a bug where MediaRouter would crash on creation

Add click listener for app-supplied extended settings on the route
selection dialog.

Change-Id: I2991db1720b5c574148e250526984592f4dc3c44
ediaRouteActionProvider.java
ediaRouteButton.java
fdfe58126d3b168f6c93ce480b576bb631ae3cb1 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am acfb11b7: am 2e479fef: am bb536096: Merge "Improved documentation (clarify on issue 8727)"

* commit 'acfb11b7c49cd0c3e653700f414c014fccc5aec3':
Improved documentation (clarify on issue 8727)
23a947664f20b8ab67dc35e0f14b71f48c9ade15 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am 82b131f2: am f6e39b06: am a03696dc: Merge "ApplicationThread: Check interface before invoking scheduleLowMemory"

* commit '82b131f27418ecdd60d52638a72d01d4ad2b109f':
ApplicationThread: Check interface before invoking scheduleLowMemory
acfb11b7c49cd0c3e653700f414c014fccc5aec3 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am 2e479fef: am bb536096: Merge "Improved documentation (clarify on issue 8727)"

* commit '2e479fefbfcb388d2aa62978307420357f322441':
Improved documentation (clarify on issue 8727)
82b131f27418ecdd60d52638a72d01d4ad2b109f 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am f6e39b06: am a03696dc: Merge "ApplicationThread: Check interface before invoking scheduleLowMemory"

* commit 'f6e39b068d1d5491dc3d73d73f598790688a1c4e':
ApplicationThread: Check interface before invoking scheduleLowMemory
2e479fefbfcb388d2aa62978307420357f322441 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am bb536096: Merge "Improved documentation (clarify on issue 8727)"

* commit 'bb5360966668ca8e97c02363b0d87dc9c9ae2451':
Improved documentation (clarify on issue 8727)
f6e39b068d1d5491dc3d73d73f598790688a1c4e 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am a03696dc: Merge "ApplicationThread: Check interface before invoking scheduleLowMemory"

* commit 'a03696dc6b8128bd44dc700b62ef9b5fd3ac4534':
ApplicationThread: Check interface before invoking scheduleLowMemory
bb5360966668ca8e97c02363b0d87dc9c9ae2451 12-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "Improved documentation (clarify on issue 8727)"
a03696dc6b8128bd44dc700b62ef9b5fd3ac4534 12-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "ApplicationThread: Check interface before invoking scheduleLowMemory"
b58b8f832d06b0ffa8886eba5a4916578a3b8743 12-Jun-2012 Dianne Hackborn <hackbod@google.com> Rework media router to be per-context with global process state.

Change-Id: Ic1cb6f13e691d22783bcdafae85b7c75aec0a66f
ontextImpl.java
ediaRouteActionProvider.java
ediaRouteButton.java
d0d2cda9d414da73773285d7fee9e13aef3495e9 08-Jun-2012 Adam Powell <adamp@google.com> Further work on MediaRouter

Remove volume control and tracking. This will be handled by extensions
to existing audio and media APIs for now.

Tweak/refine other aspects of the API. Pass the router to callbacks for
easier future-proofing. Add group/ungroup callback methods.

Change-Id: Ib69e76e5f46280a9002b545bcf4cbc7b839844ee
ediaRouteActionProvider.java
ediaRouteButton.java
97f2d6acd6c2cfe43503ad0b60198665db232717 08-Jun-2012 Daniel Sandler <dsandler@android.com> am 4dc0cf7b: am 6cf0c336: Merge "Various notification template cleanups." into jb-dev

* commit '4dc0cf7bf376aa78d7fbccc8481673d98dae7c08':
Various notification template cleanups.
4dc0cf7bf376aa78d7fbccc8481673d98dae7c08 08-Jun-2012 Daniel Sandler <dsandler@android.com> am 6cf0c336: Merge "Various notification template cleanups." into jb-dev

* commit '6cf0c3365a40854f63f0abff2fa67d24432d0218':
Various notification template cleanups.
619738c9e7b321d3a7f297b95955c681f5de56ba 07-Jun-2012 Daniel Sandler <dsandler@android.com> Various notification template cleanups.

Bug: 6597693 // hide line3 in InboxStyle
Bug: 6593691 // vertical centering inconsistencies
Bug: 6592116 // no left action gutter in BigPicture
Bug: 6622757 // missing subtext in BigText expanded
Change-Id: I941af99d0a905b6e0aa6fb74ad4eff29c17d9fc2
otification.java
b85afc25d5d4ef3aab378691d8df306c99f7ab96 06-Jun-2012 Adam Powell <adamp@google.com> resolved conflicts for merge of 1178569b to master

Change-Id: If2bb6ccaee99bcf199cd93f24eba217fe6ff485e
1178569b261a094fe6fb830e91f002e4fcd9fc1a 06-Jun-2012 Adam Powell <adamp@google.com> am f6452d0c: Merge "More fun with MediaRouter" into jb-dev

* commit 'f6452d0cac64b72005af330411b5a895f0038312':
More fun with MediaRouter
690ffb4e1f735148a15f2036d9a3c1962fba188c 05-Jun-2012 Adam Powell <adamp@google.com> More fun with MediaRouter

Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
ediaRouteActionProvider.java
ediaRouteButton.java
33644b9ba7d092d5686b4d85c0006066b78fcf2d 05-Jun-2012 Dianne Hackborn <hackbod@google.com> am 4a683a34: am 1ad66b2f: Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev

* commit '4a683a343083ec2b8aed1ee63669dbade6c0379f':
Fix issue #6584942 IllegalStateException: Failure saving state...
4a683a343083ec2b8aed1ee63669dbade6c0379f 05-Jun-2012 Dianne Hackborn <hackbod@google.com> am 1ad66b2f: Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev

* commit '1ad66b2f873496bcbe72e91d1978cf1b2633b3a4':
Fix issue #6584942 IllegalStateException: Failure saving state...
ee76efb74b5886f98cdfebfbefe9b69224e016fb 05-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6584942 IllegalStateException: Failure saving state...

...active SuggestFragment{419494f0} has cleared index: -1

There were issues when the same fragment was removed and then
added again before completely finishing the remove (such as due
to a running animation).

Two fixes:

- Now when you call FragmentTransaction.replace() and are replacing
a fragment with the same fragment, this becomes a no-op, to avoid
visual artifacts in the transition and bad states.
- When we are moving the fragment state up and it is currently
animating away to the INITIALIZED state, we could end up making
the fragment inactive as part of the cleanup. In this case it
shouldn't be made inactive; we just need to initialize it but
keep it active since we are going to continue to use it.

Bug: 6584942
Change-Id: I8bfd73f2d8ef8f67b541b3e2525dfa5db6c3bfa5
ackStackRecord.java
ragment.java
ragmentManager.java
d7f13b4f0abea27b7ce947b69eab4716c4a2b67f 04-Jun-2012 Daniel Sandler <dsandler@android.com> am 5bf8f01b: am 7a394abb: Merge "Unused API should be hidden." into jb-dev

* commit '5bf8f01be1cd9800e53b30117fe9ea7fb1153301':
Unused API should be hidden.
5bf8f01be1cd9800e53b30117fe9ea7fb1153301 04-Jun-2012 Daniel Sandler <dsandler@android.com> am 7a394abb: Merge "Unused API should be hidden." into jb-dev

* commit '7a394abb549ecbb9ac510d1b62e60b0ad03438df':
Unused API should be hidden.
7a394abb549ecbb9ac510d1b62e60b0ad03438df 04-Jun-2012 Daniel Sandler <dsandler@android.com> Merge "Unused API should be hidden." into jb-dev
92bc9393e6aaa46ffc1d9aa1fde05bf4f25d6dff 04-Jun-2012 Dianne Hackborn <hackbod@google.com> am 5a70063f: am 6593be0c: Merge "Work on issue #6579997: Mariner entrance animation" into jb-dev

* commit '5a70063f7ea8c910eefb025018ef02e84ff319f0':
Work on issue #6579997: Mariner entrance animation
5a70063f7ea8c910eefb025018ef02e84ff319f0 04-Jun-2012 Dianne Hackborn <hackbod@google.com> am 6593be0c: Merge "Work on issue #6579997: Mariner entrance animation" into jb-dev

* commit '6593be0c200f69d932e40e05e9df54b89c157c48':
Work on issue #6579997: Mariner entrance animation
a90513d5f4e9f9ba20fca60bcf8548e23863c395 04-Jun-2012 Daniel Sandler <dsandler@android.com> Unused API should be hidden.

Change-Id: Ifed4d06e620c990ccecc1ee1aaf3adedbdc7c2da
otification.java
84375876fcef73c5fa9c3de205c7db908ee14e15 02-Jun-2012 Dianne Hackborn <hackbod@google.com> Work on issue #6579997: Mariner entrance animation

Add a new variation of ActivityOptions that allows you to
supply custom animation resources and get a callback when the
animation starts.

Use this in SearchPanelView to determine when to start hiding
the search panel instead of having a fixed delay.

Fix some issues in the activity manager where we would cancel
the options in cases where we should actually keep them to give
to the window manager for a transition. (Basically when the
activity being started is not actually ending up launched, but
just results in a shift in the activity stack.)

Note that this is not quite what the design calls for -- the
entire search UI is waiting and then disappearing when the
animation starts, instead of the ring first disappearing while
waiting for the time to fade out the circle.

Change-Id: Iee9a404ba530908d73cdbd4a9d0d2907ac03428f
ctivityOptions.java
c3d808b3c04be56a650cf20449d088fe29e7b9b2 01-Jun-2012 Dianne Hackborn <hackbod@google.com> am c3895253: am d53710ce: Merge "Extend process observer to be usable for media routing." into jb-dev

* commit 'c3895253bb833611df8c8f62347ede70153eb5b9':
Extend process observer to be usable for media routing.
c3895253bb833611df8c8f62347ede70153eb5b9 01-Jun-2012 Dianne Hackborn <hackbod@google.com> am d53710ce: Merge "Extend process observer to be usable for media routing." into jb-dev

* commit 'd53710ce644e7f1df417a8fe42ec26233a751b2e':
Extend process observer to be usable for media routing.
a93c2c117d502ee57dd27705a0b5efca4bf65011 01-Jun-2012 Dianne Hackborn <hackbod@google.com> Extend process observer to be usable for media routing.

It now has a new callback to report changes in the "importance"
of processes. Rewrote the dispatching code to be a bit more
efficient now that we are sending more reports.

Change-Id: Ie865cfd286455819f04e8c14e9b6fd54d028f8f2
ctivityManager.java
ProcessObserver.aidl
e075d5099bac96d1fd5028012f8a22dea60c7211 31-May-2012 Dianne Hackborn <hackbod@google.com> am 11855f31: am 388d4801: Merge "Working on issue #6561352: java.lang.RuntimeException: Unable to start..." into jb-dev

* commit '11855f31a3f7074d9fbccd1ee460b99fc47162c6':
Working on issue #6561352: java.lang.RuntimeException: Unable to start...
11855f31a3f7074d9fbccd1ee460b99fc47162c6 31-May-2012 Dianne Hackborn <hackbod@google.com> am 388d4801: Merge "Working on issue #6561352: java.lang.RuntimeException: Unable to start..." into jb-dev

* commit '388d4801d5f314c804c5ab2dff76f764ed28a991':
Working on issue #6561352: java.lang.RuntimeException: Unable to start...
388d4801d5f314c804c5ab2dff76f764ed28a991 31-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Working on issue #6561352: java.lang.RuntimeException: Unable to start..." into jb-dev
61af8a8ef77fd0e1a760d01a5c7784ae1d0efc37 31-May-2012 Dianne Hackborn <hackbod@google.com> Working on issue #6561352: java.lang.RuntimeException: Unable to start...

...activity ComponentInfo{com.google.android.googlequicksearchbox
/com.google.android.googlequicksearchbox.SearchActivity}

Add check for a situation where we are saving the state of a
fragment with a -1 index, and fail early in that case with more
debug information.

Change-Id: I03a928dde521fa06664d0036dd9f90eef3247afc
ragmentManager.java
73ac11ae37fbcc0ba1c94abba5f40b5598b42806 30-May-2012 Daniel Sandler <dsandler@android.com> am bb702f57: am c5d20509: Merge "Visual tweaks to notifications." into jb-dev

* commit 'bb702f576a8b566279a2a728c7aded380c5d50a5':
Visual tweaks to notifications.
bb702f576a8b566279a2a728c7aded380c5d50a5 30-May-2012 Daniel Sandler <dsandler@android.com> am c5d20509: Merge "Visual tweaks to notifications." into jb-dev

* commit 'c5d2050961a06c0931b7de338324968a509f4f00':
Visual tweaks to notifications.
c5d2050961a06c0931b7de338324968a509f4f00 30-May-2012 Daniel Sandler <dsandler@android.com> Merge "Visual tweaks to notifications." into jb-dev
6387d2f6dae27ba6e8481883325adad96d3010f4 22-May-2012 Daniel Sandler <dsandler@android.com> Visual tweaks to notifications.

- Smaller right_icons
- Higher-contrast text colors
- Dividers between actions
- Dividers above actions and overflows
- Consistent 8dp gutter on left of content
- BigTextStyle should not show line3 unless there is a subtext.
- Collapse summary ("overflow") text into line3. This is a
little wild because now the contentText, subText, and
summaryText all share this spot, but the various
variables all have different times when they're
expressed so you have greater control over what shows
where in the 1U and the expanded form.
- Do not show contentText in BigText's line3. If you have
subtext or summarytext, show that; otherwise suppress
line3 entirely.

Bug: 6558134 // line3
Bug: 6508804 // other visuals
Change-Id: Ib79e818a332d17000e9a8fce333eff8f8cf043aa
otification.java
357046525b6076e82ad3278ec268150a25a25f83 30-May-2012 Dianne Hackborn <hackbod@google.com> am 2e73f4c0: am f46bd06c: Merge "Fix issue #6579824: Email crash observed after updating..." into jb-dev

* commit '2e73f4c059e366489c50ad0dd4e05890afa522d8':
Fix issue #6579824: Email crash observed after updating...
2e73f4c059e366489c50ad0dd4e05890afa522d8 30-May-2012 Dianne Hackborn <hackbod@google.com> am f46bd06c: Merge "Fix issue #6579824: Email crash observed after updating..." into jb-dev

* commit 'f46bd06c6822752acd24265a7db5c86d6036bc38':
Fix issue #6579824: Email crash observed after updating...
5f48fca218a2a0f67d4f5290619a656419f26a43 30-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6579824: Email crash observed after updating...

...device from JRN59D to JRN60

Deal correctly with multiprocess content providers that need to
be loaded into a secondary process; wasn't correctly detecting the
case where the IContentProvider returned by the activity manager
is null. (installProvider used to be given the direct IContentProvider,
now it gets the ContentProviderHolder and much check whether the
provider inside is null.)

Change-Id: I888622e275a459031ab849952941f39cf9c02ee0
ctivityThread.java
0a406096bd424c78ee4af80ad566a9ce9f44070a 30-May-2012 Christopher Tate <ctate@google.com> am 03ab4eb5: am aefe4aa4: Merge "Prevent construction/use of invalid restore session proxies" into jb-dev

* commit '03ab4eb550d3f1c5b3959d9433e925731a215c4e':
Prevent construction/use of invalid restore session proxies
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...
03ab4eb550d3f1c5b3959d9433e925731a215c4e 30-May-2012 Christopher Tate <ctate@google.com> am aefe4aa4: Merge "Prevent construction/use of invalid restore session proxies" into jb-dev

* commit 'aefe4aa4d470d308f17a71b16bf1a0d58c79c05c':
Prevent construction/use of invalid restore session proxies
f3b4c93e0da9af2db9e16864faa734cf70fecfe3 30-May-2012 Dianne Hackborn <hackbod@google.com> am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev

* commit 'ae5811c71405878b09eace395ec2b28e54eeb427':
Fix (mostly) issue #5109947: Race condition between retrieving a...
aefe4aa4d470d308f17a71b16bf1a0d58c79c05c 30-May-2012 Christopher Tate <ctate@google.com> Merge "Prevent construction/use of invalid restore session proxies" into jb-dev
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
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ontextImpl.java
ActivityManager.java
ApplicationThread.java
nstrumentation.java
f5491fc1b61088843f280a6b55c1a995e2e6f939 25-May-2012 Christopher Tate <ctate@google.com> Prevent construction/use of invalid restore session proxies

Possible (rare) null return was not being handled. Fixes
bug 6554812.

Change-Id: I470e916f2156ff7ed2947d6ce21ef2816fc7f97d
ackup/BackupManager.java
4b33266935d5b2a7ec9bce64104e05dbc3feef22 25-May-2012 Jean-Baptiste Queru <jbq@google.com> am c6df8417: am 541803cc: am fd63c857: Merge "Wipe the user data out in any case."

* commit 'c6df8417eaf60f80b2741ec29e8188324de95af3':
Wipe the user data out in any case.
c6df8417eaf60f80b2741ec29e8188324de95af3 25-May-2012 Jean-Baptiste Queru <jbq@google.com> am 541803cc: am fd63c857: Merge "Wipe the user data out in any case."

* commit '541803ccc530b8cc1d8d95aa5a82ebc191fc218c':
Wipe the user data out in any case.
541803ccc530b8cc1d8d95aa5a82ebc191fc218c 25-May-2012 Jean-Baptiste Queru <jbq@google.com> am fd63c857: Merge "Wipe the user data out in any case."

* commit 'fd63c85742f4b12065418d48ae10be4bb12468f5':
Wipe the user data out in any case.
fd63c85742f4b12065418d48ae10be4bb12468f5 25-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Wipe the user data out in any case."
3266873f7fa9941ba1bc09f878b974b182e85ae4 25-May-2012 Jean-Michel Trivi <jmtrivi@google.com> am b3db8dc9: am 97594d6c: Merge "Unhide KeyguardManager locked and secure state getters" into jb-dev

* commit 'b3db8dc9f1c164dedd7282f8d6e392641e4e8cc9':
Unhide KeyguardManager locked and secure state getters
37fde0aca01fcfcd8483df70a4e82f622e15fda2 25-May-2012 Jean-Michel Trivi <jmtrivi@google.com> Unhide KeyguardManager locked and secure state getters

Unhide the following methods:
android.app.KeyguardManager.isKeyguardLocked()
android.app.KeyguardManager.isKeyguardSecure()

Fix some javadoc typos

Change-Id: Iedcd9f6a5261b7a3b47431edff013f629e1dc45d
eyguardManager.java
e1ee12650e8f37b860671e7f93295db6317899f7 23-May-2012 Chris Wren <cwren@android.com> am 7ecc8974: am b72ac9dd: Merge "BigPicture notifications for screenshots." into jb-dev

* commit '7ecc89743d43adeaf3d80c8d630fe37b23f8346e':
BigPicture notifications for screenshots.
3745a3da759a9510554c8d2c59f09185e52ed403 22-May-2012 Chris Wren <cwren@android.com> BigPicture notifications for screenshots.

Needed a little extra help from the builder to make this
happen (like the title, you might want a different largeIcon
in the expanded view if---as in this case---it is redundant
with the big picture).

Needed to fix BigPicture template to reveal actions.

Bug: 6289107
Change-Id: I19dc62e693ee2c87cbe82f7327fe9115768b4102
otification.java
859260ef5cfe81cc5b401375cd2f1fd56551e441 22-May-2012 Daniel Sandler <dsandler@android.com> am f2326a49: am c40a7fe0: Merge "Fix three-line notifications." into jb-dev

* commit 'f2326a49951e2b1bf8449ee35eaf0c443f678012':
Fix three-line notifications.
c40a7fe00257d5742bd10bc611cd11d1600f469f 22-May-2012 Daniel Sandler <dsandler@android.com> Merge "Fix three-line notifications." into jb-dev
abafe372ee70496ac6b323e1d05d397785651779 21-May-2012 Romain Guy <romainguy@google.com> am 6fa51de8: am 46a8b1ac: Merge "Remove unused, obsolete debug code" into jb-dev

* commit '6fa51de80bae65a93346ed18628010a0867607cc':
Remove unused, obsolete debug code
085eb02de22502b73c27381e64a87f4513695457 21-May-2012 Chris Wren <cwren@android.com> am 56a02e6e: am 29bb6d92: Support more items in the Notification.InboxStyle, plus an overflow.

* commit '56a02e6e61f7ae437f06b095e8c4310edcb5e9ab':
Support more items in the Notification.InboxStyle, plus an overflow.
b1b0058346190d6194afc7a87dd7d19cc6fd02c5 21-May-2012 Dianne Hackborn <hackbod@google.com> am 72669b5f: am 13a0271c: Merge "Add aapt support for generating proguard rules for onClick methods." into jb-dev

* commit '72669b5f4663937b09d33f9d951f0b86a03fa98b':
Add aapt support for generating proguard rules for onClick methods.
5d9bb8636719be2ca0236799b098bb122784a88f 21-May-2012 Dianne Hackborn <hackbod@google.com> am 9beee6ad: am d51ac09f: Merge "Fix activity resolver, issues #6519130 and #6507239" into jb-dev

* commit '9beee6ad206541f351faad5cf30b9d0216f07d22':
Fix activity resolver, issues #6519130 and #6507239
9f7936a30bc097c31962891945802507cb4aeb82 21-May-2012 Daniel Sandler <dsandler@android.com> Fix three-line notifications.

To accommodate three lines as before, we now adjust the size
of text and icons to fit.

Also in this change:

- snazzy little shadow below BigPicture's 1U block
- restore contentText to BigPicture notifications
- make overflow match other notification text (not so big)
- fix text position jumps between 1U and expanded
notifications across all templates

Bug: 6519374 (three-line notifications cut off)
Bug: 6494982 (text jumps)
Change-Id: I717ec2dde805c25e3b949641ca7e69e4d8fc86d2
otification.java
13b907353f18215b52b5ceda24bbf520d91d72a1 21-May-2012 Romain Guy <romainguy@google.com> Remove unused, obsolete debug code

All these features have either been abandonned and left un-maintained
for years or can be replaced by systrace.

Change-Id: I42e4579a8078744047e5fe08a7a15254970b09bc
ctivityThread.java
c92c84ec9646bcaf880d9a52dc1f6d3e87f53f6e 21-May-2012 Chris Wren <cwren@android.com> am 125a45ed: am 468a2ac6: Merge "Don\'t assume digest lines are GONE, we may be recycling them." into jb-dev

* commit '125a45ed82ca2c7622eb18c17a0a8bb077fb0928':
Don't assume digest lines are GONE, we may be recycling them.
29bb6d925bcaa562212b3fe41de249c3dfb64354 18-May-2012 Chris Wren <cwren@android.com> Support more items in the Notification.InboxStyle, plus an overflow.

Bug: 6500113
Change-Id: I9f6b45ef0821c45000afa8a23ee51033b51df298
otification.java
9275197d35a99c3f187d18d0eda6ead3b8a32603 19-May-2012 Dianne Hackborn <hackbod@google.com> Add aapt support for generating proguard rules for onClick methods.

Also fix Activity menu inflater when using the dark on light
theme wrapper to still be able to find onClick listeners.

Change-Id: Ie206db26d1df96041bc477804e476b02ad99dc9d
ctivity.java
5320eb8938098c9824093f7f842a0a97bbc190a4 18-May-2012 Dianne Hackborn <hackbod@google.com> Fix activity resolver, issues #6519130 and #6507239

6519130: Starting ResolverActivity with no arguments crashes system_server
6507239: ResolverActivity may bypass signature permissions

Change-Id: I64534f781bc6b7eb45e85dbe3a55d351ee28e85c
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
db03e5fee892bb01124ebba362a956bd64272c98 18-May-2012 Adam Powell <adamp@google.com> am 8afcf705: am 7fde8e2b: Merge "Be more tolerant in TaskStackBuilder" into jb-dev

* commit '8afcf70531298de6f79874e0655431322e441606':
Be more tolerant in TaskStackBuilder
4ed80d581c3448f075d65efafc585b4691f8b301 17-May-2012 Chris Wren <cwren@android.com> Don't assume digest lines are GONE, we may be recycling them.

Bug: 6500945
Change-Id: I0f01ccdde25bebb8335f0d34408877b895d286ff
otification.java
b00b8b0d535bc0f54b792565d94f854ff64c8683 17-May-2012 Adam Powell <adamp@google.com> Be more tolerant in TaskStackBuilder

Let callers try to get a parent stack for an activity class with no
parent declared.

Bug 6503702

Change-Id: Iec1bc7a8d9e5b65b756a8ebd0e53d63506796aa3
askStackBuilder.java
9d9570978a6fa380feb2a45909d4acd486204f6d 16-May-2012 Chris Wren <cwren@android.com> am 626a1665: am b46f3f67: Merge "Defensively reset the default state of layout elements." into jb-dev

* commit '626a16651c5b2857f8eb6750a32b016f73f18b34':
Defensively reset the default state of layout elements.
b46f3f6743f015cd6e0cfd21639b82fcdb5e6983 16-May-2012 Chris Wren <cwren@android.com> Merge "Defensively reset the default state of layout elements." into jb-dev
c247dfb97d60502c4281310320a80803fb0fb5b4 16-May-2012 Daniel Sandler <dsandler@android.com> am f39bc269: am 70334ac2: Merge changes If0b865ac,Ie0c61300 into jb-dev

* commit 'f39bc2690f6c791d1eaed66bd88e92cf5b4e1246':
Move BigPicture's header to the top of its large view.
Action button improvements:
8680bf865a08f876fc3986c50a193e3186ff6f02 15-May-2012 Daniel Sandler <dsandler@android.com> Action button improvements:

- Horizontal layout
- At most 2 are shown
- Tombstones are now shown (if the intent is null, the
button is disabled; use it for quick feedback of an
action's effect)

Bug: 6418617 (tombstones)
Bug: 6482237 (action separators)
Change-Id: Ie0c613006227bbfe1c0ec6eab1cda4f3782a05f2
otification.java
67dc9a02cfa1873f67128fba7fbdf33f8fe18a24 16-May-2012 Chris Wren <cwren@android.com> Defensively reset the default state of layout elements.

Bug: 6500945
Change-Id: Idf7300c44955413e2db26ecbabdef9f67f12f360
otification.java
8bf11c89f2f43c330ff0d5b4b9af3c084979daaa 16-May-2012 Adam Powell <adamp@google.com> am c9f5b3d3: am e095ceaa: Merge "Handle returning a result from automatic up navigation from another task." into jb-dev

* commit 'c9f5b3d3ef1e0e329f6081cd120544f8d1d7576c':
Handle returning a result from automatic up navigation from another task.
3d193d92f601569bb99fe011bb6e104a492a0a71 16-May-2012 Adam Powell <adamp@google.com> Handle returning a result from automatic up navigation from another
task.

When navigating up from a different task, if the current activity has
a result set only finish the current activity instead of trying
finishAffinity. Log this so that developers know why this behavior is
happening.

Bug 6465336

Change-Id: Ic7cec6f0c0d5861296091e2aea9344309f5fc600
ctivity.java
b4131ccba37169df236cebd7e5dca8c0984888cd 15-May-2012 Dianne Hackborn <hackbod@google.com> am b4652172: am bea7afc5: Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev

* commit 'b4652172404643d0a8fffbcc315cddcc733ec5ba':
Fix issue #6284404: ArrayIndexOutOfBoundsException in...
03fcc333cf0fbbc4df1215649746d6360801efd8 15-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6284404: ArrayIndexOutOfBoundsException in...

...FragmentManagerImpl.restoreAllState

This was a bug related to the difference between the pre- and post-HC
behavior of onSaveInstanceState(). Prior to HC, state was saved
before calling onPause(). Starting with HC, it is saved between
onPause() and onStop(). To maintain compatibility with existing
applications, there is a check in ActivityThread for pre-HC to in
that case emulate the behavior of old applications, still calling
onSaveInstanceState() before onPause() but using the state later.

One of the special cases we had to deal with in the old model of
saving state before pausing was restarting an activity that is
already paused.

Consider, for example: you have two activities on screen, the one on
top not fullscreen so you can see the one behind. The top activity
is resumed, the behind activity is paused. In the pre-HC world, the
behind activity would have already had its state saved.

Now you rotate the screen, and we need to restart the activities.
We need to destroy the behind activity and create a new instance,
but the new instance has to end up in the paused state. To
accompish this, we restart it with a flag saying that it should
end up paused. For the pre-HC world, since it ends up paused,
we need to make sure we still have its instance state kept around
in case we need it because we can't regenerate it (since it is
already paused).

So that is what the changed code here is doing. It goes through
the normal create/start/resume steps, but holds on to the current
saved state so that it isn't lost when resume clears it, and then
puts the activity back to paused and stuffs that old saved state
back in to it.

The problem is that this code was doing it for every application,
even HC apps. So we end up in a bad state, when a HC app has its
saved state sitting there as if it had been saved, even though it
is only paused. Now if we go to restart the activity again, instead
of asking it for a new saved state (as we should for a HC app as
part of stopping it), we just re-use the existing saved state again.

Now this wouldn't generally be a huge problem. Worst case, when we
restart the activity yet again we are just instantiating it from
the same saved state as we used last time, dropping whatever changes
may have happened in-between. Who cares? All it has been doing is
sitting there in the background, visible to the user, but not something
they can interact with. If the activity made changes to its
fragments, those changes will be lost, and we will restore it from
the older state.

However... if one of those fragements is a retained fragment, this
will *not* appear in the saved state, but actually be retained across
each activity instance. And now we have a problem: if the retained
fragments are changed during this time, the next activity instance
will be created from the most recent state for the retained fragments,
but the older state for everyting else. If these are inconsistent...
wham, dead app.

To fix this, just don't keep the saved state for HC apps.

Also includes a small optimization to ActivityStack to not push
the home screen to the front redundantly.

Change-Id: Ic3900b12940de25cdd7c5fb9a2a28fb1f4c6cd1a
ctivityThread.java
ragment.java
ragmentManager.java
f2d3c418c43dcbfbc9c22ca4f1c6d86297f67ee0 15-May-2012 Dianne Hackborn <hackbod@google.com> am 1bcd6b8c: am a827843f: Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev

* commit '1bcd6b8ce8f7769e0b61dd630c98d56116d43595':
Fix issue #6020164: Settings crashed on orientation change...
b61a02657b9e577179c934bbb5e199ce919c4642 15-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6020164: Settings crashed on orientation change...

...while listening to TTS example

This was a nice one. What was happening is that immediately upon
being created, the activity was starting another activity in a
different process. The second activity would never show, just
immediately exit. However the original activity had time to
pause and get into stopping itself before the second activity had
come back to the activity manager to say it was going away, resulting
in the activity manager asking the original activity to resume.

At this point the activity manager's state is that the second
activity is finishing and gone, and the original activity is
resumed. However in the app process the original activity is
still working on stopping itself, and it eventually completes
this and tells the activity manager. The activity manager now
changes its state to STOPPED, even though it is actually resumed
and that is the last thing it told it to be, and it is now
proceeding to set itself in that state.

This would result later in the activity manager sending an
unnecessary state change to the application. In the case of
the screen here, we next do a rotation change, the activity
manager thinks the current state is STOPPED not RESUMED, so it
tells the application to relaunch the activity in a new config
but not in the resumed state. Now it does the whole "start a
new temporary activity" thing again, at which point it tries
to pause the original activity again, and we have an unbalanced
onPause() call to the app and it falls over.

Change-Id: I38b680746f4c61ae30e7ce831e1de187adf60902
ctivityThread.java
e1713afb6c400c5aa89bff2a8c1d2cc5675e65c9 11-May-2012 Daniel Sandler <dsandler@android.com> am 6ad11058: am f54bfcf5: Merge "Restyling action buttons." into jb-dev

* commit '6ad1105806232b540848a84050c5106a895d694b':
Restyling action buttons.
f54bfcf5a3594d7d8423391be68d9b982ea6c4fa 11-May-2012 Daniel Sandler <dsandler@android.com> Merge "Restyling action buttons." into jb-dev
e551884b0972280c9aee451b489832e67395c8e2 10-May-2012 Daniel Sandler <dsandler@android.com> Restyling action buttons.

Bug: 6418617
Change-Id: I843352fbd167aeb6cc7beb0172b7416aabd5856a
otification.java
ba32499a68f8afa26cae9f73bf6bfa2e141c0e95 10-May-2012 Daniel Sandler <dsandler@android.com> am d634b77b: am a4487e1b: Merge "Clean up API docs for Notification." into jb-dev

* commit 'd634b77bbf838e92716d03879e77f203c86c2fc6':
Clean up API docs for Notification.
e5c511a1cceffd17b8edb355f2c19a7498a5e229 10-May-2012 Michael Jurka <mikejurka@google.com> am bf1b5fa9: am 421dceb0: Merge "Making transition out of recents look better" into jb-dev

* commit 'bf1b5fa944158044a595706924b935b5577ec0f0':
Making transition out of recents look better
c323d9ec3a8f2461f1d79d230c96bcfaee14097f 10-May-2012 Daniel Sandler <dsandler@android.com> am 8046724d: am e95658c9: New backgrounds for notifications.

* commit '8046724da39735d03a4659c268d9154f82f4d31a':
New backgrounds for notifications.
169c3d4dd7300893eb177ac15682f2caf045a862 10-May-2012 Dianne Hackborn <hackbod@google.com> am 7ab16751: am 2c2864f6: Merge "Add new API to find total RAM." into jb-dev

* commit '7ab1675111954814ebaa32dd82084929df1b390e':
Add new API to find total RAM.
58d4f2e36f4091272c40d59fb3b7b80ee792ba57 10-May-2012 Dianne Hackborn <hackbod@google.com> am e2e03913: am dd79ae6b: Merge "Add infrastructure for accessing "unstable" content providers." into jb-dev

* commit 'e2e0391389fce1a9fd9d5c5442ba1901b6d96211':
Add infrastructure for accessing "unstable" content providers.
a4487e1b4be823e6e90b25442f663a9424ac90e0 10-May-2012 Daniel Sandler <dsandler@android.com> Merge "Clean up API docs for Notification." into jb-dev
421dceb0a4fd8f20349a0de277f82b56e71cb90b 10-May-2012 Michael Jurka <mikejurka@google.com> Merge "Making transition out of recents look better" into jb-dev
d33b803b6bfcbc509dd7cee3ee23f819dfff296e 10-May-2012 Daniel Sandler <dsandler@android.com> Clean up API docs for Notification.

Bug: 6427241
Bug: 6427245
Bug: 6427814
Change-Id: I91d741513e3b345d2b9f28ad0a1bf11b0a898076
otification.java
e95658c98e4154a2daf0ed70d15d24f8bf3153f0 10-May-2012 Daniel Sandler <dsandler@android.com> New backgrounds for notifications.

Note that PRIORITY_MIN notifications have a special
background treatment.

Bug: 6418617
Change-Id: I5f96330fcc53ac39e80a025baa0c134bd1e971b8
otification.java
2c2864f65c5cec6aebcb1b5612331f3946893042 10-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new API to find total RAM." into jb-dev
21385cd83d7d7938b57a4acbaa236dd4c7804ed4 03-May-2012 Michael Jurka <mikejurka@google.com> Making transition out of recents look better

- Fading out recents first, then scaling up app
thumbnail
- Fade Recents out over 130ms
- Delay the window animation for 200ms first,
then animate for 200ms (previously we didn't delay
and then animated for 300ms)

Bug: 6390075

Change-Id: Ia8c753bf7ee03d2acef6eb2772b28d88fe10a682
ctivityOptions.java
59325eb31f25704bb88c348160bb69e7c1aa3b48 10-May-2012 Dianne Hackborn <hackbod@google.com> Add new API to find total RAM.

Change-Id: Iad2dff3c44f471515f093e7f0d0d959528881ab9
ctivityManager.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
ctivityThread.java
ontextImpl.java
0280e9cf8fda04ba2229c17fed1f2bfefe0dc801 09-May-2012 Irfan Sheriff <isheriff@google.com> am 1a11e33b: am 9669a0ce: Merge "API review fixes" into jb-dev

* commit '1a11e33b91daeed22eef42936233e0751e56f4b8':
API review fixes
9669a0ce574745ba0b0ebd32e8337811973fb7dc 09-May-2012 Irfan Sheriff <isheriff@google.com> Merge "API review fixes" into jb-dev
22af38c5261d2c03796b496e6edb125327cace16 04-May-2012 Irfan Sheriff <isheriff@google.com> API review fixes

- Remove the notion of channel from an application perspective
- Remove the use of DnsSd as part of API and add a protocol type to allow
future extensions
- Use the listener object as a handler for stop and unregister operations. Also,
we now allow multiple active discovery operations.
- Remove init/deinit operations in favour of setting up construction

Bug:6434844
Change-Id: Id15521d571aac9c4053d81184ad66dfc54f636de
ontextImpl.java
132a75f5cf8582ddb9436d508e5d615f50f820ca 09-May-2012 Adam Powell <adamp@google.com> am c23411e6: am 13740708: Merge "Fix bug in TaskStackBuilder#addParentStack" into jb-dev

* commit 'c23411e6db3989cf8b5259d2c89c640dad3bb008':
Fix bug in TaskStackBuilder#addParentStack
450743459f383249f0a08e9cdc24ae1745761d4a 09-May-2012 Fabrice Di Meglio <fdimeglio@google.com> am e1b1cdc0: am 92d7f9ff: Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev

* commit 'e1b1cdc0d45b23ad65819643ca135783ad17b976':
Fix bug #6408393 Character corruption is caused when locale is changed
d509da93e4e0421126aa294858c8abbd0b04b5a4 09-May-2012 Adam Powell <adamp@google.com> am 5fac4ca4: am ef31e7ca: Fix for toggling menu item visibility outside of create/prepare menu

* commit '5fac4ca4652e1a5211ef15c706feb64b9f250aa3':
Fix for toggling menu item visibility outside of create/prepare menu
b992f4a1f7d5723ceff76aa8d474e31d96ae1552 09-May-2012 Chris Wren <cwren@android.com> am 2779c4c1: am 195ba504: Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev

* commit '2779c4c1f1580b13bd9bb29695451b58b381b1e3':
Clear out any existing buttons before adding the set of requested actions.
c72b502d897fc1314ccbb8799f8ca66a3d131e17 09-May-2012 Kenny Root <kroot@google.com> am 83ea8609: am 29bb27ef: Merge "Add encryption parameters to package installation" into jb-dev

* commit '83ea86091bf94571912694c7caf8be1c21727f91':
Add encryption parameters to package installation
c1e8244f7280463274729a2c519ac2d3b2d44a21 09-May-2012 Adam Powell <adamp@google.com> am c5967ab8: am e601efd3: Merge "Fix a bug in Activity Up navigation dispatching" into jb-dev

* commit 'c5967ab8defdb199b95317a3c67957f8d7a0aacb':
Fix a bug in Activity Up navigation dispatching
5c43ec9328ba98fa88acc452b140f2d682a3042c 09-May-2012 Adam Powell <adamp@google.com> Fix bug in TaskStackBuilder#addParentStack

Don't assume the initial component has a valid parent specified.

Bug 6464209

Change-Id: I22aa4c0e667ea85dc46ad7320f4a9f52117af520
askStackBuilder.java
709d138d2fbbfbcddde9c87528151dc897095742 09-May-2012 Dianne Hackborn <hackbod@google.com> am eef61216: am 8e11051a: Merge "Tweak anim API to automatically call Intent.setSourceBounds()." into jb-dev

* commit 'eef61216183b77842d06533fcc661020c0032d2d':
Tweak anim API to automatically call Intent.setSourceBounds().
2a8650bdca3d8716f1cf7a7fbe7f741b3049fa37 09-May-2012 Dianne Hackborn <hackbod@google.com> am 009e6e6b: am bae365c1: Merge "Fix issue #6319312: Consecutive call to Activity\'s onCreate()/onResume()..." into jb-dev

* commit '009e6e6b5e83f18cd691d69dc5f08e04bfccf059':
Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()...
92d7f9ff1c0c8a179ee935d86d3c94022980ead2 08-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev
ef31e7cab57c82083c41adf2d2a056ab159a4f51 08-May-2012 Adam Powell <adamp@google.com> Fix for toggling menu item visibility outside of create/prepare menu

Allow applications to transition from 0=>1+ visible menu items outside
of onCreatePanelMenu/onPreparePanel. Previously, having 0 visible items
at this point would require an invalidation of the options menu.

Bug 6452605

Change-Id: I6cbfc46d0e5ec42b8d78ee516e9b57fdeaf1a890
ctivity.java
195ba5047cec4d249d5408e75fb04696941655c0 08-May-2012 Chris Wren <cwren@android.com> Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev
2c22eb0a49b369767eaa4e04c1727f947cfdec13 08-May-2012 Chris Wren <cwren@android.com> Clear out any existing buttons before adding the set of requested actions.

Bug: 6459557
Change-Id: Id19050e7280208d4f98c1aabe8087c6fe6c8d72a
otification.java
30ca5cd11a23f06f2f8eeaa587685450826f800f 08-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6408393 Character corruption is caused when locale is changed

- free the TextLayoutCache on Locale change

- also free TextLayoutCache when memory is low

Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
ctivityThread.java
29bb27ef90564a294d506c2ffd546ba21788aeac 08-May-2012 Kenny Root <kroot@google.com> Merge "Add encryption parameters to package installation" into jb-dev
e601efd375e79ae016593617f08d6a09a536f719 08-May-2012 Adam Powell <adamp@google.com> Merge "Fix a bug in Activity Up navigation dispatching" into jb-dev
07304f5299c6bccf84bd993239fbb3b87a0d46e6 08-May-2012 Adam Powell <adamp@google.com> Fix a bug in Activity Up navigation dispatching

Propagate the return value from onNavigateUp as the result of
onMenuItemSelected. This fixes a bug where the action bar Up nav
button clicks would not be propagated to support lib FragmentActivity
or other activity subclasses that rely on processing otherwise
unhandled onMenuItemSelected events.

Change-Id: Id879dd1756ed06b8a7b720ebf0eae2a8ddc66ca8
ctivity.java
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
pplicationPackageManager.java
8e11051a06b3362b7d7cda654f8dcb5ca3760494 08-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Tweak anim API to automatically call Intent.setSourceBounds()." into jb-dev
d367ca88eeede24e7d9a51ae85996a9d08d734b2 08-May-2012 Dianne Hackborn <hackbod@google.com> Tweak anim API to automatically call Intent.setSourceBounds().

Also don't retain the source bounds in recent tasks, since it
has no meaning there and it would be better when relaunching an
activity to have a new bounds set based on wherever it is now
being launched from.

Change-Id: Ia90c04ee98a888a7f725b038abe23d71e2b12800
ctivityOptions.java
755c8bfbffe5134232217ef4c3998194b344ae17 08-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()...

...without onPause() in between

There was a bug in the handling of "always finish activities" where we
would go through destroying activities while in the middle of updating
the activity stack. This would result in the activity behind the
non-full-screen activity being created and then immediately destroyed,
which things were not expecting.

Change-Id: Idaa89089f7b1af7eb747d7b8f9f394beeb2d23fa
ctivityThread.java
d4ff15ac6076cfd750df33364a9aa3a2e083164b 07-May-2012 Daniel Sandler <dsandler@android.com> am f3fda077: am fafce1f9: Merge "Add number back to legacy notifications." into jb-dev

* commit 'f3fda0778c3deee7955f2c3caef2ac71cd9b647b':
Add number back to legacy notifications.
fafce1f9f5b371c76cd7875a58b183093f8b517f 07-May-2012 Daniel Sandler <dsandler@android.com> Merge "Add number back to legacy notifications." into jb-dev
3ce174758304893f0a9e58e1ef0c22a8eb1e4d36 06-May-2012 Romain Guy <romainguy@google.com> am 2e353b35: am 2db084fa: Merge "Dialog not dismissed when tearing down dialog fragment." into jb-dev

* commit '2e353b35f0b0a346e54aaec91de455d5f1cef213':
Dialog not dismissed when tearing down dialog fragment.
2db084fa95a849c059db8094eddec155109c60c0 06-May-2012 Romain Guy <romainguy@google.com> Merge "Dialog not dismissed when tearing down dialog fragment." into jb-dev
44bfdd88a74d5935a011bc8671cb075f2047655b 26-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Dialog not dismissed when tearing down dialog fragment.

1. The dismiss implementaton in Dialog was posting a message
on the main thread to perform the real dismiss work. The
goal of this was to allow calling dismiss() from multiple
threads. The side effect of this is that when dialog fragment
is dismissed the dialog is not dimissed until the current
loop on the main thread is completed. However, during rotation
of the screen the current activity has to be restarted, hence
all fragments whould be removed. In the destruction process
the dialog grament requests from the dialog to dismiss but
since this is asynchromous, the code in
ActivityThread#handleDestroyActivity detects a leaking window
since the dialog window is still not removed and removes that
window. Now when the dialog removal message is processed on
the next loop we get an exception that the window has already
been removed. Now if Dialog#dismiss() is called from the
main thread the call goes right though otherwise a message is
posted.

bug:5911682

Change-Id: I449d6dd75a84c0ff29ea13dac7d163219cc38341
ialog.java
1462fe6a387ebdc48ced2ee7fac6e8b439c6d8c5 06-May-2012 Pin Ting <pinting@google.com> am aa048661: am d0c66f6a: Merge "Fix javadoc." into jb-dev

* commit 'aa048661742fe337d30f9ef8a024ef22d1a18ff8':
Fix javadoc.
d0c66f6a8f15bb95648b4306d2583575d0bb9935 06-May-2012 Pin Ting <pinting@google.com> Merge "Fix javadoc." into jb-dev
1f5c8a12c55f3fd895ce6fb63ab85e5d68fbe0df 05-May-2012 Romain Guy <romainguy@google.com> am f9d5ee55: am 5b972e73: Merge "Don\'t check whether dismiss() is called on the UI thread Bug #6436642" into jb-dev

* commit 'f9d5ee556a7cc588b19ca3ba92931bd562699f1c':
Don't check whether dismiss() is called on the UI thread Bug #6436642
5b972e730f99ea4cf74f8ccf3e2c57289255c4f6 05-May-2012 Romain Guy <romainguy@google.com> Merge "Don't check whether dismiss() is called on the UI thread Bug #6436642" into jb-dev
05e1c3a6913e049c7972ac727f57b7d3bf8d8552 05-May-2012 Romain Guy <romainguy@google.com> Don't check whether dismiss() is called on the UI thread
Bug #6436642

An app invoking dismiss() during a draw pass could cause crashes.
This change makes the code simpler too.

Change-Id: Iba89a8522e23d02f87697cfeec6cc713a1462669
ialog.java
8575723dccbebd956882fe993210f46835cdc676 05-May-2012 Dianne Hackborn <hackbod@google.com> am 967b361c: am 6ad5b4f6: Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev

* commit '967b361cd384761e7f6a2e0a29f1da8f74b6ec9b':
Fix issue #6426645: API REVIEW: android.app.ActivityOptions
6ad5b4f637e64cb07a17079424cff66c867c7f27 05-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev
3cb341539b2556bb5c0f12981f50de94f1c8a998 04-May-2012 Chris Wren <cwren@android.com> am 32c513b7: am 3c5f9243: The BigTextStyle should never render mContentText

* commit '32c513b72925c810ac82f96965f7e4d2ede3589a':
The BigTextStyle should never render mContentText
3c5f92432734e1e3b9bdc515628a4c09d7759cd4 04-May-2012 Chris Wren <cwren@android.com> The BigTextStyle should never render mContentText

Change-Id: Ifcbb0868871741bd78c5ebf31408143aaf732b98
otification.java
bd4127544137ba9518f5864f911527ce86a2b8bb 04-May-2012 Chris Wren <cwren@android.com> am cdea2a3e: am d213524d: Merge "Add an alternate title that can be used in the overflow of a InboxStyle. Always hide contentText for BigTextStyle and InboxStyle. Style cannot be used without specialization, it should be abstract." into jb-dev

* commit 'cdea2a3e654543ecdf27528d505787770c1b5feb':
Add an alternate title that can be used in the overflow of a InboxStyle. Always hide contentText for BigTextStyle and InboxStyle. Style cannot be used without specialization, it should be abstract.
d6297dbfe9b1c9c91907e4ba35d4b1ae7fe610d8 03-May-2012 Chris Wren <cwren@android.com> Add an alternate title that can be used in the overflow of a InboxStyle.
Always hide contentText for BigTextStyle and InboxStyle.
Style cannot be used without specialization, it should be abstract.

Bug: 6428978
Bug: 6274137
Bug: 6317471
Change-Id: I21531a94494f891a058a477805b177e736b921cf
otification.java
ddc52a80b5280d4a67180a6caae8c7dead00157f 04-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6426645: API REVIEW: android.app.ActivityOptions

Change-Id: If2f7b987e1825a8b0ebaf2c499924dfc1527274b
ctivityOptions.java
b4b2223fa188d4f680209c80ba6bbe681a300bd5 30-Apr-2012 Daniel Sandler <dsandler@android.com> Add number back to legacy notifications.

Bug: 5816717
Change-Id: I52c98143378c315dec5b525cb3d96c214ee8196e
otification.java
e1cb5e0674343ec2c979dd5b377b4beb2368b0d3 03-May-2012 Chris Wren <cwren@android.com> am 6145ec08: am 1243b967: Merge "rework big text to handle gmail use case" into jb-dev

* commit '6145ec08372940e3d0b84b68a5acd6c496217d4a':
rework big text to handle gmail use case
b323cc47ef374c8ffba3d291936a576af489cff8 03-May-2012 Chris Wren <cwren@android.com> am 6908d1f6: am 71964645: Merge "Allow the Notification.Builder to carry around a Style to apply at build" into jb-dev

* commit '6908d1f6d4aa441652563544a53189df5395b664':
Allow the Notification.Builder to carry around a Style to apply at build
e4a2a4f142ff72ac8cf3e99c31af42af4ce66fbf 02-May-2012 Chris Wren <cwren@android.com> rework big text to handle gmail use case

Change-Id: I3175e198bd6f39025f4257454b43c459ed1e38f5
otification.java
fbd96ba9baa212d99060c8b93b5c79cf00918bda 01-May-2012 Chris Wren <cwren@android.com> Allow the Notification.Builder to carry around a Style to apply at build

Change-Id: I5e848504b6d0444ee349ecea893ceae571dda796
otification.java
9f14083c7687f367bb8657dbee53ffec8519fd5e 03-May-2012 Mike Cleron <mcleron@google.com> am 546c0a4a: am 841a37aa: Merge "Clarify documentation about when Activity#onCreateNavigateUpTaskStack will be called." into jb-dev

* commit '546c0a4ae1978aab98c606272c813a538831cd8a':
Clarify documentation about when Activity#onCreateNavigateUpTaskStack will be called.
841a37aa5b6684ea8738f97b7e99a152bc6d5c7a 03-May-2012 Mike Cleron <mcleron@google.com> Merge "Clarify documentation about when Activity#onCreateNavigateUpTaskStack will be called." into jb-dev
f0195951519a5d7ce26ff2d88228af13642fc292 03-May-2012 Adam Powell <adamp@google.com> Clarify documentation about when Activity#onCreateNavigateUpTaskStack
will be called.

Bug 6427237

Change-Id: I5c41e4a694b39c03fd642586472838e2f9a0281d
ctivity.java
d07852ef39c9c41c03d5ca9fe1b0d10139fbc57e 03-May-2012 Jeff Sharkey <jsharkey@android.com> am ee1ef538: am b829f097: Merge "Allow adding of completed empty files." into jb-dev

* commit 'ee1ef5383fcd4ce44eea7692308785ad97dbdad2':
Allow adding of completed empty files.
b829f09737fcbb1e2c92949dce6222d5beacc3c9 03-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Allow adding of completed empty files." into jb-dev
8e687eb4002567642585b31f990802627211f46c 03-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am a33d9a8a: am fb58a6d9: Merge "Adding title for the date picker dialog if the calendar is not shown." into jb-dev

* commit 'a33d9a8a805946edb299b6b5fb31051f50d26a5c':
Adding title for the date picker dialog if the calendar is not shown.
fb58a6d93c954a956e0b6c9929d2baf45e8867ae 03-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding title for the date picker dialog if the calendar is not shown." into jb-dev
33f95eda3d24b6364cab343f10d01490e2f53d44 03-May-2012 Jeff Sharkey <jsharkey@android.com> Allow adding of completed empty files.

Bug: 5281354
Change-Id: I375c3c7ff4ccbb554204ad53a90d35ff4790af6c
ownloadManager.java
4ed162e672d9c06c159a0a0fd5cb01be0dac4e13 03-May-2012 Jeff Sharkey <jsharkey@android.com> am 0fdcadf2: am 9a671137: Merge "Set tmpdir to application cache directory." into jb-dev

* commit '0fdcadf28e265f0992214cd3f0cdfd2a5c5dba8d':
Set tmpdir to application cache directory.
9a671137dc95e243009dab34971da75f0d598456 03-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Set tmpdir to application cache directory." into jb-dev
e1d330a071a4574040e6f1147800b4b2c8864043 02-May-2012 Jeff Sharkey <jsharkey@android.com> Set tmpdir to application cache directory.

Otherwise File.createTempFile() uses /sdcard which most apps don't
have write access to.

Bug: 6347289
Change-Id: Ibde191a63e4dbb9b03437406f8c999f192bcfa21
ctivityThread.java
98423989b8972f0952f5cb947867236f6db9a63b 02-May-2012 Adam Powell <adamp@google.com> am 56de3296: am 0cd4f671: Merge "Fix documentation of Activity#navigateUpTo() to describe its actual behavior." into jb-dev

* commit '56de329630384891f6ebc3a623128e8261957388':
Fix documentation of Activity#navigateUpTo() to describe its actual behavior.
35c064b2e895328022f7ac02587ec9bb69895c74 02-May-2012 Adam Powell <adamp@google.com> Fix documentation of Activity#navigateUpTo() to describe its actual
behavior.

Change-Id: I804fcef5df6f5885b47b7a1c7703ed301bea09b0
ctivity.java
42c5cb3028aeac3f31b954c74a39c26e24821ff7 02-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding title for the date picker dialog if the calendar is not shown.

1. The date picker dialog shows spinners and a mini calendar on
tablet but on on phone the calendar is not show and the user
does not know the day of the week otherwise show on the mini
calendar.

bug:5264972

Change-Id: I06aeb7ba1ad34d4e99628d9586ff2777e981c963
atePickerDialog.java
53dc75339a09925af145396299f321e4ab976975 02-May-2012 Adam Powell <adamp@google.com> am a60ce985: am 39f412d8: Merge "API modifications for TaskStackBuilder" into jb-dev

* commit 'a60ce9859366b66bcec2a16414abbd670d988de1':
API modifications for TaskStackBuilder
f78a8444a9b21b0d1daca8667d580dd0ec04a310 02-May-2012 Adam Powell <adamp@google.com> API modifications for TaskStackBuilder

Change-Id: Ic9e11caa4541962d32b2c197f4f7b19ee67a0eda
ctivity.java
askStackBuilder.java
d733ec3b28ded8d2d4f6ab0498bc66a207cb6ad7 25-Apr-2012 Brett Chabot <brettchabot@android.com> Prevent binder flooding when sending instrumentation status.

There is a long standing bug in the InstrumentationTestRunner where executing
many fast-running tests causes it to hang with 'FAILED BINDER TRANSACTION'
messages in the logs.

This commit changes the Instrumentation status updates to be sent synchronously.

Bug 1796494

Change-Id: Ifd1af31158353d727bd88283eaeb90933ba1a3ca
InstrumentationWatcher.aidl
e6b4e6556eecc726b70675bce580235c12c558a0 28-Apr-2012 Jeff Sharkey <jsharkey@android.com> am ff6b7588: am 6ee3fe88: Merge "Migrate ringtone playback to SystemUI." into jb-dev

* commit 'ff6b7588ab575035ba0d21bbb21f78e3c8761112':
Migrate ringtone playback to SystemUI.
6ee3fe884987d9d9915a8fce3d149719a35e9acb 28-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate ringtone playback to SystemUI." into jb-dev
33d7560561963e6679af1c27e414600e1a58e875 27-Apr-2012 Michael Jurka <mikejurka@google.com> am 235013f5: am f0fb68d8: Merge "Make APIs to get global search provider public" into jb-dev

* commit '235013f5518593da2502bb78fee0063f5e559ac6':
Make APIs to get global search provider public
f0fb68d8c99286e0db6d04ffa7a2bb7671d121a3 27-Apr-2012 Michael Jurka <mikejurka@google.com> Merge "Make APIs to get global search provider public" into jb-dev
3f5cfcf2d9d60bf12127dee3be54faaf7150ff69 27-Apr-2012 Michael Jurka <mikejurka@google.com> Make APIs to get global search provider public
earchManager.java
098d580cc2bb6c0891c756a4e5230c6c6b0d2376 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Migrate ringtone playback to SystemUI.

Introduce IRingtonePlayer, which handles playback for both Ringtone
objects and Notifications. SystemUI now hosts this player, which it
registers with AudioService. It also keeps MediaPlayer instances
warm, and cleans them up after stop() or Binder death.

Move both Ringtone and NotificationManagerService to play back audio
through this new interface.

Bug: 6376128, 6350773
Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
otification.java
c3b1b6489735682c1dd48af9ece0d845ae1ef876 27-Apr-2012 Adam Powell <adamp@google.com> am 75e8637f: am f2d75bc0: Merge "Use finishAffinity for automatic up navigation" into jb-dev

* commit '75e8637f44cf11dd0fd5e646ab67095a71822bf4':
Use finishAffinity for automatic up navigation
897b1dd61063dbd41eeffa228eef9dc8e4f6b687 27-Apr-2012 Adam Powell <adamp@google.com> Use finishAffinity for automatic up navigation

Change-Id: I2ac1971e82c499e8bafe13fcc113c5594c34864b
ctivity.java
0e0d7a7462ed819c83ccaf5e85e58610bc4bb8ec 27-Apr-2012 Dianne Hackborn <hackbod@google.com> am de5c3359: am 73214f61: Merge "Fix launcher icon size for tvdpi." into jb-dev

* commit 'de5c3359a643f9f289fda35fbb6219fdb6c21adf':
Fix launcher icon size for tvdpi.
73214f619a824cf724ab8f60d8fc992aed6a70a6 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix launcher icon size for tvdpi." into jb-dev
eb083229534108bb2f4151170cf4f0b03f39e96e 27-Apr-2012 Dianne Hackborn <hackbod@google.com> am 4883d755: am 493f74e5: Merge "Add new Activity.finishAffinity() method." into jb-dev

* commit '4883d755ebee295af57eb7294db0146db153b2a5':
Add new Activity.finishAffinity() method.
d0356a19c1630e598a096477ce5cb5d2942a9405 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix launcher icon size for tvdpi.

We didn't have a case for tvdpi, so ended up in the default
scaling. This resulting in us using 319 instead of 320.

Fixed the default case to round, and added explicit cases
for tvdpi since this is a standard density.

Change-Id: I752b924e1556af94682428c8c0ed7c75d15ac4a4
ctivityManager.java
ecc5a9cca000b62d2a649b795460fd791a206a89 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new Activity.finishAffinity() method.

It's cool!

Change-Id: I9fdcd9535b7f1ca2b311d3a1b23e5d058977b095
ctivity.java
ctivityManagerNative.java
ActivityManager.java
a1f86425af8d3692c11c46ad171bfcece1e7bbd6 27-Apr-2012 Dianne Hackborn <hackbod@google.com> am 6fa78731: am 8e6159b8: Merge "Add traces for window manager and activity manager." into jb-dev

* commit '6fa787319314b59b058dc46d1c97e95f04914258':
Add traces for window manager and activity manager.
8e6159b821c0782776c030ab588c3e0d1d0143f6 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add traces for window manager and activity manager." into jb-dev
79d59491e2f5aff2c3f4b61c5996e3cd18572df3 26-Apr-2012 Dianne Hackborn <hackbod@google.com> am 530330c2: am a6517ae3: Merge "Update process importance documentation." into jb-dev

* commit '530330c264867594f3293c6b310e8975ff45c9fa':
Update process importance documentation.
a6517ae3002ffe98afcdd45de0f2efbc2f97c871 26-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Update process importance documentation." into jb-dev
1ded0b1f6af65c2f95f8327f7f3df4cee1bf2346 26-Apr-2012 Dianne Hackborn <hackbod@google.com> Add traces for window manager and activity manager.

Change-Id: I525d762db328e4c597da27b6b56d9a808e199756
ctivityThread.java
oadedApk.java
c5bf7584422adca286c1f27a073df925c06f068d 26-Apr-2012 Dianne Hackborn <hackbod@google.com> Update process importance documentation.

Also be more direct about some of the wallpaper APIs.

Change-Id: I2112898c0cd4415d6c5fd47923de682d59b8291f
ctivityManager.java
allpaperManager.java
5a75d29eecce4594e4081ed4b8c20fbaac8587cd 26-Apr-2012 Dianne Hackborn <hackbod@android.com> am d29032e3: Merge "Do not dispatch context selection events to non-visible fragments."

* commit 'd29032e362d41e81ed07d97b8103df855427cb14':
Do not dispatch context selection events to non-visible fragments.
14a9310efd936149c82ecfcc37c7c8308968f67c 25-Apr-2012 Pin Ting <pinting@google.com> Fix javadoc.

Change-Id: Ibbfee452cae76a379dcd360412de962e90f29da5
ctivity.java
c0581aff1d201208c42273b825d573d6cba52900 24-Apr-2012 Jake Wharton <jakewharton@gmail.com> DO NOT MERGE. Do not dispatch context selection events to non-visible fragments.

When used in a `ViewPager`, fragments that are present on the adjacent,
cached pages will receive context selection dispatches which, depending
on your fragment contents, can be difficult to determine whether or not
the event truly originated from your view.

By using the visible hint we restrict dispatching to only those fragments
which are marked as being visible. Since the fragment pager adapter
updates this setting properly most implementations will be afforded this
fix without any change required. If the user is implementing their own
adapter they likely already understand the implications of these cached
fragments and the reponsibility for updating the boolean falls to them.

Mirrors support library change Ie6a72c1c82c2784774373670007b6f5948fe16da

Integrated from AOSP.

Change-Id: I19bbbe4c8d910fb38c14d6ae5d462eb7dd44fd26
ragmentManager.java
a057f332fb30fb0a858e32dc63eba1763e7bfa92 25-Apr-2012 Dianne Hackborn <hackbod@android.com> am 5ba15cc3: am 9d9251c8: am 847d677f: am 3c40675f: Merge "Fix potential NPE when saving fragment state."

* commit '5ba15cc38f11ffcfa5dbc65e4c213272b458d99c':
Fix potential NPE when saving fragment state.
0e567987d7883aa8997ac30c793aa6d5cd1aabbb 24-Apr-2012 Jake Wharton <jakewharton@gmail.com> Do not dispatch context selection events to non-visible fragments.

When used in a `ViewPager`, fragments that are present on the adjacent,
cached pages will receive context selection dispatches which, depending
on your fragment contents, can be difficult to determine whether or not
the event truly originated from your view.

By using the visible hint we restrict dispatching to only those fragments
which are marked as being visible. Since the fragment pager adapter
updates this setting properly most implementations will be afforded this
fix without any change required. If the user is implementing their own
adapter they likely already understand the implications of these cached
fragments and the reponsibility for updating the boolean falls to them.

Mirrors support library change Ie6a72c1c82c2784774373670007b6f5948fe16da

Change-Id: I1bc6f74e26660ef4a3c20419c077e37992412e94
ragmentManager.java
5ba15cc38f11ffcfa5dbc65e4c213272b458d99c 24-Apr-2012 Dianne Hackborn <hackbod@android.com> am 9d9251c8: am 847d677f: am 3c40675f: Merge "Fix potential NPE when saving fragment state."

* commit '9d9251c8caee4a847b630653204bb205a1fbed09':
Fix potential NPE when saving fragment state.
847d677f348cfe8dfca8b976dc1fbc40a865d4c9 24-Apr-2012 Dianne Hackborn <hackbod@android.com> am 3c40675f: Merge "Fix potential NPE when saving fragment state."

* commit '3c40675f6f473896b93ca6416d29192d88e92622':
Fix potential NPE when saving fragment state.
258029eeaaace45fab6244cd09cc389aa57fedac 22-Apr-2012 Jake Wharton <jakewharton@gmail.com> Fix potential NPE when saving fragment state.

If a fragment's saved view state is null and the user
visible hint is true then the `result` bundle will have
never been initialized to a value resulting in a
`NullPointerException`.

Mirrors support library change I8ba585bc6b9298841490d64bc22a8219cd261adb.

Change-Id: Iabd5ac293d2ece3771da9ef257479eca0dcd523c
ragmentManager.java
19f86e831ee0629b24385b0bb51d27ff91961dd2 24-Apr-2012 Romain Guy <romainguy@google.com> Invoke onTrimMemory with an EGL context
Bug #6369600

Change-Id: I3ded47c3688ef2f2873495392c35e898357204da
ctivityThread.java
b023bf85a080442117b5dae8d402bce60cd0a610 23-Apr-2012 Chris Wren <cwren@android.com> let default notifications with actions get bigger that 64dp.
Bug: 6377749

Change-Id: I8c92ef67b59f7a44b61926c32480cce6990a1375
otification.java
3c464bdefe37f75153e8a8c978c3457ae4d1f37e 23-Apr-2012 Adam Powell <adamp@google.com> Add TaskStackBuilder#addParentStack(ComponentName)

Let TaskStackBuilder discover a parent activity stack by ComponentName
in addition to explicit Activity classes.

Change-Id: I18b8378548ed1d6ef033800e6a3e11ab965d07e5
askStackBuilder.java
816e4f758302aaf3b115b5914d48732ed78af946 23-Apr-2012 Jeff Sharkey <jsharkey@android.com> System context should inherit base package name.

Otherwise registerReceiver() from views inflated with the returned
context will throw (like DateTimeView).

Bug: 6376149
Change-Id: I038a680e49fba81bbebfc8c0c94f15e7cd072f33
ontextImpl.java
7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #4499996: LiveWallpaperPreview activity intent filter

Change-Id: I5fc71503d2c59c907da954dbda3587394e6405bf
allpaperManager.java
0da673f02e542c644c300568807c80e196296860 11-Apr-2012 Daniel Sandler <dsandler@android.com> Notifications may now be disabled on a per-package basis.

When a package's ability to post notifications is disabled,
all outstanding notifications from that package are
immediately canceled, and the score of any future
notification from that package is set so low that the
notification manager won't even send it to the status bar.

No UI for this yet, but you can try it out:

adb shell service call notification 8 s16 $PKG i32 (1|0)

Bug: 5547401

Change-Id: Ieccac5746b40f60debd902a45d1dedbc91dcdc89
NotificationManager.aidl
6b31880838196806dff991551f197684b5809d8b 13-Apr-2012 Daniel Sandler <dsandler@android.com> Remove intruder alert APIs from JB.

Change-Id: I27042d604fbe15879e7b7aaaac860db2d1efa47f
otification.java
8f05a120c9ac8fc899317af2a947db9a49622c67 19-Apr-2012 Quddus Chong <quddusc@google.com> am 0691f70a: am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1

* commit '0691f70ad8833e9a2b042d7a56b07ad0ee561f87':
docs: Added missing comma in code snippet. Bug: 6322757
4ad909538e0e61826d33bcf40cbcb845319dbdb9 19-Apr-2012 Quddus Chong <quddusc@google.com> am 2f675105: am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1

* commit '2f675105ec35987b85327c97de2aacb169174c47':
docs: Added missing comma in code snippet. Bug: 6322757
0691f70ad8833e9a2b042d7a56b07ad0ee561f87 19-Apr-2012 Quddus Chong <quddusc@google.com> am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1

* commit '13bb0791a1cec6a678db3bd7ab23060b3bb911ae':
docs: Added missing comma in code snippet. Bug: 6322757
e7d9cd363d6095d37ca25d393c5e86067d3cc5e5 18-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Add ALLOW_METERED column to DownloadManager."
15ec7d6d7f23ec197a88619b5e03320cfebd2240 17-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add ALLOW_METERED column to DownloadManager.

Also allow isActiveNetworkMetered() to inspect networks without
requiring ACCESS_WIFI_STATE.

Bug: 3001465
Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
ownloadManager.java
6a858c347f4d4e5db4c8f00d5e285967631b71ca 12-Mar-2012 Daniel Sandler <dsandler@android.com> Gestures for expanding notifications.

Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
otification.java
b9a6d4d052a7cc63b4753081f64628be3503681a 18-Apr-2012 Daniel Sandler <dsandler@android.com> Merge "New InboxStyle template for expanded notifications."
879c5e07c019bbcd8647e60656d0749eae0467c3 17-Apr-2012 Daniel Sandler <dsandler@android.com> New InboxStyle template for expanded notifications.

Bug: 6336834
Change-Id: I67b273350b984673cbfb19267451a3782d0477fc
otification.java
ac76e72272c957dc7609aa68224efa2d32c23cd0 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new scale-up window manager animation."
eabfb3a36e9469c5e219f92b39b7200104319185 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new scale-up window manager animation.

Like zoom thumbnail, but without the thumbnail.

Change-Id: I9486dd204398b87c9e70ff0d05d03f4a22449cd6
ctivityOptions.java
9704e78418a1ed9927ac2596a5c0084953dcb22b 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Refactor SensorManager to move non-API bits into a subclass."
25157e458d6e10b027d1ba6b78b0487156c9f57a 16-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor SensorManager to move non-API bits into a subclass.

Changed the SensorManager class so that it only contains API-related
bits including what's needed to support legacy sensors. Mostly just
moved stuff around. Making the class abstract is safe because
it does not have a visible constructor in the API.

One minor change is that the cache of sensor type to sensor lists
is now per instance of SensorManager instead of being static.
We can fix this if desired.

Another small change is that we bail out early from registerListener
if the listener has already been registered for the particular
sensor. This happened for both legacy and standard listeners.
The problem is that the ListenerDelegate maintains two lists of
sensors, one is a Map and the other is a List. Adding a sensor
twice causes one entry to be added to the Map and two entries to be
added to the List, but when the sensor is removed the next time, only
one entry is removed from the List, leaving it in an inconsistent
state.

Removed Sensor.getLegacyType() since the value it provides is only
needed in LegacyListener and we don't really save any significant
computation by caching it. Removing the field makes support for
legacy sensors a little more self-contained.

Bug: 6339552
Change-Id: I50d41ac97cf535924f2bfa2026d28547a4d00286
ontextImpl.java
c0e5b8c7fab8d02e8a9cbae7a4e32f5176001712 16-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "DownloadManager and metered networks."
792e091045d89c875399251f92e015afe8dee412 16-Apr-2012 Jeff Sharkey <jsharkey@android.com> DownloadManager and metered networks.

API to control whether a download is allowed to use metered networks.

Bug: 3001465
Change-Id: I29153d2a7495a2e9f76ef5be0a77696a85823839
ownloadManager.java
75e0dcbca1fe6d218685c73829ae8c75a45b4920 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Extract Vibrator implementation from interface."
3fa98cb02c8f748b82869cd784db82094e950e4b 13-Apr-2012 Quddus Chong <quddusc@google.com> docs: Added missing comma in code snippet.
Bug: 6322757

Change-Id: I32cbd89493287cbb5d76b59647a8ddbd59209132
ctivity.java
4dfbe83e1a110b416badf73ddf68c83db0d415ae 11-Apr-2012 Daniel Sandler <dsandler@android.com> Unhide some new Notification APIs.

Bug: 6318391
Change-Id: Ie51f373cc84d845fa4aababab702c115fcc9e2e5
otification.java
c2346134bb519a54d50655cbef940fc3fdec60a9 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Extract Vibrator implementation from interface.

Moved the core logic of Vibrator into SystemVibrator, potentially
allowing for the creation of other Vibrator subclasses.

Fixed several places where we were creating new Vibrator
instances unnecessarily instead of getting it from the Context.

It is safe to make Vibrator abstract because its constructor
was hidden from the SDK so it was not possible to subclass it.

Bug: 6334179
Change-Id: I18ece6544c26a7efb2d5099f8346a10aef8a5e18
ontextImpl.java
ff5b158f69bf453cf1fdedd175a09482c65f2bf2 13-Apr-2012 Dianne Hackborn <hackbod@google.com> Keep activities stopped while the lock screen is up.

Tell the activity manager when the lock screen is shown, so it
can keep itself (mostly) in sleep mode during this time, having
the foreground actvities remain in their stopped state.

Change-Id: I71c86d3298f23a98014d7ae36fd540c9df9a64e6
ctivityManagerNative.java
ActivityManager.java
f6e429531620688fa00bfae0cda4ec04d9c7d4ec 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> am 88d97104: am d9818244: Merge "DO NOT MERGE: Make component names visible in javadoc." into ics-mr1

* commit '88d9710483c07c6fe985018e276532a2c480df81':
DO NOT MERGE: Make component names visible in javadoc.
d9818244f9bf47b9e2981df7866b1ace01392fa9 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "DO NOT MERGE: Make component names visible in javadoc." into ics-mr1
aa0a453a7ae0ee1f588298bf78a8fac16b5aae38 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE: Make component names visible in javadoc.

Change-Id: I3770ea6616b8425c387bcd27d668e3114b14335d
ctivity.java
ervice.java
b990893ffc591bc7de9d5fd54dbe1707388717a8 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make component names visible in javadoc."
5554b7082220d37496e30f39a0d9146afc177ab4 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Make component names visible in javadoc.

Change-Id: I3770ea6616b8425c387bcd27d668e3114b14335d
ctivity.java
ervice.java
eb84cc6bbd6122287ead600c64ae251b9458de42 12-Apr-2012 Quddus Chong <quddusc@google.com> am c4180594: am 51cb7ca5: am c08787fc: Merge "SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971" into ics-mr1

* commit 'c4180594855bf108fe6eccf9f7ab57605ba86b58':
SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971
9fd39dedf9b70a748c02d113893df498df407dd5 12-Apr-2012 Quddus Chong <quddusc@google.com> am c08787fc: Merge "SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971" into ics-mr1

* commit 'c08787fc96473b5738a4c024a13a8c7d24af496b':
SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971
51cb7ca563dda1ea92b76f216e5d2960dcd62cf8 12-Apr-2012 Quddus Chong <quddusc@google.com> am c08787fc: Merge "SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971" into ics-mr1

* commit 'c08787fc96473b5738a4c024a13a8c7d24af496b':
SDK doc change: Fixed typo and added method parentheses in line 206. Bug: 6318971
3790001c20494d1f355a67bec7751c4b8f07874f 11-Apr-2012 Quddus Chong <quddusc@google.com> SDK doc change: Fixed typo and added method parentheses in line 206.
Bug: 6318971

Change-Id: I57f3c7aff6209269ca0d95d616e551e2100eeb54
ragment.java
9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Request key maps from input manager service.

Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded. Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured. This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
ontextImpl.java
nstrumentation.java
9944ecd28e1c56c4e9f0a50ed6e8be2110ba5c31 11-Apr-2012 Dianne Hackborn <hackbod@google.com> Hide the callback for activity animation options.

Not something I want to be stuck reporting forever.

Change-Id: Iab13fb7abb23d466492230242bfbae29f1fd01f3
ctivityOptions.java
162bc0ea0d7862b92f18d0ce47310a85304205f7 09-Apr-2012 Dianne Hackborn <hackbod@google.com> Some small tweaks to improve memory management.

We now allow processes that currently have stopping activities to
be managed as if they were done stopping, so that memory trimming
can be done before the process goes to the background. Hopefully
this will reduce cases where the processes goes to the background
and immediately gets killed, but wouldn't have had to be killed if
it had a chance to trim its memory.

Also change window memory trimming to always do the aggressive
trimming when memory is critical, even if not on a low-end device.

And tweak web view trimming to not trim for foreground UI events.

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
ctivity.java
ctivityThread.java
04d5811500874d44010df2b4ce37a0b21095168f 09-Apr-2012 Adam Powell <adamp@google.com> Tweaks to Activity up navigation

Be more explicit in docs about getParentActivityIntent and guard against
calls when a parent has not been declared in the manifest.

Move automatic up navigation to happen after dispatch of the menu
selection event of id android.R.id.home to fragments. (Last.)

Fixes bug 6305357

Change-Id: I944e5c40774121f9a28250d8d98da6aa646f9357
ctivity.java
bf64e70f9b818d992d3aad8424f2f0ad3966d729 06-Apr-2012 Christopher Tate <ctate@google.com> Merge "Attribute alarm broadcast wakelocks to the sender"
c4a07d1caa9befd4fa8165ff05fa5e92480d8e27 06-Apr-2012 Christopher Tate <ctate@google.com> Attribute alarm broadcast wakelocks to the sender

Wakelock usage for the purpose of sending an alarm broadcast is now
attributed to the application which posted the alarm, not to the OS.

Bug 5911317

Change-Id: I8cb79c3bd5db467388716ab68285f4ab0bfe468b
ctivityManagerNative.java
ActivityManager.java
ac14351e16e1258f1cb54e2bf772b8be004eb2b8 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Move some APIs from window manager to input manager.

Simplified input injection API down to just one call.

Removed all input state reading API. It was only used by the
window manager policy and required a permission that applications
could not obtain. READ_INPUT_STATE is now unused and deprecated.

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
ontextImpl.java
nstrumentation.java
8ab700cbbab60f7a01a86cbf16496e1f34236dd6 06-Apr-2012 Adam Powell <adamp@google.com> Fix a bug in TaskStackBuilder where task stack PendingIntents would
not clear tasks properly.

Change-Id: I5a7918fa5e400c160409a45d3e00b32f6f4809aa
askStackBuilder.java
330401243ed992eb62e59c8ac34d6862eb64d712 06-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Support metered Wi-Fi NetworkPolicy."
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID. Add support for policies without usage cycles.

Only apply mobile policies when SIM state is ready, which is cleaner
than just checking for airplane mode. Also avoids creating no-op
default policies when subscriberId is null.

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
ownloadManager.java
23b871d7147de910b53646cdb987e28dac0df927 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Initial commit of InputManager and keyboard layout API."
9df6e7a926ce480baf70e97ee1b9ea387193f6ad 05-Apr-2012 Jeff Brown <jeffbrown@google.com> Initial commit of InputManager and keyboard layout API.

Added a new InputManager service for interacting with input
devices and configuring them. This will be the focus of
an upcoming refactoring.

Added an API for registering keyboard layouts with the system
based on the use of a broadcast receiver. Applications can
register their own keyboard layouts simply by declaring a
broadcast receiver in their manifests.

Added the skeleton of a package that will ultimately contain
the keyboard layouts and other input device related resources
that are part of the base system.

Bug: 6110399
Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
ontextImpl.java
dd8fab2629131b09367df747afd9a61e42dd1992 23-Mar-2012 Adam Powell <adamp@google.com> TaskStackBuilder and Activity navigation features for framework

Promote navigation helpers from the support library to the core
platform.

The support library's meta-data element has been replaced with a
first-class parentActivityName attribute. This attribute is valid
on both activity and activity-alias elements. An activity-alias
will inherit the target activity's parentActivityName if one is
not explicitly specified.

Automatic Up navigation for Activities

Add the public method onNavigateUp() to Activity. The default
implementation will use the metadata supplied in the manifest about an
activity's hierarchical parent (parentActivityName) to do the right
thing.

If any activities in the parent chain require special Intent
arguments, the Activity subclass should override onNavigateUp() to
properly implement Up navigation for the app, supplying such arguments
as needed.

If automatic Up navigation within the same task can't find an activity
matching the supplied intent in the current task stack, it will act as
an in-app "home" and return to the root activity (presumably the app's
front page) in that task. (From this state, pressing "back" with
default behavior will return to the launcher.)

Change-Id: If163e27e59587f7af36975a09c986cb117ec3bc6
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
askStackBuilder.java
cde8aae955f2c1074a840074a9f586f95c3f61f7 05-Apr-2012 Daniel Sandler <dsandler@android.com> Fix crash in legacy notification construction path.

Bug: 6293584
Change-Id: I8c1c5162a2e9e3ebc5a6d3fed045c6c6a64b9bfd
otification.java
48200b6f3ff1f742df57faf929f51f3db06fec88 05-Apr-2012 Daniel Sandler <dsandler@android.com> Merge "Chronometer support in Notifications."
a2985ed3099c9206a4fd9fd8eaf0e4025b82aca9 03-Apr-2012 Daniel Sandler <dsandler@android.com> Chronometer support in Notifications.

@hidden for now while we experiment with it in Phone.

Change-Id: Ib6ca3a8262f676d49d81e081a30c6d994c732a6b
otification.java
7d024d372431effc87168afdc7cbe387680c4935 23-Mar-2012 Irfan Sheriff <isheriff@google.com> Add initial framework for DNS service discovery

Change-Id: I53c0b7ebfd75e520ebb7553612f1aa8413b6b79b
ontextImpl.java
1663565739361f3e01308e9c4d6cf30bfc6c197d 03-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Polish the Number/Date/Pickers per UX request."
fe41ce4ef97e7da585fdbf06988da8047e72b9f6 03-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Polish the Number/Date/Pickers per UX request.

1. Now the NumberPicker max height is a bit smaller.

2. The Time/Date picker add top and bottom margin to
compensate for the shorter NumberPickers.

3. The Time/DatePicker dialogs have only "Done" button
and tapping onside saves the current state.

bug:6277808

Change-Id: I4c5928debb1c3b7fe126d6cd6745e3c5eb980901
atePickerDialog.java
imePickerDialog.java
d893a890c92e174c1a4bf0075b0acc4749a0eaa8 02-Apr-2012 Brian Carlstrom <bdc@google.com> Add support for native library paths with instrumentation

(cherry picked from commit 8e658fd0415b3d6f44223c39a7e59a00cb0954aa)

Change-Id: Idb1e031d5deeea9305af8aacc17ae2d0d064dfc6
ctivityThread.java
oadedApk.java
0424716328a7d0f7bb794d24f7481a76be08d379 02-Apr-2012 Daniel Sandler <dsandler@android.com> Merge "Show action buttons in expanded notifications."
96fd7c1c1acc03b40b1813ef65793560c175ef80 30-Mar-2012 Daniel Sandler <dsandler@android.com> Show action buttons in expanded notifications.

Any notification with at least one action will now have an
expanded form by default. BigPicture/BigText can have
actions, too, of course.

Change-Id: I6f54cac65d9a9f335d8038c2105cd2c674f991ff
otification.java
3a3a6cfd8ec12208ca75c0d0d871d19d76c34194 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new feature to let apps layout over status bar / system bar.

The main change is a few new flags you can supply to
View.setSystemUiVisibility(). One is a new visibility mode,
SYSTEM_UI_FLAG_FULLSCREEN, which is basically the same as
the global FLAG_FULLSCREEN option for windows, but driven as
part of the system UI state.

There are also three new flags for telling the framework that you
would like to have your application's UI ignore screen
decorations -- SYSTEM_UI_FLAG_LAYOUT_NO_NAVIGATION for going
behind the navigation bar and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
for ignoring full screen decorations (that is the status bar).

In combination with this you can use SYSTEM_UI_FLAG_LAYOUT_STABLE
to have the framework report consistent insets to your application.

When using NO_NAVIGATION, when the user taps the screen we now
also automatically clear ONLY_CONTENT, so that we atomically show
both UI elements. This should make it easy for apps like video
players that want to move between fully full-screen and regular
modes.

The ActionBar has also been extended when in overlay mode so
that it will adjust the system window insets to also account
for its space, and allow it to be hidden using the new
SYSTEM_UI_FLAG_FULLSCREEN.

Change-Id: Ic8db1adec49a0f420bfe40c1d92eb21307856d0b
ctionBar.java
970de33c8d4e234f65aaf2088531ac4b526be43a 29-Mar-2012 Daniel Sandler <dsandler@android.com> Merge "The beginning of expanded notifications."
f3b7343246bf20a8024853abe9c8eeef767d26da 27-Mar-2012 Daniel Sandler <dsandler@android.com> The beginning of expanded notifications.

There are now two "rebuilder" classes, each of which
consumes a Notification.Builder and modifies its behavior.
(Inheritance in Builder classes is...not advisable.)

- BigPictureStyle: includes a large Bitmap above the usual
notification strip.

- BigTextStyle: shows the contentText in a large, wrapping
TextView instead of truncating to one line.

As for SystemUI, the notification panel now shows the
expanded form if it is available, otherwise the usual
contentView is shown.

(Note that the structure of largeIcon notifications has
changed a bit: The largeIcon is no longer handled by the
status bar at all; it's entirely inside the template now.
Not only does this make the code simpler, and make large
notifications possible, but it fixes the longstanding
irritation that tapping on a largeIcon doesn't highlight the
whole notification row. Man, that feels good.)

Change-Id: I2b9d8a6ea4385659d8cb1ed467c1caf5e12628dd
otification.java
52f1d752f90579c9b57e3350393a029cf72138d0 29-Mar-2012 Amith Yamasani <yamasani@google.com> Show the current user in power menu

Shows a little indicator next to the current user in the power menu
when multi-user is enabled.

Fixed a bug where Settings was sometimes being launched in the wrong
process when there are 2 instances running.

Change-Id: Iaf2a00f6d1871fd2a88d8982439e445423bb2896
ctivityManagerNative.java
ActivityManager.java
fc90b6a7c746c7502b42855c463954dd41bae757 28-Mar-2012 Daniel Sandler <dsandler@android.com> Merge "Add text labels to intruder actions."
8b5bce8d9060c1b68b5605da8f6978d8fb5ea1d3 27-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "User management and switching"
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
pplicationPackageManager.java
b2a1c23a553254b71f25f0ed0773d4d3126656f8 24-Mar-2012 Daniel Sandler <dsandler@android.com> Add text labels to intruder actions.

Change-Id: I544bed7b37c043639ee0e6a11bf757c0a191c1fc
otification.java
d4577c0c29f8e38a34d1aeac59803b37769af790 24-Mar-2012 Romain Guy <romainguy@google.com> Merge "Destroy the hardware renderer when ViewRootImpl's die is post-poned Bug #6109035"
a998dff5d49a423aaf7097aa8f96bf5bdc681d25 24-Mar-2012 Romain Guy <romainguy@google.com> Destroy the hardware renderer when ViewRootImpl's die is post-poned
Bug #6109035

ViewRootImpl.die() can be invoked in such a way that doDie() will be
executed later. On memory limited device, an eglTerminate() may happen
before doDie() is executed which leads to unstable behaviors. This
change makes sure the renderer is destroyed as soon as possible.

Change-Id: I3322410cdd744b464951e2055aeade6069d1d673
ctivityThread.java
0c44525a4888de321c9497204d59c8515f828499 24-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Copy EXTRA_STREAM into ClipData and grant."
678d04f1b6d189b2d867d518065f90dce7292863 23-Mar-2012 Jeff Sharkey <jsharkey@android.com> Copy EXTRA_STREAM into ClipData and grant.

When sending SEND or SEND_MULTIPLE intents, copy any EXTRA_STREAM
Uris to ClipData and set GRANT_READ_URI_PERMISSION flag.

Bug: 6216357
Change-Id: I3c9b0d1d4b7e0c4655b47c4192150b0c3641e0e8
nstrumentation.java
69f819b397e5e4b50b1931da6ef1caba0229640a 23-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include GIDs for unenforced permissions."
7cf4640e812a86451d17514f01bb7ffa5e56c33b 23-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new thumbnail animation."
8078d8c8a282ca81344febe7256f63b1e805e3aa 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new thumbnail animation.

Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ctivityOptions.java
ActivityManager.java
47847f3f4dcf2a0dbea0bc0e4f02528e21d37a88 23-Mar-2012 Jeff Brown <jeffbrown@google.com> Support enabling WAL using a flag when DB is opened.

Using enableWriteAheadLogging() to enable WAL is inefficient because
we previously disabled WAL mode when the database was opened.
Switching from WAL to PERSIST then back to WAL is inefficient
and could slow down application launch time. It would be better
to leave the database in WAL mode when we open it to begin with.

To do that, we need to know ahead of time whether we will want to
have WAL enabled for the newly opened database.

Using this flag also reduces the chance that we will encounter
an error enabling WAL mode due to there being other open connections
to the database.

Bug: 6124556
Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
ontextImpl.java
b9a070189c2280a6356a8abb9483b517a41e14c3 23-Mar-2012 Jeff Sharkey <jsharkey@android.com> Include GIDs for unenforced permissions.

When READ_EXTERNAL_STORAGE isn't enforced, grant its GID to all
launched processes. When changing enforcement, kill all processes
below foreground adjustment, causing them to be relaunched with
update GIDs.

Bug: 6131916
Change-Id: I6d83efc937919f13a1a7d9caac902e572869406a
ctivityManagerNative.java
ActivityManager.java
ad812a23df775062f0185076557e7f3fdfa57943 22-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Package restrictions per user"
483f3b06ea84440a082e21b68ec2c2e54046f5a6 14-Mar-2012 Amith Yamasani <yamasani@google.com> Package restrictions per user

Packages can be enabled/disabled per user.
This requires maintaining stopped/launched states and
enabled / disabled components and packages per user.

Refactored pm.Settings and PackageSettingsBase to keep
track of states per user.

Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml

Changed intent resolution to handle individual user restrictions.
Bunch of IPackageManager calls now have a userId argument.
Make AppWidgetService handle removals of packages.

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
ctivityThread.java
pplicationPackageManager.java
oadedApk.java
a0a938cd5f6eaed449678a00420916cde711de63 15-Mar-2012 Daniel Sandler <dsandler@android.com> Notification actions API.

Actions will be attached to the Notification object and also
used to inject additional tap targets in the default
template used by Builder.

Change-Id: Idd58686b9c44b2ca7bb9ec5aa8337f3bdce5b878
otification.java
6de01a9b03ad6f8a1af4a0d893d952caa4b69d39 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Fix build, forgot to add file.

Change-Id: Ia4b632170471649d1e1eceaad8fec41729008659
ctivityOptions.java
9ce685b934b36cc57631e10f7c1e3609e91e3f9c 16-Mar-2012 Christopher Tate <ctate@google.com> Make immersive mode public & imply update locking

Activity.setImmersive(boolean) / android:immersive="bool" are now public.
In addition, if the foreground activity is immersive then an update lock
will be held on its behalf. This lets applications such as movie players
suppress the display of intrusive notifications, OTA-availability dialogs,
and the like while they are displaying content that ought not to be
rudely interrupted.

The update lock aspect of this mode is *advisory*, not binding -- the
update mechanism is not actually constrained; it simply uses this information
in deciding whether/when to prompt the user. It's more a guideline than
a rule.

Bug 6154438

Change-Id: Ibd3491fc437077f3fa0d9708ed91955121e8c877
ctivity.java
7a2195cdd33f27c79eda343defc1f7ccf59cc8ac 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Start using the new activity options argument.

New class lets you make an options bundle defining a custom animation,
as an alternative to Activity.overridePendingTransition().

Change-Id: I8e209bf52398a98ab9f1bcafa1ec0a580dae57c0
ctivity.java
ctivityManagerNative.java
ragment.java
ActivityManager.java
endingIntent.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
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
ontextImpl.java
ragment.java
ActivityManager.java
nstrumentation.java
endingIntent.java
4faaed97ab331b322afeef8055d740dc7673e1b2 13-Mar-2012 Siva Velusamy <vsiva@google.com> Merge "ActivityManager: add option to allow OpenGL trace."
ea193cebef78f954c505fd2547c067d6a9150de1 23-Sep-2011 Daniel Sandler <dsandler@android.com> DO NOT MERGE

System bar now renders the back button for recents

We used to render the back button in Recents
itself, but that had an inconsistent visual
experience.

As a part of this change, add the early beginning
of support for private status bar APIs for dimming
navigation buttons.

Bug: 3448536
Change-Id: Ie64369e3df3178178f35b56763ea96d380b6ddd4
tatusBarManager.java
92a8b22e7410e74e1cba1b856333116652af8a5c 10-Mar-2012 Siva Velusamy <vsiva@google.com> ActivityManager: add option to allow OpenGL trace.

This patch adds an option to enable tracing of OpenGL functions.
OpenGL tracing can be enabled by passing "--opengl-trace" option
to am start. This option requires either a device in debug mode,
or that the application itself has debug permission set.

Change-Id: I77788bfe97c9108943b1f947ce81afe8293d78a0
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
nstrumentation.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
ctivity.java
ialog.java
endingIntent.java
ervice.java
dmin/DeviceAdminReceiver.java
21c241e061de29a538008ca42df9c878184bcfb8 08-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new Intent API for associating a ClipData with an Intent.

Allows applications to propagate multiple URI grants through an
Intent.

Later on, we should probably redefine the share actions to be
based on this ClipData with the old extras-based approach only
there for compatibility. Even if we don't do that, though, this
allows you to do a multi-select share that grants multiple URI
permissions by stuffing the URIs in a ClipData.

Also add some documentation in various places telling people how
they can grant URI permissions.

Change-Id: Id4ba8e72c11caf7e1f1f438cb7af058d1586a37c
ctivity.java
ervice.java
e61cad321d2888f2b6b7e0322158211e3b3e0c46 08-Mar-2012 Dirk Dougherty <ddougherty@google.com> resolved conflicts for merge of 532679a5 to master

Change-Id: Id60d047c0e1f288acff97526c016cca632873b6b
27ff913d56de8400083a13fc572e2812b32c890c 06-Mar-2012 Dianne Hackborn <hackbod@google.com> Work on more low memory reporting to apps.

There are now some new trim memory levels that are sent to
non-background applications as RAM becomes low.

There is a new API for an application to retrieve information
about memory trimming and such on demand.

Fixed various checks against the memory trim level to be
robust (not compare against exact values).

Change-Id: Ifd1c6151124350168aef20a94e517166fd2e03eb
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
532679a5ed196ae8cfcdda5cc8a41252368cc9e5 06-Mar-2012 Dirk Dougherty <ddougherty@google.com> am 56bab8bd: am 4d7bc655: Doc change: String changes for Android Market

* commit '56bab8bd83c4f54f876fdd76fc241197920129db':
Doc change: String changes for Android Market
cd83bf9420a7c4c25d562b197438f532ad897c90 06-Mar-2012 Dirk Dougherty <ddougherty@google.com> am 4d7bc655: Doc change: String changes for Android Market

* commit '4d7bc65538c7cd9fbb1fbbcf22d1da47fcee1219':
Doc change: String changes for Android Market
859717ad627374c6e6ceae9f7cccf73084cb5fae 06-Mar-2012 Dirk Dougherty <ddougherty@google.com> am 4d7bc655: Doc change: String changes for Android Market

* commit '4d7bc65538c7cd9fbb1fbbcf22d1da47fcee1219':
Doc change: String changes for Android Market
4d7bc65538c7cd9fbb1fbbcf22d1da47fcee1219 28-Jan-2012 Dirk Dougherty <ddougherty@google.com> Doc change: String changes for Android Market

Change-Id: I823812a4fd24021bec906ad856479c92a8d2a759
pplicationErrorReport.java
6087dfcce1d095299a7d30d304903acf3e6fb541 24-Feb-2012 Andrew Flynn <flynn@google.com> DO NOT MERGE Return 1.5 * density as default for large screens.

Change-Id: Ib2d390803f08812636364ceb3849eddf80044072
ctivityManager.java
4ec961d5752363161cc78112fbe542b1c0473158 13-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> DO NOT MERGE

Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc."

This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.

Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
ctivityManager.java
b663a4b7da68cc6d81d4b338d94fb48eaec8cb05 26-Jan-2012 Dianne Hackborn <hackbod@google.com> Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.

Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
ctivityManager.java
5e7bb1e675df2cc1edd9808afcaaeed07830bd9f 13-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> DO NOT MERGE

Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc."

This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.

Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
ctivityManager.java
e6a0ec60607783b426b92f638055c79178fdd892 26-Jan-2012 Dianne Hackborn <hackbod@google.com> Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.

Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
ctivityManager.java
09c8f48c105c4ed299617aaa892c7f0cd891b144 05-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Report leaked Context registrations to StrictMode."
eb00769e8983a02397db26a5413147a975b47c1f 03-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Allow disk I/O while performing dump()."
e861b423790e5bf2d5a55b096065c6ad0541d5bb 02-Mar-2012 Jeff Sharkey <jsharkey@android.com> Allow disk I/O while performing dump().

Add Closeable to ParcelFileDescriptor, and always close any incoming
PFDs when dumping.

Bug: 6106309
Change-Id: I25b465692d5e1da0a5980a307cb48a058bc2bca7
ctivityThread.java
d2cca91e92d9988898a7579e418c00b65d429d46 02-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Add an API for deleting databases."
d7026f1612a7c1e8cc9b484038fa99b7fc29cfd7 02-Mar-2012 Jeff Sharkey <jsharkey@android.com> Report leaked Context registrations to StrictMode.

When tearing down any leaked BroadcastReceiver or ServiceConnection
Context registrations, report through StrictMode.

Bug: 6084353
Change-Id: I5e78039299e2c9c1440cd1fd09317da78ffee82a
oadedApk.java
79087e4b967d8af26c488c41b8c1a087a12da84d 02-Mar-2012 Jeff Brown <jeffbrown@google.com> Add an API for deleting databases.

Add SQLiteDatabase.deleteDatabase to delete a database and all
of its auxiliary files.

This method is also used by Context.deleteDatabase and resolves issues
where auxiliary files would get left behind.

Bug: 5972489
Change-Id: I3633b9b4978972a1d240ac0a9861420ecf989149
ontextImpl.java
b22d6c11efcb6b51315821c740b47b6deff30a12 02-Mar-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Allow webview to delete GL resource in a valid EGL context"
d9624138723c55a0ac2af58a2e78e98cd51eba27 02-Mar-2012 Teng-Hui Zhu <ztenghui@google.com> Allow webview to delete GL resource in a valid EGL context

bug:6079959

Change-Id: Idee1031b0bcc4aeb498a18eb01970a8ed7efd285
ctivityThread.java
6bff62c2fd1733832a81f613495f4ead14045b81 29-Feb-2012 Jeff Sharkey <jsharkey@android.com> Wrap StrictMode changes in try/finally.

Bug: 6091030
Change-Id: I2614f8bb30203e00953b1978bbcaf24d84d0397b
ctivityThread.java
96236bc8d93efc0573a18b87699d56a3ed8c0b0b 28-Feb-2012 felipeal <felipeal@google.com> am fa73815e: am e4ef9b1a: DO NOT MERGE (from master: Fixed minor typo on Javadoc)

* commit 'fa73815e1d953e67c635877440e717dc84465d97':
DO NOT MERGE (from master: Fixed minor typo on Javadoc)
4bcc910817c694c8d8b20e39a5ff42c584af1d49 28-Feb-2012 felipeal <felipeal@google.com> am e4ef9b1a: DO NOT MERGE (from master: Fixed minor typo on Javadoc)

* commit 'e4ef9b1ac2c4d7a1deb25f575e341255369c5c3b':
DO NOT MERGE (from master: Fixed minor typo on Javadoc)
b6fcb5362f5a35fca7b1725f423993597e3eb1be 28-Feb-2012 felipeal <felipeal@google.com> am e4ef9b1a: DO NOT MERGE (from master: Fixed minor typo on Javadoc)

* commit 'e4ef9b1ac2c4d7a1deb25f575e341255369c5c3b':
DO NOT MERGE (from master: Fixed minor typo on Javadoc)
e4ef9b1ac2c4d7a1deb25f575e341255369c5c3b 27-Feb-2012 felipeal <felipeal@google.com> DO NOT MERGE
(from master: Fixed minor typo on Javadoc)

Change-Id: I7d62e37011a7fd4d792fdfe5bd62022a850303a6
ragment.java
c81ec3637b8e3c177ec041aeb3863e123924505b 28-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "Suppress StrictMode in handleBindApplication()."
7c5016787ec862445b1d4301787f46d52acfa88d 28-Feb-2012 Jeff Sharkey <jsharkey@android.com> Suppress StrictMode in handleBindApplication().

Allow disk access during application and provider setup. This could
block processing ordered broadcasts, but later processing would
probably end up doing the same disk access.

Bug: 6083825
Change-Id: I80f383063cedba2b099c78465134faa811e898d8
ctivityThread.java
1b4e4b657cd730046b51d3cabdf1525d89637a4c 27-Feb-2012 felipeal <felipeal@google.com> Fixed minor typo on Javadoc

Change-Id: I2040520030319c0330d659dfa06716be0bd41b7b
ragment.java
5265466e8a5453e738713869f61ca45482b85319 25-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "New development permissions."
93d083b6ad4e54032f4525125d750926e2433f87 25-Feb-2012 Jason Sams <rjsams@android.com> Merge "Do RS caching the same way HardwareRenderer does. Eliminates the need for an application context for caching."
a6f338ca5f0c8359d1952167858851dd025e47e2 25-Feb-2012 Jason Sams <rjsams@android.com> Do RS caching the same way HardwareRenderer does.
Eliminates the need for an application context for caching.

Change-Id: I4374738083b5eb4ce983d2cb5409428e3668c423
ctivityThread.java
3f0c58eb708ca520e84396fe764147800395812f 24-Feb-2012 Daniel Sandler <dsandler@android.com> Merge "New notification priority and related APIs."
2561b0b10a55841a08e0e1d467e73e10b1bf256d 14-Feb-2012 Daniel Sandler <dsandler@android.com> New notification priority and related APIs.

This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

-> priority: an integer in a predefined range that
indicates the app's best guess as to the relative
importance (to the user, right now) of that information

-> kind: a tag (really, set of tags) indicating the general
type of notification (realtime, asynchronous, etc)

-> extras: a Bundle of additional key/value pairs
associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

- Spammy apps (identified explicitly by the user or by
some other means) will have their notifications scored
very negatively by the notification manager, allowing
the UI to suppress them
- Notifications of higher score might be shown larger
or in a different way
- Very important notifications (indicated by a very high
score) might interrupt the user during an otherwise
important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
NotificationManager.aidl
otification.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
pplicationPackageManager.java
a227a12314cbd019ba2ef621a66928f502ac64c7 24-Feb-2012 Andrew Flynn <flynn@google.com> DO NOT MERGE Return 1.5 * density as default for large screens.

Change-Id: Ib2d390803f08812636364ceb3849eddf80044072
ctivityManager.java
3c3155abea3a6776c8a903dbbdc3e7c7d810fb4f 17-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Fix Power Control widget"
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
ontextImpl.java
f535cb04f08575d29118fab0342b1e6274091734 15-Feb-2012 Masanori Ogino <ogino.masanori@sharp.co.jp> Wipe the user data out in any case.

When the external storage is not mounted, the android system won't
wipe out the user data (i.e. "/data") if wipeData() is called with
the flag WIPE_EXTERNAL_STORAGE.

We think that the user data should be wiped out in any options and
also wipeData(int) method currently supports also for a external
storage. So we will also change the API reference comment.

If we should care about backward compatibility of this method behavior
with the option WIPE_EXTERNAL_STORAGE, then we would add an another
bitmask something like a ALWAYS_RESET.

Change-Id: Id7bf673c722bacc0480d32e46553b9a348513879
dmin/DevicePolicyManager.java
25872aa3ef189ae5506a923398af11ce5eb1a9b9 04-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding shell commands for modifying content.

1. Added methods to the ActivityManagerService remote interface
that allow accessing content providers outside of an application.
These methods are guarded by an internal signature protected
permission which is given to the shell user. This enables a
shell program to access content providers.

2. Implemented a shell command that takes as input as standart
fagls with values and manipulates content via the content provider
mechanism.

Change-Id: I2943f8b59fbab33eb623458fa01ea61a077b9845
ctivityManagerNative.java
ActivityManager.java
9d29031417bd2256a287969271edcd57c0cbd9c2 13-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> DO NOT MERGE

Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc."

This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.

Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
ctivityManager.java
c1496d2d9a496e4aba817a58ecb9e07fe55cdba5 26-Jan-2012 Dianne Hackborn <hackbod@google.com> Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.

Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
ctivityManager.java
f0451db4224e2b6360efa39cd65c88cd391f14e0 10-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Multi-user - wallpaper service"
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
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
allpaperManager.java
ackup/WallpaperBackupHelper.java
c067c9c373e673b2474e8dc2e5a00db274d5e13d 31-Oct-2011 Mike Lockwood <lockwood@android.com> Add support for disabling wallpaper service

Signed-off-by: Mike Lockwood <lockwood@android.com>
allpaperManager.java
1e11c6519a5b657ad6af4369b8580fbe681ebe0e 10-Feb-2012 Mike Lockwood <lockwood@android.com> Merge "New Serial Manager API:"
21fbd1f7da53dc044737803dccddf8099f1fc1e9 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Some cruft removal.

Change-Id: If4a94bfd4a033748eb13e8f3ff25e24382746778
ctivityManagerNative.java
ActivityManager.java
ActivityWatcher.aidl
b01e8bf57b7492b77e3445db51471edcbadda75e 30-Aug-2011 Mike Lockwood <lockwood@android.com> New Serial Manager API:

SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
a0c283eac33dd2da72235751bbfa4f2d9898d5ea 09-Feb-2012 Dianne Hackborn <hackbod@google.com> Add new feature for running services in "isolated" sandbox processes.

This reserves a range of uids (for each user) in which these processes
run. These uids are not associated with an application, so they
effectively run with no permissions. When a Service requests to
run in such a process through android:isolatedProcess="true", each
time it is brought up a new isolated process is started with its
own unique uid.

What we have so far gives us the basic infrastructure; more work
remains to further lock down what these uids have access to.

Change-Id: Ibfd27c75619cba61f528f46ede9113f98dc5f45b
ctivityThread.java
oadedApk.java
742a67127366c376fdf188ff99ba30b27d3bf90c 04-May-2011 Amith Yamasani <yamasani@google.com> Multi-user - 1st major checkin

Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
pplicationPackageManager.java
ontextImpl.java
ActivityManager.java
oadedApk.java
e94a3e7f84c4e47f013be07901f8f1ceeedefb6e 02-Feb-2012 Vairavan Srinivasan <vairav@codeaurora.org> ApplicationThread: Check interface before invoking scheduleLowMemory

Change-Id: I51317386e1729366d19f7e3a1747b05170b9305a
pplicationThreadNative.java
9dbfc331b42371c5bcb1d8ec7750f4cd4f914123 02-Feb-2012 Jeff Brown <jeffbrown@google.com> Merge "Support automatic cancellation of Loaders."
b19a71a20adb48c084e87d06a1e6b0dcb49170f5 31-Jan-2012 Jeff Brown <jeffbrown@google.com> Support automatic cancellation of Loaders.

Change-Id: I18d3f49e413f48fcdd519d15e99c238ad54d35b9
oaderManager.java
8e61185918b9b4ef8de6ecffb0d77afaeb336abd 31-Jan-2012 Jacob Nordfalk <jacob.nordfalk@gmail.com> Improved documentation (clarify on issue 8727)

Signed-off-by: Jacob Nordfalk <jacob.nordfalk@gmail.com>
Change-Id: I2bea866542c95eb0558004a64c9a2fd74aeff35b
pplication.java
5e9120d4adfb07aeeadb0e0de1de2eb9ebbd80e0 30-Jan-2012 Romain Guy <romainguy@google.com> Always initialize AsyncTask on the main thread.

Change-Id: I039e5d6cb7157a0c8873e0d29161daf1cbda5577
ctivityThread.java
838a0e0ed8aadfea635954e365ec9232abfacd71 27-Jan-2012 Geremy Condra <gcondra@google.com> Merge "Removed intent logging from SearchDialog.java"
99b46be97bd02d304024d692de12e5779ed34355 26-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Merge "Make sure WebView get notified before the EGL context destroyed."
a34eb91a208937e06f9aa49f7a583c9f25e658e1 25-Jan-2012 Teng-Hui Zhu <ztenghui@google.com> Make sure WebView get notified before the EGL context destroyed.

bug:5639899

Change-Id: Id778cf3dac1d2f6d6b8014b7a911b51dc14fcc8a
ctivityThread.java
d96e3dfa02b203b1fc826e80d6f9aa074ba9c250 26-Jan-2012 Dianne Hackborn <hackbod@google.com> Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.

Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
ctivityManager.java
81e9276a479fd3a5ccc3129505c0fb018941934b 10-Oct-2011 Dianne Hackborn <hackbod@google.com> Added JELLY_BEAN version name; update some targetSdkVersion docs.

Change-Id: Ia38ff5b9ad2b63c2cf667260881222d9ff168052
ctivityThread.java
5bbd1d12a6a1ea429273c10c33c83bbeb0a21a90 24-Jan-2012 Geremy Condra <gcondra@google.com> Removed intent logging from SearchDialog.java

This fixes an issue in which URLs, including HTTPS URLs, were
being sent to logcat.

Change-Id: I85a0aab4d5d1c01cd21f99d88ce4ff343f836cd5
earchDialog.java
2a293b61cb0efbf24994d74ed980f58b820bb35a 19-Jan-2012 Jeff Brown <jeffbrown@google.com> Clean up SQLite debugging code.

Deleted a bunch of dead / useless code.
Raised number of logged operations in dumpsys dbinfo to 20.

Change-Id: I88344ff57a978f200c1f0172141d91e430caa1a9
ctivityThread.java
dda932005b8a1dc202bc9aba019c7e9260341bb9 14-Jan-2012 Dianne Hackborn <hackbod@google.com> am d4d68fe2: am cc7bd5ab: Merge "Update notification documentation to follow current guidelines." into ics-mr1

* commit 'd4d68fe20259e2d6aaae8bc4a38b360aa0b57081':
Update notification documentation to follow current guidelines.
4603d76bf535b7ba3487351ebaab4f5b88f49d04 14-Jan-2012 Dianne Hackborn <hackbod@google.com> am cc7bd5ab: Merge "Update notification documentation to follow current guidelines." into ics-mr1

* commit 'cc7bd5ab550855c14c76701709b35d12a9677eb2':
Update notification documentation to follow current guidelines.
6ceca588a268ed8fef4b32df278ca7567e608510 11-Jan-2012 Dianne Hackborn <hackbod@google.com> Update notification documentation to follow current guidelines.

The documentation is now consistent with the current UI guidelines
for handling notifications, and includes complete sample code showing
the correct way to do this.

Change-Id: I68f0afc62c2af164c3205535e62093679e2a256a
otification.java
791a6331e3ca21e3b6cdbfee62348e45786ca3ea 12-Jan-2012 Adam Cohen <adamcohen@google.com> Getting rid of hack where the wallpaper offset was being deferred

-> This was a hack, and with all the work going into vsync etc, it
really shouldn't be needed.

Change-Id: I59005e2644e0ba08846a6c661e8c4e22640d8e02
allpaperManager.java
7c48707a9d320230452d5937239f28ab0ea2e695 04-Jan-2012 Jesse Wilson <jessewilson@google.com> Merge "Explicitly specify 'milliseconds' as alarm manager's time unit."
79074cd935854b497cb894046da13bb08a113982 23-Dec-2011 Jesse Wilson <jessewilson@google.com> Explicitly specify 'milliseconds' as alarm manager's time unit.

Change-Id: Ic247c1a17283f7b1aa51cae8a2b43e987208aa8a
larmManager.java
2b072677538de979961b5bf527109fdab1713731 23-Dec-2011 Joe Fernandez <joefernandez@google.com> am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1

* commit '201469f54522436be79d4d6665721049bfc74320':
docs: Add developer guide cross-references, Project ACRE, round 4
70b8a9d09b028331d6f98263c65802e164651f07 23-Dec-2011 Joe Fernandez <joefernandez@google.com> am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1

* commit 'bb7f590a5a539486de5127071c7ade8ec988d755':
docs: Add developer guide cross-references, Project ACRE, round 4
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 20-Dec-2011 Joe Fernandez <joefernandez@google.com> docs: Add developer guide cross-references, Project ACRE, round 4

Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
earchManager.java
dmin/DeviceAdminReceiver.java
dmin/DevicePolicyManager.java
dmin/package.html
1fd4de0adc9e93aa01dd8e1aef1a83b85b9a7579 16-Dec-2011 Jeff Brown <jeffbrown@google.com> Merge "Add plumbing for dumping database info using dumpsys."
c6a7f358e86e9debdc110236797fba911bd9474a 16-Dec-2011 Joe Onorato <joeo@google.com> Merge "Add a new ui mode for "appliance""
6754ba24f12a54b97b3ca1c5d29fc23c15980abe 15-Dec-2011 Jeff Brown <jeffbrown@google.com> Add plumbing for dumping database info using dumpsys.

Change-Id: I51b0364c3d3d41aa38a759fbce48e625fff1b2dd
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
44fcb83b38b062a650ddf556fe7f5e34905df9ea 15-Dec-2011 Joe Onorato <joeo@google.com> Add a new ui mode for "appliance"

The idea is that this is a device which is more-or-less headless. It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
iModeManager.java
18cb28756caf02bf2b2f5e67c68451edaf719b47 15-Nov-2011 Marco Nelissen <marcone@google.com> Add ContentProvider.dump()

This is similar to the existing dump() facility for services.
ContentProviders can now implement dump() and that info will be shown
when running "dumpsys activity provider" and when taking a bugreport.

Change-Id: I33b3b132e3c4f920153355cc368eda2f725a715f
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
68e616840bcbb14990552fd99f955a8e1216dc2e 15-Dec-2011 Joe Onorato <joeo@google.com> Add a new ui mode for "appliance"

The idea is that this is a device which is more-or-less headless. It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Icc9f674299f8dbe2b736a5622a4965904d27e49c
iModeManager.java
4df142c4e942f47225abd6810b9034567fe3e75f 13-Dec-2011 Dianne Hackborn <hackbod@google.com> am a1279586: Merge "SDK only: now that support lib is in SDK, we can link to it." into ics-mr1

* commit 'a1279586dd1a866dd58d669aa0980d71f6c589d9':
SDK only: now that support lib is in SDK, we can link to it.
df3c49ee2e00f85599348473951a208be9397829 13-Dec-2011 Dianne Hackborn <hackbod@google.com> am 2ad8a89b: am a1279586: Merge "SDK only: now that support lib is in SDK, we can link to it." into ics-mr1

* commit '2ad8a89b4b55f1cf8994e5b044d496d889839403':
SDK only: now that support lib is in SDK, we can link to it.
7871badd5d4d29d80207e9cc09a0681f26a151d0 13-Dec-2011 Dianne Hackborn <hackbod@google.com> SDK only: now that support lib is in SDK, we can link to it.

Update some of the platform documentation to directly link to
relevent support lib docs. Yay!

Also improve BroadcastReceiver documentation to more clearly
discussion security around receivers, and how the support
lib's LocalBroadcastManager can help.

Change-Id: I563c7516d5fbf91ab884c86bc411aff726249e42
ragment.java
ragmentManager.java
oaderManager.java
328310c6fac6066d338926bb43d359862cae36d2 23-Sep-2011 Daniel Sandler <dsandler@android.com> System bar now renders the back button for recents

We used to render the back button in Recents
itself, but that had an inconsistent visual
experience.

As a part of this change, add the early beginning
of support for private status bar APIs for dimming
navigation buttons.

Bug: 3448536
tatusBarManager.java
f11fd2724fc075ebc7b0d996615d7101f220820e 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 2fc9467e: am 88f10c6c: Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1

* commit '2fc9467e9a2ef1c22a0bc81cbcd2ced878dbdef7':
Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?
bf30ac71a9bcfc97391dda650176f9a1f7146ecc 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 88f10c6c: Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1

* commit '88f10c6ce5a97b1990934148deb8ed6aa6ef7a48':
Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?
15540f8284b2f9a66ebeb28d441e1cde7423c41d 30-Nov-2011 Romain Guy <romainguy@google.com> am 937925f5: am 7797cae2: Merge "Cache drawable constant states instead of drawables Bug #5678369" into ics-mr1

* commit '937925f56952f015a7ee7ea91b29f60b8c631d9e':
Cache drawable constant states instead of drawables Bug #5678369
88f10c6ce5a97b1990934148deb8ed6aa6ef7a48 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1
469c79b0bb22082ef6cf5d800a2af26ad1c4be4c 30-Nov-2011 Romain Guy <romainguy@google.com> am 7797cae2: Merge "Cache drawable constant states instead of drawables Bug #5678369" into ics-mr1

* commit '7797cae2564eccf6d817b06d8116bd9cdc8e9ed4':
Cache drawable constant states instead of drawables Bug #5678369
7797cae2564eccf6d817b06d8116bd9cdc8e9ed4 30-Nov-2011 Romain Guy <romainguy@google.com> Merge "Cache drawable constant states instead of drawables Bug #5678369" into ics-mr1
1fbee79eb31011fa260d9fe088c165cc9171d98b 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?

Calls to get the display size no longer need to acquire the global
window lock.

Change-Id: I751ea6ed0e20f1f521783f4bd5a8f9c31cd43573
ctivityThread.java
ddd51fdb7117a6a0812968a47b43067d3d899991 30-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> am 4661a05b: am 2f504d9e: Merge "NumberPicker incorrectly shown for the old theme." into ics-mr1

* commit '4661a05bef8c98b18698202c758067ac9c965f77':
NumberPicker incorrectly shown for the old theme.
39fe17c8fb764a9233182cc408e37b1a59182b00 30-Nov-2011 Romain Guy <romainguy@google.com> Cache drawable constant states instead of drawables
Bug #5678369

Caching drawables directly in a static map was responsible for runtime
restarts. If two different UI threads requested the same drawable, the
first thread to issue the request would be given a drawable callback
belonging to the second thread. This would cause an exception in
ViewRootImpl on invalidate.

The solution is to store the drawable states and to create a new
drawable instance every time a drawable is requested from the
cache. This is similar to how preloaded resources are handled.

Change-Id: I47e24e2a168cf67a3589185c6cd77b70f9a1c7cf
pplicationPackageManager.java
d0a93bd28e5d309a1650c8e3382a94ca6528f648 30-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> am 2f504d9e: Merge "NumberPicker incorrectly shown for the old theme." into ics-mr1

* commit '2f504d9ea8aa18cd8dbaa2dcc3f3959252b414cc':
NumberPicker incorrectly shown for the old theme.
9f086d812ff04703de4b14e02a7702ba7c8acb33 30-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> NumberPicker incorrectly shown for the old theme.

1. NumberPicker is trying to greedily grow to its max size
but if the max size is not specified the default value
was the max integer which makes the widget get quite
tall in some cases. Now the widget tries to reach the
max size only if it has been specified.

2. NumberPicker was not computing its min width when the array
of display values is set.

3. DatePicker' layout for the old Theme was adding a margin on
the right of the group of spinners and if the calendar view
is not shown the spinners were not centered. Added the spinners
right margin to the left margin of the calendar view.

4. TimePickerDialog was using the wrong conext and was not dismissable
on an outside touch. Same for the DatePickerDialog context.

bug:5646161

Change-Id: Ic15f9b3e6291b76493604230ceb4f783a04d4ac7
atePickerDialog.java
imePickerDialog.java
a4db1b7278157ca553cd9b99753da2963fe65772 15-Nov-2011 Jeff Brown <jeffbrown@google.com> am 642de92b: am 9058435d: Merge "Fix races when content providers are acquired and released." into ics-mr1

* commit '642de92b3500446ab2d2a84fbe4ff9c083e8c1af':
Fix races when content providers are acquired and released.
14684154b157e12436925f01369298333d48e5b1 15-Nov-2011 Jeff Brown <jeffbrown@google.com> am 9058435d: Merge "Fix races when content providers are acquired and released." into ics-mr1

* commit '9058435dc1a741030c042c4d6f2512f5d1605e5d':
Fix races when content providers are acquired and released.
ddaa9ac896b279ed6a7bb54262c27764619700c9 12-Nov-2011 Jeff Brown <jeffbrown@google.com> Fix races when content providers are acquired and released.

This change fixes race conditions that occur very regularly when
content providers are accessed from multiple threads at the same
time.

When a content provider is not already in the application's cache,
the application needs to ask the ActivityManager to obtain it.
Meanwhile, another thread can come along and do the same thing.
This can cause problems because the application attempts to
install two copies of the provider and the reference counts
and other bookkeeping can get muddled.

Similarly, there are races between releasing the last reference
to a content provider and acquiring the content provider. It's
possible for one thread to snatch the content provider from the
jaws of death. We need to handle this explicitly to ensure that
the content provider does not accidentally get released right
after it was acquired by the other thread.

This change ensures that the reference count bookkeeping and
provider map are maintained in parallel while holding the same lock.
Previously because the lock was dropped and reacquired in the
middle of acquisition and removal, it was possible for a
content provider with a zero reference count to be returned
to the application. Likewise, it was possible for a content
provider with a non-zero reference count to be disposed!

This change also performs compensatory actions when races are
detected to ensure that the necessary invariants are maintained
throughout. In particular, it ensures that the application
drops a duplicate reference to a content provider when no
longer needed.

Another way to solve this problem would be to explicitly prevent
the races from happening in the first place by maintaining a
table of content providers that are in the process of being
acquired. The first thread to attempt to acquire the provider
would store a record. The next thread would find the record
and block until the first thread was finished. I chose not
to implement the code in that manner because we would still
have needed to perform compensatory actions in the case where
the same provider binder has multiple logical names. Also,
it could cause deadlocks if the attempt to acquire
a content provider were re-entrant for some bizarre reason.

Bug: 5547357
Change-Id: I2ad39a8acc30aaf7ae5354decd0a0a41e9b9c3da
ctivityThread.java
e23a588eb562430ed8be8c57252a9c3ac3ee9156 14-Nov-2011 Adam Cohen <adamcohen@google.com> am 621f9716: am 6066a2b4: Merge "Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)" into ics-mr1

* commit '621f971691e3e819ddcd95898f4f93498e00c2ad':
Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)
8222bbf39cde798cf97937e9600d22e885332649 14-Nov-2011 Adam Cohen <adamcohen@google.com> am 6066a2b4: Merge "Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)" into ics-mr1

* commit '6066a2b4de36549b7d8fe36507b7254e501f0b28':
Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)
6066a2b4de36549b7d8fe36507b7254e501f0b28 14-Nov-2011 Adam Cohen <adamcohen@google.com> Merge "Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)" into ics-mr1
8e2e5722242c2b5cc02d433105c668f47ab84785 14-Nov-2011 Adam Cohen <adamcohen@google.com> Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)

Change-Id: I4646095f4cde9514425be8ab2dbf805d9788aa5c
allpaperManager.java
531ded5514981f2ca686e1c0f7b182dd9f43a66f 12-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Added missing comments in Instrumentation#sendStringSync"
f434e37945c752a3f92fe6e9941805d612159bdb 12-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Added missing comments in Instrumentation#sendStringSync

Change-Id: Ib20c5f9763c4ff97dec02fbb79721da93e964bc7
nstrumentation.java
55c6ccce95e23865b1a2ebe4e0891124da383466 12-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Instrumentation sendStringSync(String) may try to inject obsolete events."
75348437a37c418344539316ece2603415ae66b0 11-Nov-2011 Dianne Hackborn <hackbod@google.com> am d400d03f: Merge "Fix issue #5595933: GREF leak due to race condition in..." into ics-mr1

* commit 'd400d03f4a6384449f8b0d3c8a9aa7e1e8aa5a16':
Fix issue #5595933: GREF leak due to race condition in...
d400d03f4a6384449f8b0d3c8a9aa7e1e8aa5a16 11-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5595933: GREF leak due to race condition in..." into ics-mr1
5a6ef737edbf57577443ac056613afe6cb121519 11-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5595933: GREF leak due to race condition in...

...LoadedApk.ServiceDispatcher.connected , LoadedApk.forgetServiceDispatcher

Don't be stupid if we receive a new binding to a ServiceConnection after it
has already been unbound.

Change-Id: I85a49de97372bf9af55542a89031f0b7a2ac8fbb
oadedApk.java
1f0788e2ba502b2ee181200e2336257b10fd339d 11-Nov-2011 Adam Cohen <adamcohen@google.com> am d562d300: Merge "Deferring wallpaper update to improve workspace scrolling (issue 5506959)" into ics-mr1

* commit 'd562d300cde63ae023f09fc3c7ded0988dead5d1':
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
c350f1604f348dceec28ba0d7e4cfc293333f797 11-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Instrumentation sendStringSync(String) may try to inject obsolete events.

KeyEvents returned by KeyCharacterMap.getEvents() have the same time stamp
and the system rejects too old events. Hence, it is possible for an event
to become stale before it is injected if it takes too long to inject the
preceding ones. Now the time of the event is set just before injecting it.

Change-Id: I72b60d261f8bda857b331d0f1b1bd97f9f15def3
nstrumentation.java
d562d300cde63ae023f09fc3c7ded0988dead5d1 11-Nov-2011 Adam Cohen <adamcohen@google.com> Merge "Deferring wallpaper update to improve workspace scrolling (issue 5506959)" into ics-mr1
041a0baba7f075ab3aba9c075dd75695a51617e4 10-Nov-2011 Adam Cohen <adamcohen@google.com> Deferring wallpaper update to improve workspace scrolling (issue 5506959)

-> On the Xoom, this change gets us back up to 60 fps. The
change is really more of a workaround for the fact that we don't
have vsync, and we ought to be able to change it back once we do.

Change-Id: I80888f18887bf5f2fed72c19641ed430ef6dbfcf
allpaperManager.java
ed68299b99a854696f99c0825de5ebe09d70f25a 11-Nov-2011 Romain Guy <romainguy@google.com> am a3cc20ff: Merge "Initialize egl_cache with an app writeable file" into ics-mr1

* commit 'a3cc20fff073bd3ca588f1e61f0f7034aecf3ebb':
Initialize egl_cache with an app writeable file
a95826582773a194ed7fb66bc29c9b82fe9bb8d1 10-Nov-2011 Romain Guy <romainguy@google.com> Initialize egl_cache with an app writeable file

Change-Id: I5dda234feab0fedd6e4179a80715ae20dee1c833
ctivityThread.java
0126a4a7f2777b34fb83da555352c82eaab59b79 09-Nov-2011 Dianne Hackborn <hackbod@google.com> am cd489c4c: Merge "Don\'t crash if there is no connectivity service." into ics-mr1

* commit 'cd489c4ce59c134c384238cbb613ede34f28189c':
Don't crash if there is no connectivity service.
f98168677929fe9e004d12645a5850551072395a 09-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 3af8b88d to ics-aah

Change-Id: I2b68cd7c904e68a16565b7274560e7105c643c87
cd489c4ce59c134c384238cbb613ede34f28189c 09-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Don't crash if there is no connectivity service." into ics-mr1
d4d32c594f9a414821df147f503af5748d839c66 09-Nov-2011 Dianne Hackborn <hackbod@google.com> Don't crash if there is no connectivity service.

Change-Id: I5f991896125fda22ff99b98a6aca244adbb17449
ctivityThread.java
e4d4fbc8c0257a79d9c6091cea2c264415bd2733 08-Nov-2011 Dianne Hackborn <hackbod@google.com> Add drop box reports of low memory.

We are tagging these as "watchdog" to make them visible in the
reporting tools.

Also new am command to kill all background processes, mostly to make
it easier to test this stuff.

Change-Id: Ib9dc4747cd8bd44156fdf11d6a087cd4272203eb
ctivityManagerNative.java
ActivityManager.java
5e99dbc85c741e7d22ea6db1bb0d45c5b175a97f 08-Nov-2011 Mike Lockwood <lockwood@android.com> Merge "Add support for disabling wallpaper service" into ics-aah
3bda1dc4f2bc23d8245e02a10949a4bb636cfb59 07-Nov-2011 Adam Powell <adamp@google.com> am b1dbf8e6: Merge "Change the "start deferred" fragment API to "user visible hint"" into ics-mr1

* commit 'b1dbf8e605c29ac00dde187579bd8ff8f18d7ba3':
Change the "start deferred" fragment API to "user visible hint"
78fed9b78f8b3b92979b94dda2640cdeaffb2573 07-Nov-2011 Adam Powell <adamp@google.com> Change the "start deferred" fragment API to "user visible hint"

Allow a fragment to set a hint of whether or not it is currently user
visible. This will be used implicitly to defer the start of fragments
that are not user visible until the loaders for visible fragments have
run. This hint defaults to true.

Change-Id: Id1349d319886a277ef07301f64f7b9e12c8729bf
ragment.java
ragmentManager.java
9dc8a42638c40fed4f118c120b7169cc7027807b 02-Nov-2011 Adam Powell <adamp@google.com> am b41d9f8a: Merge "Fix bug 5557267 - [ViewPager] non-primary fragments unnecessary stopped if "defer start" is enabled" into ics-mr1

* commit 'b41d9f8a84a325241440b6e950dea6d240134823':
Fix bug 5557267 - [ViewPager] non-primary fragments unnecessary stopped if "defer start" is enabled
2db4e4bd1b5a2b11b07b870660b7f4b3e1f07061 02-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5557267 - [ViewPager] non-primary fragments unnecessary
stopped if "defer start" is enabled

Only revise the target state in moveToState if it would cross the
stopped/started boundary.

Change-Id: I8f6e400331157eac9343261117cf633611fc1e4d
ragmentManager.java
7939246dc076ec59d56e8ab2cc0c0282139ea9f4 02-Nov-2011 Adam Powell <adamp@google.com> am 7a5a50c1: Merge "Bug 5513073 - IllegalArgumentException: View not attached to window manager" into ics-mr1

* commit '7a5a50c12f6a6e094d1e8aa7514df37f1176354a':
Bug 5513073 - IllegalArgumentException: View not attached to window manager
89fc3acd4bfb61c7b578f0c9e713d9ea819604e4 02-Nov-2011 Adam Powell <adamp@google.com> Bug 5513073 - IllegalArgumentException: View not attached to window
manager

Remove extra queued dialog dismiss messages when applicable. Log an
error if the app tries to dismiss a dialog when its window has been
destroyed.

Change-Id: Ice8383d4420c052e31fbbd9fcd25051f3bd9b58d
ialog.java
a3ccf0319c6b0e6c89564db3889e08ec90d0f6f4 02-Nov-2011 Dianne Hackborn <hackbod@google.com> am ad41a94b: Merge "Some optimizations." into ics-mr1

* commit 'ad41a94b298f834e13632ee29b27cefd75f10012':
Some optimizations.
ad41a94b298f834e13632ee29b27cefd75f10012 02-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Some optimizations." into ics-mr1
0500b3cfda5192efc09d6d4344b0c6c785c0a815 01-Nov-2011 Dianne Hackborn <hackbod@google.com> Some optimizations.

- Don't try to create a thumbnail bitmap on the client side. This
wastes 64k, and isn't needed since we are doing screenshots.
- Optimize View to put all of the callback pointers out of line.
Added a couple new APIs so these don't need to be protected/public.
- Lazily create ViewGroup's cache paint.
- Change FrameworkPerf app to not use HW accel drawing, to give better
comparison with GB.

Change-Id: Iec56d02459820d74a4cc9c7ec9c1856563c82c7b
ctivityThread.java
d521125da0213b793e91f96edeb66c7d5ededed9 02-Nov-2011 Adam Powell <adamp@google.com> am 2eca6133: Merge "Fix bug 5528574 - "View not attached to window manager" upon orientation change when there is a dialog with ActionMode on" into ics-mr1

* commit '2eca6133b69db0a649b8429dcef4ed46b209bf41':
Fix bug 5528574 - "View not attached to window manager" upon orientation change when there is a dialog with ActionMode on
cfe9aee72836b80b94465621374c2eff915e9a1b 01-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5528574 - "View not attached to window manager" upon
orientation change when there is a dialog with ActionMode on

Fix a bug closing down active action modes as dialogs are closing.

Change-Id: I0d28e3b3845d5ed50fbb55b180dafa1b11957b81
ialog.java
0a9dd820ebc8533261bb3d15d7cc1f5dab27b762 31-Oct-2011 Adam Powell <adamp@google.com> am 1759af3b: Merge "Bug 5535639 - Monkeys mad at FragmentManager" into ics-mr1

* commit '1759af3bc8a8f1346e3fb95351ed8037f38526d8':
Bug 5535639 - Monkeys mad at FragmentManager
37510908a7b570accb2c4829842790b3d9d3a102 31-Oct-2011 Adam Powell <adamp@google.com> Bug 5535639 - Monkeys mad at FragmentManager

Also check for starting deferred start fragments when a loader is
destroyed.

Change-Id: Ia17a902c579c09d7ac01079c7c1da137635aa08b
ragmentManager.java
oaderManager.java
2a4ee16b71e58dfe5a8614e361d92676f5e351fe 31-Oct-2011 Mike Lockwood <lockwood@android.com> Add support for disabling wallpaper service

Change-Id: Icce40e11581afd4f5adfd02ef1a73c30c505e6ad
Signed-off-by: Mike Lockwood <lockwood@android.com>
allpaperManager.java
92537e6ff21d4b20738fae851c2174ea568eb843 31-Oct-2011 Ed Heyl <ed@google.com> merged by hand (services/java/com/android/server/PowerManagerService.java needs to be reviewed)

Change-Id: I86d1111d86cd1646ebc8a88d58aa393089e9f928
74b2b9547329a0b05e0bd5701057696007b854bb 29-Oct-2011 Joe Fernandez <joefernandez@google.com> am 09848bc8: Merge "docs: add developer guide cross references, Project ACRE, round 3" into ics-mr0

* commit '09848bc89de999416e2de82a7693b2deec6bf802':
docs: add developer guide cross references, Project ACRE, round 3
61fd1e8d8c3ccf2d6b7d4af1c19e8f0988d5a1ec 26-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross references, Project ACRE, round 3

Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
ackup/BackupAgent.java
ackup/BackupAgentHelper.java
ackup/BackupManager.java
e0ded6710a9fe7cc4f1efd7dfe7af7de42e1b0f2 30-Aug-2011 Mike Lockwood <lockwood@android.com> New Serial Manager API:

SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Change-Id: I8d75ca7d6592223ea6c47f8a17fa180dfed1aad0
Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
635c60af623c73d2409f5729c0953638b5d6c497 26-Oct-2011 Adam Powell <adamp@google.com> Add API for deferring fragment start.

Fragments now have the setDeferStart method to signal that a fragment
has lower priority than others. Deferred start fragments will not
always be started immediately; they will be started once any loaders
have finished servicing any outstanding requests. This is useful if
any attached fragments are not immediately visible and can wait to
start until later.

Disabling deferStart on a fragment that is waiting for a deferred
start will start it immediately. Start.

Change-Id: Ia1f004877ca5e88d4f10147d21c7e2e97f141c34
ragment.java
ragmentManager.java
oaderManager.java
8de952bfc140d055cafad614b26f92c39cb1be5d 20-Oct-2011 Daniel Sandler <dsandler@android.com> am d2cd1f72: Merge "Lazily fetch the status bar service." into ics-mr0

* commit 'd2cd1f722421c33e88df92d036663f30b316fa3f':
Lazily fetch the status bar service.
9cbd360a670ca6deb7f2e933f1b79361b84f80a2 19-Oct-2011 Daniel Sandler <dsandler@android.com> Lazily fetch the status bar service.

Works around a timing issue in the lockscreen's connection
to the status bar.

Bug: 5479833
Change-Id: I043441b94db74df3e4319dd7bfb7635446cdc5d6
tatusBarManager.java
138f6fa4391cbaa65a5fafb99687058629d6d7c9 18-Oct-2011 Jim Miller <jaggies@google.com> am 9a7e4ce7: Merge "Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar" into ics-mr0

* commit '9a7e4ce72a1f97832e71386ad023439ed9b179bd':
Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar
305c78cce649056643641c51f12f2b6d2eb839f3 16-Oct-2011 Jim Miller <jaggies@google.com> Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar

This fixes a bug where the clock wasn't being shown in the statusbar while
the music widget is showing.

Change-Id: Ic1c52c4ab7fa1490fe14ddafaf2c494bcf51866d
tatusBarManager.java
5a401ddbc89c99315b82b27e1554dbf5141137b4 14-Oct-2011 Joe Fernandez <joefernandez@google.com> am 471fa9d1: Merge "docs: add developer guide cross-references, Project ACRE, Round 2" into ics-mr0

* commit '471fa9d10b4fa4da070c0ffb5fa5ea1354c8e6b8':
docs: add developer guide cross-references, Project ACRE, Round 2
471fa9d10b4fa4da070c0ffb5fa5ea1354c8e6b8 14-Oct-2011 Joe Fernandez <joefernandez@google.com> Merge "docs: add developer guide cross-references, Project ACRE, Round 2" into ics-mr0
558459fe85f56f29a6ed6a4d0adb4a0bd6665884 14-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE, Round 2

Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
lertDialog.java
ialog.java
otification.java
otificationManager.java
772158a596bc97694fa82e710b5cfbe8c6f40cdc 14-Oct-2011 Mathew Inwood <mathewi@google.com> Merge "Allow setting of source bounds on global search intents."
050453eaf51bb3a267680dc1db2b53cb2fbfcefc 13-Oct-2011 Mathew Inwood <mathewi@google.com> Allow setting of source bounds on global search intents.

This is to allow the launcher to include the source bounds of the
search affordance on the homescreen when launching the global
search app.

Bug: 5235747

Change-Id: I7af1a651d593b6d946aa2fe42d900a9c4470b4e2
earchManager.java
dba935659024a9ca83cb6bd3f1a9970e277f7658 06-Oct-2011 Daniel Sandler <dsandler@android.com> Break apart DISABLE_HOME and DISABLE_RECENT.

Additionally, start using setSystemUiVisibility() where
possible in the keyguard to allow activities and dialogs to
re-enable some of the navigation keys (notably: home but not
recents).

Finally, stop disabling MENU for activities atop the keyguard.

Bug: 5380495 // no home in driveabout, clock
Bug: 5396134 // able to show home/recent in keyguard
Change-Id: I04eb224554ee8cff79476b85148c4cda75bb0b62
tatusBarManager.java
2e8fb73ec088dbe459b07475aee1e43b500f101c 11-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5435470: SharedPreferencesImpl should read from file...

...via BufferedInputStream

Change-Id: Ic14eff1e53b6f4a0de5f59bd97cd390eb908e3c6
haredPreferencesImpl.java
58f42a59bda3bc912d0d2f81dc65a9d31d140eaa 10-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5405788: Device continuously opening and closing...

...the "Complete action using" dialog

When an application goes idle, it sends back to the activity manager
the configuration it last used, to make sure the two don't get out
of sync. Fix a bunch of edge cases here in dealing with that, and
be sure to also send the current configuration when launching an
activity so the client is always up-to-date when launching.

Also a small fix to not show the upgrading dialog during first boot.

Change-Id: I14ed366a87cd689d1c78787369e052422290ac6f
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
bf6ee4f509cbe7a44f4cc72f28e6150ca47c066d 07-Oct-2011 Christopher Tate <ctate@google.com> Fix wallpaper restore

Following a restore of the wallpaper data files, the settingsRestored()
method was binding the new wallpaper by passing null as the component,
because once upon a time that meant just use the configuration that had
just been loaded from the [newly restored] settings filed. However, at
some point this broke when the load from settings was made a staging
operation, not also the commitment of the changes.

This CL passes the newly-determined component configuration explicitly
to the bind, overriding the product default that may already have been
emplaced by the time the restore happens.

It also turns off the (minor) debugging that had been enabled in
WallpaperBackupHelper while digging into the issue.

Bug 5416839

Change-Id: I963893c236e24c75d10dde75836805295ea42cbb
ackup/WallpaperBackupHelper.java
668f7c3ec91d16c61f684b23cb55aa2530684b5f 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5348948: Third Party app "Byki Turkish" shows..."
836e262aa8e2f66548231ab11eb3b3e91d0e7901 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5348948: Third Party app "Byki Turkish" shows...

...a tiny dialog (works fine in GB and HC)

I found two problems:

- When first binding an application, we were not correctly computing
the compat configuration.
- When retrieving the display metrics to hand to Resources, we were
using the one with compat applied. This is not right, because
Resources will apply the compat itself, so in some cases the compat
scaling was applied twice.

Change-Id: I22c9cfed9e271290c1a7544fa3ffa54a2e65daf9
ctivityThread.java
b5de598554a97c557a3e0c20c28bbe5454164a6d 05-Oct-2011 Christopher Tate <ctate@google.com> Merge "Add -nosystem flag to adb backup"
240c7d2d1fb2944ee6a6f1dee41c7bbd766f8f0d 04-Oct-2011 Christopher Tate <ctate@google.com> Add -nosystem flag to adb backup

This makes it easy to back up everything that belongs to 3rd party apps, but
nothing that comes with the system per se. If any system packages are
explicitly named on the command line they will be included in the backup
even if -nosystem was passed. So, for example, this will back up all 3rd
party apps as well as system settings, but nothing else belonging to
system-deployed apps:

adb backup -all -nosystem com.android.provider.settings

Bug 5361503

Change-Id: Iebe04b7d7027ca58b9f55e8eb7f219d6cca69269
ackup/IBackupManager.aidl
cac15eb21cab68e5b76fe06f9aff273978c92054 04-Oct-2011 Joe Fernandez <joefernandez@google.com> Merge "docs: add developer guide cross-references, Project ACRE"
b54e7a3d9f60ac605f404f9eb3c5e92ca51bbd23 04-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE

Change-Id: I5df1c4e13af67ff4c4a5b22f3cb1247bf0103b09
ctionBar.java
ctivity.java
ragment.java
ragmentManager.java
ragmentTransaction.java
ntentService.java
oaderManager.java
ervice.java
9ecebbfbf768fd63e9a6c9a09c86d81c7737ee2d 29-Sep-2011 Dianne Hackborn <hackbod@google.com> Add mechanism for Parcel to not allow FDs to be written to it.

This is to help implement issue #5224703.

Change-Id: I026a5890495537d15b57fe61227a640aac806d46
ctivity.java
ctivityThread.java
ontextImpl.java
nstrumentation.java
oadedApk.java
endingIntent.java
a982ad19d2aee54f714fa3ad9ee4ddbac08dc0fe 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5173952: Opening a Notification From Lock Screen..."
90c52de28691ca0bbbf7c039ef20f85ce46882cc 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5173952: Opening a Notification From Lock Screen...

...Should Skip Unsecure Lockscreen (ICS)

Also while I am in there, clean up logging of intent objects to include
even less sensitive information, while showing the true Intent in dump
output (since apps can't get to that).

Change-Id: I35fed714645b21e4304ba38a11ebb9c4c963538e
ctivityManagerNative.java
ActivityManager.java
e797ed6a74593630219faf7f0ba5dc8235586bce 23-Sep-2011 Scott Main <smain@google.com> docs: a few additions and revisions to action bar docs

Change-Id: I12c24e5d4ed49d8f9822050d330f617bd614b7b9
ctionBar.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
pplicationPackageManager.java
7c963167288d1fb186a98b1232aa2ac571e9ff09 17-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Fix "am profile" when run on system_server."
1d8cac89aa19fd34c22fff5f0678959f6b10aea7 16-Sep-2011 Mark Brophy <mbrophy@google.com> Merge "Fix typo in SearchManager javadoc."
de2ba4c8688bc32b1058433aac2f58872c8db1bf 16-Sep-2011 Mark Brophy <mbrophy@google.com> Fix typo in SearchManager javadoc.

Change-Id: I40e1879779e51414f9a5b937209b9decbfb11693
earchManager.java
3ad9d00cff03ebb6b24bb0d4e1fc2004cee0f5ea 16-Sep-2011 Jeff Sharkey <jsharkey@android.com> Fix "am profile" when run on system_server.

Split profiler controls into separate object, since system server
doesn't have an AppBindData.

Bug: 5327365
Change-Id: I613170cd94e0d4930dee049d0fe6c19124f13d65
ctivityThread.java
c924fbd6933f6a96588b6e78d385082155cfd236 14-Sep-2011 Kenny Root <kroot@google.com> Merge "Add verifier device identity"
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
pplicationPackageManager.java
ab0f485e64418eb22f0a1d89d7064902b381e9c2 13-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix problems where we were allocating TypedArray when not needed.

Fixes up some recycling of TypedArray objects to reduce the
number we need to allocate during inflation etc.

Change-Id: I948dccc052997779001eaa99db2a710b04be01ae
ctionBar.java
ba3c377ba428bcf1c9b5a5cdf697fec0ed4fade7 10-Sep-2011 Adam Powell <adamp@google.com> Fix metrics on Holo progress dialogs

Change-Id: I8818d002dcee0ca6d6deead9e0403c07e8ef4460
rogressDialog.java
4ee366690111e5f71a248a2af10301db425162d5 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5263361: Browser instance not created in application picker"
905577f6345c014fc2489a8068ea967ba8c18012 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5263361: Browser instance not created in application picker

The resolver activity was hiding the following activity from recents.

Also some other fixes: a little better memory use debugging, removed
some unneeded code from window manager, moved some system activities
into their own process, added some more running process information for
manage apps.

Change-Id: I66687d16989ff965d524b92dc360f37c19199717
ctivityManager.java
e8baa9797b89145a2e15aaf2707d74e0da21e425 08-Sep-2011 Joe Fernandez <joefernandez@google.com> Merge "docs: adding warning to managedQuery() JavaDoc about cursor.close()"
0145322e82f640f33befa7cb517a793d12abfb57 08-Sep-2011 Adam Powell <adamp@google.com> Empty implementations of new ActionBar methods.

Makes mocks happy!

Change-Id: Ib69dd3b3e0d62e2d1301103d8e3dfcec5e9b03ab
ctionBar.java
f88b915567a37c481c4c50a6cc57e1ec0e7cf50d 07-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5258435 - ActionBar.setBackgroundDrawable

Fix this call to work properly and add methods for setting
split/stacked bar backgrounds to match existing styleable elements.

Change-Id: I8c6b1c598af1110f84a9098683d8e0226daf2e27
ctionBar.java
94e56ef3b8de6ed485546b462559ac862c10eabf 07-Sep-2011 Adam Powell <adamp@google.com> Bug 5249855 - Add support for content descriptions on action bar tabs

Add API support for supplying content descriptions on action bar tabs.
This helps accessibility in cases where no title text is shown.

Change-Id: I8fdc4c2f2b279871b9f24b0b16e5167879b22741
ctionBar.java
8ef6970cf5b779a5a69502cb07fd94d9190bccfd 02-Sep-2011 Joe Fernandez <joefernandez@google.com> docs: adding warning to managedQuery() JavaDoc about cursor.close()

Change-Id: I31ba29f1781f7d83342582e25cf6aad0c72aa103
ctivity.java
3d7467bd78eb7d9c16ab06b2ceed54ea176847f9 03-Sep-2011 Jim Miller <jaggies@google.com> Merge "Fix 5185505: Update DevicePolicyManager to support weak biometric security."
3e5d3fd7e172ee85a7bb67baa01acbc3549dfdb6 03-Sep-2011 Jim Miller <jaggies@google.com> Fix 5185505: Update DevicePolicyManager to support weak biometric security.

Change-Id: If0fa49908a10d8057b9398112d47eb968cc77060
dmin/DevicePolicyManager.java
5d927c2d8e832fcfcb0154c8741f896001141ef4 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5150899: Call activity takes 15MB we never get back.

Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
554d4a576586d0e21312862c4b1cf9abdaaf15f4 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5039287: Listen dies on back key on ICS but not on Gingerbread"
a5445d3bbd7985ffeeeabc3813bec3d1e0463cea 01-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5039287: Listen dies on back key on ICS but not on Gingerbread

Change-Id: I77c63a8c372ff7a8459a1e8cf6fd1b37f320e3ce
ctivity.java
ba24e4d8bbeb60e96d74f05e21691dad61ce497e 01-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5229575: Youtube link shared through messaging is not...

...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
ctivityThread.java
42930641792ecd23fee6b2913ba1e7cf24634f3d 30-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issues 5158104 and 4981556 (fragment problems)"
6c285977a0dc9605348bd9530282c7d006cbf8bd 30-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issues 5158104 and 4981556 (fragment problems)

5158104: com.android.contacts: java.lang.IllegalStateException:
Can not perform this action after onSaveInstanceState at
android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201)

The ViewPager can just commit without worrying about a state loss,
since it can correctly reconstruct its state later.

4981556: Fragment.mImmediateActivity doesn't get restored on orientation change

I am giving up on this thing; I just don't see how it can actually
be correct. So now instead of getting an exception about a dup
add/remove at point of the add/remove call, this will happen later when
processing the transaction.

Also add an API for controlling the visibility of menus, which ViewPager
can use to have the correct menus shows. And add a method to get the
name of a back stack entry.

Change-Id: Idcba14cfa2a172545a7a2a2c466cb49ceb789619
ctivity.java
ackStackRecord.java
ragment.java
ragmentManager.java
78be158ce4b95fa537c6cb60a55dbc9161e53ef1 29-Aug-2011 Christopher Tate <ctate@google.com> Un-hide the new BackupAgent.onFullBackup() API

This is intended to be new public API for ICS, and unbundled app
development needs access to it.

Change-Id: I091b31ae9ec319850a93efc3d5860b87b68d355e
ackup/BackupAgent.java
1fc756da434441708eb557a22363eea7f41f3f73 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "New API to determine if device has lots of RAM."
49d228b3f31789f4aed361b526b7edb619a542e9 25-Aug-2011 Dianne Hackborn <hackbod@google.com> New API to determine if device has lots of RAM.

Change-Id: Ie243e851960fdd9e1ebeaf1c1929879193620051
ctivityManager.java
c39e8e89eb370ed66f552da3be258e57f1aabeb9 25-Aug-2011 Romain Guy <romainguy@google.com> Merge "Add OpenGL backend to ImageWallpaper Bug #5204874"
407ec78b828173257b0c5dae221649a4ccd8b058 25-Aug-2011 Romain Guy <romainguy@google.com> Add OpenGL backend to ImageWallpaper
Bug #5204874

Currently disabled.

Change-Id: I5e7b35dce2981b0691f107e39c6394b260466543
allpaperManager.java
cfb9f2bca39772aecd072e2a30342a67b6319bbb 24-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5192141: systemui asplodes after enough tapping on the windowlist button

Change-Id: I5afb2d54b531d9eac9435660616579324f239812
ctivityThread.java
5d4faa91f7e3135d62f9cef730cbe876074937ee 24-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5149918 - Can't call ProgressDialog.setProgressNumberFormat()
before dialog is shown

Change-Id: I287637e022fb653f02b45b34075eccb68e4a9221
rogressDialog.java
2a4c5acc27e546f11e578e9982d8c33deb6b88fb 23-Aug-2011 Jeff Brown <jeffbrown@google.com> Fix race in removeDeadProvider.
Bug: 5202824

It's possible for removeDeadProvider to be called after the provider
has already been removed from the provider map due to a race between
binderDied and removing the provider.

Deleted removeDeadProviderLocked; it was dead code.

Change-Id: Iecdc68703225e7ac171746e63f1b3141c6f2ce4c
ctivityThread.java
661cd52e0e1d527132eb1cae604d3e64da7ec0cb 22-Aug-2011 Dianne Hackborn <hackbod@google.com> Add progress dialog for booting after an upgrade.

This introduces a new facility for code during the boot process
to display messages to the user through a progress dialog. This
is only for use when performing longer-than-usual post-upgrade
operations such as running dexopt on applications or upgrading
databases.

Change-Id: I0e78439ccec3850fb67872c22f235bf12a158dae
ctivityManagerNative.java
ActivityManager.java
46d2545db48e6b8565ef7beedf6486ef5d7f4507 16-Aug-2011 Kenny Root <kroot@google.com> Merge "Infrastructure to support package verifier"
62f20ecf492d2b29881bba307c79ff55e68760e6 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Add new am option to profile the launching of an activity.

Change-Id: Ie71a8043eafe41f53a0b3dbb5170276d87acbc9b
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
nstrumentation.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
pplicationPackageManager.java
6e90a362bc66cc67b1beae27b21d3f0148403b08 15-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5159736 - Make DeviceDefault the default

Have the framework refer to the DeviceDefault themes for ICS apps that
don't explicitly request another theme.

Change-Id: I27dd0bbaa60f71df4f36e47d260f556d923ba075
lertDialog.java
ontextImpl.java
ialogFragment.java
7c0d8472d003334fafd14f7c1e7d95dbd213088b 13-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix some crashes that are happening in the system process."
b375632c9cf7b7be9309ff55f602499d59cfa597 12-Aug-2011 Dianne Hackborn <hackbod@google.com> Don't use HW accel drawing in lock screen on lower-end devices.

This saves about 8MB in the system process because we don't need
to do HW accelerated drawing there anymore.

Change-Id: Ieaf72fe772536e12d10cf129d9338ca9fce6a6d4
ctivityManager.java
8e8d65ff5fdef12c6af3d003dfef19aadc39bea9 12-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix some crashes that are happening in the system process.

- When shutting down, if the screen goes to sleep there is code
that tries to do a notifyAll without holding the lock:

java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()
at java.lang.Object.notifyAll(Native Method)
at com.android.server.am.ActivityStack.checkReadyForSleepLocked(ActivityStack.java:776)
at com.android.server.am.ActivityStack$1.handleMessage(ActivityStack.java:282)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.ServerThread.run(SystemServer.java:603)

- If an invalid Uri object is sent to the system process it can crash because
the Uri class throws an assertion while unmarshalling. Change this to an
IllegalArgumentException so it gets sent back to the caller:

java.lang.AssertionError
at android.net.Uri$PathPart.readFrom(Uri.java:2224)
at android.net.Uri$HierarchicalUri.readFrom(Uri.java:1106)
at android.net.Uri$1.createFromParcel(Uri.java:1689)
at android.net.Uri$1.createFromParcel(Uri.java:1681)
at android.content.IContentService$Stub.onTransact(IContentService.java:53)
at android.content.ContentService.onTransact(ContentService.java:120)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

- StrictMode can try to access the first index in the stack crawl of a stack crawl
array of length 0. Not sure why this happens, but make the code more robust:

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at android.app.ApplicationErrorReport$CrashInfo.<init>(ApplicationErrorReport.java:341)
at android.os.StrictMode$ViolationInfo.<init>(StrictMode.java:1978)
at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:1097)
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1068)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:137)
at libcore.io.IoBridge.read(IoBridge.java:426)
at java.io.FileInputStream.read(FileInputStream.java:179)
at java.io.InputStream.read(InputStream.java:148)
at com.android.internal.os.ProcessStats.readFile(ProcessStats.java:804)
at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:564)
at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:545)
at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1470)
at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1522)
at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:110)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1302)

(Also fix this code to not cause strict mode to trigger at all, because there is
no need, because this is just reading stuff from /proc.)

- The system seems to crash during boot if it thinks it needs to rotate
the screen, when it is trying to take the freeze snapshot way too early.
There is no need to freeze the screen during boot or if the screen is off:

java.lang.NullPointerException
at android.view.Surface.init(Native Method)
at android.view.Surface.<init>(Surface.java:256)
at com.android.server.wm.ScreenRotationAnimation.<init>(ScreenRotationAnimation.java:91)
at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:8758)
at com.android.server.wm.WindowManagerService.startAppFreezingScreenLocked(WindowManagerService.java:3971)
at com.android.server.wm.WindowManagerService.startAppFreezingScreen(WindowManagerService.java:4003)
at com.android.server.am.ActivityRecord.startFreezingScreenLocked(ActivityRecord.java:515)
at com.android.server.am.ActivityStack.ensureActivityConfigurationLocked(ActivityStack.java:3997)
at com.android.server.am.ActivityManagerService.updateConfigurationLocked(ActivityManagerService.java:12535)
at com.android.server.am.ActivityManagerService.updateConfiguration(ActivityManagerService.java:12439)
at com.android.server.wm.WindowManagerService.systemReady(WindowManagerService.java:6161)
at com.android.server.ServerThread.run(SystemServer.java:521)

Change-Id: I85062bb5f6b0909a0f52feedaa75e7611d9d7fbd
pplicationErrorReport.java
4519ff6aa35b82e4d401f8af92257ffd4b176bd5 11-Aug-2011 Bjorn Bringert <bringert@android.com> Add PendingIntent extra for WEB_SEARCH intents

This allos apps (e.g. browsers) that launch web searches
to control how the search results page is opened. For example,
the Android Browser will use this to make sure that searches
typed in the browser address bar open in the Andorid Browser,
and not somewhere else.

Bug: 4988580
Change-Id: I4665c9812ca8d704adbaea22a3812188bb48d1d2
earchManager.java
fd545de7cd43d6335eb3e44df36336728a8e1e4c 10-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "New extended Intent protcols for installing/uninstalling apps."
271c2fe0eb36fbf872535bedf3ee8156e3087847 10-Aug-2011 Dianne Hackborn <hackbod@google.com> New extended Intent protcols for installing/uninstalling apps.

Change-Id: I13be1cc58c91f51d521a1f0f734d2b2db7b2980b
ctivity.java
ctivityGroup.java
pplicationErrorReport.java
ocalActivityManager.java
abActivity.java
82f006f672d3562aef9a36a44fbd76b8a7e3aae5 09-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Add progress to Notification.Builder."
1c40013bb2afbd76050ac681d7880476aa7fc70d 05-Aug-2011 Jeff Sharkey <jsharkey@android.com> Add progress to Notification.Builder.

Provide method to surface progress when building a notification. Also
manages visibility of various items, including hiding the entire line
when unneeded.

Bug: 4022082, 3399877
Change-Id: I90d8fca383c746001aadc6c5f21c68a23bb937e5
otification.java
e112567b45550e50586002d75bf540763ad21fb9 08-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5116342 - don't keep fragment state around once resumed"
7d608423b721e0153f37bfd5eba78fcd2489562d 08-Aug-2011 Dianne Hackborn <hackbod@google.com> Move OOM kernel settings to activity manager.

The activity manager now take care of plugging the correct settings
into the OOM killer in the kernel. This is a lot cleaner because
it is really central to how the activity manager works, and nobody
else cares about them.

Taking advantage of this, the activity manager computes what it
thinks are appropriate OOM levels based on the RAM and display
size of the device.

Also a small optization to the package manager to keep a binding
to the package install helper for a bit after done using it, to
avoid thrashing on it.

And some new APIs that are now needed by Settings.

Change-Id: I2b2d379194445d8305bde331c19bde91c8f24751
ctivityManager.java
9520251003cc3a321028bb80693749e5047eb3f8 08-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5116342 - don't keep fragment state around once resumed

Clear out saved fragment/view state when a fragment is resumed in case
we didn't need to restore it. This keeps it from hanging around and
preventing proper save/restore behavior later.

Change-Id: Ie3fce5534ee4f8fdb4116281f9ac6a9cfa392561
ragmentManager.java
b437e090ec03a2bab10bdfcb9484577a7f34e157 06-Aug-2011 Dianne Hackborn <hackbod@google.com> Improved memory use reporting.

Change-Id: I38e53e6228bba92a142bafeedb5af8df4e4e5724
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
85de77a1c7d8393dfe349567f818a94e83720040 03-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5098288 - Rethink the suite of new themes"
269248d112e35fe8e9f0d5d11c96dcb2ac1118b0 02-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5098288 - Rethink the suite of new themes

Cut down the list of new themes for ICS. Holo apps now have
Theme.Holo, Theme.Holo.Light, and Theme.Holo.Light.DarkActionBar to
choose from.

Add manifest attribute android:uiOptions to express
splitActionBarWhenNarrow. Other options may move into this later as
well. (DialogWhenLarge?) This attribute is valid on both activity and
application tags; application settings will serve as the default for
activities that do not explicitly set uiOptions.

uiOptions are not currently reflected in the startup window for new
activities.

Change-Id: Iffdc2ce4cc69f79c9bd4e541b7923286e6936c1e
ctivity.java
6311d0a079702b29984c0d31937345be105e1a5e 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Clear the bitmap from the canvas in a lot of places.

Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
ctivityThread.java
auncherActivity.java
ba39839444532af0ed3766f736582413f6d7a40b 02-Aug-2011 Dianne Hackborn <hackbod@google.com> Move ImageWallpaper to SystemUI process.

Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory. So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap. I'll need to figure out why. Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
allpaperManager.java
f0f5fffc6f578f531df7b208cfbfb53f884c0380 01-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5090996 - Crash on tapping Menu on dial pad

Let the FragmentManager handle deferring menu invalidation when
not currently resumed.

Change-Id: I6e5de9c8ab5288c7c90a59ce8e0c7bb9133b6eb5
ragment.java
ragmentManager.java
44df62c441ba0b2b0fe29591949099179c2fc64b 29-Jul-2011 Amith Yamasani <yamasani@google.com> Merge "Don't submit a query if it's whitespace only."
e0fe39387aa8f591b196bcb42b027012b655af04 29-Jul-2011 Christopher Tate <ctate@google.com> Merge "Require the current backup pw in all backup/restore operations"
c68c913d357e2955d4bd7ca52829071e531c7825 29-Jul-2011 Dianne Hackborn <hackbod@google.com> Various work on out of memory managment.

- Improve how we handle processes that have shown UI, to take care
of more cases where we want to push them into the background LRU
list.
- New trim memory level for when an application that has done UI
is no longer visible to the user.
- Add APIs to get new trim memory callback.
- Add a host of new bind flags to tweak how the system will adjust
the OOM level of the target process.

Change-Id: I23ba354112f411a9f8773a67426b4dff85fa2439
ctivity.java
ctivityThread.java
pplication.java
ontextImpl.java
ragment.java
ragmentManager.java
ervice.java
728a1c4d5ed3b808172013a7f5bb5065d1e964f6 29-Jul-2011 Christopher Tate <ctate@google.com> Require the current backup pw in all backup/restore operations

Specifically, we now also require the current password to confirm any
restore operation.

Bug 4901637

Change-Id: I39ecce7837f70cd05778cb7e0e6390ad8f6fe3f3
ackup/IBackupManager.aidl
80df829e35d0a97f92e599d36b0b16dcc956130b 29-Jul-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize if activity handles orientation change"
45c0b1954d7dfa6e2590ed76b915a98ae971414c 29-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize
if activity handles orientation change

Make sure that bar content height and sizing/layout parameters are
properly updated after a configuration change.

Change-Id: I886df5cd9a655ba1bd34fab2b48e8b5be67fcc32
ctivity.java
2efd2dbbac9eac89620683696c6076463c3a1cd6 20-Jul-2011 Christopher Tate <ctate@google.com> Support full-backup encryption and global backup password

If the user has supplied a backup password in Settings, that password
is validated during the full backup process and is used as an encryption
key for encoding the backed-up data itself. This is the fundamental
mechanism whereby users can secure their data even against malicious
parties getting physical unlocked access to their device.

Technically the user-supplied password is not used as the encryption
key for the backed-up data itself. What is actually done is that a
random key is generated to use as the raw encryption key. THAT key,
in turn, is encrypted with the user-supplied password (after random
salting and key expansion with PBKDF2). The encrypted master key
and a checksum are stored in the backup header. At restore time,
the user supplies their password, which allows the system to decrypt
the master key, which in turn allows the decryption of the backup
data itself.

The checksum is part of the archive in order to permit validation
of the user-supplied password. The checksum is the result of running
the user-supplied password through PBKDF2 with a randomly selected
salt. At restore time, the proposed password is run through PBKDF2
with the salt described by the archive header. If the result does
not match the archive's stated checksum, then the user has supplied
the wrong decryption password.

Also, suppress backup consideration for a few packages whose
data is either nonexistent or inapplicable across devices or
factory reset operations.

Bug 4901637

Change-Id: Id0cc9d0fdfc046602b129f273d48e23b7a14df36
ackup/BackupAgent.java
ackup/IBackupManager.aidl
88ab69780f58e4b32d497266b2ad646a4d74827b 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087752 - Maintain correct contrast against action bars in
inverse-bar themes

Add the actionBarWidgetTheme theme attribute. This lets a theme
specify a wrapper theme that can be used to create views that will
end up in the action bar so that the rest of the code can ignore
differences in contrast. (e.g. the inverse action bar themes.)

Apps can use ActionBar#getThemedContext() to obtain a Context with a
proper theme for views that will end up in the action
bar. MenuInflaters generated by Activities will automatically use this
to properly theme inflated action views.

Change-Id: Ib28c82bf47c25d446cca2a63f617b8a4a0afa6b2
ctionBar.java
ctivity.java
b6f7a27c59fd170b5d7617e43e21bfd8587f234e 28-Jul-2011 Romain Guy <romainguy@google.com> Merge "Reclaim more memory, more often."
65b345fa22b878e141b8fd8ece9c208df00fa40f 28-Jul-2011 Romain Guy <romainguy@google.com> Reclaim more memory, more often.

Yay.

Change-Id: I04557ad575c307a55088549f48f0e9ad994b7275
ctivityThread.java
257466d4e24bd405204cb21a1663eb1cc99f6137 28-Jul-2011 Adam Powell <adamp@google.com> Merge "Bug 5076788 - Optimize the building and invalidation of menus"
89b09da7b3b1e69264d9ec710c66eb2f891b313e 27-Jul-2011 Adam Powell <adamp@google.com> Bug 5076788 - Optimize the building and invalidation of menus

Fix cases that weren't batching menu presenter changes correctly.

Have FragmentManager invalidate the options menu less often.

Change-Id: Ia66fcd09ada8b0a084ad6b08d4340a8fa0c8fc5d
ragment.java
ragmentManager.java
6a7421ba94b1fca0a20ddf146054ebd771ee471e 27-Jul-2011 Amith Yamasani <yamasani@google.com> Don't submit a query if it's whitespace only.

Just to maintain backward compatibility. It's not documented that a space
is not a valid query, but it does make sense to expect that.
Bug: 5079755

Also avoid showing an x by an empty query, by having the SearchDialog simulate an ActionBar.

Change-Id: I3a9332286a439b659e179a249587c491ef29e5c1
earchDialog.java
36193d09a87035395d036a730038b765ac0b0913 13-Jul-2011 Scott Main <smain@google.com> cherrypick Change-Id: I4713d3977a0a1514ff9c4217e7f3723c0346d0d8
docs: revise ActionBar class summary and add a few links to dev guide docs

Change-Id: I14df84b16d7bdab85aa74d8b8211e988b0519115
ctionBar.java
ragment.java
d04ad541def2bca8fc2d810514ee15ab97893d35 26-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5063010: Loaders don't seem to be properly...

...retained with compatibility library

Yikes, and also in the main platform...! :(

Change-Id: I76ee3a9a5ba4a220c2f54d0af9cf49e3a736e7bd
ctivity.java
ackStackRecord.java
55bc5f3e0408bcb5a39a6732de0b2d1aa99a55be 24-Jun-2011 repo sync <isheriff@google.com> Updated: Wi-Fi p2p framework

First stage. Get the bones in right now even though
we are not ready on the native side.

Once, we have things underneath working - we will further update the
framework

Change-Id: I4a7dab5cd4267373dc5f8989ae4122f91c384ed5
ontextImpl.java
c693823fd4cb927160c3f423670587be5e09ac20 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5054723: java.lang.NullPointerException at...

...android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1284)

Make sure to commit all pending actions before completing the destroy.

Change-Id: I85643e5f7b1221048523bd186b48fb88fc70ca23
ragmentManager.java
7793719ca97571f5b3636d5a89cb067c71d627bd 22-Jul-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
988323c57bd25a58f05dfa492d9b9c8ab62c5153 22-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
ontextImpl.java
9cbd934b3c2c670e3b3a65af01b406e272c29c93 22-Jul-2011 Romain Guy <romainguy@google.com> Merge "Ouput looper traces as traceview traces"
9a8c5cefcab3d5dec6ff63f0e99553e1aa9a4af8 22-Jul-2011 Romain Guy <romainguy@google.com> Ouput looper traces as traceview traces

Change-Id: I96c8e85fd7497d970febbf6f5aefc4ab903add8e
ctivityManagerNative.java
pplicationThreadNative.java
c09bd156b74a3e366beb26cf1eb15a2912e8e02d 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix bug where memory trim was not being delivered with correct level."
f0754f5ba7a45b517cffcb3c2c96f2a32aeac06d 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix bug where memory trim was not being delivered with correct level.

Also improve how we handle services, keeping track of whether they showed
UI and if so putting them immediately on the LRU list.

Change-Id: I816834668722fc67071863acdb4a7f427a982a08
ctivityThread.java
6ee8c2495dd444ed4687489325b61ec6ebd75cba 22-Jul-2011 Romain Guy <romainguy@google.com> Merge "Add looper profiling to adb shell am"
7eabe55db6b113f83c2cefcd06812648927de877 21-Jul-2011 Romain Guy <romainguy@google.com> Add looper profiling to adb shell am

To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
6179ea3196e9306d3f14361fe9ef14191b1edba6 28-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the Status Bar.

1. Added content description to pretty much all animals
in the zoo including buttons in the navigation bar,
notifications and status icons for battery, signal,
data, etc.

2. Rectored to avoid ovelaying views since they block
touch exploratino. In general overlaying views
cause trouble for touch exploration and accessibility
in general.

3. Avoid sending accessibility events in case the user is
touching outside of the StatauBAr panels to avoid
confusion.

4. Added records to accessibility events in the places where
this would help the presentation. So the event comes from
a given "leaf" view and its predecessor is adding a record
to the event for itself to provide more cotext. It is up
to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
tatusBarManager.java
7288ebd8e5ce44b782e919d296caddce9f5192fa 20-Jul-2011 Costin Manolache <costin@google.com> Merge "waitWithTimeout() needs to check if the result is already available, like waitForActivity() does."
116b208b3a1712b1f4b205f8aca8dc0d5491458e 20-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4976176: Font size setting does not persist"
31ca854cdba31ec6ab089af743a8701a6192e07e 19-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4976176: Font size setting does not persist

Change-Id: Id58caf990bdd3aac5ea97aaba45652ffad1f678a
ctivityManagerNative.java
ActivityManager.java
13589b2f1774b45a4b241c21039db883f852a542 19-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove an unnecessary finalizer."
b4569fb17fada4fdc43e4f4dbfbc79bb097a1f74 09-Jul-2011 Amith Yamasani <yamasani@google.com> SearchView behavioral and visual changes

Align text suggestions and search string.
Close button only clears the field.
Back button clears focus, hides dropdown and keyboard.
Tweaked SearchDialog's use of SearchView to follow above patterns.
Fixed other little bugs.

Change-Id: I9d34c2ebe2b1b2ca887220894c19a26809db85f6
earchDialog.java
487c38b842c5244fecd66e1bca5d4b725d572961 19-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove an unnecessary finalizer.

Simply having a finalizer impacts the GC's ability to
reclaim resources in a timely manner.

Change-Id: Ia9e5f6f1dcb50fae8c2819d25d167df751adf451
ervice.java
6dd005b48138708762bfade0081d031a2a4a3822 18-Jul-2011 Dianne Hackborn <hackbod@google.com> I. Can. Not. Stand. ViewAncestor.

It was done so we would have the name "ViewRoot" available for a
public API. However, the name "ViewAncestor" just makes no sense.
So instead, change it to ViewRootImpl.

Change-Id: If9599ca67896f339f6fefa7d1dde121201171d97
ctivityThread.java
allpaperManager.java
bdf7609867a3f886455c51dba91623a86cceb6e2 19-Jul-2011 Romain Guy <romainguy@google.com> Trim OpenGLRenderer's memory usage whenever possible

Change-Id: I9225077184f374b1a43300add15cc1d5b6869d1c
ctivityThread.java
b0935343e835b7cbd785e8b888e3909d5932bdd1 15-Jul-2011 Costin Manolache <costin@google.com> waitWithTimeout() needs to check if the result is already available, like waitForActivity() does.

Change-Id: I410ab590d6669d5a657f473877a2bb3cae36d0d3
nstrumentation.java
0e3328fbdd3845b0e2bec364e951498eaee6b079 17-Jul-2011 Dianne Hackborn <hackbod@google.com> Rework and fix "adb shell dumpsys meminfo"

We now collect more detailed information splitting the maps into
additional useful categories.

Fixed some bugs in account, such as not correctly handling all of
the current dalvik allocations.

The activity manager now prints a final summary of all pss organized
by the apps and the categories.

Change-Id: Iafc5f27c998095812b1483c6803b8e0f0587aeae
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
6fa7e7e9bb244735b98fbf35599dc07729e47a8f 17-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Release strong Fragment references after exec."
cadaa3a9839d152cdbdb8c3d5070d315910da5dd 14-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve handling of low memory."
c29f4e52c3377924df26910cce3ff26278d1f484 14-Jul-2011 Adam Powell <adamp@google.com> Nicer API for disabling/enabling the home/up button in action bars.

Have an explicit call for enabling the home/up button. Auto-enable it
if the app targets < ICS to preserve Honeycomb behavior. Auto-enable
it if the app shows home as up.

This prevents unwanted touch/focus feedback on the home button when
the app hasn't wired it up to do anything useful.

Change-Id: Icfe95ab5a11b3998bca08b0fbbfe1bf6c3c89b5d
ctionBar.java
ce86ba86df61de8b34b226a4eb6c23ec33e866e0 14-Jul-2011 Dianne Hackborn <hackbod@google.com> Improve handling of low memory.

Now classify background processes into a set of bins of how much
memory they should try to clear. The last bin also involves
destroying all activities in that process.

Removed the old code for the simulator that is no longer needed
(yay). The debugging features it had are now integrated into the
regular oom adj code.

Small fixes to load average service.

Change-Id: Ic8df401714b188c73b50dbc8f8e6345b58f1f3a0
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
7926a693c4a4f4d2a2d352343bca23e189c7420d 11-Jul-2011 Christopher Tate <ctate@google.com> Compress the backup output stream

Zlib compression, with a full flush between each application's
data. Encryption will be performed on the already-compressed data
once that's implemented.

On restore, the streamed data is similarly uncompressed on the fly.

Change-Id: I19b65c88e759a66527d10913d18fffa9df0bc011
ackup/BackupAgent.java
0d32528be3b708e8a7ebb4e8d7fd2a2c94d6638e 13-Jul-2011 Jeff Sharkey <jsharkey@android.com> Release strong Fragment references after exec.

When finished with a Runnable transaction in execPendingActions(),
release the strong reference so that Fragment can be GC'ed.

Bug: 3117761
Change-Id: Ica2f50e363be1bd047bf0474b293efeb814b1264
ragmentManager.java
622c03e6cfdd37c05f225434e5b07f8db7d4521e 12-Jul-2011 Mark Brophy <mbrophy@google.com> Merge "Expose app resume times to the ApplicationProvider."
9fc033083267d0c7f01e083400721b6cddb3a398 01-Jul-2011 Mark Brophy <mbrophy@google.com> Expose app resume times to the ApplicationProvider.

Add ActivityManager.getAllPackageUsageStats which returns
the PkgUsageStats object for all packages.

In UsageStatsService, remember the last resume time of each component, and
add that info to PkgUsageStats instances.

ApplicationProvider will use getAllPackageUsageStats and the new field
in PkgUsageStats to set the new SearchManager column
SUGGEST_COLUMN_LAST_USAGE_HINT for requests with the GLOBAL_SEARCH
permission.

Change-Id: I80e9b127410ed0d528515d2256787f30a953e9b0
ctivityManager.java
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
ctivityThread.java
ontextImpl.java
284f1bb4daf77f7e6b688c0936dd4a31ec2e7c74 07-Jul-2011 Christopher Tate <ctate@google.com> Can now restore a subset of apps from historical dataset

Adds the ability to filter a restore of an historical dataset so that it
only restores certain apps' data regardless of what is actually present
in the dataset. This is currently only used by the bmgr command-line tool,
for debugging / developer support.

Bug 2021590

Change-Id: I7685e5d609b0f5506f71d70c26410602bb387659
ackup/IRestoreSession.aidl
ackup/RestoreSession.java
b848b7a99c81081723077d7fb2006b2a35760259 07-Jul-2011 Christopher Tate <ctate@google.com> Remove unused object

Change-Id: I98c55432c26ccc4e8421db46c9f825cb42772508
ackup/BackupAgent.java
79ec80db70d788f35aa13346e4684ecbd401bd84 24-Jun-2011 Christopher Tate <ctate@google.com> Make full backup API available to apps

New methods for full backup/restore have been added to BackupAgent
(still hidden): onFullBackup() and onRestoreFile(). The former is the
entry point for a full app backup to adb/socket/etc: the app then writes
all of its files, entire, to the output. During restore, the latter
new callback is invoked, once for each file being restored.

The full backup/restore interface does not use the previously-defined
BackupDataInput / BackupDataOutput classes, because those classes
provide an API designed for incremental key/value data structuring.
Instead, a new FullBackupDataOutput class has been introduced, through
which we restrict apps' abilities to write data during a full backup
operation to *only* writing entire on-disk files via a new BackupAgent
method called fullBackupFile().

"FullBackupAgent" exists now solely as a concrete shell class that
can be instantiated in the case of apps that do not have their own
BackupAgent implementations.

Along with the API change, responsibility for backing up the .apk
file and OBB container has been moved into the framework rather than
have the application side of the transaction do it.

Change-Id: I12849b06b1a6e4c44d080587c1e9828a52b70dae
ctivityThread.java
BackupAgent.aidl
ackup/BackupAgent.java
ackup/FullBackup.java
ackup/FullBackupAgent.java
ackup/FullBackupDataOutput.java
a40d7ec7ef5f57d61cc3dcc954009593c7829c70 01-Jul-2011 Amith Yamasani <yamasani@google.com> Restore some lost space in the SearchView text field in Search Dialog.

A defunct invisible drawable was taking up some pixels in the Search Dialog's text field.
Disabled the drawable until the spinner functionality is revived.

Change-Id: Icfcc51d7b1215e54f9e291d0051e8b42c208a725
earchDialog.java
5093d3ee994473d971eaf3f2ecf3a85ad47975d4 01-Jul-2011 Dan Morrill <morrildl@google.com> Merge "Add a global-search column for last access."
6c418d585e0a91054b168fde3130188afd006c98 29-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4902856: Don't let apps register non-explicit PendingIntents

Location manager now checks for such intents, and logs a warning when
they are given to it. Nothing thrown yet, it needs to check the
targetSdkVersion of the caller somehow.

When sending the pending intent, we require that the recipient hold the
appropriate permission. This should pretty much close the security hole.

Includes a bunch of infrastructure in the activity manager needed to
support all this.

Change-Id: I4dba7a98a7b8bbb9e347666451aa9cb1efad1848
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
endingIntent.java
ee69ff4eaee9342843d5f25338288865dda2d36a 28-Jun-2011 Narayan Kamath <narayan@google.com> Make the system global search provider a user setting.

Also, modify Searchables / SearchManagerService to
honour the setting when it's set.

Change-Id: Ia63351fff4fe28ee79ac8b9e30fdb8edc43f5534
SearchManager.aidl
earchManager.java
b0b1b11b965598cb8fb724e636ebb58a77d437b5 24-Jun-2011 Amith Yamasani <yamasani@google.com> Merge "SearchView improvements per design."
246529891ee289e8393ad4a486db785ef455c778 24-Jun-2011 Amith Yamasani <yamasani@google.com> SearchView improvements per design.

- X is visible only if there is text, or we need a way to close a
search field that is iconified by default.
- Search dialog (legacy) has a back button to the left.
- Hitting X on a non-focused search view will bring it into focus
and show the keyboard if necessary.

Change-Id: I5a30bb08adcf84639a922a9e13be1d1562f714e6
earchDialog.java
fbca76965b96b31a8974e461ee1929867ef3327b 23-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4887033 - android.app.cts.AlertDialog_BuilderTest#testDisableCancelable

Change-Id: I659201124c4c6730046be55a918c64ca57a9f4db
lertDialog.java
8969d9924c662ab4cdacc342bbdc33756db730be 22-Jun-2011 satok <satok@google.com> Revert "Create TextServiceManager and SpellCheckerService"

This reverts commit eaddb894865a804279659b4aad6364a34ab50beb.
ontextImpl.java
eaddb894865a804279659b4aad6364a34ab50beb 01-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Ia25e7b4f308778891929e31b8cbd741f6848cce4
ontextImpl.java
1a81a16a967173729839d3802a5527ff074f9af9 18-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Notify policy listeners about metered ifaces."
fdfef57f498e3021a34342538aef9f1c7ccbae78 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Notify policy listeners about metered ifaces.

Currently, kernel definition of metered networks is applied at the
interface level. This change maintain list of those metered ifaces
and notifies policy listeners, like ConnectivityService. (This gives
us a consistent picture of when a network would be blocked.)

Bug: 4601393
Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
ownloadManager.java
ebce0115e239919680fc5574ae4ca79e617fcce8 16-Jun-2011 Daniel Sandler <dsandler@google.com> ICS updates to notification layouts.

Of note:

1. There is no "X" (veto) button anymore. (Well, there is,
but it's offscreen so it should still be available to
assistive devices.) Users can use "Clear all" or the new
swipe-to-veto gesture to clear notifications.

2. As a consequence of #1, your layout goes all the way to
the right edge of the notifications panel again. Enjoy
the extra space!

3. The numeric bubble in the notification icon is now capped
at "999+" like it is in the expanded notification view.
(Note that this involves a couple of new public framework
resources: one to indicate the number beyond which the
substitution string will be used, and one specifying a
localizable substitution string.)

Bug: 4651514
Bug: 4686329
Bug: 4501990
Change-Id: I0e6bdb6aec4fe5bfc927eb1aba955d444a9414ec
otification.java
a31c7aadcd0371e973000826b5998c9af8816d7f 17-Jun-2011 Mark Brophy <mbrophy@google.com> Add a global-search column for last access.

NEW_API

This new column may be set in Cursors returned to global search. QSB
will may use this to help sorting results when presenting them to the
user.

Change-Id: Id5bc87dcb50f3e3a55b0a54a8c90057e60fd0e9e
earchManager.java
a93347a62ec9887862abb9d6f216906c533a8562 14-Jun-2011 Adam Powell <adamp@google.com> Dialog-o-rama!

New styling for Holo dialogs. Now 76% easier for apps to create
dialog-based layouts! (Less tricky padding and margin rules)

Cancelable AlertDialogs now are canceled when the user touches
outside.

Dialogs in landscape mode will try not to fill the width of the
screen.

Change-Id: I621b5a19780883ee703a8492510451b480a0b8cc
lertDialog.java
a7f88508d307c7554968ad3d1c1c58895ea3a223 17-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 872a1e79 to master

Change-Id: I50253b22f181729d4e748970acf1a3ad868ccd74
872a1e793c2bd218c1ad1f485f3a76974c72a547 17-Jun-2011 Dianne Hackborn <hackbod@google.com> am 9a73c4d3: am 2f04883f: SDK only: integrate new sample code, deprecating along the way.

* commit '9a73c4d3a9c7ce02f80b078ca9ba5106234ecd9c':
SDK only: integrate new sample code, deprecating along the way.
9a73c4d3a9c7ce02f80b078ca9ba5106234ecd9c 17-Jun-2011 Dianne Hackborn <hackbod@google.com> am 2f04883f: SDK only: integrate new sample code, deprecating along the way.

* commit '2f04883ff880966d63d1aa4a1c7b05e497cfcc58':
SDK only: integrate new sample code, deprecating along the way.
2f04883ff880966d63d1aa4a1c7b05e497cfcc58 16-Jun-2011 Dianne Hackborn <hackbod@google.com> SDK only: integrate new sample code, deprecating along the way.

The new support library features and sample code for switching
between fragments using a TabHost now eliminates the utility of
the TabActivity class, so deprecate it. This also means there is
no longer any use in ActivityGroup or LocalActivityManager. Yay.

Also fix up things so the new support API demos are included in
the documentation.

Change-Id: I4f073b82787f32560ba1fa5b6a23746ecc8aecdc
ctionBar.java
ctivityGroup.java
ocalActivityManager.java
abActivity.java
1a303953589fdddf21d88b8fa660136f5b060d0d 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> DownloadManager flags for network policy.

Handful of DownloadManager flags to record when a download was paused
because of NetworkPolicyManager rules.

Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
ontextImpl.java
ownloadManager.java
15856f7b62d06d968f57441ffe7dd31aac631952 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 27bad6f3: am baa89d38: am f930232f: Fix a major problem in fragment lifecycle.

* commit '27bad6f33b98e8d7417a6ce4d7f09b2fa1146379':
Fix a major problem in fragment lifecycle.
27bad6f33b98e8d7417a6ce4d7f09b2fa1146379 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am baa89d38: am f930232f: Fix a major problem in fragment lifecycle.

* commit 'baa89d3839f70bd31e5219c636ac24a4cc29928d':
Fix a major problem in fragment lifecycle.
baa89d3839f70bd31e5219c636ac24a4cc29928d 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am f930232f: Fix a major problem in fragment lifecycle.

* commit 'f930232fd1c8d301d91853c8fe5dca43979ac807':
Fix a major problem in fragment lifecycle.
f930232fd1c8d301d91853c8fe5dca43979ac807 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix a major problem in fragment lifecycle.

When animating away a fragment, we were not putting it through
the last part of its lifecycle (onDestroy() etc).

Also, retained fragments that have a target were broken. Oops.

Change-Id: I5a669b77a2f24b581cde2a0959acf62edb65e326
ragment.java
ragmentManager.java
542f2409d9be9211dcb8cdfe2f863c22ff6cf26f 15-Jun-2011 Ben Dodson <bjdodson@google.com> minor documentation fixes

Change-Id: I8ff5ad7c310fdbf0ade9d66e075d09e293182b89
ragment.java
038b737c7561e6a92edcd6267f1299d2602f1920 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Fix regression handling negative sizes.

Change-Id: Ib177af2fce9be4dabffa801f64580b1ea7adc673
allpaperManager.java
27e4266a4d63f1b20c632a665e65350bb1eac681 11-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of ed1a9c77 to master"
7b1c0f679e2fbc697a00253733c2200cd4817adf 11-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of ed1a9c77 to master

Change-Id: I0ecf8ca6deaee165eea3cc9012f8ae139f52ea0c
f5b61013d2fa145b004bc2bbb0614d94a54387eb 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Optimize StrictMode activity instance count check."
bc38d3e44e698f4db749c2feed34e13a94c54a1b 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Optimize orientation changes."
ed1a9c778c3345368e6d41485c1814e068046e92 11-Jun-2011 Dianne Hackborn <hackbod@google.com> am fc441bff: am fd63814a: Merge "Fix some problems with moving in and out of detached state." into honeycomb-mr2

* commit 'fc441bfff9eb68be08eb922ea05c78c5d6fba27a':
Fix some problems with moving in and out of detached state.
fc441bfff9eb68be08eb922ea05c78c5d6fba27a 11-Jun-2011 Dianne Hackborn <hackbod@google.com> am fd63814a: Merge "Fix some problems with moving in and out of detached state." into honeycomb-mr2

* commit 'fd63814abe8e81d5e1e0eb75b5a5a18034e9b4c6':
Fix some problems with moving in and out of detached state.
afc4b283fdaedec9bf32492a019b43cc33edc9b6 11-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix some problems with moving in and out of detached state.

Loaders were not being re-initialized correctly when coming back
(this would also impact the back stack). The ListView also wasn't
working correctly, and there were also problems with simply
re-using a Fragment instance after it had been removed.

Change-Id: I534b091ae09c0ef7ffffe9d68049e6840e8926b3
ctivity.java
ragment.java
ragmentManager.java
istFragment.java
oaderManager.java
7e442837702a6e026c73a01fedb62c222b63cfc9 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Optimize StrictMode activity instance count check.

This change attempts to avoid a periodic and costly 110ms
explicit GC and instance count operation when StrictMode
activity leak checking is enabled.

Change-Id: Ia90289ac3352c01c797ab3cc25456e3db68f220a
ctivity.java
24572375323dee79e3b456af07640ca194fd40bf 10-Jun-2011 Jeff Brown <jeffbrown@google.com> Optimize orientation changes.

Modified setRotation to allow it to restart a rotation in
progress as long as the rotation animation has not yet started.
This enables the system to recover more quickly from mispredicted
orientation changes.

Removed the call to System.gc() when freezing the display, which
added 60-80ms before we even started the orientation change.
We used to need this to make it less likely that an upcoming GC
would cause a pause during the window animation, but this is
not longer a concern with the concurrent GC in place.

Changed the wallpaper surface to be 32bit. This accelerates
drawing and improves the overall appearance slightly.

Reduced code duplication in the WallpaperManager.

Change-Id: Ic6e5e8bdce4b970b11badddd0355baaed40df88a
allpaperManager.java
2447edd85baac3225a12b868ef40f76cfdc6ec11 10-May-2011 Ben Komalo <benkomalo@google.com> New device policy to disable camera.

This introduces a new policy that a DeviceAdmin can use to disable _all_
cameras on the device. A separate CL will be made on the media side to
watch this policy bit and act accordingly.

Bug: 4185303
Change-Id: I700cfc4a8317bb74087ccae39346d74467fc58b2
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
f741e679c496f7345304a6543f01d7048e31d1a7 10-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e2aa0490 to master

Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
e2aa04908cfdf65ef309f1491f31a0c8846977ff 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am a1396dfe: am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit 'a1396dfe7ad6ec6953f544be42d69d7804ab0fd4':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
a1396dfe7ad6ec6953f544be42d69d7804ab0fd4 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit '021408910af170268cb486910d4dd5a7d838c2bb':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
5fd2169eabd77e6bfafaf456e58051a3bafb2bca 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Work on issue #4518815: Compatibility mode introduces compatibility regression...

...for Market App iRunner

There were a lot of serious issues with how we updated (or often didn't update)
the display and resource state when switching compatibility mode in conjunction
with restarting and updating application components. This addresses everything
I could find.

Unfortunately it does *not* fix this particular app. I am starting to think this
is just an issue in the app. This change does fix a number of other problems
I could repro, such as switching the compatibility mode of an IME.

Also a few changes here and there to get rid of $#*&^!! debug logs.

Change-Id: Ib15572eac9ec93b4b9966ddcbbc830ce9dec1317
ctivityThread.java
pplication.java
ontextImpl.java
oadedApk.java
b0628bfd5aac480a0d412ac96b8af1d97ac01c30 03-Jun-2011 Christopher Tate <ctate@google.com> Implement shared-storage full backup/restore

Every available shared-storage volume is backed up, tagged with its
ordinal in the set of mounted shared volumes. This is an approximation
of "internal + the external card". This lets us restore things to the
same volume [or "equivalent" volume, in the case of a cross-model
restore] as they originated on.

Also fixed a bug in the handling of files/dirs with spaces in
their names.

Change-Id: I380019da8d0bb5b3699bd7c11eeff621a88e78c3
ackup/BackupAgent.java
ackup/FullBackup.java
ackup/FullBackupAgent.java
3267d356d199319ac7526095d541be1c58008c8b 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7e5ca578: am b4815f47: am bd754205: Merge "Fix to not lose state when saving a deactivated fragment." into honeycomb-mr2

* commit '7e5ca5781b406d4f862254dad1758b91ce89f896':
Fix to not lose state when saving a deactivated fragment.
29bf3307277973ad4d148340c20aa7b32038c8af 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am e826feb6: am dddd6b15: am 185e3e24: Fix when managed cursors are required.

* commit 'e826feb66c2a3690716136c24926606eafe827dc':
Fix when managed cursors are required.
7e5ca5781b406d4f862254dad1758b91ce89f896 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am b4815f47: am bd754205: Merge "Fix to not lose state when saving a deactivated fragment." into honeycomb-mr2

* commit 'b4815f47e6d612da6e2d0650a2d8f103626e3ec7':
Fix to not lose state when saving a deactivated fragment.
b4815f47e6d612da6e2d0650a2d8f103626e3ec7 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am bd754205: Merge "Fix to not lose state when saving a deactivated fragment." into honeycomb-mr2

* commit 'bd754205d0b59315582855329649dad925a04b82':
Fix to not lose state when saving a deactivated fragment.
1333276c7af53bca06ad166f129d39fc756930df 04-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix to not lose state when saving a deactivated fragment.

Also deactivating a fragment shouldn't put it in the exiting state.

Change-Id: I514f3589ee7bbbee131cd7b4a48803e99b212bd0
ragmentManager.java
e826feb66c2a3690716136c24926606eafe827dc 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am dddd6b15: am 185e3e24: Fix when managed cursors are required.

* commit 'dddd6b15d5274a6138facec9f553336fac5f6de6':
Fix when managed cursors are required.
dddd6b15d5274a6138facec9f553336fac5f6de6 04-Jun-2011 Dianne Hackborn <hackbod@google.com> am 185e3e24: Fix when managed cursors are required.

* commit '185e3e243ee1da136bcace854026b8abaf0c4c86':
Fix when managed cursors are required.
3c43ced84184f19b8bb72f42894e37c97fdecab2 04-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of d247ee41 to master

Change-Id: I49bd932f5019ce0608e2661d5cb7f24b6122dcba
185e3e243ee1da136bcace854026b8abaf0c4c86 04-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix when managed cursors are required.

Only do this when we are actually restarting, not when we
are just resuming after a pause.

Change-Id: I32fd263917b03776efca8e096d0343107721398d
ctivity.java
2515db74fe2e75018f618591fabe23fda8362bf3 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 3a80c504: am 8b9a2b6c: am e6676351: Work around OpenFeint bug.

* commit '3a80c50485809fe72d6de83dacad494c5e84ed24':
Work around OpenFeint bug.
50469db07167e3a837e10f215baa4eacb1319604 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7322e557: am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit '7322e557cfe42da42779625d69ced2db74a9df90':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
d247ee41d60fc261d2387625995f9ff3da442019 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 758b67b1: am b46ed763: Add new Fragment API for explicitly saving/restoring state.

* commit '758b67b12386a6ea52d520aef455c3150c9bae03':
Add new Fragment API for explicitly saving/restoring state.
758b67b12386a6ea52d520aef455c3150c9bae03 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am b46ed763: Add new Fragment API for explicitly saving/restoring state.

* commit 'b46ed7636be9341b6ce0b158b3d86f34a437e6da':
Add new Fragment API for explicitly saving/restoring state.
b46ed7636be9341b6ce0b158b3d86f34a437e6da 03-Jun-2011 Dianne Hackborn <hackbod@google.com> Add new Fragment API for explicitly saving/restoring state.

Also fix issue #4519821:
Blank screen displayed on tapping "Battery Use" option in the settings

We weren't correctly doing the full Activity resume code when coming
back from delivering a new Intent or result.

And fix a fragment problem where we still weren't correctly restoring
the state of list views. (I think this was from a bad manual-merge
from master.)

Change-Id: If79dc7e998155c39ab8c04781f6c73a82238a9ef
ctivityThread.java
ragment.java
ragmentManager.java
546d64f56d0f930070289e26021f97638601e388 02-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 5c2e4d20 to master

Change-Id: Iadbee872468ceafb54c5877046c91f6052f3c953
ed60f81940c5f2125518c7c31ad4f61b8a9baf3e 02-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 76450622 to master

Change-Id: I26ccd8f264e65f100d894f43cf597a781552db83
3a80c50485809fe72d6de83dacad494c5e84ed24 02-Jun-2011 Dianne Hackborn <hackbod@google.com> am 8b9a2b6c: am e6676351: Work around OpenFeint bug.

* commit '8b9a2b6cbd9cf37e9f5aa1bfc7106c67a5e89202':
Work around OpenFeint bug.
8b9a2b6cbd9cf37e9f5aa1bfc7106c67a5e89202 02-Jun-2011 Dianne Hackborn <hackbod@google.com> am e6676351: Work around OpenFeint bug.

* commit 'e66763516a9c27c192adaba417616371a1c3c9bf':
Work around OpenFeint bug.
e66763516a9c27c192adaba417616371a1c3c9bf 02-Jun-2011 Dianne Hackborn <hackbod@google.com> Work around OpenFeint bug.

Change-Id: Ib8320e50bb63fc56dc0118d5c8e9e328dbd3fcb1
ctivityThread.java
75a99709accef8cf221fd436d646727e7c8dd1f1 19-May-2011 Christopher Tate <ctate@google.com> Restore from a previous full backup's tarfile

Usage: adb restore [tarfilename]

Restores app data [and installs the apps if necessary from the backup
file] captured in a previous invocation of 'adb backup'. The user
must explicitly acknowledge the action on-device before it is allowed
to proceed; this prevents any "invisible" pushes of content from the
host to the device.

Known issues:

* The settings databases and wallpaper are saved/restored, but lots
of other system state is not yet captured in the full backup. This
means that for practical purposes this is usable for 3rd party
apps at present but not for full-system cloning/imaging.

Change-Id: I0c748b645845e7c9178e30bf142857861a64efd3
ctivityThread.java
ApplicationThread.java
BackupAgent.aidl
ackup/BackupAgent.java
ackup/FullBackup.java
ackup/FullBackupAgent.java
ackup/IBackupManager.aidl
36f80f3a5a3de42d4e7ca4b53d4aa3e567f4df6f 01-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 590ec479 to master

Change-Id: I30503da6a73b9cb15eee66a67c75d50ccdc4b9f0
7322e557cfe42da42779625d69ced2db74a9df90 01-Jun-2011 Dianne Hackborn <hackbod@google.com> am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit 'a4cfcf10cc300a1eb5b2a4254fb7d3190c56c4f1':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
a4cfcf10cc300a1eb5b2a4254fb7d3190c56c4f1 01-Jun-2011 Dianne Hackborn <hackbod@google.com> am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit '75d6b3c2a24224e41e87685db0d9d0b8abea091d':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
2f0b17573d4324832f7a20402a3d2b5920bc4866 01-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4502672: Wrong xml resources used for homescreen widgets.

There was a race in the system process between applying the initial
configuration and executing code in higher-level system services
like the app widget service that relies on the config. For some
reason it starting showing up more after my code changes; it should
now be completely fixed.

Also fix the activity starting window to run in compatibility mode
if its application is going to be in compatibility mode.

And some various cleanup and small fixes.

Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5
ctivityThread.java
oadedApk.java
5c2e4d20df934728f39312741ef3390fd87795ce 27-May-2011 Dianne Hackborn <hackbod@google.com> am 8fcbfb52: am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2

* commit '8fcbfb52607263754b6d3895a112f792c5c3a12e':
Add new supports-screens attributes for declaring the compatible screens.
8fcbfb52607263754b6d3895a112f792c5c3a12e 27-May-2011 Dianne Hackborn <hackbod@google.com> am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2

* commit '94250ac69c6e07534e4781d3479dccb79d8c366c':
Add new supports-screens attributes for declaring the compatible screens.
94250ac69c6e07534e4781d3479dccb79d8c366c 27-May-2011 Dianne Hackborn <hackbod@google.com> Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2
df6e980e3f63eb0f6f9eb437fa925d5009cd9c44 26-May-2011 Dianne Hackborn <hackbod@google.com> Add new supports-screens attributes for declaring the compatible screens.

Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d
android:requiresSmallestWidthDp provides the smallest supported width.
android:compatibleWidthLimitDp provides the largest compatible width.
ctivityThread.java
76450622f08b1d0d09df7f1ad8e52afe01090770 26-May-2011 Dianne Hackborn <hackbod@google.com> am d5238cc1: am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2

* commit 'd5238cc1ab8366389b2aada228f2f2e5cbb3244e':
Rework how we decide whether to use system or status bar.
5e34a1945a6b26dff5551a37627c5216b076d896 26-May-2011 Kenny Root <kroot@google.com> am 1d8f8819: Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2

* commit '1d8f8819f1e98cdf3b7756396158613e95fe9eb6':
Break apart queries to getInstalled* API DO NOT MERGE
d5238cc1ab8366389b2aada228f2f2e5cbb3244e 26-May-2011 Dianne Hackborn <hackbod@google.com> am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2

* commit '7a09f72b8850ec22e4ca7fd50aba20ead7666f67':
Rework how we decide whether to use system or status bar.
1d8f8819f1e98cdf3b7756396158613e95fe9eb6 26-May-2011 Kenny Root <kroot@google.com> Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2
590ec479fd51e13d077212833e2ac4f848a49cc3 26-May-2011 Dianne Hackborn <hackbod@google.com> am 80ef2a97: am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2

* commit '80ef2a9745e6103efd9698577536bbfed1fd74f6':
Spiffy new compatibility mode UI.
81e56d535c853d73ff537357da5b935f51cb779d 26-May-2011 Dianne Hackborn <hackbod@google.com> Rework how we decide whether to use system or status bar.

The PhoneWindowManager is now responsible for determing this,
since it needs to do this before we can generate the configuration
since we need to take into account the system bar size we will use.

Also the Display should now report the screen height without
including the system bar.

Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757
ontextImpl.java
80ef2a9745e6103efd9698577536bbfed1fd74f6 26-May-2011 Dianne Hackborn <hackbod@google.com> am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2

* commit '42f8094c066209a65b09d53611ef5c93daba4c51':
Spiffy new compatibility mode UI.
1bb6cf18c0039cb9d2a60713ea34d3709af58c5c 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API DO NOT MERGE

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ia3a8cdaa94581ed9336f2e05694b8c8a5f757bce
pplicationPackageManager.java
36cd41f8efa6f6a683d3353d309ff548295af9e9 26-May-2011 Dianne Hackborn <hackbod@google.com> Spiffy new compatibility mode UI.

Change-Id: I1207eaafae59a434fcc979ad60a83e2d685288af
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
fee1c69a49d03b651e481983432ade94fc07650a 26-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 77dd616e to master

Change-Id: Idb7180177b01e7d822327ccc7c76617220860da2
f8ac6b7394cfd37f01471bb35475ff2930eee140 24-May-2011 Adam Powell <adamp@google.com> Action bar tab layout

Sync with UX on action bar tab layout behavior.

Make action bar tabs behave better with configuration changes.

LinearLayout now supports largest child measurement in unspecified
mode.

Change-Id: Id520641715a61c07e64124a0c5a70912996c98a0
ctivity.java
77dd616e685e2671491d911d0847efa4f832717e 25-May-2011 Dianne Hackborn <hackbod@google.com> am 00b3a5c6: am c404e9b2: Merge "More compatibility mode improvements." into honeycomb-mr2

* commit '00b3a5c65e6ef26056178d1d7473b921671752e9':
More compatibility mode improvements.
00b3a5c65e6ef26056178d1d7473b921671752e9 25-May-2011 Dianne Hackborn <hackbod@google.com> am c404e9b2: Merge "More compatibility mode improvements." into honeycomb-mr2

* commit 'c404e9b20165f634904d1489216d17d8e09fe696':
More compatibility mode improvements.
5be8de3420ba4c9d816b98e29bdec11715f6b626 25-May-2011 Dianne Hackborn <hackbod@google.com> More compatibility mode improvements.

We now correctly adjust display metrics, fixing for example issues
seen in Barcode Scanner. In addition the decision about when to use
compatibility mode has a bug fixed where certain apps would not go
out of compatibility mode even though they should be able to.

Change-Id: I5971206323df0f11ce653d1c790c700f457f0582
ontextImpl.java
nstrumentation.java
8f40e5871213afb63ae4b68a44dd09e0a014e417 25-May-2011 Ying Wang <wangying@google.com> Merge "Fix intermediate src dir for framework.jar"
e2c7715c772d5121397591b532d04a31b3ffcc99 24-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of bbca8133 to master

Change-Id: I81493674dceab848e41d380a77a37e5a9be06db6
a4620793038b9a9163b26c6ece882cb454fcbf87 21-May-2011 Jeff Sharkey <jsharkey@android.com> Observe screen on/off events in NetworkPolicy.

The POLICY_REJECT_BACKGROUND policy requires that network traffic be
blocked when a UID goes into the background. Even if the UID has an
activity in the foreground, it's considered "background" if the screen
is turned off.

This changes watches for SCREEN_ON/OFF broadcasts, and rule generation
now observes screen state. It also introduces an observer pattern so
that ActivityManager doesn't directly know about NetworkPolicy, and
moves the service management into SystemServer.

Change-Id: Ie7a84929d3ca60ae4578d47e19d5a8da10fd8d58
ctivityManagerNative.java
ActivityManager.java
ProcessObserver.aidl
bbca81334e3603c7328dc526bd63032b23d5261d 24-May-2011 Dianne Hackborn <hackbod@google.com> am 4bb78889: am 40277df7: Merge "Add "television" mode." into honeycomb-mr2

* commit '4bb78889d04594c01a6af7f6d38c1764e9f575f9':
Add "television" mode.
4bb78889d04594c01a6af7f6d38c1764e9f575f9 24-May-2011 Dianne Hackborn <hackbod@google.com> am 40277df7: Merge "Add "television" mode." into honeycomb-mr2

* commit '40277df7c33c0fc381eec589c768fe86de4b4404':
Add "television" mode.
e360bb6bd8ea84b8d37604fc11dfc744b18fb0de 21-May-2011 Dianne Hackborn <hackbod@google.com> Add "television" mode.

Change-Id: Ida1fdb61b036a8b489dbeda196fb4bc82e651b2b
iModeManager.java
d0693bb603b3e79ee63421fa145380e926734cc7 20-May-2011 Adam Powell <adamp@google.com> am f2004180: am f5abccef: am 73a31ec9: Merge "New opaque cab assets; search dialog tweaks." into honeycomb-mr2

* commit 'f2004180f828584fa8525081a248e8c0f2055327':
New opaque cab assets; search dialog tweaks.
f2004180f828584fa8525081a248e8c0f2055327 20-May-2011 Adam Powell <adamp@google.com> am f5abccef: am 73a31ec9: Merge "New opaque cab assets; search dialog tweaks." into honeycomb-mr2

* commit 'f5abccefb10e8a31363c98d6a8491cb8168b7174':
New opaque cab assets; search dialog tweaks.
f5abccefb10e8a31363c98d6a8491cb8168b7174 20-May-2011 Adam Powell <adamp@google.com> am 73a31ec9: Merge "New opaque cab assets; search dialog tweaks." into honeycomb-mr2

* commit '73a31ec91c3e472503e9fbbfe82b8c3bbc5140ed':
New opaque cab assets; search dialog tweaks.
8abebcde3fd2317b25629263db6ad4637c8eeb34 20-May-2011 Adam Powell <adamp@google.com> New opaque cab assets; search dialog tweaks.

* New opaque assets (now actually opaque!)

* SearchDialog determines theme to use from parent context

* SearchDialog now disallows action modes

Change-Id: If05fe64d7cc4460678d78412275ee988ddb47e9e
earchDialog.java
a51b6fd6f8a53f040894ef07cf23695581595e6b 20-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of b2d0ee16 to master

Change-Id: I4483a6d0ccecfea4a1e66bb6eba80d13e8b9a3a4
7189d571e2748972e1599ead3d503a9b185fdd3c 19-May-2011 Chet Haase <chet@google.com> am f0c6ddd9: am 51fb9703: Merge "DO NOT MERGE: Add custom fragment anims for popping backstack" into honeycomb-mr2

* commit 'f0c6ddd99b6770ee4de74ce42134f9f56b8ebc5d':
DO NOT MERGE: Add custom fragment anims for popping backstack
f0c6ddd99b6770ee4de74ce42134f9f56b8ebc5d 19-May-2011 Chet Haase <chet@google.com> am 51fb9703: Merge "DO NOT MERGE: Add custom fragment anims for popping backstack" into honeycomb-mr2

* commit '51fb97031f62b1181fc9eb6c636d09a68987d939':
DO NOT MERGE: Add custom fragment anims for popping backstack
19e748a3d1702f911476e103b590a36adefb83ca 22-Mar-2011 Chet Haase <chet@google.com> DO NOT MERGE: Add custom fragment anims for popping backstack

The previous fragment implementation allowed for animations
during fragment transitions, but did not account for the
different behavior of fragments when popping the back stack.
In general, you probably don't want to run the same animation
for putting a fragment on the stack as for popping it off, which
is what happens now. For example, you might fade a fragment out when
putting it on the stack. But when popping ot off, fading it out
is probably not the behavior you want.

The new API (setCustomAnimations() overload with two additional
parameters) allows developers to specify animations to be run
in the popping operation. Otherwise, the animations are null and
the operation will not be animated.

Change-Id: I53bbc6e6ec4e953b7ecdd99e2452d81857917de2
ackStackRecord.java
ragmentTransaction.java
e6cd0c747e76723bc51a23925c239ae10f9d3b5c 19-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 2433c443 to honeycomb-plus-aosp

Change-Id: I3385f57e5761679e6700bcbe3c41deb3ecd43ba1
2433c443bb5fe96d9a39b59e10e3c03d791e2278 19-May-2011 Kenny Root <kroot@google.com> am f2006f31: Merge "Break apart queries to getInstalled* API" into gingerbread

* commit 'f2006f3123dcdf598e052051041b49c89710b53e':
Break apart queries to getInstalled* API
65ee22aa01c038fbcf656748ba7655c17df3ea61 17-May-2011 Ying Wang <wangying@google.com> Fix intermediate src dir for framework.jar

Intermediate src dir for JAVA_LIBRARIES should be in the common
intermediate dir.

Change-Id: Ib16ddd63aed080cdd1494204b347c1e1e1beafcb
ThumbnailRetriever.aidl
f97ed771979162c4a2a75959c57fb793438a3a8b 16-May-2011 Dianne Hackborn <hackbod@google.com> am d90a2c4d: am 1e662c32: Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2

* commit 'd90a2c4d4463085155444efb07eba2d6579b444a':
DO NOT MERGE. Integrate from master: Rework display size access.
d90a2c4d4463085155444efb07eba2d6579b444a 16-May-2011 Dianne Hackborn <hackbod@google.com> am 1e662c32: Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2

* commit '1e662c3294b740ff694ad98e4d9a366e1e4b5e62':
DO NOT MERGE. Integrate from master: Rework display size access.
ac8dea12c17aa047e03a358110aeb60401d36aa2 21-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: 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: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
ctivity.java
ackup/WallpaperBackupHelper.java
fbdf9df053800afb25453630d11bd48cbc068271 16-May-2011 Dianne Hackborn <hackbod@google.com> am 2a20583a: am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2

* commit '2a20583a5f436d66ab73cd6c0fdc73e59a3cecad':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
2a20583a5f436d66ab73cd6c0fdc73e59a3cecad 16-May-2011 Dianne Hackborn <hackbod@google.com> am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2

* commit '700ab1c75862babba90f54e02bdc877becd4f4fc':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
24df0757f86851569b65dadd0dfa139521748b9c 14-May-2011 Dianne Hackborn <hackbod@google.com> am ed9321ab: am f9dd34f4: DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.

* commit 'ed9321ab5d282e40e7c5fa9caf0eb9d05646f2d0':
DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.
ed9321ab5d282e40e7c5fa9caf0eb9d05646f2d0 14-May-2011 Dianne Hackborn <hackbod@google.com> am f9dd34f4: DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.

* commit 'f9dd34f4d3203fd50363b3b0247c5d0db6fe2c8f':
DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.
9a84983a9fd9959671e102045eaf185b83291269 08-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
ctivityThread.java
pplicationThreadNative.java
f9dd34f4d3203fd50363b3b0247c5d0db6fe2c8f 20-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.

And clean up some documentation.

Change-Id: I8f06e2fc3bb6c552581b64657e82ba690d524232
ctivity.java
ragment.java
eyguardManager.java
oaderManager.java
ba4990c77cbc643809f1d0e74fabe5a1d1d1c3dc 14-May-2011 Dianne Hackborn <hackbod@google.com> am 71da3207: am 7d87c37b: am 6121f06e: Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2

* commit '71da32074ce729fe170de2d6c348b110fb6625cc':
Fix a bug where an action bar could be created when it should not be.
71da32074ce729fe170de2d6c348b110fb6625cc 14-May-2011 Dianne Hackborn <hackbod@google.com> am 7d87c37b: am 6121f06e: Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2

* commit '7d87c37b031616259d1db6a78ecb1ff20ee5ff5c':
Fix a bug where an action bar could be created when it should not be.
7d87c37b031616259d1db6a78ecb1ff20ee5ff5c 14-May-2011 Dianne Hackborn <hackbod@google.com> am 6121f06e: Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2

* commit '6121f06ed5847d1edd22b23c3b28bf3b3e3af602':
Fix a bug where an action bar could be created when it should not be.
6121f06ed5847d1edd22b23c3b28bf3b3e3af602 14-May-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2
28a8bce691358dca3872e65d3604f3b0ff3fccaf 14-May-2011 Dianne Hackborn <hackbod@google.com> am 6824c135: am f3f2d731: Merge "DO NOT MERGE. Integrate fragment work from master" into honeycomb-mr2

* commit '6824c135fe9639c74f38f125d678c20065c3347c':
DO NOT MERGE. Integrate fragment work from master
6824c135fe9639c74f38f125d678c20065c3347c 14-May-2011 Dianne Hackborn <hackbod@google.com> am f3f2d731: Merge "DO NOT MERGE. Integrate fragment work from master" into honeycomb-mr2

* commit 'f3f2d731e19bb47a87dc071a5750fc0f18248da2':
DO NOT MERGE. Integrate fragment work from master
a593d9852f3807305763c3f1fe1ac5c59f1fef92 13-May-2011 Adam Powell <adamp@google.com> Fix a bug where an action bar could be created when it should not be.

Change-Id: I9ca1038accdb6d0a539750ed8ab068a41612f6ae
ctivity.java
16f6e89c2a4bbf73fe15cb2e81c8fec98c7ac831 16-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate fragment work from master

Back-port new fragment detach APIs from support lib.

This allow a much cleaner implementation of things like the
fragment pager class.

Integrate from support lib: fix restore of list state.

The FragmentManager/ListFragment impl was restoring the list
state before setting its adapter. This caused the list view to
lose the state, since it gets cleared as part of setting the
adapter. Now the fragment manager waits on restoring the view
hierarchy state until after it has done onActivityCreated(),
at which point we have set the adapter.

It would be nice to make list view less fragile in this regard,
but that is for a different change.

Change-Id: I38606ef7d0b06478995f3fb7726aead67420e172
ackStackRecord.java
ragment.java
ragmentManager.java
ragmentTransaction.java
istFragment.java
c6c8ada1632b9ea0ff87c1caa1141f93ec2256b2 13-May-2011 Dianne Hackborn <hackbod@google.com> am dda64e9a: am 51454295: am df9799f0: Fix build.

* commit 'dda64e9a4af2e7dbc75a3b2fc7c41b9d63848a59':
Fix build.
dda64e9a4af2e7dbc75a3b2fc7c41b9d63848a59 13-May-2011 Dianne Hackborn <hackbod@google.com> am 51454295: am df9799f0: Fix build.

* commit '51454295a5813627a91dd5cf6b486a70a0b389cb':
Fix build.
51454295a5813627a91dd5cf6b486a70a0b389cb 13-May-2011 Dianne Hackborn <hackbod@google.com> am df9799f0: Fix build.

* commit 'df9799f0fc3ef04d9b004ebbda44883f85321b24':
Fix build.
3d0724dc220a2e027b9e38f61c39c84c28a505d5 13-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 0e59729b to master

Change-Id: I2d3a6bddf66b1df0c101c45ea2fec1cf65caf01b
df9799f0fc3ef04d9b004ebbda44883f85321b24 13-May-2011 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: I97e357aa20c9ba91f20f77d53fc4dca1fd3aa598
ctivityManager.java
0e59729b104e48c7d935026f565c4b45f1f37d12 13-May-2011 Dianne Hackborn <hackbod@google.com> am 97280816: am 0f1de9ad: New compat mode front end: UI and persistence.

* commit '972808164adde6c0784e9c836d06219a9cf7eb7f':
New compat mode front end: UI and persistence.
972808164adde6c0784e9c836d06219a9cf7eb7f 13-May-2011 Dianne Hackborn <hackbod@google.com> am 0f1de9ad: New compat mode front end: UI and persistence.

* commit '0f1de9adde0b52d2a385a76232bd7ac30c3eeea2':
New compat mode front end: UI and persistence.
0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 12-May-2011 Dianne Hackborn <hackbod@google.com> New compat mode front end: UI and persistence.

Adds a really crappy UI for toggling compat mode.

Persists compat mode selection across boots.

Turns on compat mode by default for newly installed apps.

Change-Id: Idc83494397bd17c41450bc9e9a05e4386c509399
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
4a627c71ff53a4fca1f961f4b1dcc0461df18a06 01-Apr-2011 Christopher Tate <ctate@google.com> Full local backup infrastructure

This is the basic infrastructure for pulling a full(*) backup of the
device's data over an adb(**) connection to the local device. The
basic process consists of these interacting pieces:

1. The framework's BackupManagerService, which coordinates the
collection of app data and routing to the destination.

2. A new framework-provided BackupAgent implementation called
FullBackupAgent, which is instantiated in the target applications'
processes in turn, and knows how to emit a datastream that contains
all of the app's saved data files.

3. A new shell-level program called "bu" that is used to bridge from
adb to the framework's Backup Manager.

4. adb itself, which now knows how to use 'bu' to kick off a backup
operation and pull the resulting data stream to the desktop host.

5. A system-provided application that verifies with the user that
an attempted backup/restore operation is in fact expected and to
be allowed.

The full agent implementation is not used during normal operation of
the delta-based app-customized remote backup process. Instead it's
used during user-confirmed *full* backup of applications and all their
data to a local destination, e.g. via the adb connection.

The output format is 'tar'. This makes it very easy for the end
user to examine the resulting dataset, e.g. for purpose of extracting
files for debug purposes; as well as making it easy to contemplate
adding things like a direct gzip stage to the data pipeline during
backup/restore. It also makes it convenient to construct and maintain
synthetic backup datasets for testing purposes.

Within the tar format, certain artificial conventions are used.
All files are stored within top-level directories according to
their semantic origin:

apps/pkgname/a/ : Application .apk file itself
apps/pkgname/obb/: The application's associated .obb containers
apps/pkgname/f/ : The subtree rooted at the getFilesDir() location
apps/pkgname/db/ : The subtree rooted at the getDatabasePath() parent
apps/pkgname/sp/ : The subtree rooted at the getSharedPrefsFile() parent
apps/pkgname/r/ : Files stored relative to the root of the app's file tree
apps/pkgname/c/ : Reserved for the app's getCacheDir() tree; not stored.

For each package, the first entry in the tar stream is a file called
"_manifest", nominally rooted at apps/pkgname. This file contains some
metadata about the package whose data is stored in the archive.

The contents of shared storage can optionally be included in the tar
stream. It is placed in the synthetic location:

shared/...

uid/gid are ignored; app uids are assigned at install time, and the
app's data is handled from within its own execution environment, so
will automatically have the app's correct uid.

Forward-locked .apk files are never backed up. System-partition
.apk files are not backed up unless they have been overridden by a
post-factory upgrade, in which case the current .apk *is* backed up --
i.e. the .apk that matches the on-disk data. The manifest preceding
each application's portion of the tar stream provides version numbers
and signature blocks for version checking, as well as an indication
of whether the restore logic should expect to install the .apk before
extracting the data.

System packages can designate their own full backup agents. This is
to manage things like the settings provider which (a) cannot be shut
down on the fly in order to do a clean snapshot of their file trees,
and (b) manage data that is not only irrelevant but actively hostile
to non-identical devices -- CDMA telephony settings would seriously
mess up a GSM device if emplaced there blind, for example.

When a full backup or restore is initiated from adb, the system will
present a confirmation UI that the user must explicitly respond to
within a short [~ 30 seconds] timeout. This is to avoid the
possibility of malicious desktop-side software secretly grabbing a copy
of all the user's data for nefarious purposes.

(*) The backup is not strictly a full mirror. In particular, the
settings database is not cloned; it is handled the same way that
it is in cloud backup/restore. This is because some settings
are actively destructive if cloned onto a different (or
especially a different-model) device: telephony settings and
AndroidID are good examples of this.

(**) On the framework side it doesn't care that it's adb; it just
sends the tar stream to a file descriptor. This can easily be
retargeted around whatever transport we might decide to use
in the future.

KNOWN ISSUES:

* the security UI is desperately ugly; no proper designs have yet
been done for it
* restore is not yet implemented
* shared storage backup is not yet implemented
* symlinks aren't yet handled, though some infrastructure for
dealing with them has been put in place.

Change-Id: Ia8347611e23b398af36ea22c36dff0a276b1ce91
ctivityThread.java
ullBackupAgent.java
BackupAgent.aidl
ackup/BackupAgent.java
ackup/FullBackup.java
ackup/FullBackupAgent.java
ackup/IBackupManager.aidl
ackup/IFullBackupRestoreObserver.aidl
aa9d84c37e05f696ec158dac98ce38cf41e18314 10-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 05be6d6f to master

Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
05be6d6fe09ddfb706d1bef3b20c3d37f45e3c8a 10-May-2011 Dianne Hackborn <hackbod@google.com> am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '4907d1d5e2c7d244b07579b8c52153df69754e85':
Better compat mode part one: start scaling windows.
4907d1d5e2c7d244b07579b8c52153df69754e85 10-May-2011 Dianne Hackborn <hackbod@google.com> am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '0c6cbf410a642f6e9cea7cca0a6e53a4a3cdd324':
Better compat mode part one: start scaling windows.
e2515eebf42c763c0a2d9f873a153711778cfc17 28-Apr-2011 Dianne Hackborn <hackbod@google.com> Better compat mode part one: start scaling windows.

First step of improving app screen size compatibility mode. When
running in compat mode, an application's windows are scaled up on
the screen rather than being small with 1:1 pixels.

Currently we scale the application to fill the entire screen, so
don't use an even pixel scaling. Though this may have some
negative impact on the appearance (it looks okay to me), it has a
big benefit of allowing us to now treat these apps as normal
full-screens apps and do the normal transition animations as you
move in and out and around in them.

This introduces fun stuff in the input system to take care of
modifying pointer coordinates to account for the app window
surface scaling. The input dispatcher is told about the scale
that is being applied to each window and, when there is one,
adjusts pointer events appropriately as they are being sent
to the transport.

Also modified is CompatibilityInfo, which has been greatly
simplified to not be so insane and incomprehendible. It is
now simple -- when constructed it determines if the given app
is compatible with the current screen size and density, and
that is that.

There are new APIs on ActivityManagerService to put applications
that we would traditionally consider compatible with larger screens
in compatibility mode. This is the start of a facility to have
a UI affordance for a user to switch apps in and out of
compatibility.

To test switching of modes, there is a new variation of the "am"
command to do this: am screen-compat [on|off] [package]

This mode switching has the fundamentals of restarting activities
when it is changed, though the state still needs to be persisted
and the overall mode switch cleaned up.

For the few small apps I have tested, things mostly seem to be
working well. I know of one problem with the text selection
handles being drawn at the wrong position because at some point
the window offset is being scaled incorrectly. There are
probably other similar issues around the interaction between
two windows because the different window coordinate spaces are
done in a hacky way instead of being formally integrated into
the window manager layout process.

Change-Id: Ie038e3746b448135117bd860859d74e360938557
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ontextImpl.java
ActivityManager.java
ApplicationThread.java
oadedApk.java
c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 12-Apr-2011 Joe Onorato <joeo@google.com> Rename ViewRoot to ViewAncestor.

ViewRoot is about to be a new public class for poking at ViewAncestor.

Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
ctivityThread.java
allpaperManager.java
4c79ca8caef8ad48b21685090a9420dbb3daac84 02-May-2011 Conley Owens <cco3@android.com> am c30d7676: am 1a846ab0: am b1578d85: Merge "Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal

* commit 'c30d767628861b0bbea907824682e47732c820f9':
Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown
c30d767628861b0bbea907824682e47732c820f9 30-Apr-2011 Conley Owens <cco3@android.com> am 1a846ab0: am b1578d85: Merge "Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information >

* commit '1a846ab089878a6b342c6bc3e8850fc2e0ef3080':
Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown
b1578d85ce1b3f3c5e2cf0271011c016b93b7e1a 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown"
9b4bee0f14bbd137b0797127aff2df46a6321ec5 28-Apr-2011 Adam Powell <adamp@google.com> Introducing the split action bar.

Apply (or extend) the theme Theme.Holo.SplitActionBarWhenNarrow or
Theme.Holo.Light.SplitActionBarWhenNarrow to enable splitting the
action bar across both the top and bottom of the screen. This places
the action menu along the bottom, leaving more room at the top for
titles, navigation, and custom views and more room at the bottom for
menu items.

TODO: Refine layout of the action menu when placed at the bottom of
the screen. Make action modes split as well.

Change-Id: I92c91f99c533f26aecf6b828ed041386c4f16922
ctivity.java
dae7824c4b78d02159c6ad0896f246942d7b3d8c 26-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Drop tabs to a second row at < w480dp

Make 9-patches for the cab's "done" button thinner

Add a "disable home" display option to the action bar to turn off
focus and touch feedback when tapping home would do nothing

Change-Id: Ib2eedf311655f02055357321e2e9ad5b9037fed1
ctionBar.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
ctivity.java
ackup/WallpaperBackupHelper.java
9567a66a5e6f49dd8495fb5f6e2efb9f32e84b35 20-Apr-2011 Dianne Hackborn <hackbod@google.com> Deprecate a bunch of APIs.

And clean up some documentation.

Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
ctivity.java
ragment.java
eyguardManager.java
oaderManager.java
25641ca1ac5b09727f86fe01389877332a00455d 19-Apr-2011 Amith Yamasani <yamasani@google.com> Merge "Plumbing in PackageManager and installd for multi-user support."
0e2c0f37d98bb5539b0fe41865aaf1add0ff1bb3 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ic370fd148d4c3813ae4f2daffa1a7c28d63d5a09
ontextImpl.java
d071ec2b49ee65914b33fca3e8087f14e43237b6 18-Apr-2011 Dianne Hackborn <hackbod@google.com> Integrate from support lib: fix restore of list state.

The FragmentManager/ListFragment impl was restoring the list
state before setting its adapter. This caused the list view to
lose the state, since it gets cleared as part of setting the
adapter. Now the fragment manager waits on restoring the view
hierarchy state until after it has done onActivityCreated(),
at which point we have set the adapter.

It would be nice to make list view less fragile in this regard,
but that is for a different change.

Change-Id: I032d6fe0fefc0dabfae95d44152146029ef5db8e
ragment.java
ragmentManager.java
istFragment.java
47c4156567ce5abf8a6fca7fefe6ae9a20fb5117 16-Apr-2011 Dianne Hackborn <hackbod@google.com> Back-port new fragment detach APIs from support lib.

This allow a much cleaner implementation of things like the
fragment pager class.

Change-Id: I433be3d6c24c9a059d908d442bcfddbf1e8e57e5
ackStackRecord.java
ragment.java
ragmentManager.java
ragmentTransaction.java
0b285499db739ba50f2f839d633e763c70e67f96 15-Apr-2011 Amith Yamasani <yamasani@google.com> Plumbing in PackageManager and installd for multi-user support.

- Create /data/user directory and symlink /data/user/0 -> /data/data for
backward compatibility
- Create data directories for all packages for new user

- Remove data directories when removing a user

- Create data directories for all users when a package is created

- Clear / Remove data for multiple users

- Fixed a bug in verifying the location of a system app

- pm commands for createUser and removeUser (will be disabled later)

- symlink duplicate lib directories to the original lib directory

Change-Id: Id9fdfcf0e62406a8896aa811314dfc08d5f6ed95
pplicationPackageManager.java
0c5001d776d56bae02a5cc2663286a125d99bc5e 13-Apr-2011 Dianne Hackborn <hackbod@google.com> Add APIs to remove tasks.

You can remove sub-tasks inside of a task, or an entire task.

When removing an entire task, you can have its process killed
as well.

When the process is killed, any running services will get an
onTaskRemoved() callback for them to do cleanup before their
process is killed (and the service possibly restarted).

Or they can set a new android:stopWithTask attribute to just
have the service automatically (cleanly) stopped at this point.

Change-Id: I1891bc2da006fa53b99c52f9040f1145650e6808
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
ervice.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
ctivityManager.java
ctivityManagerNative.java
pplicationPackageManager.java
ActivityManager.java
bcbab3684349353ee8cab30b556001824d0e7ccf 09-Apr-2011 Dianne Hackborn <hackbod@google.com> Merge "Rework thumbnails in activity manager."
f26fd99a7c2f554b0297760bb66336473c7db61f 09-Apr-2011 Dianne Hackborn <hackbod@google.com> Rework thumbnails in activity manager.

We now only keep a thumbnail for the task, not for each
activity. However if you use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET,
we will make a new secondary thumbnail for that series of
activities. There is a new API for the app to get these
secondary thumbnails.

Also set a default thumbnail size for non-xlarge screens
so we have thumbnails on phones. (We need some smarter
code in the platform for computing the actual thumbnail
dimensions of the current device). And add a test app
to show recent tasks + thumbnails.

Change-Id: Ic36759f6635522118a2cb7f156662229a610c492
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
ThumbnailRetriever.aidl
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
ctivity.java
ctivityGroup.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
nstrumentation.java
otificationManager.java
dmin/DeviceAdminReceiver.java
e17aeb31030cfeed339a39a107912ad5e9178390 08-Apr-2011 Dianne Hackborn <hackbod@google.com> Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
ctivityThread.java
pplicationThreadNative.java
9c1e23baf5bfbebd1aebbd6d9a18c225325567ce 24-Mar-2011 Chet Haase <chet@google.com> Add logging of graphics acceleration info to bugreports

Change-Id: I9fa4cda6ccf92df9d1c644ccdc0e7274a30106e0
ctivityThread.java
ed7e00729f78d11107f0e9a7f0559dfe4be6b560 24-Mar-2011 Brian Carlstrom <bdc@google.com> SamplingProfilerIntegration and SamplingProfiler improvements (3/3)

Summary:

frameworks/base
- fix profiling to collect data beyond the first snapshot
- avoid many small files, accumulate data over process lifetime

libcore:
- add support for VM specific sampling, trying to cut down overhead
- added support for converting snapshot files to text format
- fixed race in profiler when stopping

dalvik
- added VMStack.setThreadStackTrace interface for filling a stack
trace into an existing StackTraceElement[]

Details:

frameworks/base

Changed snapshots from text to binary hprof format (bumping version to 3)
Changed from one file per snapshot to one file per process lifetime.
Restart profiling after snapshot.

core/java/com/android/internal/os/SamplingProfilerIntegration.java

Add quick test in maybeSnapshot to avoid doing work when the
SamplingProfilerIntegration is disabled. Make maybeSnapshot
private. Remove unneeded memory allocation in handleLowMemory.

core/java/android/app/ActivityThread.java

libcore

Added ThreadSampler interface. This allows VM specific thread
sampling optimizations. The portable version continues to use
Thread.getStackTrace().

dalvik/src/main/java/dalvik/system/profiler/ThreadSampler.java
dalvik/src/main/java/dalvik/system/profiler/PortableThreadSampler.java
dalvik/src/main/java/dalvik/system/profiler/SamplingProfiler.java

Add VMStack.setThreadStackTrace and use in new DalvikThreadSampler
to avoid allocating a full stack trace when only a limited depth
is desired.

dalvik/src/main/java/dalvik/system/profiler/DalvikThreadSampler.java
dalvik/src/main/java/dalvik/system/VMStack.java

Refactored BinaryHprof.readMagic out of BinaryHprofReader so it
can be used by HprofBinaryToAscii converter to probing file
types. Added magic number constant to be shared between readMagic
and BinaryHprofWriter.

dalvik/src/main/java/dalvik/system/profiler/BinaryHprof.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofReader.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/HprofBinaryToAscii.java

Removed unneeded HprofWriter interface. Changed to simpler static
interface to write HprofData to binary and text formats.

dalvik/src/main/java/dalvik/system/profiler/HprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/AsciiHprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofWriter.java
dalvik/src/test/java/dalvik/system/profiler/SamplingProfilerTest.java

Added support for reading snapshot files created by
SamplingProfilerIntegration by stripping the text header to allow
easier conversion to the text format.

dalvik/src/main/java/dalvik/system/profiler/HprofBinaryToAscii.java

Fixed race between Sampler and
SamplingProfiler.stop. SamplingProfiler.stop previously simply
called the Sampler's TimerTask.cancel method, but this does not
wait for a currently running Sampler to finish. The TimerTask
documentation says the only reliable way to do this is to have the
run() cancel itself, so that is what is now done, with new code to
ensure that SamplingProfiler.stop does not return until the
Sampler has been terminated.

dalvik/src/main/java/dalvik/system/profiler/SamplingProfiler.java

dalvik

Refactored VMStack_getThreadStackTrace to create helper getTraceBuf
used to implement new VMStack_setThreadStackTrace. The new version
interface fills an existing StackTraceElement[], avoid allocating
unnecessary StackTraceElements.

vm/native/dalvik_system_VMStack.c

Refactor dvmGetStackTraceRaw to create dvmSetStackTraceRaw which
fills in an existing, potentially smaller, StackTraceElement[].

vm/Exception.c
vm/Exception.h

Change stack depths to be unsigned to avoid signed/unsigned comparison warnings.

vm/Ddm.c
vm/Exception.c
vm/Exception.h

Change-Id: I4b90255e4e1d33ea2b569321c4968b0f3369f251
ctivityThread.java
bc377841db05bd5197ffadb58ba52c54b2a85f16 22-Mar-2011 Chet Haase <chet@google.com> Add custom fragment anims to be run when popping backstack

The previous fragment implementation allowed for animations
during fragment transitions, but did not account for the
different behavior of fragments when popping the back stack.
In general, you probably don't want to run the same animation
for putting a fragment on the stack as for popping it off, which
is what happens now. For example, you might fade a fragment out when
putting it on the stack. But when popping ot off, fading it out
is probably not the behavior you want.

The new API (setCustomAnimations() overload with two additional
parameters) allows developers to specify animations to be run
in the popping operation. Otherwise, the animations are null and
the operation will not be animated.

Change-Id: I2e132b3890838358e496149f18a25037a59990aa
ackStackRecord.java
ragmentTransaction.java
1969b8799085322f9ef6e75b78c2c9a5d5944801 22-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4142917 - Add support for specifying a custom home icon in action bar

Add ActionBar methods for setting icon and logo.

Change-Id: I6151689138c734b7212c3469b8ba8f28f0fd5ec4
ctionBar.java
d630f105e8bc0021541aacb4dc6498a49048ecea 18-Mar-2011 Joe Onorato <joeo@google.com> AsyncTask now uses the poll executor for apps up through HC MR1 and the serialized one after that.

Change-Id: I47d135ace5f8e78e4fa44ac9d1bf7abeeb9d3ba0
ctivityThread.java
b8796212e3544262193960ade01db6cb2023c8f9 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of ceae9983 to honeycomb-plus-aosp

Change-Id: Ic677e58dcc182908ae1fde33047b3fda013a37c3
ceae99835ed909346f23cc604d20a488ac63c6ce 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am 9a01a2f2: Merge "Fixing self-assignment in cloning code."

* commit '9a01a2f2720632aa9cc230a4ebb0ed7aee762eec':
Fixing self-assignment in cloning code.
c73c4a36d2cf5eb3eeeca97caca25c3920dbcfa0 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am b37f7e59: Merge changes I81fc2f90,I5e7fd759

* commit 'b37f7e59ee38472bdd3ca5fe66cc847890c862e2':
Using proper key for removing from map.
Removing wrong equals method in comparator.
9a01a2f2720632aa9cc230a4ebb0ed7aee762eec 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Fixing self-assignment in cloning code."
b37f7e59ee38472bdd3ca5fe66cc847890c862e2 15-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Merge changes I81fc2f90,I5e7fd759

* changes:
Using proper key for removing from map.
Removing wrong equals method in comparator.
06ca9977d41f0d3739a06e26171a2b1b142fcef4 15-Mar-2011 lge-aosp <lge-aosp@lge.com> Fix startSearch condition on Dialog, because pressing search key causes ANR popup.
If search key is pressed on Dialog and there is no search item then do nothing.
How to reproduce the issue:
Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown

Change-Id: I9c24d83ca3b7c20976bb7daebeff7fd694ce3a2f
ialog.java
ccdac700df7089a87e6bf284e45a30a7a6a62602 14-Mar-2011 Mike Lockwood <lockwood@android.com> am 78b8e1be: Merge "DO NOT MERGE: backport recent USB accessory changes from honeycomb" into gingerbread

* commit '78b8e1be97c61f7e0b28b145fadd0c646fd1c46b':
DO NOT MERGE: backport recent USB accessory changes from honeycomb
2cc0377200b94b2f68f34e34554f2aa39e09cbce 12-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: backport recent USB accessory changes from honeycomb

Bug: 4082651

Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
cf407ad88bef3bc640489b300f23eaa8ea0b724e 11-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issues #4087362 and #4087356

4087362: Provide a safer way to call DialogFragment.dismiss()
4087356: PreferenceActivity.invalidateHeaders() can cause
IllegalStateException: Can not perform this action after onSaveInstanceState

These are very safe; the first is just a new public API that
allows you to use an existing feature in DialogFragment, and the
second just uses the version of commit that avoids the failure if
happening at a point where the operation would be lost if restored
from the last state (which is no big deal for preferences).

Change-Id: I53971c9fb1efdcd599694cdcd4585b81afc156b8
ialogFragment.java
9b95a4fcdce4b1a7a418e36de2ddc4d2c3acfc69 11-Mar-2011 Christopher Tate <ctate@google.com> Broaden the filter for wallpaper restore

Tweak the filter parameters so that we now use any restored wallpaper image
that is larger than our ideal size, and will reject any smaller images only
if they are *much* smaller than our ideal size. The specific threshold used
here will just barely reject Nexus One or Droid sized wallpapers for restore
onto a Xoom, but will pass anything larger.

Bug 4070129

Change-Id: I889bdb3ef5011343b2fccb2f81c6abc2f4603ee2
ackup/WallpaperBackupHelper.java
7fd981598ed0ec275d6da27c71e5e6c9db854e82 10-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4066157: ActivityManager.getMemoryClass() returning large memory class" into honeycomb-mr1
9e8e4ea0a839b561d329758cddbfd0f7ea23f593 09-Mar-2011 Mike Lockwood <lockwood@android.com> Merge changes Ib517e5e4,I93be7695,I49bf22a4 into honeycomb-mr1

* changes:
Close USB dialogs if their corresponding accessory or device has disconnected
USB: Add API and dialog for apps to request permissions for USB devices and accessories
UsbService: Automatically use system apps by default if it is the only choice
3a68b8338b431eb15d28e92f06452efbbda9493e 08-Mar-2011 Mike Lockwood <lockwood@android.com> USB: Add API and dialog for apps to request permissions for USB devices and accessories

New APIs:

UsbManager.hasPermission returns true if the caller has permission
for the given device or accessory

UsbManager.requestPermission poses a dialog to allow the user to give the caller
permission for the device or accessory.
Result is returned via a PendingIntent.
No dialog is displayed if the caller already has permission.

Also moved UsbResolverActivity to SystemUI package

BUG: 4069037

Change-Id: I93be769501a8776b49ac26e468af19f8fa2114c9
ontextImpl.java
7ad33c8f9e7ecd356979dbad23c6c171b4f3339d 09-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4066157: ActivityManager.getMemoryClass() returning large memory class

Change-Id: I1970252e07f703087ac96378410ae2b6e6e4c2d3
ctivityManager.java
50c294f21b3348010c3f91c5a998d54e1e45d2e4 08-Mar-2011 Andy Stadler <stadler@google.com> Clarify rules about encryption of emulated storage.

Bug: 3351426
Change-Id: I3a8fcd369862f3eab1781699108e29fe7ab474a0
dmin/DevicePolicyManager.java
372813031008dd335c9d7abbc1c8d284cbd1b1dd 07-Mar-2011 Vasu Nori <vnori@google.com> bug:3513950 Rename "completedDownload" to "addCompletedDownload"

Change-Id: I28b33a0268309d74fd2512b5bdb599f38ff3a96d
ownloadManager.java
48f91e35c5188f3dc78c12b8e8638a248221691b 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix Fragment.onInflate() to actually work correctly." into honeycomb-mr1
e3a7f628c6d9fef42be24999b3137ebe5c6f3525 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix Fragment.onInflate() to actually work correctly.

Like, um, it needs to be given the Activity since this is called before
the activity is attached.

And it was called after the entire fragment and its *view* was created
when being restored from saved state.

And the documentation was whacked.

Also fix the IME selector to dismiss when you tap outside of it.

Change-Id: Icbcafe7558965a570bdef9cda3441b1f0f7a317c
ctivity.java
ragment.java
ragmentManager.java
9aa597e68b3fb30b079d627e1fcdea766e98ad26 04-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Propagating core settings to the system process.

bug:3511123

Now the core settins are stored in the ActivityThread
instad in the AppBindData of the currently bound app.
Also the settings are pushed to the system process on
init.

Change-Id: I100bb7dc80d0d4548def22c328427bbef1694eb7
ctivityThread.java
11e515cbefb2d0f38e26cb41c8cd3790f881220c 03-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> NPE in in AppGlobals#getIntCoreSetting

bug:3508658

It ActivityThread#currentActivityThread() is called when
the ActivityThread is not attached it returns null and
AppGlobals#getIntCoreSetting was not checking for that.

Change-Id: I5e00d1947a161ad1e52ecfaa12cbbac3b534a0db
ppGlobals.java
268c7111f65c1f27598464c5f29ef4621bbf0407 03-Mar-2011 Bjorn Bringert <bringert@android.com> Merge "Pass AppData to the app from SearchDialog queries."
1dda71ae367553171d7aaa5b03399a4eaf6609b2 03-Mar-2011 Bjorn Bringert <bringert@android.com> Merge "Fixed NPE in ActivityManager's launch count service."
63e1cea248cde3db3e89f49e5fcc3458aa87951e 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3485923: Gmail crash"
648251710162cdaf7371012a1cbb79b9bc5bc0e4 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3485923: Gmail crash

Allow application to try to recover if a surface OOM error
happens on the client side.

Change-Id: I0308bd99647a35e4bcac448340b7fc6330a828f6
ctivityManagerNative.java
ActivityManager.java
940ef38c7c46565a8f8fdd6bb8e0183646d0abdc 03-Mar-2011 Amith Yamasani <yamasani@google.com> Pass AppData to the app from SearchDialog queries.

Bug: 3494468

During migration of SearchDialog to use SearchView, the appdata was not
passed along. This fixes the loss.

Change-Id: Ia754086d2bb95294e1d29650a72e4fdddec9c899
earchDialog.java
54d068ec6af0ee6d261a135400efe6816c6f5ffe 02-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Add system wide management of core settings

bug:3505060

Since we want to have some settings that are used very frequently
by many applications (long-press timeout is one example) these should
be managed efficiently to reduce lookups from different processes
because in the case of a cache miss a disk I/O is performed. Now
the system manages such core settings and propagates them to the
application processes.

Change-Id: Ie793211baf8770f2181ac8ba9d7c2609dfaa32a7
ctivityThread.java
ppGlobals.java
pplicationThreadNative.java
ApplicationThread.java
7866be2b76e421ca28e5dcbd3e7d362baf279dd9 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbread

* commit '40bbf9295d5245d3917629ce15f7b37670aef1ac':
DO NOT MERGE: Backport USB accessory support to gingerbread
bfcda39cadd897cc89f77b40909a84fa8f56aace 02-Mar-2011 Peter Visontay <pvisontay@google.com> Fixed NPE in ActivityManager's launch count service.

Bug: 3497127
Change-Id: I38661fb0654e807f05cc57e43cff912de8d39096
ctivityManager.java
40bbf9295d5245d3917629ce15f7b37670aef1ac 01-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport USB accessory support to gingerbread

Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
e0edf4c1a230a82cee47f2b30e2ee2f749f2dd56 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3405957 com.android.settings: java.lang.NullPointerException..."
bfe2e3f9da507a19f5602f0b267be92ddccdd250 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3405957 com.android.settings: java.lang.NullPointerException...

...at android.app.DialogFragment.dismissInternal(DialogFragment.java:264)

Don't allow a DialogFragment to be dismissed twice.

Change-Id: Id2e9e3be1046b0d7862492c57c36001d8fd44a69
ialogFragment.java
94b072b6f4dda9b6847c3eeed14f07a4f6479453 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3411615: Crash when getting dialog layout inflator."
606ecf3e9f27c8f69a398ea4d83d842df50d094f 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3495749: Crash on choosing to open the downloaded images"
25193d330e7daaed1d4678609326c4f84bf3d584 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3411615: Crash when getting dialog layout inflator.

Well, I'm not sure it is right for onCreateDialog() to return a null
dialog, but if it does, let's not crash here.

Change-Id: I5ff49b9b3c326d9005f70a01435c01bfc7307343
ialogFragment.java
ce418e661ab52a08a2a2c3b2f10a4dd9adf33305 01-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3495749: Crash on choosing to open the downloaded images

This is due to the window doing a relayout after its activity is
stopped, at which point it may need to interact with the adapter
to load data.

The fix here is to tell ViewRoot about an activity being stopped
and, if in this state, hold off on doing any new measurements and
layouts of the hierarchy until it is no longer stopped.

In this case the relayout was happening due to the cursor
being deactivated, with causes the adapter to invalidate
its data. Because this is now in a dialog window, this
allows the window to actually be resized smaller (unlike when
in a full screen activity), and boom.

Change-Id: I26442b4679819b4a4e6bc56289afd3445526750b
ctivity.java
04e1a9620f94319c455c9422776adb4a8963f920 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Move USB framework support from android.hardware to android.hardware.usb package"
763cbb134f40fa1e555c0a945a2a651f69193505 01-Mar-2011 Adam Powell <adamp@google.com> Fix a bug where the lazy-initialized ActionBar object was being too lazy.

Change-Id: I80dc06deffd1df8cc8ae96fd878d66a101a17086
ctivity.java
c4308f01c965571dc2354107c3574df113e397ee 01-Mar-2011 Mike Lockwood <lockwood@android.com> Move USB framework support from android.hardware to android.hardware.usb package

Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d
Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
ce8ad5a912ae49905fc1353b290ab222e0fe5f7e 01-Mar-2011 Christopher Tate <ctate@google.com> Merge "Make sure to properly default the screen size during wallpaper restore"
7f765cf588e37a70fa2a1d251aaa8e7b847801b6 01-Mar-2011 Christopher Tate <ctate@google.com> Make sure to properly default the screen size during wallpaper restore

The wallpaper service claims a desired width/height of (-1,-1) during
initial setup, so look to the default display's metrics if necessary.

Change-Id: I341f12fb7b0b9d6b7761c277f23fc68fa5355256
ackup/WallpaperBackupHelper.java
87ffa20a2fd4dff11262b87607a9aca992bdd05d 28-Feb-2011 Ben Komalo <benkomalo@google.com> Remove a stale line in a JavaDoc.

Change-Id: I2d98bf5aaa2d47adef2b31903761db3d9f7e1ac1
ragmentManager.java
17ee56c994ada7eab19ffded8a5ce85bfc3f4e69 28-Feb-2011 Vasu Nori <vnori@google.com> fix javadoc on downloadmanager.remove()

Change-Id: Id48389acd12343b4dcc18ed3f77ab068b2bc5f85
ownloadManager.java
47b500385196d11dcc68cf8c541f427d8459dad7 28-Feb-2011 Vasu Nori <vnori@google.com> Merge "bug:3474580 fix javadoc"
6bfdf743144f39f5734eb72c37454fc1fd331072 28-Feb-2011 Vasu Nori <vnori@google.com> bug:3474580 fix javadoc

of all the solutions, fixing the javadoc seems like the most useful thing to do
on this otherwise confusing API.

Change-Id: I1fb438c1dd21c5a5f6805db277e6a3f119cdd6ce
ownloadManager.java
505312482782a600e997c91712f03f83c7a70428 26-Feb-2011 Mike Lockwood <lockwood@android.com> KeyguardManager: Fix copy & paste error in isKeyguardLocked()

Change-Id: If5145e8483d3736d73698b3deb189f2253015543
Signed-off-by: Mike Lockwood <lockwood@android.com>
eyguardManager.java
33bbfd2232ea9eaae9a9d87a05a95a430f09bd83 25-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for mouse hover and scroll wheel.

Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent. Pointer events dispatched
this way are delivered to the view under the pointer. Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView. Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically. (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
ctivity.java
ialog.java
af5b406ad62af6f9d9e9f9f278683fb42015a4a2 22-Feb-2011 Leon Scroggins <scroggo@google.com> New flag to open intent in a new tab.

Bug:3405773

Change-Id: I363bfbfee90e98cd1e6a57452e599a79637a8555
earchManager.java
70564141ce5326e696c112353177f01207fe3051 23-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Minor cleanups to Notification docs."
5e98dbc7700ef39acca58aa4f4e63e5fc24828b3 23-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Documentation: Notification.icon is mandatory."
ceb1997174769e1c2c9b8a368a9b63d816a1555d 23-Feb-2011 Bjorn Bringert <bringert@android.com> Merge "ActivityManager exposes launch count API."
3c85a4e6396dabf7f0061ff2c6e9f9b35793eadd 22-Feb-2011 Mike Lockwood <lockwood@android.com> Merge "KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()"
2569137929e139e59be1e9c571f5db9d00eb750d 22-Feb-2011 Romain Guy <romainguy@google.com> Merge "Fix incorrect id name in ListActivity's documentation."
ffa337483a86cc404d8236c440c91f0be75ca806 22-Feb-2011 Romain Guy <romainguy@google.com> Fix incorrect id name in ListActivity's documentation.

Change-Id: I83ce45d313f31b15b84abf64294eff19accc30b6
istActivity.java
8d224caf989b212f8e633cc1a8b0db453300a742 18-Feb-2011 Peter Visontay <pvisontay@google.com> ActivityManager exposes launch count API.

Bug: 3431684
Change-Id: I49d4fb0b1620aafaf251d77700bc017859328968
ctivityManager.java
a8b9183a7cb4dca8d8e6507abc765c581bf67dcb 22-Feb-2011 Jozef BABJAK <jozef.babjak@gmail.com> Fixing self-assignment in cloning code.

Change-Id: I6c918c0c7345678cbb171905eccfca50e59ae41a
otification.java
6fe725ee5d943faaaa7ae9899b8613c90159d2dd 21-Feb-2011 Jozef BABJAK <jozef.babjak@gmail.com> Using proper key for removing from map.

Window object was improperly used as a key for removing record from
map. This was silenly ignored, because remove() method accepts Object.
However, the ID should be used there which is type of String, i.e.
the same ID which was used for lookup.

Change-Id: I81fc2f90926a34414bf9042ddf4a2edff4c1fda1
ocalActivityManager.java
520d8bc1d840966b5519195aaa514597a662c053 18-Feb-2011 Mike Lockwood <lockwood@android.com> KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()

BUG: 3402847

Change-Id: I725838c9d96617dd4497f9c80417cd623eceb846
Signed-off-by: Mike Lockwood <lockwood@android.com>
eyguardManager.java
0a56e4ecda2e4566450b30d0046e3119de748203 17-Feb-2011 Christian Sonntag <cxs@google.com> Merge "Turn on wallpaper restore debug logs"
00724cacc8292900c3be8657ea9b3b6284cf4877 17-Feb-2011 Christopher Tate <ctate@google.com> Turn on wallpaper restore debug logs

For investigation of bug 3462173 et alia

Change-Id: Id5f82a97c72d2a02f9a878029782fa698c5b124f
ackup/WallpaperBackupHelper.java
51510388ee26ac5f3fc662e67f9d8a17f806713a 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Rework thumbnail API to not suffer from IPC failures."
d94df45b3d1ab4004ef517acfc56a9310330f8d8 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Rework thumbnail API to not suffer from IPC failures.

Thumbnails are now requested separately, so we don't exceed the
IPC buffer size limit.

Also implement issue #3349553: Please provide a hook to intercept
fragment-breadcrumb clicks

And maybe fix issue #3439199: Music Notification does not turn on
when app switching out of Music app

Change-Id: Ie939e78cc8ded07b18112760e053185947549f61
ctivityManager.java
ctivityManagerNative.java
ragmentBreadCrumbs.java
ActivityManager.java
91fd9a97727b6aa0b669b92bb0f7ef1db884dd26 17-Feb-2011 Jim Miller <jaggies@google.com> Merge "Fix 3197205: Minor edits to device policy admin strings and documentation"
6b85768058b065cc682757a366abc828c9ca727a 17-Feb-2011 Jim Miller <jaggies@google.com> Fix 3197205: Minor edits to device policy admin strings and documentation

Change-Id: I3788772c375b916752cd8a98ff5d3751448e4334
dmin/DeviceAdminReceiver.java
dmin/DevicePolicyManager.java
b84133740a358ff41f7e50172403f233e1603e68 16-Feb-2011 Andy Stadler <stadler@google.com> am 04ddff69: am b1835085: Merge "@hide DPM global proxy settings" into honeycomb

* commit '04ddff6905a72d0d39d791eaba33546fb66b15a6':
@hide DPM global proxy settings
d26727273d16745ceddc2203121d29c3a9e7733c 16-Feb-2011 Andy Stadler <stadler@google.com> @hide DPM global proxy settings

They don't work as advertised, so remove from SDK.

Bug: 3460938

Change-Id: I87f80ebf38b228a4085630f1c2526c1d86b93dd7
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
55cdc0c9048fe63c5abe4ec8fc8a3479aba316d1 16-Feb-2011 Scott Main <smain@google.com> am 0ab1b326: am 13033ea5: docs: fix misc broken links

* commit '0ab1b326c72afb2bd7798462fcdd8e5d3b440fd2':
docs: fix misc broken links
13033ea52714d48d754c6bc8fccb18514c645a47 15-Feb-2011 Scott Main <smain@google.com> docs: fix misc broken links

Change-Id: Id7d0ee36398aca452ceb2c3d15982397f58a06c6
ackage.html
5c40f3fcc966ecde3347cd7ddbe965440318c35a 15-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix typo.

Change-Id: I32bbe182d51d5fe0289c8939fbadb57336ddd98a
ctivity.java
f9e8523e62fa391e85d393c23a3345887565d426 10-Feb-2011 Vasu Nori <vnori@google.com> bug:3425749 send notification for completed download

Change-Id: Ib46df5eaa9316fe0fc843fee1e4597e22768f4a8
ownloadManager.java
a1ea2c8457e860ba0637d95dfc2076e77d8f2fe3 09-Feb-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called before first layout"
50efbed668a9410cdec51f7c8604fa44ed267fed 09-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called
before first layout

Enable/disable the action bar show/hide animation as part of the
activity/dialog lifecycle. This allows apps to set action bar
visibility state as the activity first becomes visible or returns to
visibility without the associated animation.

Change-Id: I85ff9268d2cb2c8fcd3364dd275597fe90529224
ctivity.java
ialog.java
121370d25c7c7113fb7913ab90f45c667b26af57 09-Feb-2011 Scott Main <smain@google.com> am 3c565377: am b508d6e2: Merge "docs: fix links to revised fundamentals documents" into honeycomb

* commit '3c5653773d6b48f27aa52d746a7a6f8728d5ba36':
docs: fix links to revised fundamentals documents
7aee61f5a96e94e158bf5ad3d8e192c4d4f7eff6 08-Feb-2011 Scott Main <smain@google.com> docs: fix links to revised fundamentals documents

Change-Id: Ie2a660cce1d00f924c9fde5c6a00776307e5e1c7
ctivity.java
otification.java
ervice.java
e97a3bce3c91d76b623f57d309f7bf74947494da 07-Feb-2011 Daniel Sandler <dsandler@google.com> Minor cleanups to Notification docs.

Bug: 3240190
Change-Id: I25f954bf8346a0da281fa47c7e91abaff4eb4259
otificationManager.java
d952daec06018fe7064b8cafd31dfc71f9eee383 07-Feb-2011 Daniel Sandler <dsandler@google.com> Documentation: Notification.icon is mandatory.

Bug: 3325472
Change-Id: Ie685577fbb2f07c3a63dcf86f27172ff231de3b3
otification.java
32cd1d5053fdca49463adc83adb7b7dad13904e0 07-Feb-2011 Daniel Sandler <dsandler@google.com> resolved conflicts for merge of 31796297 to master

Change-Id: Ice632b3378f8f67c186245fdb63b022ade864ba1
4ad2547fe08bab430d7d9f9cc4b789410856c9c3 04-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Ongoing notification for GPS use." into honeycomb
e40451a89dc91dfd636af7cb32a23b4a4cc93fdc 03-Feb-2011 Daniel Sandler <dsandler@google.com> Ongoing notification for GPS use.

This change improves upon the notification priority API
introduced in change I9e738cc4, allowing privileged clients
to set the priority of a notification when posting it
directly to INotificationManager. StatusBarTest is updated
to test this new feature.

The new LocationController in SystemUI uses this facility to
post a high-priority ongoing notification whenever GPS is in
use (replacing the functionality of the legacy GPS status
bar icon).

Also happens to fix http://b/3325472 (adding a log message
when notifications are dropped because of a missing icon).

Bug: 3412807

Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
NotificationManager.aidl
1b67231483bd4e40aedab611846683b0c816ed27 04-Feb-2011 Vasu Nori <vnori@google.com> am 9ec496b4: am e1cbd0a8: Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"

* commit '9ec496b484305defa6cbb691b85836ace8b73a02':
Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"
e1cbd0a85f09a54f8bf28545ac67455b7dcd2532 03-Feb-2011 Vasu Nori <vnori@google.com> Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"

This reverts commit 6bc710f769618e87b98d51cd02241e6b1a2fb653, reversing
changes made to 7ba35f5ab3c838c7f1b3ab957be685ac1f506b2a.
ownloadManager.java
b73fb5401e44014d6c6906b22a7cc6563cb54b92 03-Feb-2011 Vasu Nori <vnori@google.com> am 99e8e047: am 6bc710f7: Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb

* commit '99e8e0470249ce145003cc1eabc5ae391af34a06':
bug:3414192 new API to designate a download to be OTA update
72725ebcad848a72d3e3ac4de250553017910d9f 02-Feb-2011 Vasu Nori <vnori@google.com> bug:3414192 new API to designate a download to be OTA update

Change-Id: Iae2f6185e130324ad956f594e78b1d8b2176c808
ownloadManager.java
e776768b269a23b33974e72c691321cc2f2d5adf 02-Feb-2011 Brian Muramatsu <btmura@google.com> am 0872e36c: am 1d696fa4: Merge "Fix Incorrect Times in TimePickerDialog" into honeycomb

* commit '0872e36ccb0926fe1fb04a0bc6593f9c167dacbc':
Fix Incorrect Times in TimePickerDialog
87879e8ef99e3e57b6c317e8579ebc39174327f7 02-Feb-2011 Brian Muramatsu <btmura@google.com> Fix Incorrect Times in TimePickerDialog

Bug 3414311

TimePicker#setCurrentHour subtracts 12 from the given hour if
is24HourView returns false. TimePickerDialog calls setCurrentHour before
setIs24HourView, so the 12 will always be substracted from the time.
Reorder the statements so that TimePickerDialog sets is24HourView,
before setting the hour and time.

Change-Id: Ib997397b04dbdd767e67806aea7614426019e938
imePickerDialog.java
cc322207ccc1234c26cd21733d7f4fadd49a36cf 31-Jan-2011 Dianne Hackborn <hackbod@google.com> am 97510f6a: am 260c3c77: Fix issue #3381489: IllegalStateException: attempt to re-open...

* commit '97510f6abda493119cbf7db84064291a7edacfc0':
Fix issue #3381489: IllegalStateException: attempt to re-open...
260c3c77d9b340164e055f87002c64d78da6e836 31-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3381489: IllegalStateException: attempt to re-open...

...an already-closed object: android.database.sqlite.SQLiteQuery

It turns out there is a state we are missing -- the loader is
still needed, but in the inactive list. In this case the loader
needs to continue holding on to its current data, and not deliver
any new data (which would result in it releasing its old data).

This introduces the new state to Loader, and uses it in
AsyncTaskLoader so all subclasses of that should get the new
correct behavior.

A further improvement would be to unregister CursorLoader's
content listener when going in to this state, but that can
wait for later.

Change-Id: I6d30173b94f8e30b5be31d018accd328cc3388ec
oaderManager.java
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
5be5f51c2e011cea2e9035318bcec18510034fe1 29-Jan-2011 Joe Onorato <joeo@google.com> am 7f51171a: am a0f2cdb5: Merge "999" into honeycomb

* commit '7f51171ab3afebe9e9695c0991c579bc959a180d':
999
7f51171ab3afebe9e9695c0991c579bc959a180d 29-Jan-2011 Joe Onorato <joeo@google.com> am a0f2cdb5: Merge "999" into honeycomb

* commit 'a0f2cdb50720b0a1960e5342b376867b2c9ad1df':
999
c6925ca684aaed981cc98cae50cf796231a56c0e 29-Jan-2011 Joe Onorato <joeo@google.com> 999

Bug: 3403177
Change-Id: Ib53098f364bb15249f27f89127e0d2a4daf81d6a
otification.java
bafa3a31f58a52d49883db43167e28c16af1fc61 28-Jan-2011 Joe Onorato <joeo@google.com> am d6874a10: am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* commit 'd6874a105ee584b1dc60aae2f2af7c78ee875114':
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
d6874a105ee584b1dc60aae2f2af7c78ee875114 28-Jan-2011 Joe Onorato <joeo@google.com> am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* commit 'cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b':
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b 28-Jan-2011 Joe Onorato <joeo@google.com> Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* changes:
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
f2a8b3c450f0570c1ad0ee6e0fae3cfb85bfb4de 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8691b724: am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '8691b7243d40d5ef0ab94b8d5f204635d36bf1c4':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
8691b7243d40d5ef0ab94b8d5f204635d36bf1c4 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '10e4148b62c9bfed945c1bcea9dd5eea2a17b0d0':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
420829ef78c5d86e470fc445279c7c10be6b5dbe 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3291173: Problem report for NewsRoom - RSS News Reader

The framework had started using the LayoutInflator's factory
for itself, which breaks apps that want to use it. Add a hack for
the framework to insert its own private factory.

Also fix a deadlock in the system process.

Change-Id: Iaf80186a5d7e4029faf89e968e184abdaabe514a
ctivity.java
e579b347529a642dc837c2fc37fb483fb7a17fc7 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 6a11185b: am c8c3021a: Merge "Fix issue #3398767: Need translucent holo theme" into honeycomb

* commit '6a11185b9293151cb3c12c296cf989ea0e7cb898':
Fix issue #3398767: Need translucent holo theme
6a11185b9293151cb3c12c296cf989ea0e7cb898 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am c8c3021a: Merge "Fix issue #3398767: Need translucent holo theme" into honeycomb

* commit 'c8c3021ac3b5ca2315148d5dae143b53b7d68a60':
Fix issue #3398767: Need translucent holo theme
6478adc6b4c35f8c56176582bcde029998e7436f 28-Jan-2011 Joe Onorato <joeo@google.com> Allow independent control of the back and the other navigation buttons.

Bug: 3363046
Change-Id: Icc312fc9ffbf2f584dc541489c9769b07ed50315
tatusBarManager.java
7bb8eeb90cf55f409a282c1f36ca08aa48c10543 28-Jan-2011 Joe Onorato <joeo@google.com> Allow the status bar disable flags to be used as View's system ui visibility fields.

Bug: 3363046
Change-Id: I50ba06ed9a4d2f5d0e0c807437aea9900f44fee9
tatusBarManager.java
e79b55482eb3f26d6d5b56dce40682dd68826f8c 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3398767: Need translucent holo theme

Change-Id: I2ce87798ff58315cb96968ab06e5a52da9f35ef8
lertDialog.java
ialog.java
fb69e0c0ffbb403da7f8e05454605d6caec503d0 27-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 0716ea14 to honeycomb-merge

Change-Id: I8f5e40c83a470e81910cd07f11fe683bb6f96421
7ef536ad2e817e4cf81127f2dbf1f13b386beff4 27-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 52d3203e to honeycomb-merge

Change-Id: Icb56943bc4cd6a93e4e2ff13fd2be6e5b7ca161b
d01d1dd7d5e52caffbe30e5ccd4e7e02d93d727b 27-Jan-2011 Kenny Root <kroot@google.com> am 1f8e2f99: am 5d506fa7: Merge "Add API for preferred Launcher icon size and density" into honeycomb

* commit '1f8e2f99585040b3904f1b6863000d9d208eda02':
Add API for preferred Launcher icon size and density
1f8e2f99585040b3904f1b6863000d9d208eda02 27-Jan-2011 Kenny Root <kroot@google.com> am 5d506fa7: Merge "Add API for preferred Launcher icon size and density" into honeycomb

* commit '5d506fa7274e8ba84e348e11c22729b58802f796':
Add API for preferred Launcher icon size and density
5ef44b7566566db08b62245cbb9002b548071603 27-Jan-2011 Kenny Root <kroot@google.com> Add API for preferred Launcher icon size and density

Applications that create an icon for launcher to use couldn't determine
which size or density the icon should be created.

Bug: 3224340
Change-Id: Iee96113a4092696a9bd18eecbd2593b38f952a16
ctivityManager.java
c42eb2cce70aa4e985615ef9d4cddfff435f7b7f 27-Jan-2011 Scott Main <smain@google.com> am d2b87091: am 0f2e2b8b: Merge "Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it\'s not a good location and the info is avilable in the dev guide, but also added some of the

* commit 'd2b87091cc30c575496eb78ebea88297da775359':
Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it's not a good location and the info is avilable in the dev guide, but also added some of the info to the Resources class description.
d2b87091cc30c575496eb78ebea88297da775359 27-Jan-2011 Scott Main <smain@google.com> am 0f2e2b8b: Merge "Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it\'s not a good location and the info is avilable in the dev guide, but also added some of the info to the R

* commit '0f2e2b8b82c7b589bcc603ce57f8ff3d1c947784':
Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it's not a good location and the info is avilable in the dev guide, but also added some of the info to the Resources class description.
f4f05b8f24183b9e0d6959fe8b71fb88543edd9b 07-Jan-2011 Scott Main <smain@google.com> Update package descriptions with editorial revisions.
Notably, this removes exessive info about resources
from the content package, because it's not a good location
and the info is avilable in the dev guide, but also
added some of the info to the Resources class description.

Change-Id: Ie78af26c9cec66314deb98e53078f48e16c08e70
dmin/package.html
ackup/package.html
ackage.html
17d7cbc14c128c0e6d6a00d8d4e281c5e8075aa3 26-Jan-2011 Dianne Hackborn <hackbod@google.com> am a58552e0: am f95bd0fe: Merge "Argh forget to include my final part of the change." into honeycomb

* commit 'a58552e03de2f24aef735e94fcfab12a0078a3b3':
Argh forget to include my final part of the change.
a58552e03de2f24aef735e94fcfab12a0078a3b3 26-Jan-2011 Dianne Hackborn <hackbod@google.com> am f95bd0fe: Merge "Argh forget to include my final part of the change." into honeycomb

* commit 'f95bd0feb57f1503be7c08083c0a4d22286256e8':
Argh forget to include my final part of the change.
f812fee071b9992872009b2dcd7969c7ce882a90 25-Jan-2011 Dianne Hackborn <hackbod@google.com> Argh forget to include my final part of the change.

Change-Id: I1e2711e1ecde0350047f1edef9a59947ff5749eb
ialog.java
ialogFragment.java
1a728e30ef61c649408b574ccca2be74f4d58571 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am a2909773: am 4426f643: Merge "Fix issue #3385839: Fragment.onCreateView is passing in activity..." into honeycomb

* commit 'a29097731254975fdeba8702f3167ef2d14bcdc7':
Fix issue #3385839: Fragment.onCreateView is passing in activity...
a29097731254975fdeba8702f3167ef2d14bcdc7 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 4426f643: Merge "Fix issue #3385839: Fragment.onCreateView is passing in activity..." into honeycomb

* commit '4426f643ec3833e830bc2f9b8af5088343de1315':
Fix issue #3385839: Fragment.onCreateView is passing in activity...
4d724546e41c8c9c0c847766d4f1c37ecfb87522 25-Jan-2011 Vasu Nori <vnori@google.com> Merge "add extra prams to intent to start Download App in sort-by-size mode"
e5f92249f18b7ece84af534a7931d43d76dac919 25-Jan-2011 Vasu Nori <vnori@google.com> add extra prams to intent to start Download App in sort-by-size mode

Change-Id: Icedf50477681bc79582517500748b9a916121903
ownloadManager.java
7187ccb93ee8adbb745fcbb901cfacfeed397a23 25-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3385839: Fragment.onCreateView is passing in activity...

...context for a DialogFragment

Change-Id: I434ebca64d2738da4c27321db8dbbded2cbe167d
ialogFragment.java
ragment.java
ragmentManager.java
4ea2d2994ac5c7aa346356dba57819dd9285a998 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am dc3bb35b: am 4989aa7d: Merge "Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439" into honeycomb

* commit 'dc3bb35b672841115a4fd5d22d98dc75ed4ade83':
Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439
dc3bb35b672841115a4fd5d22d98dc75ed4ade83 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 4989aa7d: Merge "Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439" into honeycomb

* commit '4989aa7da319e4fcf95a92c4a2d6f2cf1ed6d563':
Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439
1563966ca03361e2d90ecc66621dfb7a93c8ce8b 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 98d169ea: am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

* commit '98d169eacd65e6278bb8eab354f0278065771e9f':
Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
98d169eacd65e6278bb8eab354f0278065771e9f 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

* commit '5d9d03a0234faa3cffd11502f973057045cafe82':
Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
c2d9c8e20bea92bd8c1bd0954b0a393c1bb8fec0 25-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439

Um. My fix for calling onReceive() even after a receiver is
unregistered actually made it so onReceive() is never called for
the result receiver of a broadcast.

Change-Id: I30efe05d8fdec6fee4222b7d797f2b303073dbcc
oadedApk.java
5d9d03a0234faa3cffd11502f973057045cafe82 24-Jan-2011 Dianne Hackborn <hackbod@google.com> Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

...Invalid index 0, size is 0 at
android.app.ActivityThread.performPauseActivity(ActivityThread.java:2326)

It looks like if an arrow key is dispatched between the time the
list view is told its data set has changed and it does the resulting
layout pass, we could try to move the position to a now invalid
index. This may prevent that from happening.

Also put in a better error message if saving state of a fragment
whose target is no longer in the fragment manager.

And fix a bug in PackageManager where we could return a null from
queryIntentActivities().

And add a new API to find out whether a fragment is being removed,
to help fix issue #3306021: NPE at
android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

Next, for new HC apps we can delay committing data to
storage until the activity is stopped.

Finally, use the new multi-threaded AyncTask executor in a few
places, so we don't have worked blocked by long-running tasks from
the application.

Change-Id: I27b2aafedf2e1bf3a2316309889613fa539760f3
ctivityThread.java
ragment.java
ragmentManager.java
ee18bc7e3ccae1d0dfc88b1ccf784ea556894515 24-Jan-2011 Dianne Hackborn <hackbod@google.com> am 802fb15d: am 9476f045: Merge "Fix issue #3215261: NPE in WiFi Settings" into honeycomb

* commit '802fb15d2a9d6e094627c561100aabbac3689d94':
Fix issue #3215261: NPE in WiFi Settings
802fb15d2a9d6e094627c561100aabbac3689d94 24-Jan-2011 Dianne Hackborn <hackbod@google.com> am 9476f045: Merge "Fix issue #3215261: NPE in WiFi Settings" into honeycomb

* commit '9476f04590ebea2d74ebb60775f2648323239512':
Fix issue #3215261: NPE in WiFi Settings
89ba6750e5310c4da51786bd7eb559a43cab3982 24-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3215261: NPE in WiFi Settings

And also fix #3343369: EGL_BAD_DISPLAY and/or broadcast intent
TIME_SET before boot completion

And a few more tweaks to animations to keep the wallpaper displayed
when needed.

And make more use of the drag and drop "rotation disabled" thing to
also use it while animating the screen rotation, since if we try to
start a new rotation while doing the animation we end up with a mess.

Change-Id: I373af305a6e23a92835abed96229a83e173f67ce
oadedApk.java
c0e5075739574e67c825e4841d5cccee55cbfd29 21-Jan-2011 Vasu Nori <vnori@google.com> bug:3048327 (master) ability to add completed download to dnload mgr

Change-Id: I073436c97d5d7cb8ea6a823488a451017dac3ff2
ownloadManager.java
347750862c5d014dd79ccca3f2ce26910c55e5f2 23-Jan-2011 Mike Lockwood <lockwood@android.com> Merge "New APIs for USB host support:"
e7d511e148bc901ef41ac44d7b3593e5d803f72f 30-Dec-2010 Mike Lockwood <lockwood@android.com> New APIs for USB host support:

UsbManager:
- is now a service retrievable via Context.getSystemService(Context.USB_SERVICE).
- provides support for returning a list all connected USB devices
- broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices
are added and removed from the USB host bus

UsbDevice:
- represents an attached USB device.

UsbInterface:
- represents an interface on a USB device
- devices may have multiple interfaces if they provide multiple
sets of functionality (for example, android phones typically have interfaces
for both USB mass storage and adb)

UsbEndpoint:
- represents an endpoint on a USB interface
- endpoints are used for sending or receiving data
(only in one or the other direction)

UsbRequest:
- encapsulates a send or receive request to be sent over an endpoint

Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a
Signed-off-by: Mike Lockwood <lockwood@android.com>
ontextImpl.java
9039fa261da46efb186c8df884c8bb74ae28d7cd 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am db4e32fe: am f36af164: Merge "Whoops, actually exclude pre-HC apps." into honeycomb

* commit 'db4e32fe68a50ea8ba75b434a88c1adeffb6018c':
Whoops, actually exclude pre-HC apps.
db4e32fe68a50ea8ba75b434a88c1adeffb6018c 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am f36af164: Merge "Whoops, actually exclude pre-HC apps." into honeycomb

* commit 'f36af16479e252bec168ed181885ec21d9df46f5':
Whoops, actually exclude pre-HC apps.
f36af16479e252bec168ed181885ec21d9df46f5 22-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Whoops, actually exclude pre-HC apps." into honeycomb
842e04b221048668e468cc06f09c9d18a39cbd3f 22-Jan-2011 Dianne Hackborn <hackbod@google.com> Whoops, actually exclude pre-HC apps.

Change-Id: I7266b3a622ae65f350bdb2a0eb6557b481a14365
ctivityThread.java
e3e6a157dff68d17d274fc2196b0675bd3d0258f 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8a0f1756: am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb

* commit '8a0f17560080077b972c97bf9d5b68961f148fe3':
Fix issue #3377999: Activities need to be stopped when sleeping
8a0f17560080077b972c97bf9d5b68961f148fe3 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb

* commit '5503d803ecee63d417128d3849717b59b971fc08':
Fix issue #3377999: Activities need to be stopped when sleeping
5503d803ecee63d417128d3849717b59b971fc08 22-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb
d9e1b566899dedd6b45f10989163304a45a93fe8 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 3da75ab9: am 3a56ce3a: Merge "Fix some error messages, turn off logging." into honeycomb

* commit '3da75ab90c4e6309ec6d6801bf0208cff6249b2d':
Fix some error messages, turn off logging.
3da75ab90c4e6309ec6d6801bf0208cff6249b2d 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 3a56ce3a: Merge "Fix some error messages, turn off logging." into honeycomb

* commit '3a56ce3ab30a72c359bf64cf75bdce6ab03f2b7a':
Fix some error messages, turn off logging.
ec541e1787b39605200584042fa1e144923eeb4f 22-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix some error messages, turn off logging.

Change-Id: Ifcd2c0f0ad137485896144d2248361aeb0a05600
ragmentManager.java
oaderManager.java
4eba96bb314d8ff773ea33d6cb3179f25751ecce 21-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3377999: Activities need to be stopped when sleeping

This is a band-aid over the existing kludgy stopping mechanism
where the semantics of stop are different in the activity manager
than in the clients.

This change is intended to be as unobtrusive as possible, only
impacting the sleep case. I have a different change that
completely reworks how we stop activities to simply this all
a lot by unifying the semantics between the server and client.
However, it is too late in HC for such an extensive change. Later
I'll revert this one and put in the better solution.

Change-Id: Id77f2db1ec83469cdd888acb8fbc4679daa7766e
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
0967c1cbc5a479b261d9bfe297d58084fdc5947d 21-Jan-2011 Nick Pelly <npelly@google.com> am 11ce84fc: resolved conflicts for merge of 97ac2935 to honeycomb-plus-aosp

* commit '11ce84fcaadb7051735dd50a35f6e6c234fbe480':
Javadoc updates for NFC.
57cb1b8f4f19591c66b9c978f87355059c3c853d 21-Jan-2011 Adam Powell <adamp@google.com> am b6b47116: am 9a161b09: Merge "SearchView API Review - bug 3370353 and bug 3370338" into honeycomb

* commit 'b6b4711648d83cccebe52142c4efefaa67f4dc65':
SearchView API Review - bug 3370353 and bug 3370338
91478bbb006dc9bd333dd62ce43ba3c7db551a15 21-Jan-2011 Dianne Hackborn <hackbod@google.com> am d79b8b17: am 27044f1d: Merge "Fix issue #3352125: Crash after clearing search query" into honeycomb

* commit 'd79b8b173c39d7a556c6c49b42c11f7c0f56172b':
Fix issue #3352125: Crash after clearing search query
11ce84fcaadb7051735dd50a35f6e6c234fbe480 21-Jan-2011 Nick Pelly <npelly@google.com> resolved conflicts for merge of 97ac2935 to honeycomb-plus-aosp

Change-Id: I5b510a3598adf17b738ecfe6bf8fbc47f7111350
b6b4711648d83cccebe52142c4efefaa67f4dc65 21-Jan-2011 Adam Powell <adamp@google.com> am 9a161b09: Merge "SearchView API Review - bug 3370353 and bug 3370338" into honeycomb

* commit '9a161b0981ad41169d006186979b7648a2acfd56':
SearchView API Review - bug 3370353 and bug 3370338
9a161b0981ad41169d006186979b7648a2acfd56 21-Jan-2011 Adam Powell <adamp@google.com> Merge "SearchView API Review - bug 3370353 and bug 3370338" into honeycomb
01f21354654a315ea2a2a1668bbda50645123d4a 21-Jan-2011 Adam Powell <adamp@google.com> SearchView API Review - bug 3370353 and bug 3370338

Renaming as per API council review

Change-Id: Id889be5a708fdc295ee50bb1b05014b2ff72122c
earchDialog.java
9e9d886b272181cfc101ef6d49019dabf550a882 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 7204528e: am 9358bd39: Merge "Fixes for StrictMode instance count checking." into honeycomb

* commit '7204528e71145e34bedd6cfb13110eb872d8a968':
Fixes for StrictMode instance count checking.
1bc9e6cbb1cb04e16d5be1b195b6cc6e3575cdf2 21-Jan-2011 Adam Powell <adamp@google.com> am 8bbec794: am 9c91c7e2: Merge "Fix bug 3362375 - API REVIEW: remove unused public \'up\' id" into honeycomb

* commit '8bbec794473f802d4d61613f77bc69a582e3fcc0':
Fix bug 3362375 - API REVIEW: remove unused public 'up' id
909ac9edc45432dea11c3fd3b397d6fd8fc28555 21-Jan-2011 Joe Onorato <joeo@google.com> am 2d821b8c: am 913d04aa: Merge "Don\'t log the full stack trace when we can\'t load a resource." into honeycomb

* commit '2d821b8cb8a3c11f2cde662d48890e81430b7f8d':
Don't log the full stack trace when we can't load a resource.
d79b8b173c39d7a556c6c49b42c11f7c0f56172b 21-Jan-2011 Dianne Hackborn <hackbod@google.com> am 27044f1d: Merge "Fix issue #3352125: Crash after clearing search query" into honeycomb

* commit '27044f1d4c5765388a745527b220a3a574c4f834':
Fix issue #3352125: Crash after clearing search query
7204528e71145e34bedd6cfb13110eb872d8a968 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 9358bd39: Merge "Fixes for StrictMode instance count checking." into honeycomb

* commit '9358bd39dc8829ef8413294da70d44cd928ca878':
Fixes for StrictMode instance count checking.
8bbec794473f802d4d61613f77bc69a582e3fcc0 21-Jan-2011 Adam Powell <adamp@google.com> am 9c91c7e2: Merge "Fix bug 3362375 - API REVIEW: remove unused public \'up\' id" into honeycomb

* commit '9c91c7e27fbfff5abc34e19779a9477239ab9b10':
Fix bug 3362375 - API REVIEW: remove unused public 'up' id
2d821b8cb8a3c11f2cde662d48890e81430b7f8d 21-Jan-2011 Joe Onorato <joeo@google.com> am 913d04aa: Merge "Don\'t log the full stack trace when we can\'t load a resource." into honeycomb

* commit '913d04aa3b187beffd7691acb1e61a8b09810bbe':
Don't log the full stack trace when we can't load a resource.
27044f1d4c5765388a745527b220a3a574c4f834 21-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3352125: Crash after clearing search query" into honeycomb
5f8b5c191cae77f536ee64f0b625e4a7f8596787 21-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Fixes for StrictMode instance count checking.

Misc stuff found after looking at the first day of data, Jesse's
review, and comments from Dianne about tracking Activity counts
better.

Change-Id: Ifee1ef8f59f41061d4aac8c02765627dbf3cd8e4
ctivity.java
ctivityThread.java
6e1bf6a3054674281bafd270165c99cb2423666d 20-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3352125: Crash after clearing search query

Don't deliver data arriving from a Loader after the application
has moved on to a new Loader.

Also throttle the number of Loaders will have actively running
for a particular ID.

Oh, and documentation. Documentation is good.

Change-Id: I5a5cfdbb8c9bfb320ffc014f99e37fe7e3001382
oaderManager.java
9c91c7e27fbfff5abc34e19779a9477239ab9b10 20-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3362375 - API REVIEW: remove unused public 'up' id" into honeycomb
1264c33163146d6088675d197551a63b3f9d360b 20-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362375 - API REVIEW: remove unused public 'up' id

Fix bug 3362453 - API REVIEW: android.app.ActionBar

Change-Id: I4e0233cd9355a47682bfe7b4a7fda39801586f1a
ctionBar.java
ragmentBreadCrumbs.java
913d04aa3b187beffd7691acb1e61a8b09810bbe 20-Jan-2011 Joe Onorato <joeo@google.com> Merge "Don't log the full stack trace when we can't load a resource." into honeycomb
08f16544176a04a958d403409f98cd0502bb8da3 20-Jan-2011 Joe Onorato <joeo@google.com> Don't log the full stack trace when we can't load a resource.

Bug: 3369315
Change-Id: I3a586bbefccbd59a0e99d712efe9a1cd3da6d058
pplicationPackageManager.java
e23cae2335c217191ec35e5c9f3ec296f877145a 20-Jan-2011 Romain Guy <romainguy@google.com> am 1eaac21e: am 68c56a51: Merge "Documentation fix." into honeycomb

* commit '1eaac21e6f4056fd582a7e58fb9a553f37f7820a':
Documentation fix.
1eaac21e6f4056fd582a7e58fb9a553f37f7820a 20-Jan-2011 Romain Guy <romainguy@google.com> am 68c56a51: Merge "Documentation fix." into honeycomb

* commit '68c56a51b32b5f5322c4f0f7dbba918712ad6473':
Documentation fix.
482b34a6f8aebe620cf815cdc689726ef5cf437e 20-Jan-2011 Romain Guy <romainguy@google.com> Documentation fix.

Activity's documentation wasn't clear on what would happen when
calling setContentView(View).

Change-Id: I37be6565ba897694460c80a39562346293faa8ea
ctivity.java
e594d9c8a6a1aa36bad01bd126151b5b6531554e 20-Jan-2011 Dianne Hackborn <hackbod@google.com> am 1426d6bd: am b26a651b: Merge "Hook up large heap API." into honeycomb

* commit '1426d6bdd889821fd83e355d54da989ca3370940':
Hook up large heap API.
1426d6bdd889821fd83e355d54da989ca3370940 20-Jan-2011 Dianne Hackborn <hackbod@google.com> am b26a651b: Merge "Hook up large heap API." into honeycomb

* commit 'b26a651b47b5fc90a6685477aff5b76fdd1787f1':
Hook up large heap API.
b26a651b47b5fc90a6685477aff5b76fdd1787f1 20-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Hook up large heap API." into honeycomb
de39851592679a545b8b6fb749507ccc7ec407f9 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Hook up large heap API.

Change-Id: I215644f8de326fe3d4fa582447885b0aa01f72d3
ctivityManager.java
ctivityThread.java
c3eb5c6c3d2158dc1fef2277a63165a3dd20b936 20-Jan-2011 Joe Onorato <joeo@google.com> am 201dd784: am cb109a0e: Add docs for Notification.Builder.

* commit '201dd784127b5e7e125cc57f2dfbbe16bc12624c':
Add docs for Notification.Builder.
201dd784127b5e7e125cc57f2dfbbe16bc12624c 20-Jan-2011 Joe Onorato <joeo@google.com> am cb109a0e: Add docs for Notification.Builder.

* commit 'cb109a0eeaca12cdd954c567da4fc5f45a23213b':
Add docs for Notification.Builder.
cb109a0eeaca12cdd954c567da4fc5f45a23213b 19-Jan-2011 Joe Onorato <joeo@google.com> Add docs for Notification.Builder.

Bug: 3362451
Change-Id: I8f16a7f266812190dc8d06751f5ca914e2050111
otification.java
28d5206519b1c14553a745cc1f4f5df98fa3176a 20-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am bd80a12c: resolved conflicts for merge of 9240f16d to honeycomb-plus-aosp

* commit 'bd80a12cba480a0dbb2e9073f35c758d8b396b94':
StrictMode: class instance limits (track object "leaks")
bd80a12cba480a0dbb2e9073f35c758d8b396b94 20-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 9240f16d to honeycomb-plus-aosp

Change-Id: I6e595bb11a5a692ccd730b9d1d2aa367063a61f5
bfbe5771106a07f9c8e8685e402b1003db40526f 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> StrictMode: class instance limits (track object "leaks")

Change-Id: I2db5a19060c2013078feb88a91caf655469b2f98
ctivity.java
7fc5d4b8e7145413411da3320495388f09fab536 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb

* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
aef99bbc696974af436c0987492cbd7a57c693d1 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 7adf8481: am b4f655d5: Merge "StrictMode class instance limit interface." into honeycomb

* commit '7adf848183b39ac4d0b8b67435ace94909ca3076':
StrictMode class instance limit interface.
2ec5a7160b3d32887b2428edef7a751ee3700809 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb

* commit '36c84403ec07439d11ed284ac5f9a9db807fbf92':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
36c84403ec07439d11ed284ac5f9a9db807fbf92 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog" into honeycomb
cfaf8878de83b6bb7a24aee3c240259f428e6e4a 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog

Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
ctivity.java
lertDialog.java
ialog.java
7adf848183b39ac4d0b8b67435ace94909ca3076 18-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am b4f655d5: Merge "StrictMode class instance limit interface." into honeycomb

* commit 'b4f655d5912869078cb7be29d108ebfea06019fc':
StrictMode class instance limit interface.
758035757f11a085a12b54daa9467f1d6bb251ef 13-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> StrictMode class instance limit interface.

Change-Id: Ic5eea539586e5d4965d83364bf9f623d1d89f2b1
ctivity.java
97ac293507bfa2913e115f736df3dfd91230a232 18-Jan-2011 Jeff Hamilton <jham@android.com> am 0716ea14: Merge "Javadoc updates for NFC." into gingerbread

* commit '0716ea144d94b9dfce4670e90a849db19a492da9':
Javadoc updates for NFC.
0716ea144d94b9dfce4670e90a849db19a492da9 18-Jan-2011 Jeff Hamilton <jham@android.com> Merge "Javadoc updates for NFC." into gingerbread
ce3224cda51f946871daa1e11e3976e25c59e6fa 17-Jan-2011 Jeff Hamilton <jham@android.com> Javadoc updates for NFC.

Change-Id: Ibd91829979576297599fbcc9eb8054924af1d527
ctivityThread.java
44b628d2f63f62b1c1990b1b6cb8ab63502264a7 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am ad81f4ff: am f4c4b666: Merge "Remove old APIs." into honeycomb

* commit 'ad81f4ffb8b8c32afea1a742dbb9bbc734b7a8a1':
Remove old APIs.
ad81f4ffb8b8c32afea1a742dbb9bbc734b7a8a1 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am f4c4b666: Merge "Remove old APIs." into honeycomb

* commit 'f4c4b666234d0e5c510c846b13382b77175f10e1':
Remove old APIs.
3c3a7f55bb818ccd14a7f29b94caf22e6658fabf 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2d6dae2f: am 80ad0b0a: Merge "Fix a bunch of API review bugs." into honeycomb

* commit '2d6dae2f4d2ce98adcb6fe83bcaa91a506805859':
Fix a bunch of API review bugs.
2d6dae2f4d2ce98adcb6fe83bcaa91a506805859 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am 80ad0b0a: Merge "Fix a bunch of API review bugs." into honeycomb

* commit '80ad0b0aeb5a55d2e62aaaf18863253501b87b60':
Fix a bunch of API review bugs.
17b9b81418c9166e181a992f27598e4de18d7203 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Remove old APIs.

Change-Id: If676e4e7886ad71c4959d4253db99639b49218b8
ragmentManager.java
ragmentTransaction.java
327fbd2c8fa294b919475feb4c74a74ee1981e02 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix a bunch of API review bugs.

3362464 API REVIEW: android.content potpourri
3362445 API REVIEW: Fragment transaction stuff
3362428 API REVIEW: Fragment stuff
3362418 API REVIEW: Loader stuff
3362414 API REVIEW: android.content.pm.ActivityInfo

Change-Id: I6475421a4735759b458acb67df4380cc6234f147
ackStackRecord.java
ialogFragment.java
ragmentBreadCrumbs.java
ragmentManager.java
ragmentTransaction.java
oaderManager.java
0f6226b9f417182bbf791598000f0a153fbf191c 18-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add joystick support to framework."
58f765a45e99a8342f5429102efd02df5a6a729d 18-Jan-2011 Vasu Nori <vnori@google.com> am 376fedf6: Merge "bug:3362635 add new public API to downloadmanager to get mxbytesovermobile" into honeycomb

* commit '376fedf6595188ad714022b5d1ab012dc8689c3e':
bug:3362635 add new public API to downloadmanager to get mxbytesovermobile
376fedf6595188ad714022b5d1ab012dc8689c3e 18-Jan-2011 Vasu Nori <vnori@google.com> Merge "bug:3362635 add new public API to downloadmanager to get mxbytesovermobile" into honeycomb
0abbf809bf46eea21f64fb62c55852783269aca2 18-Jan-2011 Vasu Nori <vnori@google.com> bug:3362635 add new public API to downloadmanager to get mxbytesovermobile

bug:3362635
Change-Id: I7380964c6098d5ca6396b17980f78457c23d1a87
ownloadManager.java
36578e308cb3178659596a1a1dedb06521420259 18-Jan-2011 Scott Main <smain@google.com> am 662cc7a4: add javadoc for getView method

* commit '662cc7a46a44af782a1f697d16b0613498312e1f':
add javadoc for getView method
662cc7a46a44af782a1f697d16b0613498312e1f 18-Jan-2011 Scott Main <smain@google.com> add javadoc for getView method

Change-Id: Ia8d9516c4017319f8bcaedb3e4c451c5c3825857
ragment.java
cb1404e45639d20439d7700b06d57ca1a1aad1fa 16-Jan-2011 Jeff Brown <jeffbrown@google.com> Add joystick support to framework.

Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
ctivity.java
ialog.java
a33dd09b5cc62b50afc3a15cd8b67b5344756f1e 17-Jan-2011 Kenny Root <kroot@google.com> am d6c54d97: Merge "Revert "Add the {get,set}PackageObbPaths calls to API"" into honeycomb

* commit 'd6c54d97867edd566700c535f3edf57dd4396350':
Revert "Add the {get,set}PackageObbPaths calls to API"
d6c54d97867edd566700c535f3edf57dd4396350 17-Jan-2011 Kenny Root <kroot@google.com> Merge "Revert "Add the {get,set}PackageObbPaths calls to API"" into honeycomb
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
pplicationPackageManager.java
d9bc2b5e9ef462c9fa4ac821e9d8d27ecff1dfaf 17-Jan-2011 Andy Stadler <stadler@google.com> am 2c12c708: Merge "Add internal plumbing to DPM for encryption" into honeycomb

* commit '2c12c708bfb62464e75dcde292547b2d778dafce':
Add internal plumbing to DPM for encryption
22dbfda976aab9ae897eed0625e2e64ead32bbc4 17-Jan-2011 Andy Stadler <stadler@google.com> Add internal plumbing to DPM for encryption

* Add code to persist per-admin setting
* Add hooks for OS-level tie-in (is supported, get / set status)
* Add 3rd API call to get OS status (irrespective of admin settings)
* Remove "REQUESTED" status, no longer relevant with 3rd API
* Fixed bug that impacted global proxy settings
* Update api/11.xml to match current.xml

Bug: 3346770
Change-Id: I56bdf9a7894f6ca4842402c7b82ddb3caf4b37b9
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
74871f9c370c6ec520820c0da606afbd77af6b4f 17-Jan-2011 Dianne Hackborn <hackbod@google.com> am db7f3867: Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb

* commit 'db7f38673c33ba55801019007ff18fa4c57f75e0':
Start renaming FragmentTransaction.openTransaction() to beginTransaction().
db7f38673c33ba55801019007ff18fa4c57f75e0 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb
48e7b458694acdf3a4fc58e62437f1dbc4f29d83 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Start renaming FragmentTransaction.openTransaction() to beginTransaction().

Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
ialogFragment.java
ragmentManager.java
oaderManager.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
ontextImpl.java
d0dbee21505b7aaa05e65d41792a2b47249f0110 17-Jan-2011 Jeff Hamilton <jham@google.com> am b01856da: Merge "Delivering null cursor to loader callbacks." into honeycomb

* commit 'b01856da54892647afed260d017352d58648acc3':
Delivering null cursor to loader callbacks.
b01856da54892647afed260d017352d58648acc3 17-Jan-2011 Jeff Hamilton <jham@google.com> Merge "Delivering null cursor to loader callbacks." into honeycomb
fd119e986d531345c2df3022ea9d968bb7fd3858 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Delivering null cursor to loader callbacks.

ContentProviders are allowed to return null and both
of our contact directories (Focus and Exchange) actually
do when they find no data to return.

The problem is that when LoaderManager receives a result
from a loader, it checks if the result is the same as
previously received. That's fine, as long as the loader
always returns a different result. Now consider a loader
that returns null when it cannot produce the result.
What we are seeing is that if the loader is rapidly restared
and returns null twice in a row, the null is never
delivered to the callbacks.


In the case of the reported bug, the scenario is this:

1. We look for "foo"
2. Data for "foo" comes from a directory and we display it
3. We hit backspace twice in rapid succession. Each time
we hit backspace, the loader is restared, but since we do
this very fast, the second restart overrides the first. So
far so good.
4. The directories are programmed to return null if the
query string is less than 3 characters long, so the loader
returns null twice.
5. Loader manager looks at the final result, compares it
to the previous result and since they are the same (both null)
concludes that it does not need to deliver either of them.
6. The UI attempts to show the stale data and blows up

Bug: 3352125
Change-Id: I3e5bc505faa03f72ebe5cb010377a740f5c7d5b6
oaderManager.java
e27145d83f144eb025f34985a02cda9cd5e0bcfe 17-Jan-2011 Dianne Hackborn <hackbod@google.com> am 805fd7ee: Add API to get path to OBBs.

* commit '805fd7ee0e5dc2939e85c84f78d9890a51982bc0':
Add API to get path to OBBs.
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
ctivityManager.java
ontextImpl.java
ativeActivity.java
64e306430570fcfb35a1b14e1b333ad114b23829 16-Jan-2011 Dianne Hackborn <hackbod@google.com> am c237bb27: Merge "Add manifest API to request a large heap." into honeycomb

* commit 'c237bb2776facbfd3325ef23865fd7f6ced67f17':
Add manifest API to request a large heap.
3b81bc18bb661c02ad8074c39dab16644c1e65d0 15-Jan-2011 Dianne Hackborn <hackbod@google.com> Add manifest API to request a large heap.

You can now do android:largeHeap="true" on an application.

Doesn't yet do anything, waiting for Dalvik API.

Also tweak package parsing so that the SDK API level is set in the
configuration, allowing manifest resource value selection based on
that.

Change-Id: I6e035f9702a97b055416743b88f83a22ba4a9584
ctivityManager.java
ctivityThread.java
9fc8bea989452e092aa2892d92df462aa9c704c9 14-Jan-2011 Scott Main <smain@google.com> am 2150553d: cherrypick Change-Id: I1365c6c45f8e1f75ee4afbc52c32778d21b97be4 from master docs: Rewrite of App Fundamentals.. Part 2. This introduces three new docs:

* commit '2150553dc374204a1cb3033ed3fa65c2f22dd5e7':
cherrypick Change-Id: I1365c6c45f8e1f75ee4afbc52c32778d21b97be4 from master docs: Rewrite of App Fundamentals.. Part 2. This introduces three new docs:
2150553dc374204a1cb3033ed3fa65c2f22dd5e7 05-Oct-2010 Scott Main <smain@google.com> cherrypick Change-Id: I1365c6c45f8e1f75ee4afbc52c32778d21b97be4 from master
docs: Rewrite of App Fundamentals.. Part 2.
This introduces three new docs:

Services:
Provides an introduction to using services and describes the
service lifecycle (previously in the "Component Lifecycles" section
of the fundamentals.jd document)
Bound Services:
A guide for services that offer binding.
AIDL:
A doc about using AIDL (primarily for creating a service interface)

Also includes edits to IntentService javadocs to clarify
different behaviors for some callback methods

Includes a new version of the services lifecycle diagram
and an additional diagram for determining onRebind()

These files are orphaned for now---they're not linked in the sidenav,
until I get the last couple documents submitted for the app fundamentals.

Change-Id: I7fb0a8faff1f18b7d6b9a7b59f66f55a1b6168f1
ntentService.java
11bc705de7acb85af8c738712463a2a913bc8cec 14-Jan-2011 Scott Main <smain@google.com> Merge "docs: Rewrite of App Fundamentals.. Part 2. This introduces three new docs:"
d9fa11b446da5dbc92776518c20bab1f04e55537 14-Jan-2011 Kenny Root <kroot@google.com> am 312206b9: Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb

* commit '312206b98749bbe395416634e6e82bd242b1d5f2':
Add the {get,set}PackageObbPaths calls to API
312206b98749bbe395416634e6e82bd242b1d5f2 14-Jan-2011 Kenny Root <kroot@google.com> Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb
f21ae26935349f45c55afa5c8e45e1f6aa880915 14-Jan-2011 Dianne Hackborn <hackbod@google.com> am d922ae01: Add Holo theme for IMEs.

* commit 'd922ae01ca99a2b6d39a9393f86776a1d10ebd14':
Add Holo theme for IMEs.
d922ae01ca99a2b6d39a9393f86776a1d10ebd14 14-Jan-2011 Dianne Hackborn <hackbod@google.com> Add Holo theme for IMEs.

Also clean up theme selection code to get rid of duplication.

Change-Id: Idf7b21db70ee83fce24756ead877169bd08b77a9
ontextImpl.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
pplicationPackageManager.java
93ec68e6a9ef0c6031db506dbd035a7ade6350ad 14-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 06bb3aef to honeycomb-plus-aosp

Change-Id: Ia7071ca07d917bd79e7697f4b0c0640ebb5f6a6f
06bb3aef0d05f925282dd521d673ef779a97a793 13-Jan-2011 Jeff Hamilton <jham@android.com> am 52d3203e: Add dispatching overrides for foreground apps.

* commit '52d3203ef69d4babbc4dd030a15c08c0b8d1d226':
Add dispatching overrides for foreground apps.
52d3203ef69d4babbc4dd030a15c08c0b8d1d226 08-Jan-2011 Jeff Hamilton <jham@android.com> Add dispatching overrides for foreground apps.

Apps can register to override the default dispatching
but only when they're in the foreground.

Change-Id: I8e9a9254d3f79f097fb3c8c677d806043574ba4d
ctivity.java
ctivityThread.java
nstrumentation.java
nActivityPausedListener.java
7b0f8f08ac7b3ed5cf462b92283713b033d6a64a 12-Jan-2011 Andy Stadler <stadler@google.com> API changes to support encryption in DPM

* New uses-policies value
* Definitions for storage domain and encryption status
* API to get and set encryption status
* Intent to launch encryption changes
* Both new calls bottom out in the DPM service and are suitable for
a device that does not support encryption.

NOTE: Nobody should use ACTION_START_ENCRYPTION yet. It needs a receiver
to be built in Settings (different CL).

Change-Id: I2ae193bedbec59f6ba46c0ec7de12ecf321e5803
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
b29407faf39a1421ac61958a34431286c8397929 11-Jan-2011 Chet Haase <chet@google.com> Fix null crash when fragments go away during animations

Change-Id: I239cabce3ce322fcc3f1246486b4bf05f0dd322b
ragmentManager.java
f4699efb635dc7695e346343e9b9024ed225a612 13-Jan-2011 Joe Onorato <joeo@google.com> Merge "Possibly fix bad notification updates." into honeycomb
c9596d6d8e9154b5f87c8e887bfabf7546b68af5 13-Jan-2011 Joe Onorato <joeo@google.com> Possibly fix bad notification updates.

I think what was happening is that it was using a different layout but we were trying to reapply the
RemoveViews because of some bad boolean logic. This fixes that, and adds some better debugging that
might show us what else is happening.

Bug: 3298062
Change-Id: I0984f24cb2960166c79b9f2cc7c6a98bd75e17ba
otification.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
e8c04db71e347396e9537ead7113ba9f46706e44 13-Jan-2011 Kenny Root <kroot@google.com> Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread
4389434c1d685b5b71de74b0c7718b8ed5b9dcb5 12-Jan-2011 Dianne Hackborn <hackbod@google.com> Make ProgressDialog a little less lame.

Change-Id: Ic3f1dd8ba32dd02d422ee6f05fff5541e54bb8a1
rogressDialog.java
6014527c350895383b99ba91d3d009a32b1d22a6 12-Jan-2011 Dianne Hackborn <hackbod@google.com> Add "min size" facility to the Window class.

This allows us to have a new dialog theme that behaves like an alert dialog
for both Dialog and Activity versions. Very useful with so many more things
being displayed as dialogs on our nice large screen.

Note I didn't change the existing dialog themes to have this behavior, since
it will probably break things. Instead there is a new variation. And the
DialogWhenLarge variations now use this for their dialog form, to fix many
of the real new dialogs we have that need this behavior.

Removed the public definition of the one alert dialog theme. None of the
others have ever been public, this one shouldn't be.

Added new .Panel versions of the Holo themes, like we already had for the
original themes.

Changed the alert dialog layout to no longer use WeightedLinearLayout,
since the window now takes care of that. This allowed for the removal
of the xlarge version of those layouts.

Change-Id: I0c8372bde25eb9af47404a719b3f07230baf73bf
ialogFragment.java
7a14b93bee8e14ace67b8b7dc1579f76e4831773 05-Oct-2010 Scott Main <smain@google.com> docs: Rewrite of App Fundamentals.. Part 2.
This introduces three new docs:

Services:
Provides an introduction to using services and describes the
service lifecycle (previously in the "Component Lifecycles" section
of the fundamentals.jd document)
Bound Services:
A guide for services that offer binding.
AIDL:
A doc about using AIDL (primarily for creating a service interface)

Also includes edits to IntentService javadocs to clarify
different behaviors for some callback methods

Includes a new version of the services lifecycle diagram
and an additional diagram for determining onRebind()

These files are orphaned for now---they're not linked in the sidenav,
until I get the last couple documents submitted for the app fundamentals.

Change-Id: I1365c6c45f8e1f75ee4afbc52c32778d21b97be4
ntentService.java
3b4fcbc9f13bab6a2e9e5c37cc5e18fec7341c04 09-Jan-2011 Brett Chabot <brettchabot@android.com> Add ActivityManager#isRunningInTestHarness() public API.

Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
ctivityManager.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
ontextImpl.java
9b1bd2c7d1acffa1079d589811450140518e5ce5 09-Jan-2011 Chris Tate <ctate@google.com> am 6ec91731: DO NOT MERGE : Permission fix: don\'t require BACKUP perm for self-restores

* commit '6ec91731cbf6ee1a9a914d341fab9567d1599018':
DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores
6ec91731cbf6ee1a9a914d341fab9567d1599018 17-Nov-2010 Chris Tate <ctate@google.com> DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

(Cherrypick from master to gingerbread)

Change-Id: Ie20b0bd2420345ce6eda178f854680b558f6372a
ackup/BackupManager.java
ackup/IBackupManager.aidl
247fe74c934cb3fba85aae7e051a8044f460fb11 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Implement issue # 3255887 could CursorLoader offer...

...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
ctivity.java
ontextImpl.java
ialogFragment.java
ragmentTransaction.java
947f7824118f0e9b642df8760a8725a7eda59318 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3245465 - Themed dialog icons

Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
lertDialog.java
64da12ab1f472e01325b6c6d094153ac110eaf7b 05-Jan-2011 Jeff Brown <jeffbrown@google.com> Add dispatch key shortcut window callback.

Enables Activities and Dialogs to implement key shortcut behavior.
Useful for global key shortcuts that are not bound to the focused
view or to a menu.

Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
ctivity.java
ialog.java
70588bf864f961974c93aace7586d3e2773a54a8 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 3a2c6bf0 to master

Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
3a2c6bf0fcae9421cccf113ff972df7aaeb6d3e9 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 69ea4e15: Documentation fixes found over vacation hacking.

* commit '69ea4e15e52c456537575d21443ac1efdb03a902':
Documentation fixes found over vacation hacking.
69ea4e15e52c456537575d21443ac1efdb03a902 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Documentation fixes found over vacation hacking.

Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
lertDialog.java
3f476b34049d062942eafcf48396f593e00bd324 04-Jan-2011 Adam Powell <adamp@google.com> Revisiting ActionBar API and layout.

Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
ctionBar.java
281d83f61f4036503ded1a967b8b43bfbaa373d0 05-Jan-2011 Joe Onorato <joeo@google.com> Notification.Builder.setAutoCancel() was setting the wrong flag.

Bug: 3306725
Change-Id: I84908fd3ac2cf9a4ce164179620c33df907d018f
otification.java
059a2f8664571098fac665747d8bb8f84c5e07ed 04-Jan-2011 Joe Onorato <joeo@google.com> When the number field on a notifications is >100, just say "100+" instead of listing the number.

Bug: 3271445
Change-Id: Id5704cc5cba770b918c974eeec8f9ffb3f294450
otification.java
87121accdb0ce318482ac51270763a6faab2ed63 05-Jan-2011 Dianne Hackborn <hackbod@google.com> Some new API cleanup.

- Tweak Fragment docs to match new sample code.
- Make some new attributes public.
- Hide all of the XmlAdapter stuff, since it is not actually being used.

Change-Id: Iae2062f91d1ca0c6b1d656ae948417d3d048482f
ragment.java
6d978d6d2e49b253cc983e2543aec813686c4a7c 04-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Few little fragment, wm tweaks."
352cc98b4621b76959af8f8a698fd75c6d6132e8 04-Jan-2011 Dianne Hackborn <hackbod@google.com> Few little fragment, wm tweaks.

Deal with fragments being restored when their containing view is
gone.

Try to put in a black background during rotation. Currently commented
out because it appears to cause surface flinger to hang.

Change-Id: I150d061e64488356d17513f4e2d124d7c3d04f6b
ragment.java
ragmentManager.java
8b4cac1f420d2e6d235511015a6ab65db5ebaca4 03-Jan-2011 Dianne Hackborn <hackbod@google.com> Again maybe fix issue #3169193...

...com.google.android.youtube: java.lang.NullPointerException at
com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324)

Only perform one cancel callback for a particular start of the dialog.

Change-Id: Ib448fcae2489a63c9b63affdc518658447e90920
ialog.java
e646b28cb3bdd10e46c209e367b8ee055ff5a4ba 28-Dec-2010 Chet Haase <chet@google.com> Minor fix to previous fragment change: non-animating case

The previous change only hid the fragment when the transition animation
ended. But if there is no animation, the fragment would never be hidden.
This change adds an else clause that handles the non-animating case.

Change-Id: Ie35b2ae98cb5c21193dadefbef71b8542fcf5f7d
ragmentManager.java
61eb40d276d7fe5c4bead019b7565b99ead07731 28-Dec-2010 Chet Haase <chet@google.com> Delay hiding fragments until transition finishes

Change-Id: I616de20e7e161fe1a53cd5e72912cec48f078df5
ragmentManager.java
1b39e221e2d2db98f8aea7dd7b7ded3eca6f3d55 28-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix NPE pointed out by Chet.

Change-Id: Id421476aa6f6ff281054b435ecd09f932966305c
ragmentManager.java
d173fa3b1cb8e4294aba7564c0171894be6c3c24 23-Dec-2010 Dianne Hackborn <hackbod@google.com> Possible fix to issue #3213749: NPE at...

...android.app.Fragment.startActivityForResult(Fragment.java)

Make sure to remove all pending messages when AbsListView is detached
from its window.

But... that's not enough.

It turns out that when a fragment's views are animating away, they of
course don't get detached until after the animation is done. However
the fragment itself is immediately destroyed, leaving its live views
still going after that.

Here's a possible solution: when fragment manager initiates an animation
on a fragment whose views are being removed, it makes note of that so
it can hold off on destroying the fragment until the animation is over.

There are a lot of interesting race conditions here, if further operations
happen on the fragment while it is being animated. I think the code here
does something sensible, and it does seem to work for the situations I
have tested, but it is hard to know all of the edge cases that may happen.

Change-Id: I4490ce8862a9bb714c7ea54baca3072c62126388
ragment.java
ragmentManager.java
e9730bf3d2dcbea1879f24c18aaf9810ac57084c 21-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Adding APIs for setting whether to show week number and setting the start day of week. Cleaned up the code a bit.

Change-Id: Iaa7154c6912a68cd91df3ac881c324096394ea24
atePickerDialog.java
4e24aac6aeb6c7dad2a40aa6d455debf2d1738f6 23-Dec-2010 Dianne Hackborn <hackbod@google.com> Add some standard definitions for device heaps.

These can be included as desired by particular devices to configure
their Dalvik heap in a standard way.

Change-Id: I487c751d7c583b0e93552f16ab43a93314219778
ctivityManager.java
6bcda6387fb7b93dceeb71156170c8f9a02725ea 18-Dec-2010 Martin Hibdon <mhibdon@google.com> Correctly save Activity's state in saveInstanceState

Prior to this change, saveInstanceState would
call directly to Activity.onSaveInstanceState(),
rather than performSaveInstanceState().
This meant that saveManagdDialogs() was not called,
so Activities running under a LocalActivityManager
do not get their dialogs restored on configuration changes.

Change-Id: Id45110a8716a86958c14f4b1ea5a84c9cdf107f1
ocalActivityManager.java
28104e1de5595a22a6987181b13ddeb192739afd 20-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3298147 DatePicker dialog does not provide mechanism for specifying range from which to select

Change-Id: Ib5dd7db90ccc5b4d984914c481118049ac3648fe
atePickerDialog.java
0e3b8f421dfcc5363f234eb1b76479cb2fb2e8ee 21-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3301572: onCreateLoader must not be a member class: VolumeMetadataLoader

Also some various cleanup.

Change-Id: I8e8616a86c50c86817f7ec9bb02a5954c1ccd84f
oaderManager.java
a2ea747faaf5fcd437afbaaf4085cfc29e7c16b8 20-Dec-2010 Dianne Hackborn <hackbod@google.com> More cleanup of Loader APIs.

- Remove old method names.
- Introduce onXxx() hooks to Loader.
- Improve debugging.

Change-Id: I3fba072a05c7023aa7d2c3eb4e126feb514ab6d8
ragment.java
ragmentManager.java
oaderManager.java
6916b03e022b7ae391a1ed66a857db6e80b04c65 20-Dec-2010 Vasu Nori <vnori@google.com> if a download dir doesn't exist, create it or fail fast

in HC, using DownloadManager public API, download directories
named by the constants Environment.DOWNLOAD_*
may ot exist. theyneed to be created or
the download request should fail ASAP.
bug:3297328

Change-Id: Ic87023d8fe98bd240744f66607a5400b7825e17e
ownloadManager.java
8c972f2ce200a0f4b452cd5abb0ff0ae8fb5ee05 18-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Some fixes to the new loader management."
f73c75ca20fcaaee1b0eeaaf756252c33e3099c6 18-Dec-2010 Dianne Hackborn <hackbod@google.com> Some fixes to the new loader management.

Change-Id: Ib882be5762b0ebeed9b027754159f401232718e9
oaderManager.java
bf80562d22b2bbe7944d80d0524c69d0238010cb 18-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme app

Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
lertDialog.java
atePickerDialog.java
imePickerDialog.java
540d3d26623f44caaa82a5c973cda818cb11f946 17-Dec-2010 Dianne Hackborn <hackbod@google.com> Fixes for when onLoaderReset() is called.

Change-Id: Iab479926f11fa579757904032ada46c41686d560
oaderManager.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
oaderManager.java
oaderManagingFragment.java
194157638ae59418b9d9cb4d73f7e285f59bc579 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix launching of activities that I broke.

Change-Id: I39f4189bad6bdecdc7f9362410f36453fd816121
pplicationPackageManager.java
4f3867e3ce92101224ad79b8f2ff446bb4f99108 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Time to remove some old APIs!

Change-Id: I73ca23b0d5c7971a00dfa05357f9b630d9b6ebc8
ctivity.java
ervice.java
a738671790503132a277880642ca746d7a1380e9 15-Dec-2010 Vasu Nori <vnori@google.com> Merge "bug:3264401 changes to support usage of new downloads dir in /data"
ad0b61ca67ee2a4dbee5e25250e2c0025d412255 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix Dialog generating multiple onCancel()."
114405e0eaf82b1f22e6989d939d5509ff1b7927 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix Dialog generating multiple onCancel().

Issue #3169193: com.google.android.youtube: java.lang.NullPointerException
at com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324)

A little protection against calling onCancel() after a dialog has been
dismissed.

Change-Id: I7a64c94703da012ce303308563e4a8ed3cb125d3
lertDialog.java
ialog.java
7ab7d83254050cb237bf285a39b455a5aa3b4c97 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Work around issue #3241701: crash in ActivityThread.handleWindowVisibility"
4e920f70f38d52d3a74c6a3133388a2e2cb6c175 14-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> Add MODE_MULTI_PROCESS flag to Context.getSharedPreferences()

Also, changes to make this testable with CTS:

-- special PENALTY_DEATH StrictMode fast path that doesn't use
the Looper idling to "time" the violation. Only used when
death is the only violation,

-- make PENALTY_DEATH throw a RuntimeException instead of
killing its process with a signal. this means we can catch
it in CTS tests, but it's also more consistent with
PENALTY_NETWORK_DEATH in Honeycomb.

-- make FileUtils.getFileStatus() invoke StrictMode, which isn't
(yet?) aware of I/O in native code. so help it out.

CTS test for MODE_MULTI_PROCESS is in I6154edab

Change-Id: Icf93f9dfb0ece06b16781e4803dd2c17df3cf1b3
ontextImpl.java
c9ecb73ccdab767e7904232d46b660fdd7a9aad7 14-Dec-2010 Amith Yamasani <yamasani@google.com> Add a way to insert a parent bread crumb so that deep linked settings can navigate up.

Bug: 3236568

This adds a way to insert a title as well as get a callback when that title is clicked.
It is not really on the backstack and clicks must be handled via the listener interface.
ragmentBreadCrumbs.java
f83e6e4b7a7fcbfcc8e3b6078f4655fa3e64bce3 14-Dec-2010 Vasu Nori <vnori@google.com> bug:3264401 changes to support usage of new downloads dir in /data

Change-Id: I209a624523f727d47a4a8f758c13df5d4eac614f
ownloadManager.java
bfddc0fe77f9b943bd35ab525c50f5ce9d7390f4 14-Dec-2010 Dianne Hackborn <hackbod@google.com> Work around issue #3241701: crash in ActivityThread.handleWindowVisibility

Change-Id: I9d5df3605f3d216e651e0a294409f82dea3968ad
ctivityThread.java
001667313fb4ccc5e8235cd1abddf59c63e4560a 14-Dec-2010 Christopher Tate <ctate@google.com> Merge "Don't restore wildly wrong sized wallpapers"
d2835935d2df8be70d1b37d3ef3b2fe0155b3422 14-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3258849: Grab thumbnail when exiting an app via back

Also issue #3281400: Rotating a retained instance fragment leaks the fragment manager

And turn off fragment debug logging.

Change-Id: Ibdd7db82bb35618021bcba421ba92ced7cd691c2
ctivityManager.java
ackStackRecord.java
ragment.java
ragmentManager.java
3f64f8d8fc05189777e83b4efd3882cbc661fdeb 11-Dec-2010 Christopher Tate <ctate@google.com> Don't restore wildly wrong sized wallpapers

If the dimensions of the original are sufficiently different from the
device's preferred dimensions, just don't restore the image. This
avoids bad letterboxing / clipping on e.g. phone <-> tablet data
migration.

The expansion/shrinkage ratios used here allow restores of saved
wallpaper images among HVGA devices, among WVGA variants, and
among tablets; but skip restoring wallpapers across those
categories (where severe clipping or letterboxing would occur).

Bug 3261863

Change-Id: I75e75d6401d18f1df10d75796ee04e21d2302cfa
ackup/FileBackupHelperBase.java
ackup/WallpaperBackupHelper.java
3db6af923792d6e688429238dbb0b83261a21506 13-Dec-2010 Leon Scroggins <scroggo@google.com> Merge "Do not loop forever."
30d7189067524000c738c188c4ff91f84f474d25 11-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3274841: Orientation change problem with a paused activity

Plus a bunch of debug output improvements.

And some new Intent helpers for dealing with restarting an app.

Change-Id: I50ec56bca6a86c562156b13fe8a6fdf68038a12e
ctivity.java
ctivityThread.java
pplicationPackageManager.java
pplicationThreadNative.java
ackStackRecord.java
ragment.java
ragmentManager.java
ApplicationThread.java
oaderManager.java
d75e64af99a024a6d1192d1cad71b53c336b93ea 13-Dec-2010 Leon Scroggins <scroggo@google.com> Do not loop forever.

Bug:3279066
Change-Id: I5222c465af2345f643bfd528d580d32ab9ba328e
ownloadManager.java
d250746716305717d7cde64032d2d25cda14e6c9 13-Dec-2010 Nick Pelly <npelly@google.com> resolved conflicts for merge of 1d0d1188 to master

Change-Id: I80413d5a54a0284ab6f685c4c6197a2c009ea717
1d0d1188d71ed086b3910cfe1d244fdeee47f182 11-Dec-2010 Nick Pelly <npelly@google.com> am ae56a851: Merge "Make getSystemService(NFC_SERVICE) the NFC entry point." into gingerbread

* commit 'ae56a851624c2b2e78da8a2c339d2caa64c4f981':
Make getSystemService(NFC_SERVICE) the NFC entry point.
50b4d8f643f31b37e9872f562fb869059cf79c8a 08-Dec-2010 Nick Pelly <npelly@google.com> Make getSystemService(NFC_SERVICE) the NFC entry point.

This gives NFC service a handle to the application context.

Deprecate NfcAdapter.getDefaultAdapter(), it does not provide a context.
Using this method will print a warning, and will later throw an exception
if a method that requires a context is called. No 2.3 API's will fail, but
new API's that do require a context might fail.

Also add helper NfcAdapter.getDefaultAdapter(Context).

Change-Id: I9a6378de4ef4b61ad922f8d53e64e2a1a1d5d60c
ontextImpl.java
bca1c4ffad8c28fc142eddcd33095dfa2ebfb0a0 09-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3271486: SetupWizward NullPointerException in"
fb3806d68d51d336cba0ace697b1bae3e699a890 09-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3271486: SetupWizward NullPointerException in

andriod.app.ActivityThread.performStopActivityInner

Change-Id: Ifce73b7fc48fedb4767d759f70c98fcdee510f36
ctivityThread.java
a58fd15a5be03927f7ae211ee25ce165ec167681 09-Dec-2010 Christopher Tate <ctate@google.com> Merge "Add a couple of transport-descriptive methods to IBackupManager"
f5e1c296370b45503a6c48bdb7da8b829bc0b906 09-Dec-2010 Christopher Tate <ctate@google.com> Add a couple of transport-descriptive methods to IBackupManager

Privileged callers can now ask the transport for a string describing
its current state, and for an Intent that can be passed to startActivity()
in order to bring up its exported configuration UI. These will be used
in Settings in order to e.g. show the user the currently active account
being used for backup, and allow the user to choose an account.

The data being funnelled through IBackupManager here are the ones
already exposed by the transports in their implementation of the
IBackupTransport interface.

Bug: 2753632

Change-Id: I2227a2b111d8d0ddf221d63020e20c1316fff55b
ackup/IBackupManager.aidl
e9362fa1573d093d8381c6b78363030b032907d0 09-Dec-2010 Andy Stadler <stadler@google.com> Merge "API CHANGE - Add hasGrantedPolicy() API"
fe0b5a526070f194a676dbf4c474a434ca20990c 09-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix not saving state when restarting an activity."
e2b0480f5e698b7d771b1c1348cc0bff2a72548d 09-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix not saving state when restarting an activity.

Change-Id: I4c9e93e9523c9c62e3a15e6e4587ffad06280545
ctivityThread.java
c25f70a440ef9468085b8d98c8416c7e8b116753 09-Dec-2010 Andy Stadler <stadler@google.com> API CHANGE - Add hasGrantedPolicy() API

* Allows an app to detect that it needs to have additional policies granted
* Add "refreshing" parameter to setActiveAdmin() to handle this case
* Minor cleanups to eliminate warnings (mostly for unused things)

Bug: 3253179
Change-Id: I4bf639bf560557130bf98e8cfb75f996fac416f1
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
3c9f519f898f8fc809550199ea823c0225c682a8 09-Dec-2010 Amith Yamasani <yamasani@google.com> Move the breadcrumbs to the right pane.

Bug: 3236568
ragmentBreadCrumbs.java
5a242ec2cf54e1bda69c2451304181ef1bc3e872 08-Dec-2010 Adam Cohen <adamcohen@google.com> Added some pieces for Wallpaper previews

Change-Id: I48cd80108e5a555a1ca6180e29f67a87e05e9683
allpaperManager.java
9d0718042f7c0a50d825c621f82ce9a92071f07a 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issues #3257701 and #3267312

3257701 Preference headers have duplicated "title" and "summary" if
title is not loaded from a resource
3267312 Fragment.onConfigurationChanged doesn't get called

Change-Id: I76e346ba88aa632ebb9aa413a2ce2645ebf357cd
ctivity.java
ragmentManager.java
0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Rework activity lifecycle so onSaveInstanceState() is after onPause().

The goal is to fix a bunch of fragment-related bugs caused by various
things trying to do fragment transactions after onPause()... which
currently throws an exception, since this is after the activity's state
has been saved so the new fragment state can be lost.

The basic change is relatively simple -- we now consider processes
hosting paused or stopping activities to be unkillable, and the client
code now does the onSaveInstanceState() as part of stopping the
activity.

For compatibility, if an app's targetSdkVersion is < HONEYCOMB, the
client side will still call onSaveInstanceState() prior to onPause()
and just hold on to that state until it needs to report it in once
being stopped.

Also included here is a change to generate thumbnails by taking
screenshots. The code for generating thumbnails by re-rendering
the view hierarchy is thus removed.

Change-Id: Iac1191646bd3cadbfe65779297795f22edf7e74a
ctivity.java
ctivityManagerNative.java
ctivityThread.java
ActivityManager.java
ocalActivityManager.java
50f34d14f6dd3411fdbdb6a7b8b285c2b8fdbf5c 04-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Adding DatePciker widget based on the Calednar team code. Updated DatePciker and DatePickerDialog as the second part of the Time/Date pciker refresh feature.

Change-Id: Id32c614bcd799463ca33bf08fb7d5cf44f8326a6
atePickerDialog.java
4cd50b8d76e08d75df1a2e9d4902bcdc880bd1c1 02-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> Make getSharedPreference() async, blocking on first access.

Bug: 3177046
Change-Id: Ibc36a1e196afd39c4f9da513a2bf4ba9e2c72177
ontextImpl.java
haredPreferencesImpl.java
cf0357639e952a87f0d535c82691919af81f058b 06-Dec-2010 Adam Powell <adamp@google.com> Clean up button bar styles

Change-Id: I65b6600f72b92db024f83b63d3ea91abc1cbb96c
ctionBar.java
2ee1856f814c4246f1b56db21693432442a70d94 06-Dec-2010 Daniel Sandler <dsandler@google.com> Merge "Hide navigation buttons and clock on lockscreen."
110988c8b70f4ab089b179b7966497d508506263 03-Dec-2010 Andy Stadler <stadler@google.com> Fix notification/builder defaults

* Builder wasn't setting mAudioStreamType to its non-zero default
* Clean up warnings (imports, unused variables, overrides)

Bug: 3250299
Change-Id: I019f54a0d6c97e71681d24144e784fa4b4737f7e
otification.java
3e8f5a2c1beb4b918856063880e05125946e4347 03-Dec-2010 Daniel Sandler <dsandler@google.com> Hide navigation buttons and clock on lockscreen.

(This introduces a StatusBarManager disable flag to ask the
status bar to hide just the clock, which might be useful in
other situations, such as clock/dock apps.)

Bug: 3130393
Change-Id: Ia08627508518e2ed3713ffbf856e4ec42952b3a8
tatusBarManager.java
9f3bdfe3eb04723efa07a2d0e6a7709da1191fa5 13-Oct-2010 Jeff Brown <jeffbrown@google.com> Add method for sending wallpaper commands directly to an engine.

This enables the livewallpaper preview activity to send tap commands to the
wallpaper so that the preview is more interactive.

Also add a command for sending secondary pointer taps for multitouch
enabled wallpapers.

Change-Id: I9fa10cc47d92dfa9f1a1208aba44c66943eee3ec
allpaperManager.java
968ec938399033d280b1648123104ac567f2a093 02-Dec-2010 Amith Yamasani <yamasani@google.com> Use SearchView in SearchDialog for legacy apps using the old model.

Bug: 3140925

Removed all the code from SearchDialog that is already in SearchView
and moved more stuff into SearchView.

SearchDialog layout changed to be more like a Holo.Light themed action mode.
Search field is right justified and limited to 500dip.

Zero query dropdown added to SearchView (causing some problems with Gmail,
but that may be an existing issue that's only now showing up due to this change)

Holo.Light search views assets still need to be updated, as the contrast is too low.
earchDialog.java
uggestionsAdapter.java
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
ragmentBreadCrumbs.java
049dd3d4a4869e0c65d370e2538fcfb55bacef52 02-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3248786 - silly monkeys.

Change-Id: I41306cae06a7b4fd3852e0760ae668c8d6eacc5d
ctivity.java
30c9bd89556137157b2f686637ece961454ccabe 02-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3189564: New API to create an activity.

Change-Id: I7aef83324d653130eb3b2a148ba089d7347e6ba6
ctivity.java
ctivityThread.java
8515ee846bd76aee86ec5ddfcc4dd1e626dd999c 30-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3240444 - add OnMenuVisibilityListener for action bar.

Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
ctionBar.java
ctivity.java
ialog.java
7e5cd7968356ea111988a372095e352d76476994 01-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> am 981a72a1: Merge "[don\'t auto-merge] Don\'t re-read SharedPreferences unnecessarily." into gingerbread

* commit '981a72a1506f7e6e42747b9aa0be2001795c6619':
[don't auto-merge] Don't re-read SharedPreferences unnecessarily.
d2bbaaf2948c362e82aa9f1c8e02a6092235c021 30-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> [don't auto-merge] Don't re-read SharedPreferences unnecessarily.

Bug: 3211034
Bug: 3216290
Change-Id: Idd5cc25965d400f20122372ca1cf47d4703dd87c
ontextImpl.java
206316a61f904ea0a6b106137dd7715a2c246d4c 19-Nov-2010 Svetoslav Ganov <svetoslavganov@google.com> New Number picker widget

Change-Id: I834e725b58682e7a48cc3f3302c93c57b35d4e27
imePickerDialog.java
00e40171892c73295b6e7221ed83126731230b98 29-Nov-2010 Vasu Nori <vnori@google.com> Revert "Merge "print certain rows from downloads.db when bugreports are taken""

This reverts commit 34878787f06c07b5cf14879254ef9abccffa631b, reversing
changes made to 5a2755d0c9220b6bc52cb1262927e27dc3dce6c1.
ctivityThread.java
663f4f33e23551ef4047e39d0c3d645269e32c2a 24-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Misc ActivityManagerNative cleanup.

Change-Id: Ib1fba1a72d074a12b44cce64741071815cb680f3
ctivityManagerNative.java
994b0d2b7d5d6fc0dbe089859795ff2608a7c4f9 24-Nov-2010 Vasu Nori <vnori@google.com> Merge "changes to support Change-Id: I572fdfd6d34dbb5a0577c6cf14664b6f2d5700b4"
34878787f06c07b5cf14879254ef9abccffa631b 23-Nov-2010 Vasu Nori <vnori@google.com> Merge "print certain rows from downloads.db when bugreports are taken"
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
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ontextImpl.java
ActivityManager.java
nstrumentation.java
endingIntent.java
8da7a4e3451a41808972bfec0af0740e999d9c8a 18-Nov-2010 Vasu Nori <vnori@google.com> changes to support Change-Id: I572fdfd6d34dbb5a0577c6cf14664b6f2d5700b4

1. add new column constants for : COLUMN_last_updatesrc
2. send downloadid in the uri wherever possible.
Change-Id: I49a18506060bf292a0750790042e94b0a35ea9bf
ownloadManager.java
eca0f6877d5e6624c181cecec47b62500ce686b9 23-Nov-2010 Joe Onorato <joeo@google.com> Merge "Add a better notification test and clean up the flag handling in the notification builder."
8d0b655c496e9125fc8d289c4e5bc9a78297ba3d 23-Nov-2010 Joe Onorato <joeo@google.com> Add a better notification test and clean up the flag handling in the notification builder.

Change-Id: I9354ed2c2cda690f53e5f43ad60943b63b02e7d4
otification.java
4e256eae3ca61388386dea22497b66df93e9cac9 22-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am c8454a85: am b2b0db2d: Merge "SearchDialog: Fix for NullpointerException while using Suggestions in Browser"

* commit 'c8454a851f26b78de77c0f6b1aa746ce3e2517f1':
SearchDialog: Fix for NullpointerException while using Suggestions in Browser
c8454a851f26b78de77c0f6b1aa746ce3e2517f1 22-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am b2b0db2d: Merge "SearchDialog: Fix for NullpointerException while using Suggestions in Browser"

* commit 'b2b0db2d5c89ae8824a4cb5d7944bae3a1dc8bf4':
SearchDialog: Fix for NullpointerException while using Suggestions in Browser
624002b0d5b5bd812ca457fdfde0ead2b908eb7a 22-Nov-2010 Vasu Nori <vnori@google.com> print certain rows from downloads.db when bugreports are taken

when downloads fail/get stuck, we need to look at the database state
for those downloads. and when the users report such problems, it is
a royal pain not to have that info and most users don't seem to bother
sending database dumps because it is a bit of work.

so lets just dump info about downloads that failed or
downloads from GSF (OTAs, for example)

helps debugging. there is STOP ship comment to not dump data once
HC is released.

Change-Id: Id1254982fd82b4c55f1816a2491f00966840f024
ctivityThread.java
b00d41acd6bbef4fbdab17320b48e40258732465 22-Nov-2010 Deepika Sai Amuri <damuri@codeaurora.org> SearchDialog: Fix for NullpointerException while using Suggestions in
Browser

Change-Id: Ic208ae51e4f7678363ea6d7de9db97707713bf6d
earchDialog.java
52f80cd36f406725e85a1825741a45c69de3d898 22-Nov-2010 Joe Onorato <joeo@google.com> The icon sticks out of the ticker.

The ticker still needs to show up over the status bar, which will take a bit of
window manager work, so it's just out of position for now.

Change-Id: Ib5781925db63a22d9352a7b5017a36eec3229395
otification.java
561d3858bb9409b999a19f7ba93f0b12e1db835f 21-Nov-2010 Joe Onorato <joeo@google.com> The large icon for notifications.

Change-Id: I8537c602b5b5fca03be8980295bfa28330543669
otification.java
8595a3dd9a6feff70f8ddbad924d79b591d611e4 20-Nov-2010 Joe Onorato <joeo@google.com> Show the number in the expanded notification instead of in the bar.

Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
otification.java
46439cec0eb0da4d0f853f2d8712d0c00c98475b 19-Nov-2010 Joe Onorato <joeo@google.com> Update the look of the notifications. Includes adding a new Notification.Builder class.

Change-Id: I7c57b81c45defe77d6f3d22472e9cf8432bbed03
otification.java
a3a1f591098e6604ee26da48a0d5b9b91a4f332c 20-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Don't re-read SharedPreferences unnecessarily."
5913630ec9686f4640a90b6872318e11fb5d9120 20-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Don't re-read SharedPreferences unnecessarily.

Previously reads were only cached once a write occurred because
loading didn't set the stat metadata, thus the
sp.hasFileChangedUnexpectedly() check always fired on reading.

Now the initial read populates the stat info, so getSharedPreference()
repeatedly bypasses reading from disk, even wtihout writes.

This was probably a regression from apply() being added in
Gingerbread.

Bug: 3211034
Change-Id: Ifa0bbb27c53a4099544950a4f822fab1fc23a47d
ontextImpl.java
haredPreferencesImpl.java
1f35d487ba1a5208e66bc960f35f6e1d874fbd1e 20-Nov-2010 Andy Stadler <stadler@google.com> Fixes to DevicePolicyManager.setPasswordExpirationTimeout

* Fix permissions problem in DevicePolicyManager
* Allow short timeouts (primarily for testing)
* Remove unused debugging code

Bug: 3212583
Change-Id: I3770b1c6f090363e8e8d65db92839cd53de05c45
dmin/DevicePolicyManager.java
880119bf43d738ca632b5d3861eb52d655c1c0fc 19-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement issue #2367442: Please add API for manipulating installer
package names

Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
pplicationPackageManager.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
nstrumentation.java
32555f347974711aac1f0c9acc0f06e8676d9362 17-Nov-2010 Adam Powell <adamp@google.com> Add resource ID variants of ActionBar tab setters

Bugs 3204153 and 2901235

Change-Id: Ib430f96da77f8e7647b22d190243a2fcd766d842
ctionBar.java
4f3c25f3175d3ef08577fd0b08c65772479ffecd 17-Nov-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3202866: system server crash"
d9b3b7e8e1d8c919c3e5f5851daa80a2651ea7d1 17-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3202866: system server crash

Change-Id: Ied92164bea70f6cb8afe2c1c6ff4fc3836a209ab
ragmentManager.java
0de1ed5bdf6f9603673632fa880dccd3b8ca1f97 17-Nov-2010 Chris Tate <ctate@google.com> Merge "Permission fix: don't require BACKUP perm for self-restores"
6e2b2a660ebc2f690b341da6e83d2cd2af99ebeb 17-Nov-2010 Vasu Nori <vnori@google.com> return file uri from downloadmanager instead of content uri for public downloads

also add another public method to return mimetype for the given downloaded file
change is related to bug:3198355

Change-Id: I90bae443eec36968e0d533d9b07a514df369ac29
ownloadManager.java
44ab8453e1c4c46790f792a46d026fa1017d8cfe 17-Nov-2010 Chris Tate <ctate@google.com> Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

Change-Id: Ibc9d652323f2da03727d850f991b4096af6520d2
ackup/BackupManager.java
ackup/IBackupManager.aidl
ef704447689cb991049d31e67be41e66e8a44b6d 16-Nov-2010 Adam Powell <adamp@google.com> Improve docs around ActionBar as noted in bug 3111444.

Rename method that was missed in previous ActionBar
refactoring. Deprecated previous version for compatibility for apps in
development.

Change-Id: I2c466aed8ed620aec5056026257e131fadf8843e
ctionBar.java
3a57fb9e9c4f205ca6bd4f036b3080f92588d16d 16-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3191573: PreferenceFragment.onActivityResult cannot
launch a new fragment on the same call.

There were some problems with the API design where you could do
things in such a way that a back stack entry that was not at the
top would get popped. Ouch. Hopefully this change prevents that
from being able to happen.

Change-Id: I8cbc952e12ddd231ff6c84b6e9bbf5125f449f04
ctivity.java
ragmentManager.java
debf3bed9ea913ac55c80e1f9f7f33217054a943 16-Nov-2010 Adam Powell <adamp@google.com> Fix bug 2948913 - provide lifecycle notifications for action modes

Change-Id: I432e29a7bddb18bc32dfbe21a8ecd7d83158e3a0
ctivity.java
ialog.java
98f030742c2889a0906226bd7eea914770b4e13b 16-Nov-2010 Vasu Nori <vnori@google.com> another bug introduced by some previous refactoring CL

bug:3197501
Change-Id: I29342b111ef25c75129b095acee307c5d79f1692
ownloadManager.java
e69924f0d0d25ae5492aadc252c6b7ab42f0aee7 15-Nov-2010 Vasu Nori <vnori@google.com> map _data column to local_filename column. bug:3197501

this bug is caused by Change-Id: Ief1693785f0484c1b434fb41a68693f9aff96492

Change-Id: Id654322d587968f50aecc7d965b8d7a8d78ce50d
ownloadManager.java
9f07da18e4d97c2a6cc8a424a58bb22e4c1e6525 15-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Disable CloseGuard early. (it defaults to spammy otherwise)"
e139bc944c7c052b8a877a3abdf3925246c87e25 15-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Clean up, de-dup, and speed up ContextImpl getSystemService()"
4d9e6d2bc21292619c48818d313112a2ec65ad52 15-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Disable CloseGuard early. (it defaults to spammy otherwise)

We already selectively enable it later when desired.

Change-Id: Ic428f13a57a2b4340ce343e73c32413b64fcd1af
ctivityThread.java
224ba0cd065075718947844b117c9fe50a2d9993 12-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Clean up, de-dup, and speed up ContextImpl getSystemService()

Bug: 3191436
Change-Id: I343adc016e02d0414b2d48a14e5e62a5cccb7899
ontextImpl.java
6af97e1c20df4d7010fafd7059c95d9b4113e4a6 12-Nov-2010 Adam Powell <adamp@google.com> Revised assets for progress bars and indeterminate progress spinners.

Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
rogressDialog.java
e16c43bc593c9df411a511494a001a1701d95c03 07-Nov-2010 Vasu Nori <vnori@google.com> remove unnecessary code from DownloadManager

Change-Id: Ief1693785f0484c1b434fb41a68693f9aff96492
ownloadManager.java
95b831be6b2e9a71d2d78bf3cf2f648014d5d0da 12-Nov-2010 Alon Albert <aalbert@google.com> Merge "Improve logging"
bdd19bc338286e1042f59808545665a061e73ffc 11-Nov-2010 Dianne Hackborn <hackbod@google.com> Add Theme.Holo.DialogWhenLarge

This theme gives you a dialog look when running on a large
or xlarge screen, otherwise a regular full-screen activity.

Also some new Fragment convenience APIs.

Change-Id: I3d97928ffaa4f3bdfd0cc5daf8823f9235c4ba68
ragment.java
a4e28d181942018ba8759989799a28fa88764ce3 09-Nov-2010 Jim Miller <jaggies@google.com> Add password expiration support to DevicePolicyManager.

Change-Id: Ib2629ec547c123ac489d7f4cbd4e0a1d4aa07620
dmin/DeviceAdminInfo.java
dmin/DeviceAdminReceiver.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
3fa51e3430e3bf902ae4f2d72dfb956103b6bd2d 11-Nov-2010 Alon Albert <aalbert@google.com> Improve logging

Change-Id: Ia855b1a45a3abbc1a87233462f19b330b72d30b9
pplicationPackageManager.java
ec4d82046bcdaa6ea1d43601c9d0673444f3e3bf 11-Nov-2010 Jim Shuma <jshuma@google.com> Merge "Fix summary for FragmentTransaction.show()"
390dae1a8b8c2da6a24f3246c8c277645bcc75dc 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Move ApplicationPackageManager out of ContextImpl.java

Change-Id: I706bce3fc4a5c7e6ee351d677899a01ac222960c
ctivityThread.java
pplicationPackageManager.java
ontextImpl.java
d3da44032084b6dd280487280553dcdbd7933e3e 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Move SharedPreferencesImpl out of ContextImpl.java

Change-Id: I3a58ec4c9501e906c133e841b5c5ec6bced04a02
ontextImpl.java
haredPreferencesImpl.java
baa1553c8d125a55956d1a8b2966ccd100673179 10-Nov-2010 Jim Shuma <jshuma@google.com> Fix summary for FragmentTransaction.show()

An apparent copy-paste left out a change that should have
been made in the method summary.

Change-Id: I158a30462fadcf617240047960e1b187b8210f6c
ragmentTransaction.java
624d50f00dc3d672d676a2fbb405c61dfc875b28 09-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Don't warn on reading from disk during initial class loading.

I'm going through the stacks that I filter out from the StrictMode
reports and making sure the devices don't upload them to begin with
when they're obviously legit and unavoidable.

Change-Id: If87b3182b12140f5ddbe52fed059b592b2cc178c
oadedApk.java
6908cd154c5a2ed2e3b21d40f51952d45be69184 09-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix animations to use correct interpolator.

Also some fragment fixes.

Change-Id: I3906199e541a86379d07c8a4e4d5f9e99830c44a
ialogFragment.java
ragmentManager.java
3915bb845b032dc184dba5e60970b803390ca3ed 05-Nov-2010 Jeff Brown <jeffbrown@google.com> Tell system server whether the app handled input events.

Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
ativeActivity.java
5b59e02eb542f016866985945859b033e94f9f0b 08-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: now in more system server threads."
ab36acb39941ce981dddda9f9cf4d2d23a56fd26 05-Nov-2010 Dianne Hackborn <hackbod@google.com> Fixe some stuff.

Addresses these bugs:

3061847 - With no headers, PreferenceActivity crashes
2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml()
3159155 - IllegalStateException:"Can not perform this action after
onSaveInstanceState" while dismissing a DialogFragment
3155995 - PopupWindow.showAtLocation does not respect LayoutParams

Also tweak the new fragment APIs to use abstract classes instead of
interfaces as base classes.

Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
ackStackRecord.java
ialogFragment.java
ragmentManager.java
ragmentTransaction.java
oaderManager.java
oaderManagingFragment.java
ec062f63a2f5fb49f825544da348e594dbf5bf3c 03-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: now in more system server threads.

Who knew there were so many Loopers in the system server?

This adds dropbox logging for the activity manager thread, policy
thread, and window manager thread.

The goal's to catch more stuttering.

Change-Id: I999a6ff4a955f0ef549b12a38796b843ade5fe66
ontextImpl.java
1cde3fbf8f0c6cf712ce4abb0d11c0de792b470a 05-Nov-2010 Vasu Nori <vnori@google.com> address couple of review comments

by reviewers on previous CLs

Change-Id: Ifc4529b367651f68fbb4117e449c70bfd9fae462
ownloadManager.java
63cf0279d73937f38def42eeb0ef8278c926e448 05-Nov-2010 Vasu Nori <vnori@google.com> Merge "add API to return Uri for the given downloaded file id & get mimetype"
5be894e636522addc40dad3b631f0249e6cc25cf 03-Nov-2010 Vasu Nori <vnori@google.com> add API to return Uri for the given downloaded file id & get mimetype

Change-Id: I1f5dd734e394db0056579a3a0c26862fee27981e
ownloadManager.java
03595d01188d88c169e8c9dd51b357fd545e69cc 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Tell each VM to flush their DNS cache.

bug:3095357
Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
53e59add93078bc814571ff6108f661032255881 04-Nov-2010 Amith Yamasani <yamasani@google.com> Merge "For extra large devices, use a dialog style for LauncherActivity."
0c24a5514c1ff143a223720a090b19a86a75945f 04-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3156280 - Fix several issues with tab navigation in action bars.

Add the ability to restrict a FragmentTransaction's ability to be
added to the back stack. (It doesn't make sense for tabs or other
scenarios to allow this.)

Change-Id: I8fa2edb5f35c365e2483010ad13eb9993f5e6570
ctionBar.java
ackStackRecord.java
ragmentTransaction.java
41727a4592bde9a9c7207258ffcc2105c1d90ab5 03-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am f3a6b901: am 9df48a03: Merge "NotificationManager: droiddoc documentation improvements"

* commit 'f3a6b901917b1609c6f1901bb36deb07a58fd20d':
NotificationManager: droiddoc documentation improvements
74bb355736953345c9402bf5368768d97a28129b 03-Nov-2010 Amith Yamasani <yamasani@google.com> For extra large devices, use a dialog style for LauncherActivity.

This is used by Settings for shortcut selection.

Bug: 3154864
auncherActivity.java
81b8944131946e451b31665652de8cc71d81ea07 03-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3093591 - add richer control over default tab selection in ActionBar

Added overloads to ActionBar#addTab with control over whether the added tab
will become selected or not. Old versions implemented in terms of the new.

Change-Id: I810c64652bb7e755b81151ce8a2c765266d78a66
ctionBar.java
f3a6b901917b1609c6f1901bb36deb07a58fd20d 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am 9df48a03: Merge "NotificationManager: droiddoc documentation improvements"

* commit '9df48a0305818122298a86ae9949f6688814928b':
NotificationManager: droiddoc documentation improvements
8eb2e244f9b14d946ee587d0b673b866865026c0 01-Nov-2010 Dianne Hackborn <hackbod@google.com> Various PreferenceActivity and related improvement.

This is all about making the preferences implementation better.

Well, mostly all about that.

Change-Id: I8efa98cb5680f3ccfa3ed694a1586de3fb3a9e11
ragment.java
ragmentBreadCrumbs.java
ragmentManager.java
71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b 28-Oct-2010 Vasu Nori <vnori@google.com> add NOTIFICATION_CLICK_ constants to DownloadManager

DownloadReceive in packages/providers/Downloadproviders sends intents
when notification messages are clicked on.
When using public API of DM, added code to include download entry ids
to the above intents. The constants added here support that code.
intents when

Change-Id: Ibe53ccd9934c73175459e42e3d417eee69ae6735
ownloadManager.java
4f405ecee998e704023fcd6b1f67aae4f0b5979c 01-Nov-2010 Dianne Hackborn <hackbod@google.com> am ce0f9e4e: am 42679cea: Merge "Fix issue #3152415: Various confusions in docs about Application" into gingerbread

* commit 'ce0f9e4e4f38ab2a674f3ec22c1749eddbf765ba':
Fix issue #3152415: Various confusions in docs about Application
ce0f9e4e4f38ab2a674f3ec22c1749eddbf765ba 01-Nov-2010 Dianne Hackborn <hackbod@google.com> am 42679cea: Merge "Fix issue #3152415: Various confusions in docs about Application" into gingerbread

* commit '42679cea5d8bc4b235b290b97805b86c8c7cbca5':
Fix issue #3152415: Various confusions in docs about Application
5ad7af6fc764f71765b134b8cd51787a7e78753a 01-Nov-2010 Ben Komalo <benkomalo@google.com> Minor Javadoc fix.

Change-Id: I4978e8a493f393390e05e7e6a0179854997e86ce
ctionBar.java
7025d8e4b96f14a92f9bb20902732f43d1c93e7b 01-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3152415: Various confusions in docs about Application

Change-Id: Ie1b480ed7a47a3eb6ffff76bef0dcd7b2b845e83
pplication.java
c3cb9f2e12a6db1bddce0c77f8c626bf1b5b1ffd 30-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: annotate violations with the Broadcast Intent's action, if any."
84aaec86f5f0cc24a9bdd936597601eadf2247dd 30-Oct-2010 Joe Onorato <joeo@google.com> Merge "use the holo theme in more places for >= honeycomb apps"
9ab978713ce86fdaefed2407f4f3c998ab0e3178 27-Oct-2010 Adam Powell <adamp@google.com> Action bar API updates - new display options

Change-Id: I55e56cd7aafa53994990079e88ef85e4eb1a0b3f
ctionBar.java
bfb191998eba2ebc710ff9eb59480b10909ba4c9 30-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: annotate violations with the Broadcast Intent's action, if any.

Change-Id: If36ab776bb95054a109b5475c6be041c75c7e0af
ctivityThread.java
170e548ac839b268beee208e95fc497b34fde1ba 29-Oct-2010 Joe Onorato <joeo@google.com> use the holo theme in more places for >= honeycomb apps

Change-Id: Iad2bd65eaf203df458ea689144538b7a51beb4b3
ontextImpl.java
b6e18412af35bf724298796eed65ef1fbbe1925e 28-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Make network usage on the main thread fatal (Honeycomb+)

For apps targetting Honeycomb SDK or above, make network usage on the
main thread (aka event thread, Looper thread, UI thread) be fatal.

If an app is targetting a previous SDK version, they're grandfathered
into the older (lack of) rules.

Bug: 786847
Change-Id: Ia4ae77b8369567ee526c96b930d523bc722b0bc9
ctivityThread.java
5164246d7e47b9c995ca1e1587f3056eb777f60b 28-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix setting of class loader.

Also add Bundle API to retrieve its class loader because... well,
why not.

Change-Id: Ie939f6a2ae13974e5a05eb5bd3b28f350d8a8565
ragment.java
ragmentManager.java
4c6e5dfa1c38f32843d209258388b97d4e32314f 27-Oct-2010 Vasu Nori <vnori@google.com> make notifications appear during downloading AND after completion

bug:3132773
Change-Id: I012859fa86055f322069d5120b110c4c8887fb61
ownloadManager.java
e829fef63957a23b61cdb01bb692a17a041ff2dc 27-Oct-2010 Dianne Hackborn <hackbod@google.com> Add facility for broadcasts receives to do work asynchronously.

You can now call goAsync() and move your work to a background thread.
If you are that kind of receiver. You weirdo.

Also allows SharedPreferences.apply() to be committed off the main
thread after returning from onReceive().

Change-Id: I27f975910e28f230ababcaeb551eb9a78ec4fc76
ctivityThread.java
oadedApk.java
ueuedWork.java
e71df8fa166eb2de7fcdecc14d958d3e3b796531 28-Oct-2010 Dianne Hackborn <hackbod@google.com> am 96abb48d: am aa93bcd6: Fix issue #3138926: App\'s preferences can be lost after onPause()
96abb48dff22a54de4ddcdd427d8e5a261d0facc 27-Oct-2010 Dianne Hackborn <hackbod@google.com> am aa93bcd6: Fix issue #3138926: App\'s preferences can be lost after onPause()
aa93bcd62482719c146a411008e1eac94135b6a4 27-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3138926: App's preferences can be lost after onPause()

Change-Id: Icea3d37fab5e47c89c5cbc0adff7bbec898fa93e
ctivity.java
ctivityThread.java
fb3cffeb35368da22f99b85d45039c4e6e471c06 26-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3130426: Finsky crash in switching from window carousel

Need to note that we no longer have saved state before delivering
results or new intents to an activity.

Also do some work on loaders to prevent apps from making fragment
changes as a result of receiving loader data. This makes apps
consistent crash in a case that they would previously sometimes
crash (if they got the loader data after onPause).

Change-Id: I46e9e46d0aa05d9d7d6a275a2a488a18a20a5747
ctivity.java
ctivityThread.java
ragment.java
ragmentManager.java
oaderManager.java
6ab84eeb0fad723d6e3e1e9fc63a4896a5905248 25-Oct-2010 Dianne Hackborn <hackbod@google.com> am c2f78020: am 23656899: Merge "Fix issue #3126018: No way to specify NativeActivity\'s native method" into gingerbread

Merge commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e'

* commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e':
Fix issue #3126018: No way to specify NativeActivity's native method
c2f78020d3887539fc90230d96465e4b1dc84d8e 25-Oct-2010 Dianne Hackborn <hackbod@google.com> am 23656899: Merge "Fix issue #3126018: No way to specify NativeActivity\'s native method" into gingerbread

Merge commit '236568999411214ef440cabc6d12e3bf5f19d8f4' into gingerbread-plus-aosp

* commit '236568999411214ef440cabc6d12e3bf5f19d8f4':
Fix issue #3126018: No way to specify NativeActivity's native method
e21d91c694e828e6285cc50e79b2a6be6e8c692b 24-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3126018: No way to specify NativeActivity's native method

Change-Id: I59de6a543e7f7f45d963a905829a3f56f32bf8cf
ativeActivity.java
e6634981f12e1d218eaf61c6488af3d8c9f0d202 22-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 9c7489f8 to master

Change-Id: I1d8fd1146925f48ad690c89230d24dc8694703f4
9c7489f8bdcd08990c44250cbad64399badc72be 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am 38993d8d: Merge "Fix issue #3122240: Expose xlarge in GB." into gingerbread
5383f502e4479d117c89666fb2ee1ca53f3d27cf 22-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3122240: Expose xlarge in GB.

Plus some other small API cleanup.

Change-Id: I1a3c60f510f99224cccac9cc3f838f04141064f8
ctivityManager.java
b37cc33030b0ecfd5a7719387c2e00a1a6262d49 21-Oct-2010 Dianne Hackborn <hackbod@google.com> am b5018723: am 74b1ed32: Fix issue #3113219: NativeActivity using wrong lib path with Java code

Merge commit 'b50187237c1bdbb805b67bbc35002b243b8a86fe'

* commit 'b50187237c1bdbb805b67bbc35002b243b8a86fe':
Fix issue #3113219: NativeActivity using wrong lib path with Java code
b50187237c1bdbb805b67bbc35002b243b8a86fe 20-Oct-2010 Dianne Hackborn <hackbod@google.com> am 74b1ed32: Fix issue #3113219: NativeActivity using wrong lib path with Java code

Merge commit '74b1ed3231b8cafcf4e5cb3f03d794acd5080004' into gingerbread-plus-aosp

* commit '74b1ed3231b8cafcf4e5cb3f03d794acd5080004':
Fix issue #3113219: NativeActivity using wrong lib path with Java code
ef7e33b9b8647c8417e472986f95a71cb75dde80 20-Oct-2010 Vasu Nori <vnori@google.com> remove duplicate code

Change-Id: I60faf921de4b9add619e2450e0a19a111ede7984
ownloadManager.java
74b1ed3231b8cafcf4e5cb3f03d794acd5080004 20-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3113219: NativeActivity using wrong lib path with Java code

Use the same path whether the .apk has dalvik code or not.

Change-Id: I66397d7f7e328d5580565ceb17a941afac0e0f8b
ativeActivity.java
548f76f135f8636ce9cf56fe41f072fd49aa4e39 20-Oct-2010 Adam Powell <adamp@google.com> Fix bug 3113015 - ProgressDialogs using wrong theme.

Change-Id: I161e7feeb2e1a712dff4372417c20913c1dba661
rogressDialog.java
7f9b90542e05b350d14bd63c16446c8ce2baf407 20-Oct-2010 Adam Powell <adamp@google.com> Add ActionBar tab callback method onTabReselected

onTabReselected is called if an already-selected tab is chosen again.
For many apps this will be a no-op, but some may treat it as a signal
to return to the top level of a given navigation category.

Change-Id: Ic51fbe477b979562f2d848c4070b2016b217a90f
ctionBar.java
fc94ddef2f8f56beebd848a73f434673d56631cb 19-Oct-2010 Adam Powell <adamp@google.com> New dialog assets. Cancelable AlertDialogs may now be canceled by tapping outside.

Change-Id: I061f09bd79a5f2b627fb0f01aba36f37449b849d
lertDialog.java
027610a76e67f39e3a435d68ec785a1cf09dcf9c 18-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 964eb438 to master

Change-Id: I0c54d6b88356d8734d7f51234b0114434414502e
875ecaa511ce36c8044ccdf48ee2a3e69dd633fe 18-Oct-2010 Dianne Hackborn <hackbod@google.com> am 13e46665: am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '13e46665ff69c1a37880762d7d611aacdf02dac7'

* commit '13e46665ff69c1a37880762d7d611aacdf02dac7':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
964eb4389bb62e4e9e7f65ef7b9307e052053679 17-Oct-2010 Dianne Hackborn <hackbod@google.com> am 42499170: Implement issue #3094621 and #3094609 - wipe sd card

Merge commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0' into gingerbread-plus-aosp

* commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0':
Implement issue #3094621 and #3094609 - wipe sd card
424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0 16-Oct-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3094621 and #3094609 - wipe sd card

3094621: add "wipe sd card" option to factory data reset
3094609: collapse unmount/format into one command

Also since we have decided that it is important to consider
the Crespo storage as internal storage, DevicePolicyManager
gets a new API to be able to wipe it. (No big deal, since
all of the work for this is now done in the implementation
of the new UI.)

Change-Id: I32a77c410f710a87dcdcbf6586c09bd2e48a8807
ctivityManager.java
dmin/DevicePolicyManager.java
13e46665ff69c1a37880762d7d611aacdf02dac7 16-Oct-2010 Dianne Hackborn <hackbod@google.com> am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '736f5ec476526f3431d81dec5fb695bdee27e21a' into gingerbread-plus-aosp

* commit '736f5ec476526f3431d81dec5fb695bdee27e21a':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
8bdf5935c0db4a66ab33a10b43398d2523cfa15d 15-Oct-2010 Dianne Hackborn <hackbod@google.com> Work on issue #3101415: Crespo apps seem to have their UID changed over time.

fsync!

Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c
ontextImpl.java
9ca6d71c52fcfab730b65bb01ff6bd47232c8599 15-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of c6bf3eaa to master

Change-Id: I6421faf52c160a81b03c63b91f1aedfe0f151cac
f36c6db108364dea89b1e3c27c0b15103e560d87 15-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>

Conflicts:

Android.mk
CleanSpec.mk
core/java/android/app/ContextImpl.java
ontextImpl.java
89edde3efad66063ff6108475976352c0c4e5fdb 14-Oct-2010 Adam Powell <adamp@google.com> Holo styling and metrics; holo spinners

Change-Id: Ib6d80e5e1a79b7a4ff208df8dbc097e7b9228d13
lertDialog.java
b97c34948e5fcb765f46d655bbf358d06ef89a67 13-Oct-2010 Peter Collingbourne <peter@pcc.me.uk> NotificationManager: droiddoc documentation improvements

Specifically, corrects and improves the overview and the documentation
for the NotificationManager.notify(String, int, Notification) method
to reflect the fact that the pair (tag, id) is used for notification
matching.

Change-Id: Ic088a56f457285523d90d296853685393b8c3412
otificationManager.java
c6bf3eaab40f90e4e4db4dea9fdca8740b00606a 14-Oct-2010 Vasu Nori <vnori@google.com> am 51679ca8: Merge "bug:3069735 in Download UI app, handle deletes correctly" into gingerbread

Merge commit '51679ca89293ef33275b9681018c09be3948bf1c' into gingerbread-plus-aosp

* commit '51679ca89293ef33275b9681018c09be3948bf1c':
bug:3069735 in Download UI app, handle deletes correctly
216fa22791889774b83977341632c4570dcec35d 13-Oct-2010 Vasu Nori <vnori@google.com> bug:3069735 in Download UI app, handle deletes correctly

gingerbread.
(for more detailed comments, please see the dependent CL
Change-Id: Ib90eb9e647f543312c865d3bbf9a06fb867a648b )

2 changes in this CL.
1. add 2 new columns to downloads table in downloads.db:
mediaprovider_uri = downloaded file's content_uri in mediaprovider db
deleted = flag is set to true if a file is to be deleted
2. download UI app shows only those files whose 'deleted' flag is not set

Change-Id: I47c5f72b0a0b354fac3abe3a97752130b8189794
ownloadManager.java
6066da89a464d2bd5f002f5e687d40876ed5ce21 13-Oct-2010 Nick Pelly <npelly@google.com> am 590b73bc: NFC API revision round 2.

Merge commit '590b73bc5b8e5f7b59bff1d9264a52388a5162e6' into gingerbread-plus-aosp

* commit '590b73bc5b8e5f7b59bff1d9264a52388a5162e6':
NFC API revision round 2.
ccb013ffac696df1cd1bfc528264e583d01c9ab5 13-Oct-2010 Adam Powell <adamp@google.com> Holo fixes and refinements

* Fix Holo.Light dialog text color for system-created dialogs
* Use the correct text anchor assets for selection mode
* Temp fix for small holo light button metrics

Change-Id: I974528418b69354961ea43abf8249c8caada8e17
lertDialog.java
590b73bc5b8e5f7b59bff1d9264a52388a5162e6 12-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>
ontextImpl.java
182e5cf105aa71effbdee15628f020214b54774c 12-Oct-2010 Vasu Nori <vnori@google.com> am a23964f9: am b8f7a483: Merge "bug:3082865 don\'t use IN to construct sql to delete downloads" into gingerbread

Merge commit 'a23964f9a1df7fb2f18e350fb4215933674f9991'

* commit 'a23964f9a1df7fb2f18e350fb4215933674f9991':
bug:3082865 don't use IN to construct sql to delete downloads
764437aa9e9af4990969ea5124115f3df7fb1ec1 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 4216c3c3: am a4682ed7: Merge "Minor SharedPreference clean-up." into gingerbread

Merge commit '4216c3c3f75c6bd7ffa9a9279961f9ea6aa57635'

* commit '4216c3c3f75c6bd7ffa9a9279961f9ea6aa57635':
Minor SharedPreference clean-up.
fae998c860e545e35fd3f4a821837409ee9bcb4e 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 7c08b70c to master

Change-Id: Ifef07cf23de35db545774d0dee327c2165f8b088
a23964f9a1df7fb2f18e350fb4215933674f9991 11-Oct-2010 Vasu Nori <vnori@google.com> am b8f7a483: Merge "bug:3082865 don\'t use IN to construct sql to delete downloads" into gingerbread

Merge commit 'b8f7a4831ac26d0447fd8a2982416b2627a286b5' into gingerbread-plus-aosp

* commit 'b8f7a4831ac26d0447fd8a2982416b2627a286b5':
bug:3082865 don't use IN to construct sql to delete downloads
e7be6bda2cd3f1e93f306e298a6a8c523a607373 10-Oct-2010 Vasu Nori <vnori@google.com> bug:3082865 don't use IN to construct sql to delete downloads

DownloadManager should not use IN clause when constructing
SQL to delete downloaded files Dowload app.
Lexer code in Download app doesn't know how to parse it.
Real fix is to fix Lexer.
But seriously real fix is to get rid of this complexity -
that I am planning for next version.

also, the following 2 are identical, in terms of SQL performance
WHERE _id IN (?, ?, ?)
WHERE (_id = ? OR _id = ? OR _id = ?)

Change-Id: Icca659a17c412247a193879e8d2f34e1b43ec9e5
ownloadManager.java
ee04af3ed40103bc1e3ed5f6ab9e0094d893bceb 08-Oct-2010 Doug Zongker <dougz@android.com> add a local filename column to download queries

Some users of the download API (eg system update) need to get the
actual local filename of a downloaded file, not just a content URI.

Change-Id: I877e2776e778c1712f654ba5c840bfe6ed3fe60f
ownloadManager.java
38051bc01878286afd6d163079dca20600c24d01 10-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 6a15f0d7: am 6275dbbe: Merge "Quiet unnecessary debug logging." into gingerbread

Merge commit '6a15f0d7c7ed74e086f4d3a7014ed724a2b18023'

* commit '6a15f0d7c7ed74e086f4d3a7014ed724a2b18023':
Quiet unnecessary debug logging.
d7dccd26115851c49c91db204f88db7a7973b2f6 09-Oct-2010 Dianne Hackborn <hackbod@google.com> am 55f1b0b8: am 9d6824cd: Merge "Make Activity.removeDialog() less strict." into gingerbread

Merge commit '55f1b0b82f0d9f6d43b9b2e246d9de0c810e7a7f'

* commit '55f1b0b82f0d9f6d43b9b2e246d9de0c810e7a7f':
Make Activity.removeDialog() less strict.
4216c3c3f75c6bd7ffa9a9279961f9ea6aa57635 09-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am a4682ed7: Merge "Minor SharedPreference clean-up." into gingerbread

Merge commit 'a4682ed7547e895605d102ab17fc5c134b4ab38f' into gingerbread-plus-aosp

* commit 'a4682ed7547e895605d102ab17fc5c134b4ab38f':
Minor SharedPreference clean-up.
9acdeb99c5102f89a9a73eb4d62e38e7ac86e01c 09-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Minor SharedPreference clean-up.

Make a member final, line up some comments, and also cache the
expected stat size, not just the mtime.

Change-Id: Ifcc37bd3ab99787280e506deb682200a16da512e
ontextImpl.java
7c08b70c960a9a6d9e59e854b88c0877fe33dc99 08-Oct-2010 Steve Howard <showard@google.com> am d8d60da6: Merge "Update DownloadManager API to support bulk actions." into gingerbread

Merge commit 'd8d60da616343b3520b666c385d0005db860be83' into gingerbread-plus-aosp

* commit 'd8d60da616343b3520b666c385d0005db860be83':
Update DownloadManager API to support bulk actions.
64c48b8842ec9f62a48fdd74b669728c5f2408a4 08-Oct-2010 Steve Howard <showard@google.com> Update DownloadManager API to support bulk actions.

This includes querying by ID, removing and restarting downloads (the
latter is not a public API). The methods all use varargs to support
this without undue syntactic pain.

Change-Id: I768005c539d2395cf26587d3a8c425cd01ad9cd2
ownloadManager.java
2fbf4de64f0ec5052201cea9519c44d5b1789a40 01-Oct-2010 Adam Powell <adamp@google.com> Holo theme progress and assets!

* Light and dark dialogs
* Checkboxes and radio buttons
* Toggle buttons

Warning! This is still a work in progress. This does not include final metrics.
Some assets (specifically dialogs) are currently misaligned.
lertDialog.java
ialog.java
a1b0d6966e45e847aa47cc35eac8ea4e624d6a99 08-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of efa4f7f8 to master

Change-Id: I00dff76594326a6f6e69515a9cba673602ed269d
6a15f0d7c7ed74e086f4d3a7014ed724a2b18023 07-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 6275dbbe: Merge "Quiet unnecessary debug logging." into gingerbread

Merge commit '6275dbbea8ad7bde984a362516654004e111dc67' into gingerbread-plus-aosp

* commit '6275dbbea8ad7bde984a362516654004e111dc67':
Quiet unnecessary debug logging.
90bc5ee02bd91c138f88180879c6ef748a578f47 07-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Quiet unnecessary debug logging.

Change-Id: I46d8aff5790db371d60b2066acbbdd55cfad8074
ontextImpl.java
55f1b0b82f0d9f6d43b9b2e246d9de0c810e7a7f 07-Oct-2010 Dianne Hackborn <hackbod@google.com> am 9d6824cd: Merge "Make Activity.removeDialog() less strict." into gingerbread

Merge commit '9d6824cd53960b4562ea3c55876b40ca21710050' into gingerbread-plus-aosp

* commit '9d6824cd53960b4562ea3c55876b40ca21710050':
Make Activity.removeDialog() less strict.
d2ce8bbb84607b1f456b9af00d8d7b84a4610a79 07-Oct-2010 Dianne Hackborn <hackbod@google.com> Make Activity.removeDialog() less strict.

It was extremely annoying not being able to do this.

Change-Id: I9a13b4fdd984a5e9d8f9ac49c7ede218c4481c2b
ctivity.java
c9d5b31f84f5c8b5db690491031369556ed7fee9 06-Oct-2010 Brian Carlstrom <bdc@google.com> Fix instance count to be long

Change-Id: I88b17c4ff17a04db6e931f9b25885bdf05d4453c
ctivityThread.java
c21550a8d1dfc9e5359fe994cb48049a0bd4c82c 06-Oct-2010 Brian Carlstrom <bdc@google.com> Adding android.os.Debug.countInstancesOfClass

- Debug.countInstancesOfClass is just a wrapper on
dalvik.system.VMDebug.countInstancesOfClass to avoid code from
depending on the dalvik classes directly

- Existing usages of VMDebug.countInstancesOfClass in ActivityThread
and ViewDebug are converted to the new Debug.countInstancesOfClass

- Existing use of OpenSSLSocketImpl.instanceCount, which is being
removed, is converted to Debug.countInstancesOfClass(OpenSSLSocketImpl.class)

Bug: 3015791
Change-Id: Iefa781292d5b82a63bad7254c913a09deb3b7888
ctivityThread.java
efa4f7f87d5009d7f69c8429b29938be1cf21584 06-Oct-2010 Dianne Hackborn <hackbod@google.com> am 4e6baf24: Merge "Fix issue #3001368: API REVIEW: android.app.Activity" into gingerbread

Merge commit '4e6baf2473e522e6d53afa01348c564148bfbad7' into gingerbread-plus-aosp

* commit '4e6baf2473e522e6d53afa01348c564148bfbad7':
Fix issue #3001368: API REVIEW: android.app.Activity
3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3001368: API REVIEW: android.app.Activity

Bye bye, lots of junk.

Change-Id: Idd72fc525851277362b2a1ff3bb0f7865fe655fd
ctivity.java
ctivityManagerNative.java
ActivityManager.java
0f8ee7439a0c0487b023f6b150ba0f9986a6cb15 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Merge "Implement permission granting in clipboard."
9ff82bf2b33513052500473d0d6d025a80dcecbf 05-Oct-2010 Chet Haase <chet@google.com> Adding next/prev to fragment animations and to PreferenceActivity

Adding a new concept of "next" and "previous" to fragment.s Previously, fragments would
either be placed onto or taken off of the stack, or would just replace the current
fragment. The new next/prev capability gives the ability to run a transition that is
specific to next/previous operations, such as navigating forward and backward in a list.
New next/prev animations may be associated with a fragment replace operation to get the
next/prev animations built into the system (next animates things up, prev animates them
down).

Change-Id: Ia9f3663bac009376420d845b396ac51b8e4d1647
ragmentManager.java
ragmentTransaction.java
90f4aafa336d9f2f07281ead3c846d323a710015 27-Sep-2010 Dianne Hackborn <hackbod@google.com> Implement permission granting in clipboard.

Change-Id: I9a7a949d1aaf4b3beabceaf807fb7d3b040e4ea8
ctivityManagerNative.java
ActivityManager.java
6486196c303c525b041b380e853e1d2135180239 01-Oct-2010 Steve Howard <showard@google.com> am e468a4bc: am 751b4731: Merge "A few additions to the download manager public API documentation" into gingerbread

Merge commit 'e468a4bc74f1b241b3de09ea99251a419e40c6d3'

* commit 'e468a4bc74f1b241b3de09ea99251a419e40c6d3':
A few additions to the download manager public API documentation
e468a4bc74f1b241b3de09ea99251a419e40c6d3 01-Oct-2010 Steve Howard <showard@google.com> am 751b4731: Merge "A few additions to the download manager public API documentation" into gingerbread

Merge commit '751b47313886264e1229ab67184c9771424be402' into gingerbread-plus-aosp

* commit '751b47313886264e1229ab67184c9771424be402':
A few additions to the download manager public API documentation
751b47313886264e1229ab67184c9771424be402 01-Oct-2010 Steve Howard <showard@google.com> Merge "A few additions to the download manager public API documentation" into gingerbread
dc71b9e4d67327065a992924a021cad4bc100fa2 01-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3eddb4 to master

Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
e10330fa285812dd5f63edae491a5e124f4cf284 01-Oct-2010 Steve Howard <showard@google.com> am efb8b427: am 4ba2817c: Merge "Avoid NPE when viewing failed legacy download with no local path" into gingerbread

Merge commit 'efb8b42789a291e38a7e837f64d18bcb511f65f9'

* commit 'efb8b42789a291e38a7e837f64d18bcb511f65f9':
Avoid NPE when viewing failed legacy download with no local path
6a3eddb469b282f7d904e5dbcb375ad44ada3ee3 01-Oct-2010 Dianne Hackborn <hackbod@google.com> am 0a69f597: Merge "Rub in a little \'ol log-b-gone." into gingerbread

Merge commit '0a69f597604254bc37721b135ab612eaacdd0cbd' into gingerbread-plus-aosp

* commit '0a69f597604254bc37721b135ab612eaacdd0cbd':
Rub in a little 'ol log-b-gone.
0a69f597604254bc37721b135ab612eaacdd0cbd 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Merge "Rub in a little 'ol log-b-gone." into gingerbread
610c4359e48a93f029376f5fa48d393ca8a50847 01-Oct-2010 Steve Howard <showard@google.com> A few additions to the download manager public API documentation

Change-Id: Icf831843e281d8eee9c1457273662121bb5a8609
ownloadManager.java
cef65eeb0315c3118bf8860d6f723cb49ff6bc52 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Rub in a little 'ol log-b-gone.

Mmmmmm... great fresh scent!

Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
ctivityThread.java
efb8b42789a291e38a7e837f64d18bcb511f65f9 01-Oct-2010 Steve Howard <showard@google.com> am 4ba2817c: Merge "Avoid NPE when viewing failed legacy download with no local path" into gingerbread

Merge commit '4ba2817c869d4ec6b518a57ea32cc3765b18b0db' into gingerbread-plus-aosp

* commit '4ba2817c869d4ec6b518a57ea32cc3765b18b0db':
Avoid NPE when viewing failed legacy download with no local path
825bdff3b8d8837af936eac3066b3f402c0c070b 30-Sep-2010 Steve Howard <showard@google.com> resolved conflicts for merge of 538c3fa3 to master

Change-Id: I9190ca078ffd8b51515e3d53ac5753c05110c014
538c3fa35fc67d07a19aa58f7b1f993e86da5e83 30-Sep-2010 Steve Howard <showard@google.com> am cdcc0a65: Merge "Have download manager give more details when downloads are paused" into gingerbread

Merge commit 'cdcc0a65fae7e649f0f07e396dbe0dd59ceffada' into gingerbread-plus-aosp

* commit 'cdcc0a65fae7e649f0f07e396dbe0dd59ceffada':
Have download manager give more details when downloads are paused
99047d7b6519f0a29b88a5f347a0e4179012f9d2 30-Sep-2010 Steve Howard <showard@google.com> Avoid NPE when viewing failed legacy download with no local path

Change-Id: I3e9d349959543f42afed67de9f6d299c268ab7ac
ownloadManager.java
3e8c1d3a467bab889de7f92379be1f43d9c2d81e 30-Sep-2010 Steve Howard <showard@google.com> Have download manager give more details when downloads are paused

This change introduces more detailed reporting of why downloads are paused in
the download manager.

First, it adds new, more detailed status constants in android.provider.Downloads
for when a download is paused, in place of the old catch-all
STATUS_RUNNING_PAUSED. I've eliminated some dead code there as well to ease the
change.

Second, in the public API, it changes COLUMN_ERROR_CODE to COLUMN_REASON, which
now reports useful info for STATUS_PAUSED in addition to STATUS_FAILED. It adds
some new PAUSED_* constants for reason values when a download is paused, and
adds code to generate these values appropriately.

Change-Id: Ie617d1c2c59357375e19466086923ace5e2fb122
ownloadManager.java
4715bd91f5949a1919156a5a5cb50f0cccda645e 29-Sep-2010 Nick Pelly <npelly@google.com> resolved conflicts for merge of f4c3b7e9 to master

Change-Id: Idcdc521144f3072058b2bb6cb383e42c852e64f4
f4c3b7e916b417fabb468ec0a565dc79cd7ba2b3 29-Sep-2010 Nick Pelly <npelly@google.com> am 038cabe0: NFC integration

Merge commit '038cabe0247ee46df62f9363f1a303bc5b9c1028' into gingerbread-plus-aosp

* commit '038cabe0247ee46df62f9363f1a303bc5b9c1028':
NFC integration
038cabe0247ee46df62f9363f1a303bc5b9c1028 24-Sep-2010 Nick Pelly <npelly@google.com> NFC integration

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Conflicts:

core/java/android/app/ApplicationContext.java
core/java/android/provider/Settings.java
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/res/AndroidManifest.xml
include/utils/Asset.h

Change-Id: I62c92f4c79f5ee65126c97602f6bc1c15794e573
Signed-off-by: Nick Pelly <npelly@google.com>
ontextImpl.java
d58429f9acdb33f05bdb233b7bba495de80cb336 28-Sep-2010 Steve Howard <showard@google.com> Manual merge: Move DownloadManager to android.app

Changing package at hackbod's request.

Change-Id: I867017b6a9f4684d30c6c5bd1b07f9cabecddb9f
ontextImpl.java
ownloadManager.java
c49c17314d4b7f36e50a5b01edd6d4b13b940366 29-Sep-2010 Adam Powell <adamp@google.com> Added AlertDialog.Builder#getContext

Change-Id: Ic3033a4eff67f507aa39dacfc4c8984a9ee142c1
lertDialog.java
ialog.java
9d9719c44ad05834b48542ea0fc4edbb4f59c311 28-Sep-2010 Steve Howard <showard@google.com> am 5bdb89d7: Merge "Move DownloadManager to android.app (DO NOT MERGE)" into gingerbread

Merge commit '5bdb89d7ac20d4d3e71660d7fe78002a63900399' into gingerbread-plus-aosp

* commit '5bdb89d7ac20d4d3e71660d7fe78002a63900399':
Move DownloadManager to android.app (DO NOT MERGE)
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
ctivityManagerNative.java
ctivityThread.java
ontextImpl.java
ActivityManager.java
31fd85f39b554e09b2e6c1c2ccf5c186859880fa 28-Sep-2010 Steve Howard <showard@google.com> Move DownloadManager to android.app (DO NOT MERGE)

Changing package at hackbod's request. I'll merge this manually, as
there's some additional master-only code that will be to be
simultaneously changed.

Change-Id: Ibb629ec1c31807fbee31e0193c6a941d04be0117
ontextImpl.java
ownloadManager.java
c63806d852a550d82bbe6cadff8a2139d78ed559 24-Sep-2010 Adam Powell <adamp@google.com> Holo themes and assets in progress

Change-Id: Ic10480dc1c771d0ccd10f1d4014c945480fd6c0d
lertDialog.java
ontextImpl.java
atePickerDialog.java
ialog.java
ialogFragment.java
rogressDialog.java
imePickerDialog.java
a8bce7c8acb3904eb69bf21276c0ca2635c76a20 27-Sep-2010 Dianne Hackborn <hackbod@google.com> am d8691d73: Merge "Allow all apps to call ContentResolver.getType()." into gingerbread

Merge commit 'd8691d73d158acd9ffc63748126e822afd656707' into gingerbread-plus-aosp

* commit 'd8691d73d158acd9ffc63748126e822afd656707':
Allow all apps to call ContentResolver.getType().
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
ctivityManagerNative.java
ctivityThread.java
ontextImpl.java
ActivityManager.java
091e1b8a86d34d2d51d2a5f7ae3cd903925fa5bf 27-Sep-2010 Joe Onorato <joeo@android.com> Implement disable() on the status bar.

This includes adding the new DISABLE_NAVIGATION flag.

Bug: 3000770
Change-Id: I6d1c3586198e13e06b5d26e8b23a9495dc4ba02e
tatusBarManager.java
846df9f5171c4ef32f038cca651b6b9c0b6c3083 24-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 8952a448 to master

Change-Id: I9c752a5d10ae8d8e5ead1243b6abd4795204fc0b
8952a4488e81205e3013b6b456dec503e05eebd0 24-Sep-2010 Dianne Hackborn <hackbod@google.com> am 287952c3: Fix issue #3022508: Crash during media scan

Merge commit '287952c35e148811c106bc0f5036eabf20f71562' into gingerbread-plus-aosp

* commit '287952c35e148811c106bc0f5036eabf20f71562':
Fix issue #3022508: Crash during media scan
287952c35e148811c106bc0f5036eabf20f71562 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3022508: Crash during media scan

Don't kill processes for excessive wake lock use, even if they
are in the background, as long as they have running services.

Also fix some problems with this, such as not noting the kill
in battery stats.

And add killing of processes for cpu usage as well, along with
some optimizations to computing CPU usage.

And fix BatteryWaster to be better behaving for testing these
cases.

Add new "monitor" command to am to watch as the activity manager
does stuff (so we can catch things at the point of ANR).

Finally some miscellaneous debug output for the stuff here, as
well as in progress debugging of an ANR.

Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
ctivityThread.java
ActivityController.aidl
625ac271f80777668f832a344486a6fcdc06d0ae 18-Sep-2010 Dianne Hackborn <hackbod@google.com> Work on fragments in layouts.

- Change semantics if IDs associated with these fragments, to
work correctly when placed in a container. If the container
has an ID or you have supplied a tag, the fragment's ID is
optional.

- To do this, there is a new LayoutInflater API that allows code
creating views to access the parent container that view will
be in.

- Fix issues with state management around these fragments. Now
correctly retains state when switching to a layout that doesn't
include the fragment.

Also:

- Add new simple list layouts for items that want to show an
activated state.
- Add new Activity.dump() that can be invoked with adb shell
dumpsys; the default implementation dumps fragment state.

Change-Id: I192f35e3ea8c53fbd26cf909095f2a994abfc1b6
ctivity.java
ctivityThread.java
pplicationThreadNative.java
ragment.java
ragmentManager.java
ApplicationThread.java
04f8040d1ee6b4334aeb175037747f4c70881e8c 21-Sep-2010 Amith Yamasani <yamasani@google.com> Merge "Make the breadcrumbs touchable for navigation."
3c7131ffca4695f80dd2921faebedfbf2eece0d8 21-Sep-2010 Vasu Nori <vnori@google.com> bring database code in master for 'adb bugreport' in sync with ginger

Change-Id: Ibe9eb07db363b483a07645e9644d75db51132808
ctivityThread.java
dcfb9f7ae612bcd3a9b04d4459296b34f8d312e1 21-Sep-2010 Amith Yamasani <yamasani@google.com> Make the breadcrumbs touchable for navigation.
ragmentBreadCrumbs.java
b745ec954272a3c09cca354ad84e2e08b54c8544 21-Sep-2010 Vasu Nori <vnori@google.com> am 173ea091: Merge "DO NOT MERGE - use appropriate names on SQL numbers in \'adb bugreport\'" into gingerbread

Merge commit '173ea0912af296c6e80d14b764046534b316d21f' into gingerbread-plus-aosp

* commit '173ea0912af296c6e80d14b764046534b316d21f':
DO NOT MERGE - use appropriate names on SQL numbers in 'adb bugreport'
9540a8d320d14b75203d9cc4ca65638fd06a94fb 21-Sep-2010 Vasu Nori <vnori@google.com> DO NOT MERGE - use appropriate names on SQL numbers in 'adb bugreport'

output now looks like the following
SQL
heap: 551 MEMORY_USED: 551
PAGECACHE_OVERFLOW: 113 MALLOC_SIZE: 50

DATABASES
pgsz dbsz Lookaside(b) Dbname
1 148 500 contacts2.db
1 8 0 (attached) presence_db
1 18 31 :memory:SQL

Change-Id: I8bb65a522fd9478ff2f6a8c27e69f9e6c10aef8a
ctivityThread.java
cd155a067246c2c9cc052ecae46fde776a470ca7 21-Sep-2010 Scott Main <smain@google.com> am aac4630c: am a4270e7e: am 73e150c8: provide link to backup guide above the fold

Merge commit 'aac4630cc5b3076e3cd6f65c52c8ff5f8f921957'

* commit 'aac4630cc5b3076e3cd6f65c52c8ff5f8f921957':
provide link to backup guide above the fold
48a781a0a5f83da7c81cf0e7230151a751740a09 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 4b187e80: am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '4b187e804fdfdbc825e17646e82e0218e316a339'

* commit '4b187e804fdfdbc825e17646e82e0218e316a339':
Some battery improvements:
aac4630cc5b3076e3cd6f65c52c8ff5f8f921957 21-Sep-2010 Scott Main <smain@google.com> am a4270e7e: am 73e150c8: provide link to backup guide above the fold

Merge commit 'a4270e7e1e09bf5f60c65102d34e887033c5befa' into gingerbread-plus-aosp

* commit 'a4270e7e1e09bf5f60c65102d34e887033c5befa':
provide link to backup guide above the fold
a4270e7e1e09bf5f60c65102d34e887033c5befa 21-Sep-2010 Scott Main <smain@google.com> am 73e150c8: provide link to backup guide above the fold

Merge commit '73e150c886afc6cd92e8b065a58d61e0b2a098ed' into gingerbread

* commit '73e150c886afc6cd92e8b065a58d61e0b2a098ed':
provide link to backup guide above the fold
4b187e804fdfdbc825e17646e82e0218e316a339 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b' into gingerbread-plus-aosp

* commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b':
Some battery improvements:
ce2ef766cad1bb186ea522f76c4ac6a8bb3dfa87 20-Sep-2010 Dianne Hackborn <hackbod@google.com> Some battery improvements:

- New API for iterating over history that will allow a better implementation
in the future.
- Now do writes asynchronously.

Also improve the documentation for Activity.onRetainNonInstanceState().

Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554
ctivity.java
73e150c886afc6cd92e8b065a58d61e0b2a098ed 20-Sep-2010 Scott Main <smain@google.com> provide link to backup guide above the fold

Change-Id: I84ad3fbd4c3c7793fbf330d6a2be5cab611a9b26
ackup/package.html
ef1e7763c2dc5b9bac69cc747efe05c81d9fd9fc 18-Sep-2010 Joe Onorato <joeo@google.com> Tablet ticker.

Change-Id: Ia3db5cc29eac1703123de3e1c6dc7c22e7d024eb
otification.java
c6669ca63299219d815464129dac051ab2404286 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Add API for showing breadcrumbs of fragment back stack.

This adds a simple API to have your back stack automatically
shown as bread crumbs in the action bar. Introduces some APIs
to retrieve the current back stack.

Also fix a little bug in the "activated" state where it was
being propagated down the hierarchy as "selected". :p And from
that, fix the standard colors to be reasonable when in the
activated state.

Finally PreferenceActivity is updated to take advantage of
bread crumbs to show your place in the preferences.

Change-Id: I9d633bedf8d7c6e4ed9b25cb9698faa66c7dd9a4
ackStackEntry.java
ackStackRecord.java
ragmentBreadCrumbs.java
ragmentManager.java
ragmentTransaction.java
9316232130fe831c998c9d7be9cf67294eccdcae 16-Sep-2010 Joe Onorato <joeo@google.com> Fix broken javadoc.

Change-Id: I4729ebee36117f281af613e0b49f70d7dee5f334
oaderManagingFragment.java
e678f46ec45076203f6260f8a26f56d838c6b6ff 16-Sep-2010 Amith Yamasani <yamasani@google.com> Query refinement feature in SearchView.

New method : setQueryRefinementEnabled() which will either enable all suggestions
to have the little query refinement icon in the right or just the ones that have
a bit set in the new SUGGEST_FLAGS column of the suggestion provider cursor.
earchDialog.java
earchManager.java
uggestionsAdapter.java
b835d9abd6d7c89bb1226fc83d1e96b3b04b9ee3 15-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am f26ac1f8: am 96d6c345: Merge "Unify some duplicate StrictMode-enabling code." into gingerbread

Merge commit 'f26ac1f8ed27d9e88bbde8978557c34788c7509c'

* commit 'f26ac1f8ed27d9e88bbde8978557c34788c7509c':
Unify some duplicate StrictMode-enabling code.
ad533cd5557d6b73c59c1380f269b1158f4fa3fc 15-Sep-2010 Leon Scroggins III <scroggo@google.com> am 720d5985: am 901b7b9b: am ca8f3d04: Merge "Add an option to hide the Voice Search icon." into froyo

Merge commit '720d5985f5d31912c97b7e549230d241e58c1298'

* commit '720d5985f5d31912c97b7e549230d241e58c1298':
Add an option to hide the Voice Search icon.
f26ac1f8ed27d9e88bbde8978557c34788c7509c 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 96d6c345: Merge "Unify some duplicate StrictMode-enabling code." into gingerbread

Merge commit '96d6c3454c3550486a2efa25ca0c83732b5e2eaf' into gingerbread-plus-aosp

* commit '96d6c3454c3550486a2efa25ca0c83732b5e2eaf':
Unify some duplicate StrictMode-enabling code.
96d6c3454c3550486a2efa25ca0c83732b5e2eaf 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Unify some duplicate StrictMode-enabling code." into gingerbread
720d5985f5d31912c97b7e549230d241e58c1298 14-Sep-2010 Leon Scroggins III <scroggo@google.com> am 901b7b9b: am ca8f3d04: Merge "Add an option to hide the Voice Search icon." into froyo

Merge commit '901b7b9b17d20dc8085fb5fd3bab0f0804f3906b' into gingerbread-plus-aosp

* commit '901b7b9b17d20dc8085fb5fd3bab0f0804f3906b':
Add an option to hide the Voice Search icon.
901b7b9b17d20dc8085fb5fd3bab0f0804f3906b 14-Sep-2010 Leon Scroggins III <scroggo@google.com> am ca8f3d04: Merge "Add an option to hide the Voice Search icon." into froyo

Merge commit 'ca8f3d04284a26477257a0c2b34d83c86d15efe9' into gingerbread

* commit 'ca8f3d04284a26477257a0c2b34d83c86d15efe9':
Add an option to hide the Voice Search icon.
50d66f9fcdac84b2af65a82be56728f54b1a7ef0 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Unify some duplicate StrictMode-enabling code.

Change-Id: Ifb92f35d9e245dbdb5e201597d8be702bce9e8b8
ctivityThread.java
4a028009468a95e932fc4fcd9ccdd358e02b1b0a 14-Sep-2010 Leon Scroggins III <scroggo@google.com> Add an option to hide the Voice Search icon.

Some search engines do not support voice search, so provide a flag
to disable showing the icon in the SearchDialog.

Change-Id: I7ef4ad5d382edb86c08014260defa4af6d5eca0a
earchDialog.java
earchManager.java
a21e3da55940e239addd80bf379091a1d85d006f 13-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2967969: Crash rotating screen on "delete account" dialog

- Have PreferenceActivity save and restore its header state.
- Keep track of the current header selection.
- When headers are updated, try to retain the current header selection.

Also fix issue #2995541: Cannot add new contact. We were not allowing
fragment transactions in some cases.

Change-Id: I4aa4c703ed5f4ecf9f425cd7eeea4740c6360ce9
ctivity.java
3e449ce00ed2d3b271e50bc7a52798f630973bf1 12-Sep-2010 Dianne Hackborn <hackbod@google.com> Some fragment stuff:

Fix issue #2975886: Make getTargetFragment() survive rotation events with
retained fragments. We now fix up the fragment pointer when restoring state.

Fix issue #2919928: In PreferenceFragment, addPreferencesFromResources() is
not effective when called after onActivityCreated(). Note to self: do not use
a what code of 0. Maybe that should be documented (I'll do it in gingerbread).

Hopefully implement #2992753: DialogFragment.dismiss will NPE if called too soon
(before attached to activity). We now keep track of the FragmentManager
separately from the activity, and set that as soon as the fragment is part of a
transaction.

Investigate issue #2988876: NPE when device orientation is changed. The NPE is
because of the app trying to do a fragment transaction in onPause(). This is
fundamentally not viable, since (a) the activity will be gone before we ever
have a chance to process the message to commit the transaction, and (b) even if
we did try to commit the transaction earlier, this would be done after
onSaveInstanceState() and thus not work in cases where the activity gets killed
in the background. So instead, we'll just throw an immediate exception if you
try to do this.

Change-Id: Iea62b50eb79f066af2471fce86836d073398f4f7
ctivity.java
ackStackEntry.java
ragment.java
ragmentManager.java
2f761760459fe27c8e9f96569bb7f28fc5b58bab 13-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix typo.

onnSaveInstanceState -> onSaveInstanceState

Change-Id: I34981dd10fce4eaad6e1f6bba3d569e1e35e3c2a
ragment.java
b20db3ec34e846010f389880b2cfab4d7bf79820 10-Sep-2010 Chet Haase <chet@google.com> Make fragment animations work when fragments go away

Change-Id: I136de6ef910cc02b8181fcfa065bdb0770841396
ragmentManager.java
8485fedfebd37f0569226c360e1147402f47f74c 11-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am d77b0dfd: am 7c65585f: Merge "Make sure OutOfMemoryError is handled by WallpaperManager"

Merge commit 'd77b0dfdf364ed2fabd9d7a2b26d54e34fce0855'

* commit 'd77b0dfdf364ed2fabd9d7a2b26d54e34fce0855':
Make sure OutOfMemoryError is handled by WallpaperManager
d77b0dfdf364ed2fabd9d7a2b26d54e34fce0855 11-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 7c65585f: Merge "Make sure OutOfMemoryError is handled by WallpaperManager"

Merge commit '7c65585feb761a3e00bb2b8a468d43f70a8c3cdc' into gingerbread-plus-aosp

* commit '7c65585feb761a3e00bb2b8a468d43f70a8c3cdc':
Make sure OutOfMemoryError is handled by WallpaperManager
0b29554188f57ff1eec4150fa24f9a6a6603ed0f 11-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 37fc8cc7: am b724d251: Merge "Enable strictmode logging in system_server & add a lock." into gingerbread

Merge commit '37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd'

* commit '37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd':
Enable strictmode logging in system_server & add a lock.
37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am b724d251: Merge "Enable strictmode logging in system_server & add a lock." into gingerbread

Merge commit 'b724d2519a900744a477bd57df6a2f8703c87e72' into gingerbread-plus-aosp

* commit 'b724d2519a900744a477bd57df6a2f8703c87e72':
Enable strictmode logging in system_server & add a lock.
1e02d36b0f1dc833cf8a837c7619fbe6478694c8 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Enable strictmode logging in system_server & add a lock.

We weren't logging strictmode violation in the system_server process
in non-user builds (only system apps), even though the rest of the
strictmode logging supports it.

Also add a missing lock in ActivityManagerService.

Change-Id: If2af96a7e4fdde604a647b836097f0029ef1334b
ctivityThread.java
f22c30cd818db80e5c27d27c14b9dbe9507cef38 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 033b381b: am 7f07f842: Merge "Fix doc of fullScreenIntent." into gingerbread

Merge commit '033b381b4c91aff4bf76481d0b37fb5f39b50ec2'

* commit '033b381b4c91aff4bf76481d0b37fb5f39b50ec2':
Fix doc of fullScreenIntent.
033b381b4c91aff4bf76481d0b37fb5f39b50ec2 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 7f07f842: Merge "Fix doc of fullScreenIntent." into gingerbread

Merge commit '7f07f842c9c375648b52de5d8a84c080e9394d71' into gingerbread-plus-aosp

* commit '7f07f842c9c375648b52de5d8a84c080e9394d71':
Fix doc of fullScreenIntent.
392fea53ece4c874997df33cfe564925a3736f35 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix doc of fullScreenIntent.

Change-Id: Ieb21bb92b4ebf95f831231f2871839fec8a97a86
otification.java
a18a86b43e40e3c15dcca0ae0148d641be9b25fe 07-Sep-2010 Chet Haase <chet@google.com> Rename several animation classes

Change-Id: I6a4544875090db485163c8d56de8718f56d267c7
ragment.java
ragmentManager.java
0486f78ef32dfddb51c82f12be533712a35376d8 08-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am b1657b2b: resolved conflicts for merge of 64591009 to gingerbread-plus-aosp

Merge commit 'b1657b2bd6aea0c22b48e2cdd25dcc57581a3f3d'

* commit 'b1657b2bd6aea0c22b48e2cdd25dcc57581a3f3d':
Fix a race between requesting/loading/writing SharedPreferences.
b1657b2bd6aea0c22b48e2cdd25dcc57581a3f3d 08-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 64591009 to gingerbread-plus-aosp

Change-Id: Id9ebca9993f97a79cb2a6c41a7566d473ccc5b7e
2b6230e0de4bac2829ac27b19e95ba75c3da82b4 08-Sep-2010 Adam Powell <adamp@google.com> Reworking the ActionBar tab API

Change-Id: Ifbcdc61b4a24633cc1a329c73923b95b03e9ecf0
ctionBar.java
ackStackEntry.java
ragmentTransaction.java
6194c53754e1bae2c09267ad474d4e2f376e34c0 08-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Fix a race between requesting/loading/writing SharedPreferences.

Part of the race existed before, but it was made much worse with
apply().

Corresponding CTS test is Icc6e638a6a

Change-Id: Ic5cfa467fb7f1859cb7b44d417412219c0621965
ontextImpl.java
cbf16ebdabb2fb7d375d6adde596d438d06eda25 07-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am c19c9e4e: am b1104b37: Merge "Make SharedPreferencesBackupHelper wait for async SharedPreference writes" into gingerbread

Merge commit 'c19c9e4ee20512ba29e6e54aee06aa16413901f1'

* commit 'c19c9e4ee20512ba29e6e54aee06aa16413901f1':
Make SharedPreferencesBackupHelper wait for async SharedPreference writes
c19c9e4ee20512ba29e6e54aee06aa16413901f1 07-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am b1104b37: Merge "Make SharedPreferencesBackupHelper wait for async SharedPreference writes" into gingerbread

Merge commit 'b1104b3713febb75164938a465c3022e1879245f' into gingerbread-plus-aosp

* commit 'b1104b3713febb75164938a465c3022e1879245f':
Make SharedPreferencesBackupHelper wait for async SharedPreference writes
b1104b3713febb75164938a465c3022e1879245f 07-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Make SharedPreferencesBackupHelper wait for async SharedPreference writes" into gingerbread
c99b2b857cd29749bda25e5d7daaef6d45b78952 07-Sep-2010 Kenny Root <kroot@google.com> am f17bd19a: am 2cb3e836: Merge "Use new nativeLibraryPath field for NativeActivity" into gingerbread

Merge commit 'f17bd19acbb88429b50a1497bfec0752b456d5c6'

* commit 'f17bd19acbb88429b50a1497bfec0752b456d5c6':
Use new nativeLibraryPath field for NativeActivity
f17bd19acbb88429b50a1497bfec0752b456d5c6 07-Sep-2010 Kenny Root <kroot@google.com> am 2cb3e836: Merge "Use new nativeLibraryPath field for NativeActivity" into gingerbread

Merge commit '2cb3e83654c99e202c170d9d0237d8d1f4054354' into gingerbread-plus-aosp

* commit '2cb3e83654c99e202c170d9d0237d8d1f4054354':
Use new nativeLibraryPath field for NativeActivity
2cb3e83654c99e202c170d9d0237d8d1f4054354 07-Sep-2010 Kenny Root <kroot@google.com> Merge "Use new nativeLibraryPath field for NativeActivity" into gingerbread
6798b62e9230b744d877c4fcab2a0d949eab9f8f 03-Sep-2010 Kenny Root <kroot@google.com> Use new nativeLibraryPath field for NativeActivity

Instead of being naughty and guessing the native library path from
dataDir, use the new nativeLibraryPath field because it can be on SD
card now.

Change-Id: I284bde42e0b0114366e412eb7212af22b47208d8
ativeActivity.java
6f9d58ac62366b13a1eac00d58ebc84f03cea3f2 07-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Make SharedPreferencesBackupHelper wait for async SharedPreference writes

Fixes a potential race with backups.

Change-Id: I73492c0384091cedd7802109257312387fcd43f9
ackup/SharedPreferencesBackupHelper.java
a14c8e0c67223fdc9a0746b370ae594a92530e78 04-Sep-2010 Romain Guy <romainguy@google.com> Bring back instances counts to dumpsys meminfo.

Change-Id: Idd846e137e8e87cb93551ba13751df60a8046eed
ctivity.java
ctivityThread.java
ontextImpl.java
bfcb1f5c4e53c76d363d230b3cad7ea971a90301 04-Sep-2010 Romain Guy <romainguy@google.com> Merge "Prevent the system process from using the HardwareRenderer."
6171401a0a5b25ec5d66d7693a5285d54cca89ae 04-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3ffb5b to master

Change-Id: I3c77887f56c4fdc1cd80682eccc2f5e0020e2761
5233920a216302b4aa03b100c32e8b3efe33cbc6 04-Sep-2010 Romain Guy <romainguy@google.com> Prevent the system process from using the HardwareRenderer.

This change allows applications with the system UID to use the hardware
renderer.

Change-Id: I3c5d776ee9c07bb14933dbe3060cad4175e4fc95
ctivityThread.java
6a3ffb5beeb6d88c5c1916bef60265f73f9e1822 04-Sep-2010 Dianne Hackborn <hackbod@google.com> am df3a0f50: Merge "Improve doc." into gingerbread

Merge commit 'df3a0f50c3480911e366c8c0781b0463fe063e82' into gingerbread-plus-aosp

* commit 'df3a0f50c3480911e366c8c0781b0463fe063e82':
Improve doc.
170bae7d832e0fd68e1ee9d96893b97e1dd98c52 04-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve doc.

Change-Id: I841b04e1e455b6236fb8b65b965f2fc25c4461f0
otification.java
004abb12238d34cf9567d70eac194983636524bd 03-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 3d7d3690 to master

Change-Id: I1d1d7a448b3ae8a86600addfa75f2448a98327bf
3d7d3690defa2e63a60b0d9133608cf771cdbca7 03-Sep-2010 Dianne Hackborn <hackbod@google.com> am e25b4bc7: Merge "These are not ready to be exposed. Also rename them to be better." into gingerbread

Merge commit 'e25b4bc76fef584b38ce4e72f919fba119bdfa99' into gingerbread-plus-aosp

* commit 'e25b4bc76fef584b38ce4e72f919fba119bdfa99':
These are not ready to be exposed. Also rename them to be better.
482566ed5cc7307b0401361509fb06acc5476115 03-Sep-2010 Dianne Hackborn <hackbod@google.com> These are not ready to be exposed. Also rename them to be better.

Change-Id: I7c234144497084b7769f8c46761b7d74d1c583d5
ctivityManager.java
2c4a56af4d56f87a1bbf14386f045bcf57602ef2 02-Sep-2010 Johan Alfven <johan.alfven@sonyericsson.com> Make sure OutOfMemoryError is handled by WallpaperManager

Make sure exception OutOfMemoryError is handled when calling
BitmapFactory.decodeFileDescriptor and BitmapFactory.decodeStream
to avoid crash in the system server.

Change-Id: I954a6388d1225dab86d2617ab0602154b2a7f493
allpaperManager.java
8f5edc93b622bbdc33db24d348480fd7d55afb41 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am 840f0fec: am d3efa392: Clean up some permissions.

Merge commit '840f0fecd87357cadf4b2a0ae96d30b457f89729'

* commit '840f0fecd87357cadf4b2a0ae96d30b457f89729':
Clean up some permissions.
840f0fecd87357cadf4b2a0ae96d30b457f89729 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am d3efa392: Clean up some permissions.

Merge commit 'd3efa3924407da6d38aa5931ac29aa088d9eb986' into gingerbread-plus-aosp

* commit 'd3efa3924407da6d38aa5931ac29aa088d9eb986':
Clean up some permissions.
d3efa3924407da6d38aa5931ac29aa088d9eb986 02-Sep-2010 Dianne Hackborn <hackbod@google.com> Clean up some permissions.

Note that WRITE_OWNER_DATA and READ_OWNER_DATA don't actually appear
to be associated with anything or used by anyone, so they are just
deleted.

Also deprecate the activity API to go in the foreground. I didn't
realize that was released in the SDK. It needs to go away.

Change-Id: I96f53702c2c79e4999b6b2c498abb770bd27e03a
ctivity.java
c9ad7c6dbb1d70b831cd79416cbe493ade50ed2c 01-Sep-2010 Brian Carlstrom <bdc@google.com> resolved conflicts for merge of 41e99538 to master

Change-Id: Idddb72e369f127cd74322c3c7385701c2412e343
41e99538638795e38b0a02711ceb572d67a779a3 01-Sep-2010 Brian Carlstrom <bdc@google.com> am 17510863: New Java-based SamplingProfiler

Merge commit '1751086360056bc60d00f2ed2988bc82be9e7bd9' into gingerbread-plus-aosp

* commit '1751086360056bc60d00f2ed2988bc82be9e7bd9':
New Java-based SamplingProfiler
1751086360056bc60d00f2ed2988bc82be9e7bd9 18-Aug-2010 Brian Carlstrom <bdc@google.com> New Java-based SamplingProfiler

Summary:
- libcore: new Java based SamplingProfiler
- dalvik: remove old SamplingProfiler native bits
- frameworks/base: New placeholder SamplingProfilerIntegration
- vendor/google: remove old profiler snapshot parsing code

Details:

libcore

A new 100% Java SamplingProfiler. While it has more overhead that
the old native one, the new one can actually collect more than the
current PC and frame pointer, so you can get useful context of
where your app is spending time. It currently provides ASCII hprof
format output for use with tools like PerfAnal
dalvik/src/main/java/dalvik/system/SamplingProfiler.java

Unit test for the new SamplingProfiler
dalvik/src/test/java/dalvik/system/SamplingProfilerTest.java

Add core-tests-dalvik
JavaLibrary.mk

dalvik

Removing native code that supported the old SamplingProfiler
vm/Dvm.mk
vm/native/InternalNative.c
vm/native/dalvik_system_SamplingProfiler.c

frameworks/base

Placeholder SamplingProfilerIntegration. Later plans include
generating EventStackTrace protobufs.

New SamplingProfiler does not have a global instance, so
SamplingProfilerIntegration provides one in INSTANCE. Old binary
snapshot format is temporily replaced with ASCII hprof data.
core/java/com/android/internal/os/SamplingProfilerIntegration.java

Simplified interface for zygote profile snapshotting
core/java/com/android/internal/os/ZygoteInit.java

Current SamplingProfilerIntegration does not track event loop
explicitly, but hprof information does include thread information.
core/java/android/app/ActivityThread.java

vendor/google

Removing code for parsing old SamplingProfiler snapshot format
tools/samplingprofiler/Android.mk
tools/samplingprofiler/NOTICE
tools/samplingprofiler/profiler.iml
tools/samplingprofiler/profiler.ipr
tools/samplingprofiler/pull-snapshots.sh
tools/samplingprofiler/sorttable.js
tools/samplingprofiler/src/com/android/profiler/PrintHtml.java
ctivityThread.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.
ec438e1448ebc578ee5a4c4beb1e26292cdedd6e 01-Sep-2010 Dianne Hackborn <hackbod@google.com> am 361199b5: Add PackageManager API to get information about a provider component.

Merge commit '361199b5e742c6635d4d7a03de6cf37b31cf442c' into gingerbread-plus-aosp

* commit '361199b5e742c6635d4d7a03de6cf37b31cf442c':
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
ontextImpl.java
02f4f0eb4919453e8dbf40549d4ae9c05f05b8dd 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 734d2707: am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4'

* commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4':
Renaming SharedPreferences$Editor.startCommit to apply
734d270769c609c7d3a1f2ec46e1d329d9682ab4 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972' into gingerbread-plus-aosp

* commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972':
Renaming SharedPreferences$Editor.startCommit to apply
66fce5068a8a3aeb28aaf713843891b286a75280 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Renaming SharedPreferences$Editor.startCommit to apply

Also removes the artifical restriction that only one apply() can be in
flight at once. That was old from when I thought it'd end up being
required, but wasn't.

Change-Id: I3540ea8be6e0760d6a51d218186f71655c2f3f55
ontextImpl.java
44af754cf0c9ad9a8162e1bd2af60737e81a8beb 28-Aug-2010 Daniel Sandler <dsandler@android.com> am d02bdaab: Remove experimental immersive mode support. DO NOT MERGE

Merge commit 'd02bdaab495641ab50e2123fdfd99a819cc40540' into gingerbread-plus-aosp

* commit 'd02bdaab495641ab50e2123fdfd99a819cc40540':
Remove experimental immersive mode support. DO NOT MERGE
d02bdaab495641ab50e2123fdfd99a819cc40540 26-Aug-2010 Daniel Sandler <dsandler@android.com> Remove experimental immersive mode support. DO NOT MERGE

Bug: 2949215

Change-Id: I7d998ef571ef7e149bb96261430e92150b80b77d
ctivity.java
ctivityManagerNative.java
ActivityManager.java
otification.java
818c830c59fb8fb0fe7576f1e5a073ab599227c8 28-Aug-2010 Kenny Root <kroot@google.com> am 83285781: am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '8328578152fbfd23952a6cda4b2e60853d78eb74'

* commit '8328578152fbfd23952a6cda4b2e60853d78eb74':
Allow native shared libraries in ASEC containers
8328578152fbfd23952a6cda4b2e60853d78eb74 28-Aug-2010 Kenny Root <kroot@google.com> am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3' into gingerbread-plus-aosp

* commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3':
Allow native shared libraries in ASEC containers
85387d7ba36e56b291cbde87acb5a5b2200fe01c 26-Aug-2010 Kenny Root <kroot@google.com> Allow native shared libraries in ASEC containers

This change moves the native library handling earlier in the package
installation process so that it may be inserted into ASEC containers
before they are finalized in the DefaultContainerService.

Note that native libraries on SD card requires that vold mount ASEC
containers without the "noexec" flag on the mount point.

Change-Id: Ib34b1886bf6f94b99bb7b3781db6e9b5a58807ba
ctivityThread.java
pplicationLoaders.java
oadedApk.java
7f7ce40f90cf00dc046fb9520d77d29e96b474d6 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 28130bae to master

Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
28130baefb4fa6d1e0ff9c92337295ba74461cf7 27-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 6b50986a to gingerbread-plus-aosp

Change-Id: I7c5ec7ae717e75ad242e2c1ad4537052e4eea718
41bfa37cb2ca244432061bddb1c8bf802545ae6e 27-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 409b7120 to master

Change-Id: I1741e205b5ff5ae62a38ab3b096bcc3d96883538
333b8cba996c8ebb8ca55ebfc5cc536bdd64af94 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences$Editor.startCommit()

Adds a fire-and-forget save method (startCommit) to the
SharedPreferences.Editor, which is the way most people use it anyway.

This commit adds the implementation. The previous commit added the
interface and docs:

previous change: Idf9934b445da1fb72b79f0192218b47c0a7f5a34
git commit: edf32d01316bd3432c023f17747461b08ae36375

In addition, this change:

-- adds a generic "runPendingWorkFinishers" mechanism to
ActivityThread to wait on async operations that are still
in flight and use it for this.

-- ties runPendingWorkFinishers into Activity.onPause,
BroadcastReceiver, and Service.

-- makes sSharedPreferences keyed on name, not File, to avoid
unnnecessary allocations

-- documents and guarantees what thread
OnSharedPreferenceChangeListener callbacks run on

-- makes a few things in frameworks/base use startCommit(), notably
Preference.java (which was ignoring the return value anyway)

Change-Id: I1c8db60ad45643226fe6d246d3e513eeb7bd0ebd
ctivity.java
ctivityThread.java
ontextImpl.java
ueuedWork.java
6ed50de6d1e5e27d11304cce226fefeee3105bd7 25-Aug-2010 Jason parks <jparks@google.com> Deprecated the managed cursor API's on Activity. Loaders are the new world order.

Change-Id: I0c7d403e9e6c0fcdf6fea886d8c284341e2f6c88
ctivity.java
5f36c96f6d3623a826466db68cc1586f078ac307 27-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2950374: Fragment#setHasOptionsMenu() doesn't work...

...when it is called before the parent Activity becomes ready.

Change-Id: Id021564ebb3419353234e459b7358b9a72660715
ackStackEntry.java
ragmentManager.java
409b71201a982e188c05238d95a2eb53ea9e0cf7 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am 02486b13: Hide heavy-weight API.

Merge commit '02486b1327e3007c62d253dd89ba9db1852b87f8' into gingerbread-plus-aosp

* commit '02486b1327e3007c62d253dd89ba9db1852b87f8':
Hide heavy-weight API.
02486b1327e3007c62d253dd89ba9db1852b87f8 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Hide heavy-weight API.

And give it a better name, for when it is later un-hidden.

Change-Id: Iae0d3054d44f873b9f953bc41d175a47802a185e
ctivity.java
c8f8497b9cac63a923dbdb1c08e247ba32c19e5e 26-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 66d633d2 to master

Change-Id: I6c38d7c4d127954dfca17082215c587a3cd4a586
66d633d208370c384db020daade975db1f3af736 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am 3003a017: Merge "Don\'t retain global ref to last inflated context." into gingerbread

Merge commit '3003a017d312a55e3804d6cf4a80044b1f1d7993' into gingerbread-plus-aosp

* commit '3003a017d312a55e3804d6cf4a80044b1f1d7993':
Don't retain global ref to last inflated context.
7e269644fcc319835f1e7f762f3cbd8087e3e22f 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Don't retain global ref to last inflated context.

Also rework URI permission granting to support upcoming
clipboard use.

Change-Id: I9842920350955531c5a511c2ecc5215e8c783343
ctivityManagerNative.java
ActivityManager.java
4cbc4f1067503b5de62a5338478d3cad8c25bd3d 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 49209cbc: am d0e6598b: Merge "Start of SharedPreferences.startCommit()" into gingerbread

Merge commit '49209cbcef37c4b20c9d0649ba284a51144b3930'

* commit '49209cbcef37c4b20c9d0649ba284a51144b3930':
Start of SharedPreferences$Editor.startCommit()
49209cbcef37c4b20c9d0649ba284a51144b3930 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am d0e6598b: Merge "Start of SharedPreferences.startCommit()" into gingerbread

Merge commit 'd0e6598b4a32f3000247341414449a3aa4d9f7f4' into gingerbread-plus-aosp

* commit 'd0e6598b4a32f3000247341414449a3aa4d9f7f4':
Start of SharedPreferences$Editor.startCommit()
edf32d01316bd3432c023f17747461b08ae36375 25-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Start of SharedPreferences$Editor.startCommit()

No implementation yet, just the interface.

Change-Id: Idf9934b445da1fb72b79f0192218b47c0a7f5a34
ontextImpl.java
71fcc470eb2fda968ef98c75f507a552403a8b8c 25-Aug-2010 Chet Haase <chet@google.com> Merge "Change animator xml importing to use new inflater class"
d51d368f2d512ab657b8ae45780c82c0dbea94c3 12-Aug-2010 Chet Haase <chet@google.com> Change animator xml importing to use new inflater class

Change-Id: I97225ee9868f4dcce5e4c1ba55e16414eb6c0464
ragmentManager.java
cf44040d93396e285fd064b1d452da249fea27f0 25-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of d3cd2596 to master

Change-Id: I61a37a3be8b8115b225da272903ca917c33ae4a6
7f9106fb1f167607ce64a6013c24251971ab8bf8 25-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 6cf1a8bf: am b1bbe99a: Merge "Some StrictMode API changes." into gingerbread

Merge commit '6cf1a8bfb04aead9cee5f59df4529a79c0a92dca'

* commit '6cf1a8bfb04aead9cee5f59df4529a79c0a92dca':
Some StrictMode API changes.
d3cd25967543aa3a45c28e9858ccf2b47c37451a 24-Aug-2010 Dianne Hackborn <hackbod@google.com> am 4af0cfad: Merge "Verify that onPause() calls its superclass." into gingerbread

Merge commit '4af0cfad5305c8827c6235ca86e7db63b534ad68' into gingerbread-plus-aosp

* commit '4af0cfad5305c8827c6235ca86e7db63b534ad68':
Verify that onPause() calls its superclass.
4af0cfad5305c8827c6235ca86e7db63b534ad68 24-Aug-2010 Dianne Hackborn <hackbod@google.com> Merge "Verify that onPause() calls its superclass." into gingerbread
6cf1a8bfb04aead9cee5f59df4529a79c0a92dca 24-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am b1bbe99a: Merge "Some StrictMode API changes." into gingerbread

Merge commit 'b1bbe99aaa01f321ae94f0d5ba4505e528664cc7' into gingerbread-plus-aosp

* commit 'b1bbe99aaa01f321ae94f0d5ba4505e528664cc7':
Some StrictMode API changes.
49afa5bc100e5d4c069fea980dd6b09501f56397 23-Aug-2010 Chet Haase <chet@google.com> Add facilities for layout transitions

Change-Id: I5c73ce6c6ba3bc9e3b57fcfbbcab37d511db6132
ialog.java
e794e9f9b7599c1ad6b8760e601c81b19ecc80c6 24-Aug-2010 Dianne Hackborn <hackbod@google.com> Verify that onPause() calls its superclass.

Change-Id: Ibf48992b4445bfc726ade307aad26f3e9577c5fb
ctivity.java
97461bd25c3821f3fb6af9705f0612259c6b4492 24-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Some StrictMode API changes.

* rename setThreadBlockingPolicy to setThreadPolicy (opens the way to
using StrictMode for non-blocking-related things in the future?)

* add allowThreadDiskWrites() and allowThreadDiskReads() to modify the
current policy mask and return the old one. this will allow turning
off part of StrictMode during certain regions of code. (for
instance, writing to disk in Activity onPause...)

Change-Id: Ia1878153713f79299971fdab567fa15b3cb9d56c
ctivityThread.java
385a655b8e8bf85024e4f24f1d7f6c2d7d7e900d 21-Aug-2010 Scott Main <smain@google.com> am bb8d314b: am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f'

* commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f':
docs: add links from widget classes to tutorials
37444f4239b26944d24f039c537d411ac7004243 21-Aug-2010 Dianne Hackborn <hackbod@google.com> am d172594e: am cf6d2a1d: Merge "Fix issue #2845673: android:exported="false" is not obeyed" into gingerbread

Merge commit 'd172594e3a1e25f1f2c190e99421cb7d4963389b'

* commit 'd172594e3a1e25f1f2c190e99421cb7d4963389b':
Fix issue #2845673: android:exported="false" is not obeyed
727782053ced0cac5beadc2c7ee9382d0f1ba1f5 21-Aug-2010 Dianne Hackborn <hackbod@google.com> Work on DialogFragment and docs.

- DialogFragment now has an option to not show a dialog, so you can
use your UI somewhere else.
- Deprecated show() versions that were tied to activities.
- Added documentation to DialogFragment class.
- Added documentation to onSaveInstanceState() to explain how the
time it is called is different than Activity's version.
- Fixed some java doc warnings.

Change-Id: If026744c368e2443030d2d9e0a9c808d820857df
ialogFragment.java
ragment.java
a3f641f22a1eeb64cc4daa8af635eb704e22660d 20-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am cf2c68c9: am 11709ab0: Merge "Avoid unnecessary SharedPrefences disk writes." into gingerbread

Merge commit 'cf2c68c9c21b8af62e95374312355d22ed55e586'

* commit 'cf2c68c9c21b8af62e95374312355d22ed55e586':
Avoid unnecessary SharedPrefences disk writes.
bb8d314b6c5ff9b51af29daa687d66dfd996914f 20-Aug-2010 Scott Main <smain@google.com> am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '70c9ffbc838271f0ea27a4780eb146287de53ef6' into gingerbread-plus-aosp

* commit '70c9ffbc838271f0ea27a4780eb146287de53ef6':
docs: add links from widget classes to tutorials
70c9ffbc838271f0ea27a4780eb146287de53ef6 20-Aug-2010 Scott Main <smain@google.com> am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '11a72482a0cdc45ceaf4ca83957e682381455aee' into gingerbread

* commit '11a72482a0cdc45ceaf4ca83957e682381455aee':
docs: add links from widget classes to tutorials
41ec65355bd6ded652769725b276d47c54a0d913 20-Aug-2010 Scott Main <smain@google.com> docs: add links from widget classes to tutorials

Change-Id: I817e885524951853182b0458df4a32dea1614243
atePickerDialog.java
imePickerDialog.java
d172594e3a1e25f1f2c190e99421cb7d4963389b 19-Aug-2010 Dianne Hackborn <hackbod@google.com> am cf6d2a1d: Merge "Fix issue #2845673: android:exported="false" is not obeyed" into gingerbread

Merge commit 'cf6d2a1de274e9a4156b12be811a180eb36412ab' into gingerbread-plus-aosp

* commit 'cf6d2a1de274e9a4156b12be811a180eb36412ab':
Fix issue #2845673: android:exported="false" is not obeyed
b424b633bb3664bed924d2ea89036290a57eb2bd 19-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2845673: android:exported="false" is not obeyed

Thou shall obey.

Change-Id: I09f163a0db7cc9189c8d7f5116cc8ca9d4f7a76c
ctivityThread.java
ActivityManager.java
cf2c68c9c21b8af62e95374312355d22ed55e586 18-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 11709ab0: Merge "Avoid unnecessary SharedPrefences disk writes." into gingerbread

Merge commit '11709ab07ca2eb97dfa3fc7bb3e0996e65908ade' into gingerbread-plus-aosp

* commit '11709ab07ca2eb97dfa3fc7bb3e0996e65908ade':
Avoid unnecessary SharedPrefences disk writes.
291905e34a7f0ae03c68fb2c1b8c34b92d447fbf 18-Aug-2010 Dianne Hackborn <hackbod@google.com> Maybe fix #2925641: calling onCreateOptionsMenu before attached activity

Also add some APIs to PreferenceActivity.

Change-Id: I85894a3eb9cd3e5adb78b82e85454c0d74773178
ctivity.java
ragment.java
e67a9dc83d3045f28aa2e19e5643d1875ea26b87 18-Aug-2010 Adam Powell <adamp@google.com> Clean up some options menu/action bar menu handling for Dialogs.

Add Dialog#invalidateOptionsMenu so that dialogs hosting action bars
have a way to request a refresh of menu content.

Change-Id: I73aa22c2df1c5e60b94035e30af548f87073dbb9
ialog.java
67fed01522ad26c850b20d2c960e4d392dc401d1 17-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Avoid unnecessary SharedPrefences disk writes.

Apps commonly edit + commit redundant changes to their
SharedPreferences, not checking the existing values. Rather than
force all apps to double-check that their settings writes aren't
redundant, we should just make .commit() faster (avoiding the disk
write) when the file already exists on disk and no effective changes
were made.

Change-Id: I7edbd0d3ace5b69b7af6d12c39797c8b7f86230b
ontextImpl.java
0a56fdc1400db3d31bff3a18bde7e509111d9b90 17-Aug-2010 Dianne Hackborn <hackbod@google.com> am 66b0343e: am a8d9291d: Merge "Various battery info things:" into gingerbread

Merge commit '66b0343e9e32203cdd39b854852cf575ca2fcd6b'

* commit '66b0343e9e32203cdd39b854852cf575ca2fcd6b':
Various battery info things:
3f00be5bd0b46e7937b68909baeff295b86215cc 16-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: I9e887aacf3d3ba642df287dfdecbc2ff1ef02033
ragment.java
def1537e9e8d0dd190cde5310ddae8b921088c9b 15-Aug-2010 Dianne Hackborn <hackbod@google.com> More fragment work:

- Introduce FragmentManager as a public API, deprecating the fragment
APIs on Activity. (They will be removed soon.)
- Add APIs to write a fragment reference to a bundle and later retrieve
it.
- Add Fragment API to set another fragment as its target, for delivering
results.
- Change when onInflate() is called and formalize its meaning in relation
to the fragment arguments that were previously introduced.
- Change onDestroyView() to always be called, regardless of when
onCreateView() returns. It now also is called slightly differently,
after the view hierarchy's state is saved.
- Fix some issues with DialogFragment's lifecycle with its associated
Dialog and state save/restore.
- Preference can now have a Bundle associated with it to provide
arguments to a fragment. The data for this Bundle call be supplied
via <extra> tags under a PreferenceScreen.
- PreferenceActivity's header XML tags are now <preference-headers>
and <header>, and you can supply <extra> tags under a <header> to set
arguments for the header's fragment.

Change-Id: I22c212c9fa862d50840201ca16e51f9de5ef0031
ctivity.java
ialogFragment.java
ragment.java
ragmentManager.java
66b0343e9e32203cdd39b854852cf575ca2fcd6b 14-Aug-2010 Dianne Hackborn <hackbod@google.com> am a8d9291d: Merge "Various battery info things:" into gingerbread

Merge commit 'a8d9291d7f93d1aa0d24d71d65c7de2894812177' into gingerbread-plus-aosp

* commit 'a8d9291d7f93d1aa0d24d71d65c7de2894812177':
Various battery info things:
9adb9c3b10991ef315c270993f4155709c8a232d 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Various battery info things:

- Now track wake locks in battery history.
- Now track sensors in battery history.
- Some filtering of sensory data.
- Fixes to some data that wasn't cleared when resetting battery stats.
- Print amount discharged since last charge.

And the big part -- keep track of wake locks held per process,
and kill processes that hold wake locks too much while they are in
the background. This includes information in the battery stats
about the process being killed, which will be available to the
developer if the app is reported.

Change-Id: I97202e94d00aafe0526ba2db74a03212e7539c54
ctivityManager.java
72dc780f57b4396b808032d592c41d35644a3277 13-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Fix build: tweak documentation links

Change-Id: I9c9c8615086b7173f4ad68b5183e7699275c7a2d
ialogFragment.java
b7a2e4772220c4b41df1260cedaf8912f4b07547 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Fragment and PreferenceFragment and FragmentManager, oh my!

- Introduce FragmentManager public API, for all Fragment management
needs. Will in the future allow the removal of the (growing number
of) fragment APIs on Activity.

- Fragment now has a concept of arguments. This can be supplied
immediately after creation, and are retained across instances.

- PreferenceActivity now has an API to have it update its headers (note
not tested). Headers now have arguments. Keys for controlling
when PreferenceActivity shows at launch have been added to the SDK.

- Fixes to back stack handling and state saving/restoring.

Change-Id: Ib9d07ae2beb296c4eb3a4d9e1b3b59544675e819
ctivity.java
ackStackEntry.java
ialogFragment.java
ragment.java
ragmentManager.java
6fca3e68d38d9f086c030135fc0deaf40737eb79 12-Aug-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix back popping the back stack too much."
2cceaaae3480254bc72708ce01ca3870e2dbe863 12-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix back popping the back stack too much.

Change-Id: I18a3d0f3546e51411771d49a68a97108e00b1cea
ctivity.java
811ed1065f39469cf2cf6adba22cab397ed88d5e 06-Aug-2010 Chet Haase <chet@google.com> Make Fragments use the new animation APIs

Change-Id: I3e3c271234c737491b6ae37821f16434f4563b1d
ragment.java
ragmentManager.java
ragmentTransaction.java
6b336f835d637853800b94689375a03f337139a4 11-Aug-2010 Adam Powell <adamp@google.com> ActionBar overlay mode, height fetching, show/hide

Change-Id: Ie931ed26ec885d891d6733132b517a53d95f8491
ctionBar.java
7b6d0d99b6904b511996267efae215fe9cb5e98f 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbread

Merge commit '679ac09a5c22175354f3a04b28456b323839530e'

* commit '679ac09a5c22175354f3a04b28456b323839530e':
More native work.
679ac09a5c22175354f3a04b28456b323839530e 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am a5ae50cd: Merge "More native work." into gingerbread

Merge commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb' into gingerbread-plus-aosp

* commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb':
More native work.
08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 04-Aug-2010 Dianne Hackborn <hackbod@google.com> More native work.

Implement save/restore of state, and add native APIs for
configuration information.

Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
ativeActivity.java
42c0fe86521af507f597af6159f63879cb5be73e 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908851 - ActionBar does not get initialized if
set/addContentView is never called.

Fix bugs around lazy initialization of ActionBar in Activities.

Change-Id: I39a4216a7f6b0051adc4a669b8f921f94148e1db
ctivity.java
9b4c804b9856d732e461bc7505d40aa4ea1f7bf7 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908823

Change-Id: Ia20d47ff4e2a09cc0e1ac47cd02a5f152f57073c
ctivity.java
dec9dfd0f9f9ae23e4f126d765178fbd26a9eadb 10-Aug-2010 Adam Powell <adamp@google.com> Support ActionBar in Dialogs

Dialogs planning on using an ActionBar must have an appropriate
theme. (Later on this will likely be default.)

Change-Id: I7fbf5f76eed3d10765fddeaf211e4decb4e89f87
ialog.java
debb2e25b3ce2f0f5195a2895dd1882fc172d4d8 10-Aug-2010 Dianne Hackborn <hackbod@google.com> This may fix LoaderManager bug where a closed cursor could be used.

Change-Id: I362d5f86dcbdbede921ef9d29c849ed6401850ea
oaderManager.java
6dd73b45a4b21eba4d1035346cc7870bb01ab621 06-Aug-2010 Adam Powell <adamp@google.com> Fix some lifecycle issues with populating the action bar's menu

Change-Id: I5f63df3260392b09fbb7120986702d01dac5906c
ctivity.java
5e0d59547c4042037e23a42ba4e2521721e9c7d3 05-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix some Loader bugs.

- Weren't re-attaching to the current loader manager after retaining
instance state.
- Ensure loaders are being destroyed.
- Fix a bug if you call restartLoader() inside of onLoadFinished().

Change-Id: I89df53db49d8e09047bf55216ebeb0f133c059e7
ctivity.java
ragment.java
ragmentManager.java
oaderManager.java
307351a22da0e6d060d7b2f24e3b28669abc966a 06-Aug-2010 Scott Main <smain@google.com> fix xml sample error

Change-Id: Ifd188a5866382a79c2c9de94c0682b707baffdcf
istActivity.java
9f53119b72e6da865bcd53173d3dacd1eba01aee 05-Aug-2010 Dianne Hackborn <hackbod@google.com> First pass at a new clipboard API.

ClipboardManager was in android.text(!!) so it needed to be moved
up to android.content to have access to the richer data types we
now need.

ClippedData is the data representation. Still needs a lot of
fleshing out to allow holding more than one data type at a time
and perhaps conversions between them. (MIME-oriented interrogation
and conversion will be done through ContentProvider, which needs
to grow an ability to report multiple MIME types and accept a
desired MIME type when a stream is being opened.)

Change-Id: Ifa51bedcd084a677813b255d171804e8496b0cb5
ontextImpl.java
b5c22f723628c31f82fa4b77fdb4451cfadd58ec 05-Aug-2010 Daniel Sandler <dsandler@android.com> am 811d66f1: am 9b87770f: Merge "Fix crash when startForeground posts a broken Notification." into gingerbread

Merge commit '811d66f1496b64b02c117e8d992db99e9e6cdc8d'

* commit '811d66f1496b64b02c117e8d992db99e9e6cdc8d':
Fix crash when startForeground posts a broken Notification.
811d66f1496b64b02c117e8d992db99e9e6cdc8d 05-Aug-2010 Daniel Sandler <dsandler@android.com> am 9b87770f: Merge "Fix crash when startForeground posts a broken Notification." into gingerbread

Merge commit '9b87770f53c55a313a7fdc6f553265aabbde3446' into gingerbread-plus-aosp

* commit '9b87770f53c55a313a7fdc6f553265aabbde3446':
Fix crash when startForeground posts a broken Notification.
9b87770f53c55a313a7fdc6f553265aabbde3446 05-Aug-2010 Daniel Sandler <dsandler@android.com> Merge "Fix crash when startForeground posts a broken Notification." into gingerbread
8063589c6ca6ee3575befe8caf4f6c3e6b58b655 05-Aug-2010 Oscar Montemayor <oam@google.com> Removed extra parameter tag in JavaDocs

Change-Id: I0bc6f201d12a95a7c96b3fac90688d113a554d22
dmin/DevicePolicyManager.java
ac54fb9da1068cb7c5fda16f20b4a89e90176185 05-Aug-2010 Oscar Montemayor <oam@google.com> Fix for SDK breakage with hidden field.

Change-Id: If66c31b8823a886e9a0853b63ef9bbdf25dc9a71
dmin/DeviceAdminInfo.java
69238c6a37ae43c748ad9cd7613f2209149ee7da 03-Aug-2010 Oscar Montemayor <oam@google.com> Device Policy Manager changes to enable Global Proxy.

Change-Id: I8489df7d28e4c5312e10d5cecc8e2a182413a034
dmin/DeviceAdminInfo.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
a7dd5eab33d1a87135ae5bd40a02f2e3c564f5de 04-Aug-2010 Vasu Nori <vnori@google.com> requery() return value should be checked

if not checked and if the cursor continues to be used, it will result in
bug:2529736

Change-Id: I920f665643561374c2211acded6cc31fa8931909
ctivity.java
529b60a3b16ac3dff24f2403d760ab8ebc9670ff 04-Aug-2010 Romain Guy <romainguy@google.com> Add android:hardwareAccelerated to Activity.

Hardware acceleration can now be enabled/disabled locally on each activity
declared in the manifest. It can also be enabled/disabled directly on a
window through the WindowManager.LayoutParams.

Change-Id: I91dd0b26c4e7eb8cd7288e523ed6b7bda6d0990b
ctivity.java
d0a2f86f357f346639a6648b4004266865c979b4 03-Aug-2010 Daniel Sandler <dsandler@android.com> Fix crash when startForeground posts a broken Notification.

The NotificationManager tries to crash the calling app, but
in the case of a service calling startForeground, the caller
is the ActivityManager, so system_server goes down.

NotificationManagerService#enqueueNotificationInternal is a
new internal-only method that accepts a UID/PID to use when
punishing bogus notifications (such as the one in
http://b/2869787).

Change-Id: I84a9854bae630bc90288cebb94f174809d5dac8c
otificationManager.java
b3cf10ffa8ff9cac0da8b23a0d84076b3f501400 03-Aug-2010 Dianne Hackborn <hackbod@google.com> Add facility to switch to new fragments from preferences.

Change-Id: I009315b59cf81b4962e9c5a4490f0f82743ed64a
ctivity.java
ragmentManager.java
b1ad5977bc8178b6d350ebe9099daded4c1ef603 03-Aug-2010 Dianne Hackborn <hackbod@google.com> New two-pane mode for PreferenceActivity.

This introduces a whole new way to use PreferenceActivity, as
a container for PreferenceFragments that the user can switch
between from a list of headers.

Change-Id: I1c79b7c78b86790dc460a1414a999aba5de80628
ragment.java
87d0b2f42209ab1dd4eed71e3b74b31bbcccf663 02-Aug-2010 Jacek Surazski <jaceks@google.com> Add dumping of Running Service reports to ApplicationErrorReports

Change-Id: I5f10bf81af384777da2ac2d2c00463b766a4fb67
pplicationErrorReport.java
8b13ed701b08a6540a960c0d4370751a5f657978 02-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 4edd80db: am ee34a49f: Add missing word from docs.

Merge commit '4edd80db956a6a3fc1142371d098ad2abd06ac9c'

* commit '4edd80db956a6a3fc1142371d098ad2abd06ac9c':
Add missing word from docs.
4edd80db956a6a3fc1142371d098ad2abd06ac9c 02-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am ee34a49f: Add missing word from docs.

Merge commit 'ee34a49ffc92590cb59f3e17a3df136b67701529' into gingerbread-plus-aosp

* commit 'ee34a49ffc92590cb59f3e17a3df136b67701529':
Add missing word from docs.
ee34a49ffc92590cb59f3e17a3df136b67701529 02-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Add missing word from docs.

My mistaker from an earlier commit.

Change-Id: Ic04b3c411da32f7dca03d23d39182915e3567172
ervice.java
86dde2d64c7eadc06a17aeb486c669ce4b53d13c 31-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am e2d33bbc: am d2165cfc: Merge "StrictMode: time violations in Binder calls" into gingerbread

Merge commit 'e2d33bbc496192d49c1e48baad446d8d0720d301'

* commit 'e2d33bbc496192d49c1e48baad446d8d0720d301':
StrictMode: time violations in Binder calls
e2d33bbc496192d49c1e48baad446d8d0720d301 31-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am d2165cfc: Merge "StrictMode: time violations in Binder calls" into gingerbread

Merge commit 'd2165cfce7911dac66d1195ed9123e79b086d22b' into gingerbread-plus-aosp

* commit 'd2165cfce7911dac66d1195ed9123e79b086d22b':
StrictMode: time violations in Binder calls
cb9ceb1029036363a81952d8ed5dfcbc83e6ff72 29-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: time violations in Binder calls

Change-Id: I5796993dce98be722cf679b78acaf0c9de0ba461
ctivityManagerNative.java
pplicationErrorReport.java
ActivityManager.java
8952f695a322a75a29d404b47982e8be7ad31076 30-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix crash.

Change-Id: Ie8871376213930f1c57ea5f8e67142daf7fbe089
ackStackEntry.java
a66c7b04567a584d73bc4dba2711f5d815e4932d 29-Jul-2010 Adam Powell <adamp@google.com> Add support for setting action bar title/subtitle by resource ID

Change-Id: I91b6f56bd3736fd7cc8b82cbbf0b7be2e1c718e5
ctionBar.java
ff0aff1914f617e9cb24944e9f9608a86992df72 28-Jul-2010 Mike Lockwood <lockwood@google.com> Merge "Add new system service CountryDetector"
5d27977f9da482627ceb19317a2cd70467aff046 28-Jul-2010 Adam Powell <adamp@google.com> Action modes without action bar

Change-Id: I0367ab35e598a17980bd373b30828175f6283acc
ctivity.java
a58a8751b4c2ce457f0082a0baaee61312d56195 13-Jul-2010 Bai Tao <michaelbai@google.com> Add new system service CountryDetector

a. The CountryDetector detects the country the user is in
in order of mobile network, location, sim card or locale.
It will be used by contact and contact provider.

b. All added APIs are hidden at this stage.

Change-Id: I4ba278571ffb6ab6ded0996d4f440a18534f8ed4
ontextImpl.java
005cb6de0727c0b03b92d32f153d8b81caeab8f0 27-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Fix build

Change-Id: Iac31df396eaadd711088c149e4f7b616ff599a29
ctivity.java
69057d0226fbe683defda840d2cb7c5576f2342d 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am f7ad0aa0: am 10f7c1b8: Merge "Explicitly mention again that startCommand() runs on the main thread." into gingerbread

Merge commit 'f7ad0aa005d18f4d934d9b085e969841e4fbf5c1'

* commit 'f7ad0aa005d18f4d934d9b085e969841e4fbf5c1':
Explicitly mention again that startCommand() runs on the main thread.
f7ad0aa005d18f4d934d9b085e969841e4fbf5c1 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 10f7c1b8: Merge "Explicitly mention again that startCommand() runs on the main thread." into gingerbread

Merge commit '10f7c1b8ecf110fd9c646eb3fcb51e6ee74c5885' into gingerbread-plus-aosp

* commit '10f7c1b8ecf110fd9c646eb3fcb51e6ee74c5885':
Explicitly mention again that startCommand() runs on the main thread.
0166c3530535355e7813f54c4e403a21db94a9d2 27-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Explicitly mention again that startCommand() runs on the main thread.

This is already mentioned at the top of Service.java's javadoc, but
I'm seeing people get confused (myself included the other day) after
getting used to incoming service stub binder calls being on their own
threads and forgetting that startCommand() didn't work that way.

Change-Id: Ib79f48d9368ac0ba2d37b7e4dc98d53804bcd59e
ervice.java
6e34636749217654f43221885afb7a29bb5ca96a 23-Jul-2010 Adam Powell <adamp@google.com> Moved context modes into view, renamed to action modes

ContextualMode renamed to ActionMode. Adds a reference to the action
bar and reduces confusion around things named "Context".

Change-Id: Ia5098b1d0799a0ece0810c34e6696eda039fb005
ctivity.java
ontextualMode.java
ialog.java
9fb0bb8292ab35983777f2decc3565377199f54c 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am b6022e3d: am 14bfa398: Infrastructure to report running services to developer.

Merge commit 'b6022e3d500f248cf1abe94e8f1509e27ab25736'

* commit 'b6022e3d500f248cf1abe94e8f1509e27ab25736':
Infrastructure to report running services to developer.
b6022e3d500f248cf1abe94e8f1509e27ab25736 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 14bfa398: Infrastructure to report running services to developer.

Merge commit '14bfa398a4e8697ce5822861a684b7d1245e4a85' into gingerbread-plus-aosp

* commit '14bfa398a4e8697ce5822861a684b7d1245e4a85':
Infrastructure to report running services to developer.
7cd83428f196c0474d12687c718d3f16bf620a49 23-Jul-2010 Ben Komalo <benkomalo@google.com> Ensure that creating a Loader/LoaderManager after the Activity has
started will kick off startLoading() as expected.

Change-Id: I8ec76d39665aab0dc72fb083b6b3751a45b51fce
ctivity.java
14bfa398a4e8697ce5822861a684b7d1245e4a85 25-Jul-2010 Dianne Hackborn <hackbod@google.com> Infrastructure to report running services to developer.

Change-Id: Id1aae61323e7b8357c5fcc4bc641aaa57f3b6fde
pplicationErrorReport.java
dd913a50cd72d6dd23c4ea437f0ebe2be05ca2e8 22-Jul-2010 Dianne Hackborn <hackbod@google.com> Add new DialogFragment class.

For all your Dialog needs.

Change-Id: I36c602ca253488d34a55c8f0be610b9752c33264
ctivity.java
ackStackEntry.java
ialogFragment.java
ragmentManager.java
ragmentTransaction.java
istFragment.java
a265083890cf67b35e432506e81fb90e7cf2bff8 22-Jul-2010 Steve Howard <showard@google.com> am 5e43c5a6: am b8e07a51: DL manager support for broadcasts + connectivity control

Merge commit '5e43c5a6e8f94134850c7e3bc4c7f657e1579746'

* commit '5e43c5a6e8f94134850c7e3bc4c7f657e1579746':
DL manager support for broadcasts + connectivity control
5e43c5a6e8f94134850c7e3bc4c7f657e1579746 22-Jul-2010 Steve Howard <showard@google.com> am b8e07a51: DL manager support for broadcasts + connectivity control

Merge commit 'b8e07a51c1849d6894c5773a3daacedd01294218' into gingerbread-plus-aosp

* commit 'b8e07a51c1849d6894c5773a3daacedd01294218':
DL manager support for broadcasts + connectivity control
b8e07a51c1849d6894c5773a3daacedd01294218 21-Jul-2010 Steve Howard <showard@google.com> DL manager support for broadcasts + connectivity control

* Additions to DownloadManager to support control of broadcast intents, allowed network types, and roaming control. This includes new constants and added implementation.
* New DB columns to hold connectivity flags and one to indicate whether the download was initiated through the public API; this is used to change behavior related to broadcast intents and connectivity controls.

Change-Id: I2e8e4ce92cde7889a0f24dc43b86c596c73c0eaa
ontextImpl.java
2175f1370cbdd73c589b8e99ecfd07c38dffc690 21-Jul-2010 Adam Powell <adamp@google.com> Rename callback methods for contextual modes to match recent refactoring.

Change-Id: I9403f0c728143cd075827f21270b5468abc5271b
ontextualMode.java
71cbae81b05c7fff8e27d54168c24e38693ff2f3 21-Jul-2010 Adam Powell <adamp@google.com> Merge "Fix bug 2859423 - action bar: need a way to choose item in spinner"
178097727fab0f41810b1ffd4baf84ff8ed32c42 21-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2859423 - action bar: need a way to choose item in spinner

Change-Id: Idf9c222e5d8f27b4339a6df7d14f3f10dcb4be2c
ctionBar.java
d6665fc48ee09f60d593995ec5de922d42b9ec64 21-Jul-2010 Ben Komalo <benkomalo@google.com> Merge "Relay stopLoading() on the loader from LoaderInfo.stop()"
f5100a7823a60f369a6c0014b1b80ca945128e4a 21-Jul-2010 Ben Komalo <benkomalo@google.com> Relay stopLoading() on the loader from LoaderInfo.stop()

Change-Id: Ie48b303cef4fe1b284d4ed6a1b310f3dcef20c91
oaderManager.java
e4e34965a61c43122d03dc3453ab570a16a858fd 21-Jul-2010 Adam Powell <adamp@google.com> Fix docs

Change-Id: Ib96b693f6da716f87c5ce963ddc69f6bad3da6be
ontextualMode.java
ac695c608ba620e2362f57126d7be453cf5b7e1b 21-Jul-2010 Adam Powell <adamp@google.com> Refactored contextual modes out of action bar.

Change-Id: I1fc1c9383e5ee90f135b92a5afa8eadbf1c13d20
ctionBar.java
ctivity.java
ontextualMode.java
bd7599ff0c91961553f254e3eed59c6ba2a69d22 20-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am fcff6910: merge from open-source master

Merge commit 'fcff691057fecdedd6d3033da672d1a473c76066'

* commit 'fcff691057fecdedd6d3033da672d1a473c76066':
typo fixed
fcff691057fecdedd6d3033da672d1a473c76066 20-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I2a8ec9d290fc1040ba53b9fe73f92b7f90dfdf16
ae96f634eccf86ff80e339c9e9a2abbad3f2a02d 19-Jun-2010 Madan Ankapura <mankapur@sta.samsung.com> typo fixed

Change-Id: Ie7cff39929ae53ce03409afadcae58548ec22cc8
pplicationErrorReport.java
87497936f578317b04e13b0f6ed03b873030c848 19-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 27dfb307: merge from open-source master

Merge commit '27dfb3070adc90ddfcc398a352de1741f52add03'

* commit '27dfb3070adc90ddfcc398a352de1741f52add03':
Replaced deprecated calls to setButton and setButton2
27dfb3070adc90ddfcc398a352de1741f52add03 19-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ia37601f1c8e38a81bfc82b90a05bd3dae20dac88
18814b4c8ade00b5e509a08a73376041e458405c 19-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 9ab60279: merge from open-source master

Merge commit '9ab60279fdbf0d9e9279ae74cdc1a223d9785ce6'

* commit '9ab60279fdbf0d9e9279ae74cdc1a223d9785ce6':
Replaced deprecated setButton Methodcalls
9ab60279fdbf0d9e9279ae74cdc1a223d9785ce6 19-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Iae0a5fadd57d651a614ed1c07afc949fe0637551
45988040454b710c20abf5fda74cdafb874a28bf 19-Jul-2010 Romain Guy <romainguy@android.com> Merge "Replaced deprecated calls to setButton and setButton2"
5671b280924bcecd196424effe6fc09e40315d62 19-Jul-2010 Romain Guy <romainguy@android.com> Merge "Replaced deprecated setButton Methodcalls"
781d34747941f3534b2a985ff57368ad89855d7d 16-Jul-2010 Dianne Hackborn <hackbod@google.com> am 9c37e5ad: am 75a91389: Merge "Implement native key pre-dispatching to IMEs." into gingerbread

Merge commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961'

* commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961':
Implement native key pre-dispatching to IMEs.
74446cef55e75aa6bf4627f4c128768a2cdc5b63 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am f96c2719: am 0c36c96f: Merge "StrictMode: batch drop box writes for system apps" into gingerbread

Merge commit 'f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7'

* commit 'f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7':
StrictMode: batch drop box writes for system apps
d2f6c7fe735ffcdb67852c6a1287565a2afa412d 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 3e5e21d4: am 1772c34e: Merge "StrictMode: gather and return violating stacks in Binder replies" into gingerbread

Merge commit '3e5e21d4dc74751e64d17379c5563ece39a7e35d'

* commit '3e5e21d4dc74751e64d17379c5563ece39a7e35d':
StrictMode: gather and return violating stacks in Binder replies
6ba776ad34a8029e4d0c784ce0092f1fcbc91bef 16-Jul-2010 Christopher Tate <ctate@google.com> am 078ccbdb: am 2c40582a: Merge "Add native C APIs for working with the Asset Manager" into gingerbread

Merge commit '078ccbdbb98c118aa87cab2fef61ff90dd128358'

* commit '078ccbdbb98c118aa87cab2fef61ff90dd128358':
Add native C APIs for working with the Asset Manager
9c37e5add9d7678a29b4e0d1e178fe78a13db961 16-Jul-2010 Dianne Hackborn <hackbod@google.com> am 75a91389: Merge "Implement native key pre-dispatching to IMEs." into gingerbread

Merge commit '75a91389f1938214397aaee262f4136e6bb6b094' into gingerbread-plus-aosp

* commit '75a91389f1938214397aaee262f4136e6bb6b094':
Implement native key pre-dispatching to IMEs.
2c6081ce3593712f30dacd990a97209c791d6ced 16-Jul-2010 Dianne Hackborn <hackbod@google.com> Implement native key pre-dispatching to IMEs.

This significantly re-works the native key dispatching code to
allow events to be pre-dispatched to the current IME before
being processed by native code. It introduces one new public
API, which must be called after retrieving an event if the app
wishes for it to be pre-dispatched.

Currently the native code will only do pre-dispatching of
system keys, to avoid significant overhead for gaming input.
This should be improved to be smarted, filtering for only
keys that the IME is interested in. Unfortunately IMEs don't
currently provide this information. :p

Change-Id: Ic1c7aeec8b348164957f2cd88119eb5bd85c2a9f
ativeActivity.java
f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 0c36c96f: Merge "StrictMode: batch drop box writes for system apps" into gingerbread

Merge commit '0c36c96f2a5458ebd0a5a371c8d1515fcdccb002' into gingerbread-plus-aosp

* commit '0c36c96f2a5458ebd0a5a371c8d1515fcdccb002':
StrictMode: batch drop box writes for system apps
3e5e21d4dc74751e64d17379c5563ece39a7e35d 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 1772c34e: Merge "StrictMode: gather and return violating stacks in Binder replies" into gingerbread

Merge commit '1772c34e5331a6456c8a93051192d19ff873c062' into gingerbread-plus-aosp

* commit '1772c34e5331a6456c8a93051192d19ff873c062':
StrictMode: gather and return violating stacks in Binder replies
0c36c96f2a5458ebd0a5a371c8d1515fcdccb002 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: batch drop box writes for system apps" into gingerbread
1772c34e5331a6456c8a93051192d19ff873c062 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: gather and return violating stacks in Binder replies" into gingerbread
078ccbdbb98c118aa87cab2fef61ff90dd128358 16-Jul-2010 Christopher Tate <ctate@google.com> am 2c40582a: Merge "Add native C APIs for working with the Asset Manager" into gingerbread

Merge commit '2c40582a6c3a5781b39d0504d5aa8934982989d2' into gingerbread-plus-aosp

* commit '2c40582a6c3a5781b39d0504d5aa8934982989d2':
Add native C APIs for working with the Asset Manager
4911b783aa9f4af5ac919db861751d350471f5ef 15-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix bug where loader listener would be registered twice.

Also change LoaderManager to an interface.

Change-Id: Ife6d123e56cc6f63b6fe902afac35b2673761e60
ctivity.java
ragment.java
oaderManager.java
6cce32b6adbb3a9725fc730ba0e0068a74657e60 13-Jul-2010 Christopher Tate <ctate@google.com> Add native C APIs for working with the Asset Manager

Change-Id: I493b142c4b35e5cc1a1e85283bb5dfb306a6d261
ativeActivity.java
ad13b9807b3311b5375e7b8acba894528c9146a8 14-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: batch drop box writes for system apps

Change-Id: Iab49c15ecccefea1d36d86271e1ceb37d79e9449
ctivityThread.java
5b747191ff8ad43a54d41faf50436271d1d7fcc8 12-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: gather and return violating stacks in Binder replies

Now, when Thread A has a strict mode policy in effect and does a
Binder call to Thread B (most likely in another process), the strict
mode policy is passed along, but with the GATHER penalty bit set which
overrides other policies and instead gathers all offending stack
traces to a threadlocal which are then written back in the Parcel's
reply header.

Change-Id: I7d4497032a0609b37b1a2a15855f5c929ba0584d
pplicationErrorReport.java
839458d8d4dbf44cd1778a23471cf8f948a2012c 15-Jul-2010 Jim Miller <jaggies@google.com> resolved conflicts for merge of e03952c0 to master

Change-Id: I414d934101d452a2c2500e539f0b0aff1e1b3ff0
e03952c042c4ee72a96b485e445b944748aa2212 15-Jul-2010 Jim Miller <jaggies@google.com> am 9d42c7f7: Merge "Fix 2797185: Re-enable thumbnail generation in framework" into gingerbread

Merge commit '9d42c7f75cfd7544d6e3f253cedf9ac983fdc6b2' into gingerbread-plus-aosp

* commit '9d42c7f75cfd7544d6e3f253cedf9ac983fdc6b2':
Fix 2797185: Re-enable thumbnail generation in framework
9d42c7f75cfd7544d6e3f253cedf9ac983fdc6b2 15-Jul-2010 Jim Miller <jaggies@google.com> Merge "Fix 2797185: Re-enable thumbnail generation in framework" into gingerbread
0d60b96a8fecae55907bb07f49a267c23965617e 15-Jul-2010 Adam Powell <adamp@google.com> Merge "Bug 2841148 - Add accessors for action bar context mode state."
29ed7575c2129974a57ad77b3531bc5995940c6c 15-Jul-2010 Adam Powell <adamp@google.com> Bug 2841148 - Add accessors for action bar context mode state.

Change-Id: I04f3efce5a692b346756cc80c8d15f3abba10558
ctionBar.java
a51eb0bb2fd9505a943a62f5f6b501fcb23b72bd 15-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 50576fa8: merge from open-source master

Merge commit '50576fa8152557a25e1a231c66d694fffbab34d6'

* commit '50576fa8152557a25e1a231c66d694fffbab34d6':
Start app with several activities with intent filter [Main, Launcher] was broken
50576fa8152557a25e1a231c66d694fffbab34d6 15-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I20cf00dba6908eeee12645e6878db7becdc2a5f9
9e14e9f33a66b864b98c6ff9517988bafbca3301 14-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix fragment index expunging.

Change-Id: If37e58dfa998575530305584d3aa756bb5a61d7b
ctivity.java
ragmentManager.java
3aa513c0ee3794a030c157ba746309f005413e46 14-Jul-2010 Andy McFadden <fadden@android.com> Merge "Implement native dump for "am dumpheap -n"."
2388ad9eef109fa7f63c196c819c83f0376f0645 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'f8d9379bd834573feca085284970cf686993c330'

* commit 'f8d9379bd834573feca085284970cf686993c330':
IME events are now dispatched to native applications.
f8d9379bd834573feca085284970cf686993c330 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320' into gingerbread-plus-aosp

* commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320':
IME events are now dispatched to native applications.
60e299d33d6dbeba6a93d895f220d03db9a98bab 14-Jul-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix bug where LoaderManager instances were not being removed."
ef69fb82db8ca5cb588767da7a3d261ada8a4227 14-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix bug where LoaderManager instances were not being removed.

Change-Id: Ic8385ff60623ecd3e9fe8ff4360aef2c3b11f24f
ragmentManager.java
d76b67c340d1564abf8d14d976fdaf83bf2b3320 14-Jul-2010 Dianne Hackborn <hackbod@google.com> IME events are now dispatched to native applications.

And also:

- APIs to show and hide the IME, and control its interaction with the app.
- APIs to tell the app when its window resizes and needs to be redrawn.
- API to tell the app the content rectangle of its window (to layout
around the IME or status bar).

There is still a problem with IME interaction -- we need a way for the
app to deliver events to the IME before it handles them, so that for
example the back key will close the IME instead of finishing the app.

Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
ativeActivity.java
0b2a6d0773211449fbde9d2706388714beeffebb 14-Jul-2010 Jim Miller <jaggies@google.com> Fix 2797185: Re-enable thumbnail generation in framework

This re-enables thumbnail generation code in the framework
with a few improvements.

In addition to enabling the system to capture thumbnails,
it removes padding from the borders to account for space
overlapped by system widgets (status bar, etc.). Thus,
the contents of the bitmap are only those pixels unique to
the activity.

It also maximizes resolution of the bitmap by capturing the
image in the application's current orientation. In landscape
mode, it captures a bitmap with dimensions w x h. In portrait,
it captures a bitmap with dimensions h x w. Where w and h are
thumbnail_width and thumbnail_height as defined in dimens.xml.

Though enabled, the change is not currently used in this
branch. The work is being checked in here to avoid
complicated downstream merges.

Change-Id: Ifc8a4e0075d7d0697d8159589be3816ace31d70c
ctivity.java
ctivityManager.java
ctivityThread.java
06a6b558bd03d8f0fed8f94f1dcfc03c5a51bd1c 14-Jul-2010 Andy McFadden <fadden@android.com> Implement native dump for "am dumpheap -n".

This adds the ability to generate a trivial heap dump on demand. If
the appropriate system properties aren't set, the output file will
instead contain instructions for enabling them.

The data returned by get_malloc_leak_info() is processed and written
to the specified file. The output looks something like:

Android Native Heap Dump v1.0

Total memory: 2981301
Allocation records: 2152

z 1 sz 65557 num 1 bt 8010dd78 afd12618 ...
z 1 sz 52008 num 3 bt 8010dd78 afd12618 ...
z 1 sz 24428 num 1 bt 8010dd78 8010de84 ...
...2149 more...
END

(the "..." is actually the remaining entries in the stack backtrace;
I truncated it here)

"z" indicates whether the allocation was made pre- or post-zygote,
"sz" is the size allocated, and "num" is the number of allocations
made of that size with the specified backtrace.

Change-Id: I2d60f07444fce5f7178b3f51c928c8faa0b051bd
ctivityThread.java
df4cfa3664e06132c2e2cc26cade06a881f5e529 31-Mar-2010 Johan Erlandsson <johan.erlandsson@sonyericsson.com> Start app with several activities with intent filter [Main, Launcher] was broken

When an application have more than one activities with intent filter
[Main, Launcher], then the intent with ResolverActivity wasn't created correct.

Change-Id: I2617122e07c35284862d2e0643888966ec0f7221
ontextImpl.java
4c14a0f13fb9f5d796b505991e0178b60efbaccf 13-Jul-2010 Steve Howard <showard@google.com> am 47b46648: am b8d890eb: Merge "Initial implementation of the download manager public API." into gingerbread

Merge commit '47b46648b5a9b8c518b96db37618fc49c5e5f2d1'

* commit '47b46648b5a9b8c518b96db37618fc49c5e5f2d1':
Initial implementation of the download manager public API.
47b46648b5a9b8c518b96db37618fc49c5e5f2d1 13-Jul-2010 Steve Howard <showard@google.com> am b8d890eb: Merge "Initial implementation of the download manager public API." into gingerbread

Merge commit 'b8d890ebc1923d98d19d24f396442c91eb766b16' into gingerbread-plus-aosp

* commit 'b8d890ebc1923d98d19d24f396442c91eb766b16':
Initial implementation of the download manager public API.
09d7d7dbc3dbb1d10f2cc18dba7d33e40a098aed 13-Jul-2010 Andy McFadden <fadden@android.com> Merge "Allow "am" to initiate heap dumps."
a2709360665f77ed8bebccb2df86f08e8c83a701 03-Jul-2010 Steve Howard <showard@google.com> Initial implementation of the download manager public API.

The implementation is in android.net.DownloadManager, which is
obtained through Context.getSystemService(). Right now this class
acts as a simple wrapper on top of the existing DownloadProvider,
exposing a simple interface to a subset of DownloadProvider's
functionality. There are several TODOs for features that require
changes to the underlying download manager implementation.

Change-Id: I2f26e51b60b6e82af8478ac7ccd895667df095b6
ontextImpl.java
ef769f6e4849d5d2580570ce08f9493dd43e7f0d 12-Jul-2010 Dianne Hackborn <hackbod@google.com> Some improvements to ListFragment.

- Take care of hiding/showing list automatically for normal behavior.
- Make list_content public for others to use.

Change-Id: Iecb7b70775d390d4e28e5c0dd6ba7278581b2734
istActivity.java
istFragment.java
622b3dc4a902bdc9262981c0a566a70b9a4490b3 12-Jul-2010 Kenny Root <kroot@google.com> Change Javadoc to get around brokenness

Apparently the Javadoc we're using can't handle generic method
arguments, so remove the argument specification to let the compiler
match the right one since we're not overloading that method anyway.

Change-Id: Ie1a1a28c6e3c5fe5d2d434ecc66519e514bc692c
oaderManager.java
824c510752fd6a30cdba5ed7324cb80a5043ce26 10-Jul-2010 Andy McFadden <fadden@android.com> Allow "am" to initiate heap dumps.

This was mostly cloned from the "am profile" implementation. It's
intended to replace the old "kill -10" approach used by "runhat".

We could really use a native heap dump, so I pass a "managed"
flag through that indicates whether we want to dump the native or
managed heap. We don't currently have a native heap dump-to-file
function, so it currently just logs a warning.

(android.ddm.DdmHandleNativeHeap.getLeakInfo is a good start -- it
copies /proc/maps and then calls get_malloc_leak_info to get some
goodies. Needs some formatting to make it human-readable. I didn't
want to cram all that into this change.)

It would be useful if "am" didn't exit until the heap dump operation
completed, but I'm not sure how to do that.

Bug 2759474.

Change-Id: I46bc98067738d8c72ac0fc10002ca67bb4929271
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
2707d6026240bcca6f0e35e2e1138958882e90ce 10-Jul-2010 Dianne Hackborn <hackbod@google.com> Implement instance passing in LoaderManager.

Activity now propagates loaders across instances when retaining
state. Adjusted APIs to make it better for apps to deal with this.

Change-Id: I8a6448cff1132e66207f9223eb29ccfc0decf2ca
ctivity.java
ragment.java
ragmentManager.java
oaderManager.java
b92cd4fc63597a4d90ba88a5e45d3783532d6734 10-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 0260887c: merge from open-source master

Merge commit '0260887ca78330b8dd7009d91859925df94a69d6'

* commit '0260887ca78330b8dd7009d91859925df94a69d6':
Improved logging when there's an error creating the directories in getFilesDir()
0260887ca78330b8dd7009d91859925df94a69d6 10-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ia0dff818a574c8bc79aa79d65fd21bab9f9f6c30
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
53c67c8dfd4fe089bae2ab28cf6eae02ab1066c1 09-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: I60185df6150d13d704a28933bc919527da173307
oaderManager.java
c801768e4d29667a2608695449ebc2833ba0f200 06-Jul-2010 Dianne Hackborn <hackbod@google.com> Integrate Loader support in to Activity/Fragment.

Introduces a new LoaderManager class that takes care of
most of what LoaderManagingFragment does. Every Fragment
and Activity can have one instance of this class. In the
future, the instance will be retained across config changes.

Also various other cleanups and improvement.

Change-Id: I3dfb406dca46bda7f5acb3c722efcbfb8d0aa9ba
ctivity.java
ragment.java
ragmentManager.java
istFragment.java
oaderManager.java
661c908e4e26c99adc2cab7558a02129eaee059d 02-Jul-2010 Adam Powell <adamp@google.com> ActionBar tab mode using fragments; needs styles.

Change-Id: I8f931dae447e7b64de827d3c17766e5f8ad794e2
ctionBar.java
ctivity.java
0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b 08-Jul-2010 Kenny Root <kroot@google.com> am a5402dab: Merge "OBB API for PackageManager" into gingerbread

Merge commit 'a5402dabec84eabcdb9008dc343dd67de325bbac' into gingerbread-plus-aosp

* commit 'a5402dabec84eabcdb9008dc343dd67de325bbac':
OBB API for PackageManager
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
ontextImpl.java
97250d5c4ab5c36dc4f7cf1d9d48157ed934615d 07-Jul-2010 Dianne Hackborn <hackbod@google.com> am e24901d3: am 68267415: Add new native Looper API.

Merge commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550'

* commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550':
Add new native Looper API.
e24901d3adb28fff72821d4e8e2ccc25b2184550 07-Jul-2010 Dianne Hackborn <hackbod@google.com> am 68267415: Add new native Looper API.

Merge commit '682674154e3fe88f6061245145f934f25f1a2eb8' into gingerbread-plus-aosp

* commit '682674154e3fe88f6061245145f934f25f1a2eb8':
Add new native Looper API.
682674154e3fe88f6061245145f934f25f1a2eb8 03-Jul-2010 Dianne Hackborn <hackbod@google.com> Add new native Looper API.

This allows us to avoid exposing the file descriptor of
the event queue; instead, you attach an event queue to
a looper. This will also should allow native apps to be
written without the need for a separate thread, by attaching
the event queue to the main thread's looper and scheduling
their own messages there.

Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239
ativeActivity.java
738639ccd0f12b06d17df3d3b3ee68f506311331 02-Jul-2010 Dianne Hackborn <hackbod@google.com> am 58f35ff4: am 54a181b1: Make real API for native code to get its window.

Merge commit '58f35ff41601769ca4f357575a9385f16c01b991'

* commit '58f35ff41601769ca4f357575a9385f16c01b991':
Make real API for native code to get its window.
58f35ff41601769ca4f357575a9385f16c01b991 02-Jul-2010 Dianne Hackborn <hackbod@google.com> am 54a181b1: Make real API for native code to get its window.

Merge commit '54a181b1a2b1517a9479b21fbf7705a688232faf' into gingerbread-plus-aosp

* commit '54a181b1a2b1517a9479b21fbf7705a688232faf':
Make real API for native code to get its window.
54a181b1a2b1517a9479b21fbf7705a688232faf 01-Jul-2010 Dianne Hackborn <hackbod@google.com> Make real API for native code to get its window.

Added implementation to use ANativeWindow and provide
it to a NativeActivity.

Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2
ativeActivity.java
45886e606593708e342b6a546e45727036eabf7c 01-Jul-2010 Christopher Tate <ctate@google.com> am 705a2df9: am c8525edc: Merge "Remove memory monitoring from the system watchdog" into gingerbread

Merge commit '705a2df97c51c3e31ed36831a4302d705e0532b2'

* commit '705a2df97c51c3e31ed36831a4302d705e0532b2':
Remove memory monitoring from the system watchdog
25a98b8e21f7840ae582ce0a4cde21694c4c94ec 01-Jul-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 7f6c6e8f to master

Change-Id: Id9dddb78c51f16ff8c4b60339421c94fde506db2
705a2df97c51c3e31ed36831a4302d705e0532b2 01-Jul-2010 Christopher Tate <ctate@google.com> am c8525edc: Merge "Remove memory monitoring from the system watchdog" into gingerbread

Merge commit 'c8525edcba58cba7ce17ef72bc64fc3439943c08' into gingerbread-plus-aosp

* commit 'c8525edcba58cba7ce17ef72bc64fc3439943c08':
Remove memory monitoring from the system watchdog
7f6c6e8ffa3c6e036bf8037012a930e52f54e296 01-Jul-2010 Dianne Hackborn <hackbod@google.com> am 3c80a4a0: Implement default key handling for native code.

Merge commit '3c80a4a044865bdf1289c7896baffa1c082d835c' into gingerbread-plus-aosp

* commit '3c80a4a044865bdf1289c7896baffa1c082d835c':
Implement default key handling for native code.
c8525edcba58cba7ce17ef72bc64fc3439943c08 30-Jun-2010 Christopher Tate <ctate@google.com> Merge "Remove memory monitoring from the system watchdog" into gingerbread
c27181c7f3e11170ec82807cfa416f0a906ff574 30-Jun-2010 Christopher Tate <ctate@google.com> Remove memory monitoring from the system watchdog

This was originally written as an in-case-we-need-it facility, but was
never actually used in production. It also soaked up a surprising amount
of cpu on occasion, as well as doing sketchy things like demoting the
system_server's primary looper thread to the background cgroup at times.

Change-Id: I9a81a8d1e9caea9e0a1277d97785fe96add438d7
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
3c80a4a044865bdf1289c7896baffa1c082d835c 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Implement default key handling for native code.

The native code now maintains a list of all keys that may use
default handling. If the app finishes one of these keys
without handling it, the key will be passed back off to Java
for default treatment.

Change-Id: I6a842a0d728eeafa4de7142fae573f8c11099e18
ctivity.java
ativeActivity.java
0e94b5151d817e600a888448a662208b29b5ef46 30-Jun-2010 Adam Powell <adamp@google.com> Add subtitles for action bars and context modes.

Fix an issue where context mode content was cleared before animating out.

Change-Id: Ie7a065e65bc18e3da32de07543d0f71d2a2d648c
ctionBar.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
ctionBar.java
ctivity.java
b0c56b24aada23461c04746926ba185dfdbb8b5b 29-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix SDK build.

Change-Id: Iec71b6cbaf262f143c65c4b7b98e165f285259ac
istFragment.java
445646c52128a763b56ed7bb3bd009e2f33e3e4f 26-Jun-2010 Dianne Hackborn <hackbod@google.com> Improvements to ListFragment.

Now deals correctly with a content view containing just a list,
and adds a lot more built-in functionality: ability to show
custom text for an empty list, and indeterminant progress while
populating the list.

In addition, reworks transaction committing to be more aggressive
about committing the transactions as the containing activity
moves between its states (rather than waiting for the activity's
handler to process the transaction message whenever that may
finally happen). And fixed a bug with saving/restoring state of
transaction replace operations.

Change-Id: I9617a0c4f248b50a61b319910323639b6de24f73
ctivity.java
ackStackEntry.java
ragmentManager.java
istFragment.java
oaderManagingFragment.java
d0e73fb629bc85560051d42b262243a8d9b17b87 25-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am d3844bcf: merge from froyo-plus-aosp

Merge commit 'd3844bcfb05719ab69d4aae6f4767ad3ef6d23fc'

* commit 'd3844bcfb05719ab69d4aae6f4767ad3ef6d23fc':
Support custom themes with AlertDialog.Builder
d3844bcfb05719ab69d4aae6f4767ad3ef6d23fc 25-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I9bd45d66c9586b99635d7d05d1f351126bfc9840
a47130783b386df4a371d9b6898eaae5720260f6 25-Jun-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced deprecated calls to setButton and setButton2

Change-Id: Ifcc3f3afc1689406a3298dab7b00a8edb83c115e
imePickerDialog.java
e8db3a3f4016184b08ff39b0cdc2cc02e852f7e7 25-Jun-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced deprecated setButton Methodcalls

Change-Id: I8358b2dce25c6d5024550c54d98b4891f41b2a40
atePickerDialog.java
5f5acca334bbff89b3801d2970d64b06e36614ba 25-Jun-2010 Christian Mehlmauer <FireFart@gmail.com> Improved logging when there's an error creating the directories in getFilesDir()

Improved logging when there's an error creating the
directories in getFilesDir();

Due to mkdirs() only returns false on errors,
it's better to output the directory path so the dev
knows the path that can not be created
See also Issue 8886
http://code.google.com/p/android/issues/detail?id=8886

Change-Id: I44d6adc8508ef9ca57f000b5d7bceeb0cfa3ed13
ontextImpl.java
8bb998d52c118d361390af89b14dd67a4563509a 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am ea8eafad: am 2529a453: Merge "Make bad notifications crash their application." into gingerbread

Merge commit 'ea8eafad4f5438ec1291d45376959a996d36e15e'

* commit 'ea8eafad4f5438ec1291d45376959a996d36e15e':
Make bad notifications crash their application.
ea8eafad4f5438ec1291d45376959a996d36e15e 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 2529a453: Merge "Make bad notifications crash their application." into gingerbread

Merge commit '2529a45339b7e02d9d2b813358bcecd144a971ea' into gingerbread-plus-aosp

* commit '2529a45339b7e02d9d2b813358bcecd144a971ea':
Make bad notifications crash their application.
9d39d0cb361c5d3bba04a6bacf299be2162a6e92 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Make bad notifications crash their application.

Implement notification manager handling of bad notifications, to
call a new activity manager to have the owner's process crashed
(if there is one).

Change-Id: Ib15e8d0c598756f3b39c99cc2045c18e054daf6b
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
36e5f667bc889a7b1bc17f9a5bd44f33b2d47020 25-Jun-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 2eb12a47 to master

Change-Id: I79eb9d9f083e51ec1b99145d81632683669e7a99
2eb12a47224f1617787c09824107ac6bc22f9b3e 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 01e4cfc4: Some ActivityThread/ActivityManager cleanup.

Merge commit '01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301' into gingerbread-plus-aosp

* commit '01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301':
Some ActivityThread/ActivityManager cleanup.
01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Some ActivityThread/ActivityManager cleanup.

- Move PackageInfo out of ActivityThread, renaming to LoadedApk.
- Rename some of the other PacakgeInfo inner classes to better
represent what they are.
- Rename HistoryRecord to ActivityRecord.
- Introduce AppGlobals, to eventually let ActivityThread become
package scoped.

Change-Id: Ib714c54ceb3cdbb525dce3db9505f31042e88cf0
ctivityThread.java
ppGlobals.java
ontextImpl.java
oadedApk.java
5eceb79a19f60236e5bec76fabacc0cfe2a212bb 24-Jun-2010 Dianne Hackborn <hackbod@google.com> am 82677b95: am e57c3a88: Merge "Add APIs for finding heavy-weight apps." into gingerbread

Merge commit '82677b9585968806800abff65c5b1529f509a313'

* commit '82677b9585968806800abff65c5b1529f509a313':
Add APIs for finding heavy-weight apps.
82677b9585968806800abff65c5b1529f509a313 24-Jun-2010 Dianne Hackborn <hackbod@google.com> am e57c3a88: Merge "Add APIs for finding heavy-weight apps." into gingerbread

Merge commit 'e57c3a88b99856d1e69fdf115e7c7954594b7385' into gingerbread-plus-aosp

* commit 'e57c3a88b99856d1e69fdf115e7c7954594b7385':
Add APIs for finding heavy-weight apps.
baf42c625c3ef4cb7b732956a97953efd93b23bc 24-Jun-2010 Dianne Hackborn <hackbod@google.com> Add APIs for finding heavy-weight apps.

Change-Id: I6c865cce404cac1a08eee056f963de5d276d5898
ctivityManager.java
f92f8686f982c62a609a2087383a77a24d126992 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am 98f7aed6: am 1e4b9f39: Remove InputConsumer, replacing with InputQueue.

Merge commit '98f7aed66b54c365f816fe990de978f61155cde1'

* commit '98f7aed66b54c365f816fe990de978f61155cde1':
Remove InputConsumer, replacing with InputQueue.
98f7aed66b54c365f816fe990de978f61155cde1 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am 1e4b9f39: Remove InputConsumer, replacing with InputQueue.

Merge commit '1e4b9f3936d6f357e89360293e05a0e16d5fa440' into gingerbread-plus-aosp

* commit '1e4b9f3936d6f357e89360293e05a0e16d5fa440':
Remove InputConsumer, replacing with InputQueue.
1e4b9f3936d6f357e89360293e05a0e16d5fa440 23-Jun-2010 Dianne Hackborn <hackbod@google.com> Remove InputConsumer, replacing with InputQueue.

Change-Id: Ib06907278457aaee842b123adc072840ca3602d8
ativeActivity.java
4ecdad302f6f775468b0c4d71afde7397c5b3c2a 23-Jun-2010 Daniel Sandler <dsandler@android.com> am c82b4e80: am 69a4817e: Immersive activity API.

Merge commit 'c82b4e80b8211851963929b33592bbc50358525b'

* commit 'c82b4e80b8211851963929b33592bbc50358525b':
Immersive activity API.
c82b4e80b8211851963929b33592bbc50358525b 23-Jun-2010 Daniel Sandler <dsandler@android.com> am 69a4817e: Immersive activity API.

Merge commit '69a4817e3e1e368e758ff8c238deb5ee26963c04' into gingerbread-plus-aosp

* commit '69a4817e3e1e368e758ff8c238deb5ee26963c04':
Immersive activity API.
69a4817e3e1e368e758ff8c238deb5ee26963c04 23-Jun-2010 Daniel Sandler <dsandler@android.com> Immersive activity API.

An Activity can declare itself to be "immersive" either by
setting android:immersive="true" in AndroidManifest or by
calling setImmersive(true).

Immersive activities "should" not be interrupted, for
example by Notifications with an associated
fullScreenIntent. (In the future we may even prevent any
non-system application from successfully calling
startActivity() if the foreground activity is immersive.)
Notifications with FLAG_HIGH_PRIORITY set will be shown to
the user in some less-obtrusive way if the frontmost
activity is immersive.

Change-Id: I8d0c25cc4e22371c27cbf2bb6372d2c95d57b2d7
ctivity.java
ctivityManagerNative.java
ActivityManager.java
320742b15a710ede57862eee170945da26ef0172 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am e3e2883f: am e24a60aa: Merge "First stab at attaching native event dispatching." into gingerbread

Merge commit 'e3e2883f2232007174ead562610eb01201890d9b'

* commit 'e3e2883f2232007174ead562610eb01201890d9b':
First stab at attaching native event dispatching.
e3e2883f2232007174ead562610eb01201890d9b 22-Jun-2010 Dianne Hackborn <hackbod@google.com> am e24a60aa: Merge "First stab at attaching native event dispatching." into gingerbread

Merge commit 'e24a60aa4670fb835772b23ff665bb368fa65e30' into gingerbread-plus-aosp

* commit 'e24a60aa4670fb835772b23ff665bb368fa65e30':
First stab at attaching native event dispatching.
a95e4cb62f3642cb190d032dbf7dc40d9ecc6973 19-Jun-2010 Dianne Hackborn <hackbod@google.com> First stab at attaching native event dispatching.

Provides the basic infrastructure for a
NativeActivity's native code to get an object representing
its event stream that can be used to read input events.

Still work to do, probably some API changes, and reasonable
default key handling (so that for example back will still
work).

Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
ativeActivity.java
3b9f0a33a110d01e587ffd5ec7708af68723ad4b 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Recover a handful of commits that were reverted earlier
earchDialog.java
6c9a30045b1e6b9ef5d756e0a9657576c546c9bd 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I36dd4460cae6e3212d724e70ff1091cb791670cd
766d1b7458e5dae1cca36b01cf13e4d16536a091 18-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I05e4c26c902f3cfe0dd99107f518768b246562f7
c68b6e893abc0763bd3a31800fdd7d1892b497c0 17-Jun-2010 Daniel Sandler <dsandler@android.com> am 04b4f781: am cc86c933: Merge "New API for high-priority Notifications and full-screen alerts." into gingerbread

Merge commit '04b4f781b118fa9c815910bf5d2a772cdfef07c2'

* commit '04b4f781b118fa9c815910bf5d2a772cdfef07c2':
New API for high-priority Notifications and full-screen alerts.
96675b1df3969f2d313b68f60ed9fa36805db8ce 11-Jun-2010 Adam Powell <adamp@google.com> Merging ActionBar menu with options menu.

Options menu items may now specify if they would like to appear in the
action bar. Menu items defined in xml may set the showAsAction
attribute to one of "never"(default), "ifRoom", or "always". Action
buttons are populated as follows:

* All showAsAction="always" items become action buttons, even if it
would crowd the navigation area of the action bar.

* If there is space remaining, showAsAction="ifRoom" items are added
until no more will fit comfortably.

Action button click events are now handled by the
onOptionsItemSelected method used by the standard options menu.

The construction of options menus now happens earlier in order to
provide data to the action bar. Activities with an action bar can now
expect to have onCreateOptionsMenu called when activity start-up is
complete.

Activity#invalidateOptionsMenu can be used to force a refresh of menu
items where the previous API would use ActionBar#updateActionMenu.

Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
ctionBar.java
ctivity.java
e46cbd379a3c19708c7f7e5d3f35e2c596de0c46 17-Jun-2010 Daniel Sandler <dsandler@android.com> New API for high-priority Notifications and full-screen alerts.

* fullScreenIntent: a PendingIntent pointing to a
full-screen activity or other modal alert experience to be
shown to the user instead of (or in addition to) a
traditional status bar notification icon. Example: An
incoming call should pop up a full-screen activity
allowing the user to accept or decline the call.

The old way to accomplish this is to simply fire off the
full-screen intent directly from the Phone app. By routing
through the Notification system, we make way for the
FLAG_IMMERSIVE bit (forthcoming API) which would allow the
frontmost opaque window to suppress full-screen alerts.

* FLAG_HIGH_PRIORITY: This bit allows a notification to be
shown in windows that have the FLAG_IMMERSIVE bit set. For
example, a Notification corresponding to an incoming call
would be marked HIGH_PRIORITY so that even in an immersive
activity (i.e. a networked game) the Notification could be
shown to the user.

Change-Id: I4943e53f425800a6e152bc4992dd41586b43aff8
otification.java
e429c5ec9d52a5e9af9133f5de9f1002f04aede1 15-Jun-2010 Martin Nordholts <martin.nordholts@sonyericsson.com> Support custom themes with AlertDialog.Builder

Add a constructor to AlertDialog.Builder with a 'theme' parameter so
that e.g. the buttons in a dialog built with AlertDialog.Builder can
be themed.

Change-Id: Ie1b1c9706ad2146c8b64dd91fe249c6855c6ac65
lertDialog.java
a191eb013a491a6319b4f7ac51d4b0b16b3a8f70 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> Fix build

This file was brought back to life by mistaken when merging from
a branch where it was modified into a branch where it had been
deleted

Change-Id: I406c6ced978abfdd59684f14bc9dd53ee7968aae
pplicationContext.java
4138677a72a6ebba3312cc0d32593d11f7a252e1 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I405069e9495e43fdcdedc41efce77d43a291272c
e6af73e18eaa1303a1499b6ec240afd953a92607 25-May-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced deprecated Inten.toURI method

Change-Id: Iff3200294edbc1cac188502219bfe481133a5d8e
pplicationContext.java
earchDialog.java
4ed8e42c50d7b67b8d89c092e9cd49b9b1b0040a 15-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am 92dd85d0: am 742b282e: Merge "StrictMode: implement the log-to-DropBox option" into gingerbread

Merge commit '92dd85d02af60b001f1ae6919eeb11bcf38e64c8'

* commit '92dd85d02af60b001f1ae6919eeb11bcf38e64c8':
StrictMode: implement the log-to-DropBox option
143666f0ca28f0e3e6597e5025078f0449ca6abe 14-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: implement the log-to-DropBox option

Change-Id: I51d12e264155078f953028241f8c5cbdc47262e8
pplicationErrorReport.java
bde75706592c77379fb6546283e733abaca6fe04 28-May-2010 Sen Hu <senhu@google.com> wire up sampling profiler to dropbox

When system property "persist.sys.profiler_hz" > 0, SamplingProfilerService is
loaded to SystemServer. It creates a FileObserver, watching any new file in the snapshot
directory. When a snapshot is found, it is put in dropbox and deleted after that.

SamplingProfilerIntegration writes snapshots with headers. Headers are <name, value> pairs,
instantiated by caller.

Currently header format is (also in source comment):

Version: <version number of profiler>\n
Process: <process name>\n
Package: <package name, if exists>\n
Package-Version: <version number of the package, if exists>\n
Build: <fingerprint>\n
\n
<the actual snapshot content begins here...>

BUG=2732642

Change-Id: I2c1699f1728e603de13dbd38f9d8443cd3eecc06
ctivityThread.java
5ddd127d5a38d80c0d8087d1770f41f61f84f048 12-Jun-2010 Dianne Hackborn <hackbod@google.com> Implement ListFragment and Fragment context menus.

Also fix the docs build.

Change-Id: I96f24cc03e6debd897171e503957284b140a9f27
ctivity.java
ragment.java
ragmentManager.java
istFragment.java
4dc643eb6749afe5211198c920e739475590f92c 13-Jun-2010 Wink Saville <wink@google.com> Fix some javadoc link/see's to fix the build for the sdk-win_sdk target.

Change-Id: I243c19d3d7f1ed2decbd6bfc7ecbe6ce2b582fc2
ctionBar.java
ragment.java
0c330e26e853e478bf1c3d63eae98a42a1c12bad 12-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am 11bd9d1e: am 94f14aec: Merge "More StrictMode work, handling violations in ActivityManagerService." into gingerbread

Merge commit '11bd9d1ec20ce3bbd3791b537faad429a1ca87e7'

* commit '11bd9d1ec20ce3bbd3791b537faad429a1ca87e7':
More StrictMode work, handling violations in ActivityManagerService.
46d42387464a651268648659e91d022566d4844c 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> More StrictMode work, handling violations in ActivityManagerService.

Also starts to do duplicate-suppression.

Change-Id: I0502f6ab6c45fa319298de4874ecfe44b7829d21
ctivityManagerNative.java
ctivityThread.java
pplicationErrorReport.java
ActivityManager.java
cf0a99910cf87b148fe3143686262a8371d2dbc1 11-Jun-2010 Dianne Hackborn <hackbod@google.com> am 4d4f265e: am 9f8cc518: Merge "Adjust activity manager process OOM adj." into kraken

Merge commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f'

* commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f':
Adjust activity manager process OOM adj.
32907cfb38bda2d3c052cf5139c5b592678fedbb 11-Jun-2010 Dianne Hackborn <hackbod@google.com> Adjust activity manager process OOM adj.

Modify OOM adj classes a bit, to take into account the new
heavy weight app type, and give "foreground services" their
own category to have a bettery chance to manager them when
things go wrong.

Also add some new code to battery stats to keep a history
of changes to the battery level.

Change-Id: I29f5ab6938777e1a7eafd7d8c38b5e564cc9f96a
ctivityManager.java
b60c941811cc15ab34fcc2f038aba56f862659b8 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of f37cbe6b to master

Change-Id: I529b17e55b9668f900f685f92e9831e14a82db05
438d0595121a7a2cdf19741e76e3c0e21a5c173d 10-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Introduce "StrictMode"

This is a new public API for developers to opt-in to strict rules
about what they're allowed to do on certain threads. (this is the
public face of the @hide dalvik.system.BlockGuard, added recently...)

In practice this will be used for developers to opt-in to declaring
that they don't want to be allowed to do various operations (such as
disk I/O or network operations) on their main UI threads. (these
operations are often accidental, or even when they are fast come with
a good chance of being slow or very slow in some cases....)

Implementation wise, this is just a thread-local integer that has a
bitmask of the things that aren't allowed, and more bits for saying
what the violation penalty is. The penalties, of which multiple can
be chosen, include:

* logging
* dropbox uploading for analysis/reporting
* annoying dialog
* full-on crashing

These are all only very roughly implemented at this point, but all
parts now minimally work end-to-end now, so this is a good checkpoint
commit before this gets too large.

Future CLs will polish all the above 4 penalties, including
checksumming of stacktraces and minimizing penalties for duplicate
violations.

Change-Id: Icbe61a2e950119519e7364030b10c3c28d243abe
ctivityManagerNative.java
ctivityThread.java
ontextImpl.java
ActivityManager.java
d92ea071c0d8161f63c3a6a3cb4875adf9a3b226 10-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a stopLoading() method.

This add an API to stop and remove a loader that
is no longer needed.

Change-Id: Ibe59981bb8bc9965a3360917e80b0e710efcd8e1
oaderManagingFragment.java
b31e84bc4513e46bac4be8f8d0513f78e360fb11 09-Jun-2010 Dianne Hackborn <hackbod@google.com> Add Fragment option menu APIs.

Also fix up how transactions are handled so that a series of transactions
can correctly be created and committed.

Change-Id: I948ba47d49e9b2246a1958bd9eac9dd36dc5a855
ctivity.java
ackStackEntry.java
ragment.java
ragmentManager.java
c857740f242169f2ca7fd42f0d1268661b399ad6 05-Jun-2010 Konstantin Lopyrev <klopyrev@google.com> Adding support for minimum number of non letter characters.

Change-Id: If54cb7209d65eef826d474d7e0dbbef63d2f2b47
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
db479c9af0dd44bb0e3efcd1c432c473153a1a57 09-Jun-2010 Adam Powell <adamp@google.com> Merge "Dropdown mode for ActionBar; style and API updates"
1a0ce1cc6f6bda7ef7345b20860bc0c8cd3d8451 09-Jun-2010 Jim Miller <jaggies@google.com> am db603bb5: am 3b68548d: am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo
3b68548da60ab3249fbc89b8e587e22485630f32 09-Jun-2010 Jim Miller <jaggies@google.com> am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo

Merge commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c' into kraken

* commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c':
Fix 2737842: Disable KeguardManager API if device policy is enabled
c19dade5a4cd1a9e1154c4fb20ac6d509f1d0bd5 09-Jun-2010 Jim Miller <jaggies@google.com> am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo

Merge commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c' into froyo-plus-aosp

* commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c':
Fix 2737842: Disable KeguardManager API if device policy is enabled
284b62e1b8c3419bfd02c6fea5ba0a68146c06f8 08-Jun-2010 Jim Miller <jaggies@google.com> Fix 2737842: Disable KeguardManager API if device policy is enabled

This change adds notification to find out when the device policy
has changed. When an admin adds or changes a policy, we get notified
and reset the state of keyguard to be enabled.

It also moves disabling keyguard into the TokenWatcher.acquired()
method to avoid disabling keyguard when a policy doesn't permit it.
This avoids reference counting issues in TokenWatcher and hence relieves
the ordering issue.

There is one remaining caveat. An application that uses KeyguardManager
to disable keyguard will need to disable keyguard again after any
policy change.

Tested:

Install and run app that disables keyguard with no admin. Result: keyguard is enabled/disabled as expected.
Enable admin and set quality = "something" after installing & running app. Result: keyguard is enabled.
Change admin password quality to "unspecified" and re-run app (per caveat). Result: keyguard is disabled.
Change admin password quality to "something" again. Result: keyguard is enabled.
Disable admin : Result: keyguard is enabled until app runs again (per caveat).

Added minor cosmetic changes after review.

Change-Id: I302f2b01446bf031f746b0f3e8b5fd7a6cc0e648
dmin/DevicePolicyManager.java
a408291e22def5755559f42cde913706a6d628c0 05-Jun-2010 Adam Powell <adamp@google.com> Dropdown mode for ActionBar; style and API updates
ctionBar.java
1a4ebd42e2abbce86fcbdb0b68b2229892a4e8a5 08-Jun-2010 Jim Miller <jaggies@google.com> am cfa2d7c9: am 700a9506: am cb52cb52: Fix SDK build.
aed22d27bbeb4c5f1f5b8d6ff0c49cdf5c698985 08-Jun-2010 Jim Miller <jaggies@google.com> am a9a0a0b2: am 7d70358a: am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo
700a95068e7c774963be318c91df5bf40d765397 08-Jun-2010 Jim Miller <jaggies@google.com> am cb52cb52: Fix SDK build.

Merge commit 'cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0' into kraken

* commit 'cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0':
Fix SDK build.
5d0cc81a349d6ebee4cf3f25ea4619e704233f65 08-Jun-2010 Jim Miller <jaggies@google.com> am cb52cb52: Fix SDK build.

Merge commit 'cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0' into froyo-plus-aosp

* commit 'cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0':
Fix SDK build.
cb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0 08-Jun-2010 Jim Miller <jaggies@google.com> Fix SDK build.

On branch fix_sdk
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: core/java/android/app/KeyguardManager.java

Change-Id: I56848db098822536f0ac32efc8f0eb1d725bf6f9
eyguardManager.java
c4e37ac0ea01e346ffa635a074222f6bc8671e14 08-Jun-2010 Jim Miller <jaggies@google.com> am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo

Merge commit 'bde25c207731783a62e3611586fe05cd35add0d9' into froyo-plus-aosp

* commit 'bde25c207731783a62e3611586fe05cd35add0d9':
Fix 2737842: disable keyguard API when device policy is enabled.
7d70358a039426ca2da53cd3330638e2b12ca92e 08-Jun-2010 Jim Miller <jaggies@google.com> am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo

Merge commit 'bde25c207731783a62e3611586fe05cd35add0d9' into kraken

* commit 'bde25c207731783a62e3611586fe05cd35add0d9':
Fix 2737842: disable keyguard API when device policy is enabled.
d6b5705e188e55a3b9dbb07954b16564b1a31b9f 08-Jun-2010 Jim Miller <jaggies@google.com> Fix 2737842: disable keyguard API when device policy is enabled.

This fix disables KeyguardManager's enable/disable API when any
device policy admin requests a policy that enforces a password.

Change-Id: Idb1da16b14ed8963142f7b1f62d2b060d84ffa65
eyguardManager.java
c39a5dcbe151e2a55bf8d6c40b56ec875c8715d5 04-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2733766: Crash in Gallery onDestroy: java.lang.RuntimeException

Change-Id: I1c67a6603c23d15fef9a6912c86ffdf77aaa8654
ctivity.java
d0b15cecc63b03ca4e42549ed3a54ae2c7e31866 04-Jun-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f3307ae8 to master

Change-Id: Ic59db363391f73343eba32894113914ceea5a963
860755faa6bdd3c2aeae49c05b87b5bc080ae60c 04-Jun-2010 Dianne Hackborn <hackbod@google.com> Add support for heavy-weight applications.

Only one can be running at a time, their process can not be killed,
and a notification is posted while it is running.

Change-Id: I843015723947e0c934ae63a1aeee139327c0bc01
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
512596d4254cb15ad329e3b78f3c867bd65208ca 03-Jun-2010 Vasu Nori <vnori@google.com> Merge "new API in Context. on openDatabase, new param DatabaseErrorHandler"
f8b0f11a94b10f38d16afbf4364243e9dbd4e2fd 03-Jun-2010 Romain Guy <romainguy@google.com> Merge "Fix memory leak in LocalActivityManager. Also properly removes embedded activities. Bug #2738247"
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
ontextImpl.java
d315ee93c678a109b57fcad4ba1456e9b5244648 03-Jun-2010 Romain Guy <romainguy@google.com> Fix memory leak in LocalActivityManager. Also properly removes embedded activities.
Bug #2738247

Change-Id: Ib75be22fde5f1408250947566c69174c6f248c98
ocalActivityManager.java
98795669b6fcb6b25478f83276b52551f8d633c8 03-Jun-2010 Joe Onorato <joeo@android.com> am 9310277c: am 798ac4c7: Start moving resources to SystemUI.apk.
fb1bd96ffb0ecd9a4356356e6c2e05bdaa4bd77a 03-Jun-2010 Joe Onorato <joeo@android.com> am ef5ce59a: am 18e69dfc: Checkpoint. Data structures for Notifications in place.
37166e6d7e41d309e834f114096d8c876ab1a45d 03-Jun-2010 Joe Onorato <joeo@android.com> am ff97998a: am 4762c2d7: Add expand and collapse.
60a83af0488b5ebaffbdf70d5709eed0834a91f8 03-Jun-2010 Joe Onorato <joeo@android.com> am ee5d0caf: am f3f0e053: Make disable() work.
e635a6bcc12ddafdf921f564fd3ff374a6ad3ffd 03-Jun-2010 Joe Onorato <joeo@android.com> am 12cd606d: am 0cbda99f: The status bar draws its icons now.
eec13290483719cbb95d4c2a207dc72fb1f40abf 03-Jun-2010 Joe Onorato <joeo@android.com> am 627cfa94: am 90233a1e: Add IStatusBar
51b3c2f25f420c994ef6b39e7c200522af5c7508 03-Jun-2010 Joe Onorato <joeo@android.com> am e0b2ae11: am 25f95f92: Rename IStatusBar to IStatusBarService.
eeb42c4ebdd1e2698b46d9c17c21b014ff4f08e4 03-Jun-2010 Joe Onorato <joeo@android.com> am 2cbaf806: am 2314aab5: First pass at splitting the status bar for the different devices.
798ac4c7d79534a8230623b737b5b1b6a415d105 27-May-2010 Joe Onorato <joeo@android.com> Start moving resources to SystemUI.apk.

Change-Id: Ibf30b8196d65d7fbca1177968cefa5f7a875bf1d
tatusBarManager.java
18e69dfc7235f8a4bfe257f9d1c43539049a22ce 18-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Data structures for Notifications in place.

Change-Id: I146fb9bc1d349112541368e2c99a667821dfdf6e
otification.java
4762c2d75a55e0854bbff2f996748116d4ab1a37 18-May-2010 Joe Onorato <joeo@android.com> Add expand and collapse.

Change-Id: I58ad95c59b2c46d3f25349e137d5624aefc6c6cd
tatusBarManager.java
f3f0e053f0cc66249a11639eb67d0cdc2da26ded 15-May-2010 Joe Onorato <joeo@android.com> Make disable() work.

Change-Id: I93fea37e777b3e04fe7f9171d5b84821587c24f5
tatusBarManager.java
0cbda99f8721ad9b03ada04d2637fb75a2a0feca 03-May-2010 Joe Onorato <joeo@android.com> The status bar draws its icons now.
StatusBar.aidl
StatusBarService.aidl
tatusBarManager.java
90233a1ee50980310613b50f22fc68dd7b40ded8 12-Apr-2010 Joe Onorato <joeo@android.com> Add IStatusBar

Change-Id: Ie73d665085d5ce7358c285bf332ef1dc96005d0f
Poo.aidl
StatusBar.aidl
StatusBarService.aidl
25f95f92005594f2ef094001c54cb4c39eec3ade 09-Apr-2010 Joe Onorato <joeo@android.com> Rename IStatusBar to IStatusBarService.

Change-Id: Icfec2a830f037b21f6afaa796bf49da610567e7b
StatusBar.aidl
StatusBarService.aidl
tatusBarManager.java
2314aab5064ce09f09270e52fa12a38d07464278 08-Apr-2010 Joe Onorato <joeo@android.com> First pass at splitting the status bar for the different devices.

Change-Id: I2f568df92f88dfe8de18d24dd004239f52761aa6
Poo.aidl
StatusBar.aidl
76b704982a59320432e9287cd37e295bd8de13b5 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 8f1259be: am b705eea7: am 1bd7597b: merge from open-source master
b705eea70245dae69d16e18d63b3ee38e1d0c5c3 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 1bd7597b: merge from open-source master

Merge commit '1bd7597b8cdaf39d1183077c463cb30596eb31b0' into kraken

* commit '1bd7597b8cdaf39d1183077c463cb30596eb31b0':
Replaced raw string arguments for Context.getSystemService() with final Context variables
ed06eccce0453f9b5cf29e3702c4bd0bba5cafc6 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am afca60dd: am 59c82376: am c8763858: merge from open-source master
59c82376e573d35f1bad7a35ccd3fe6df85f4342 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am c8763858: merge from open-source master

Merge commit 'c8763858cfcae8be89c0f88df87bf9a3ad90ae64' into kraken

* commit 'c8763858cfcae8be89c0f88df87bf9a3ad90ae64':
Fix for issue 895 (missing android: prefix), Removed unused imports
1bd7597b8cdaf39d1183077c463cb30596eb31b0 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I8333e295ba6b6ed8e7658ecf3fbf1ebea3537aeb
c8763858cfcae8be89c0f88df87bf9a3ad90ae64 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ife78a3e7582be1853d28bbcef41f5d06f3b97ef6
ef367529f9c7a538d74599b37b49ac309d0a8d8c 31-May-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced raw string arguments for Context.getSystemService() with final Context variables

Change-Id: If5139a1526101292e5da557bfad3f4db80fb64a8
ialog.java
a15dcfaf2bc7cbd13b30db6766afe3bbaa01db97 25-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2677197: Adding minimum complex character support.

Change-Id: I520bc5f9aa924bf9b5585b2235a91cc96cb99c25
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
3255823de062e981f7bfc7994919207988697e45 21-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2673731: Adding support for password history to Device Admin.

Change-Id: If3240048813e32b2bae79fe5cb8a73aea20ec56c
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
d6c1919779acb042392615637b9007e0c4b89023 21-May-2010 Christian Mehlmauer <FireFart@gmail.com> Fix for issue 895 (missing android: prefix), Removed unused imports

Change-Id: I5eeca1db7eb97251729dff728b4c482de4b14885
istActivity.java
cddfa6de1fcf1a9480d4c9b575102909bd8f2067 20-May-2010 Dianne Hackborn <hackbod@google.com> Fix sdk build.

Change-Id: I4106de6c85d69a68d80414db5dbf5cf48685ce54
ragment.java
5ae74d6e89a30e79ea85c487b32223ef55314985 20-May-2010 Dianne Hackborn <hackbod@google.com> More fragment work.

Clean up FragmentTransaction API, add more animation control, add new
Fragment APIs for hiding and showing.

Change-Id: Iffe31351024a7a63d164270b8a955a499076600e
ctivity.java
ackStackEntry.java
ragment.java
ragmentManager.java
ragmentTransaction.java
b269735ca087e8e43c23cac75dfd25d00590cea7 19-May-2010 Dianne Hackborn <hackbod@google.com> am 4a30bcf7: am 74323fd1: Update NativeActivity to allow direct surface access.
74323fd1ab8eb11beea286d5c213c63e4b803141 19-May-2010 Dianne Hackborn <hackbod@google.com> Update NativeActivity to allow direct surface access.

No actual native API for using a surface, but it's a step.

Change-Id: I627f26b705abc7a05edf9117411abfacf0fae64a
ativeActivity.java
9911b7f83db2e960f72345e6d50df2b77ca75e3f 15-May-2010 Jeff Hamilton <jham@android.com> Add the Loader and supporting classes.

Loaders are designed to make it easier to manage
asynchronously loading data.

Change-Id: I948db08c721411e94fca071dc6fb4db2b83ea4d6
oaderManagingFragment.java
060341fa2d36bfcdf5b17890569afebd442aa244 14-May-2010 Scott Main <smain@google.com> am 33c06f91: am 6c034325: am 6d8e4fd8: am b83a283a: docs: add dev guide for backup
6c034325a856f4cfb1e8b5bc97adbc7f9dffd0a2 14-May-2010 Scott Main <smain@google.com> am 6d8e4fd8: am b83a283a: docs: add dev guide for backup

Merge commit '6d8e4fd83bb7f4eabc942dd17fa229cf9baf5fcf' into kraken

* commit '6d8e4fd83bb7f4eabc942dd17fa229cf9baf5fcf':
docs: add dev guide for backup
b83a283ac178ab0a72f1d811189d79b26097835e 29-Apr-2010 Scott Main <smain@google.com> docs: add dev guide for backup

Change-Id: I168f6b15d3441c9cbea2cd9699612476c7244530
ackup/BackupAgent.java
ackup/package.html
0efa0c45a176a354d58260533d601abeb36be41b 14-May-2010 Dianne Hackborn <hackbod@google.com> Merge "More fragment stuff:"
6e8304e57ec533e257a2496183125f257be1ff60 14-May-2010 Dianne Hackborn <hackbod@google.com> More fragment stuff:

- New startActivityForResult() API.
- Fragments now should have the correct lifecycle while hanging around
in the back stack (not being destroyed and re-created).
- Rework of state save/restore to make it simpler and better. In theory
now any fragment (including layout and others in the hierarchy) can
now be retained across config changes, though this hasn't been tested.

Change-Id: I2a7fe560e14e567f5675a2f172a23fca67b3e97f
ctivity.java
ontextImpl.java
ragment.java
ragmentManager.java
nstrumentation.java
a1700783b52c3f4e6b52ea425cdce93c74936586 13-May-2010 Adam Powell <adamp@google.com> ActionBar - custom navigation views

Change-Id: Ibc98565816c713474eefd4e96fb51175abfb0187
ctionBar.java
7cd51efcbd2d083bf577696591ef1769034f7e2f 13-May-2010 Jeff Hamilton <jham@android.com> Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
ctivity.java
b4bc78b16a05554c57508b488e21dd8eca4e13e6 13-May-2010 Dianne Hackborn <hackbod@google.com> Further work on fragments:

- Implement all of the state saving and restoring machinery. This
caused some flux in the API.
- Add ability to have fragments that are retained across activity
instances.
- Fix some bugs.

Change-Id: Ib6b5b0752d7f8d667cfdcd3e76d127cc9b6d901b
ctivity.java
ctivityThread.java
ragment.java
ragmentManager.java
ragmentTransaction.java
nstrumentation.java
ocalActivityManager.java
33b974393b6fadcefc896ec4a0f9b66724f61e9f 20-Apr-2010 Adam Powell <adamp@google.com> ActionBar added to framework, integrated with Activity and styles.
Added onClick attribute support to menus in MenuInflater.

Change-Id: I739771b4f249d87a0d8b15969f3d526b099067a1
ctionBar.java
ctivity.java
00f88a950b992d34557ef0445b6e0590cb8847c4 12-May-2010 Brett Chabot <brettchabot@android.com> Merge "Skip ActivityWaiter synchronization on Instrumentation.callActivityOnDestroy"
18f9ce0dc12f5a3bb113f25cb4c14e646a064a2f 12-May-2010 Brett Chabot <brettchabot@android.com> Skip ActivityWaiter synchronization on Instrumentation.callActivityOnDestroy

Temporary workaround for bug 2630683

Change-Id: Ie9ee922dd1f515fc273cb602cb649174e3b8ae6f
nstrumentation.java
3d32f6e5228e5dfbfe88b24f6df64406628a3e0c 01-Apr-2010 Jeff Hamilton <jham@android.com> Add Activity.isChangingConfiguration().

This allows activities to know if they're being
torn down due to a configuration change.

Bug: 2557550
Change-Id: Ibd9bf5a06c92dbe3789049b84133cf4754381873
ctivity.java
ctivityThread.java
f121be737c59390d97e21a92be8e166001534c7d 06-May-2010 Dianne Hackborn <hackbod@google.com> Improvements to fragment API:

- Remove names associated with fragments (we'll use ids). They may
come back for other uses.
- Add method to replace a fragment, to help in doing back stacks.
- Add names to back stack states, to allow for jumping back to
known states.
- Add ability to set animations associated with fragments being
added or removed.

Change-Id: Ic2799f06947b1511fb1df5965ca32568b860b3c3
ctivity.java
ragment.java
ragmentManager.java
ragmentTransaction.java
ba51c3d02d08709e933de6f6c76dee3fd2f4bfa1 06-May-2010 Dianne Hackborn <hackbod@google.com> New fragment stuff: back stack, and layout integration.

You can now have fragment transactions pushed on to a local back
stack, which will automatically be popped when the user pressed
back in the activity.

Fragments can also now be inserted into layouts.

Change-Id: Id1c9ae3fbc54f696cd8bb5ca5957bec4d3eabf18
ctivity.java
ragment.java
ragmentManager.java
ragmentTransaction.java
7304381ca9c654050e559cef2d841f55cc3f07a0 06-May-2010 Dianne Hackborn <hackbod@google.com> am 110a031a: am f41f444d: Merge "First pass at NativeActivity." into kraken
f41f444d127c401ed15cee82dfcabcf11b915947 06-May-2010 Dianne Hackborn <hackbod@google.com> Merge "First pass at NativeActivity." into kraken
69969e48f2bca9339662dddfacff0bbf6374ed7f 04-May-2010 Dianne Hackborn <hackbod@google.com> First pass at NativeActivity.

This is a rough sketch of the new pure-native API, which you can
use through a NativeActivity in your manifest (no Java code in
the .apk needed!).

Intentionally no docs yet, the API is still being seriously
messed with. But it works.

Change-Id: I0e916d58a0d159ecaf3689e41834eb8dc681c0c0
ativeActivity.java
67eb751e526539a7252a6d97173ed2c376fe3888 05-May-2010 Dianne Hackborn <hackbod@google.com> am 9bbc5683: am d9d009d7: am 3445dae3: am 65b2561c: Merge "Fix issue #2643754: Launcher is caching widget layouts for too long" into froyo
e446174b9868fc7135e7399306212ac4381d525c 05-May-2010 Scott Main <smain@google.com> am d582694c: am ebad36db: am 5c16039a: am 01451756: Merge "docs: revise and add documentation for backup APIs" into froyo
d9d009d7212220aa9350bda153a2f9d8e4375f2b 05-May-2010 Dianne Hackborn <hackbod@google.com> am 3445dae3: am 65b2561c: Merge "Fix issue #2643754: Launcher is caching widget layouts for too long" into froyo

Merge commit '3445dae3f52fa8421e3b93496ac93c5753a43bd2' into kraken

* commit '3445dae3f52fa8421e3b93496ac93c5753a43bd2':
Fix issue #2643754: Launcher is caching widget layouts for too long
4416c3d6e4becd9ed39b89a03db0239c8225a135 05-May-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2643754: Launcher is caching widget layouts for too long

With the .apk file names now changing during an update, we need
to make sure to flush all caches related to a package when the
package is removed. Otherwise we can continue to use the old
package, since its old file may still exist if we try to load it
too soon.

Change-Id: I15f08dffca3feac999dbca4f24bef12a30ca0a66
ctivityThread.java
pplicationThreadNative.java
ontextImpl.java
ApplicationThread.java
ebad36db56017000ce8b1eb813537d90248e3ad0 04-May-2010 Scott Main <smain@google.com> am 5c16039a: am 01451756: Merge "docs: revise and add documentation for backup APIs" into froyo

Merge commit '5c16039adfe3da2d9438b8814734f5c8d2570ad3' into kraken

* commit '5c16039adfe3da2d9438b8814734f5c8d2570ad3':
docs: revise and add documentation for backup APIs
47c0c942b006ed5c44aeadecdbb2ac7b58e75524 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2555171: Switching to app immediately after unmounting...

...SD card causes reboot.

Add option to not include temporarily unavailable recent tasks,
for the recent tasks UI to not display them.

Change-Id: I1495ca217b4292fd56f537459b44c0624262c292
ctivityManager.java
d17da43c82c4edb97514d6138bc208eeba321636 30-Apr-2010 Scott Main <smain@google.com> docs: revise and add documentation for backup APIs

Change-Id: I0b015a6de16da07ccd31756b8d2329dc2785c2f7
ackup/BackupAgent.java
ackup/BackupAgentHelper.java
ackup/BackupDataInput.java
ackup/BackupDataInputStream.java
ackup/BackupDataOutput.java
ackup/BackupHelper.java
ackup/BackupManager.java
ackup/FileBackupHelper.java
ackup/SharedPreferencesBackupHelper.java
ackup/package.html
b9eab6c793959cae13399620965d44bd3a6871c3 24-Apr-2010 Adam Powell <adamp@google.com> resolved conflicts for merge of 81cd2e90 to master

Fixed public.xml value padding for kraken/master

Merge commit '81cd2e90' into manualmerge

Conflicts:
api/current.xml

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

Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
ontextImpl.java
2dedce6e84679ead961a485c7fe4b0f77c713b6a 15-Apr-2010 Dianne Hackborn <hackbod@google.com> Introducing Fragment.

Basic implementation of an API for organizing a single activity into separate,
discrete pieces. Currently supports adding and removing fragments, and
performing basic lifecycle callbacks on them.

Change-Id: I6ea8e6bdb04d93f8105c2e983fe9b6532422de34
ctivity.java
ctivityThread.java
ragment.java
ragmentManager.java
ragmentTransaction.java
nstrumentation.java
3c43c5cfb2206267eb4208df12c4fbb63d6cd92f 16-Apr-2010 Mike LeBeau <mlebeau@android.com> am 5fee638e: am f04be52a: am 0c5ad4f1: Merge "For search suggestions in the search dialog, allow the \'title\' line of text to be up to 2 lines (rather than the usual 1) if no \'description\' line is provided." into froyo
0c5ad4f1b35ebf3319b68126bd7b4c8a3eb0340a 16-Apr-2010 Mike LeBeau <mlebeau@android.com> Merge "For search suggestions in the search dialog, allow the 'title' line of text to be up to 2 lines (rather than the usual 1) if no 'description' line is provided." into froyo
120c457672056280e5925589c4b19107a9ee814a 16-Apr-2010 android-build SharedAccount <android-build@google.com> manual merge

Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
ee3bcc4c6462d1402e48e9d260e16d038d8fe291 15-Apr-2010 Dianne Hackborn <hackbod@google.com> A little more improvement of the Service javadoc.

Change-Id: I15fb191a26f2ef86a2bf553177cb2d08905adb1c
ervice.java
212db7d3f8ce5297f4a556234a9c0675c697f1cf 09-Apr-2010 Adam Powell <adamp@google.com> Added MultiSelectListPreference

Added set support to XmlUtils; added Set<String> functions to SharedPreferences.

MultiSelectListPreference allows multiple selection and persistence of
string preferences. Addresses bug 2575634.

Change-Id: Icd56022d444b0ce43cccf819cd7d600fdb00e88a
ontextImpl.java
70b3fb4a7749b21b05906b80e66819f4c135aa4b 15-Apr-2010 Mike LeBeau <mlebeau@android.com> For search suggestions in the search dialog, allow the 'title'
line of text to be up to 2 lines (rather than the usual 1) if
no 'description' line is provided.

Change-Id: Ibc60d72868a4ad9630d38ee9b8cfe3f37c736e64
uggestionsAdapter.java
97107f0497c9afe549933a04ccc44858a0841c0b 15-Apr-2010 Dianne Hackborn <hackbod@google.com> am 093d621c: am 11d7502b: am 8656145e: Merge "Fix issue #593153: Broadcast time out when sending..." into froyo
399cccb85749e02f6d3e12d1d2846310e7cbfdf1 14-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #593153: Broadcast time out when sending...

...ordered broadcast for ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE

Turns out this was because the broadcast receiver for ContextImpl was
not correctly being created, so when it received an ordered broadcast
it would not tell the activity manager when it was done.

This is now fixed, along with a ton of superficial changes to debug
output to help track this down and a little cleanup of dealing with
error cases in dispatching broadcasts. Also a fix for a NPE when
dumping the broadcast state.

Finally, a little fiddling with package manager to get rid of a lot
of the noise when removing and re-adding packages on the SD card.

Change-Id: I961c14836dc613d3ea8122b6e910ef866e7fcb25
ctivityThread.java
ontextImpl.java
53d9264de4f99a069dd7306f881d28ddd5956b35 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2555171: Switching to app immediately after unmounting...

...SD card causes reboot.

Add option to not include temporarily unavailable recent tasks,
for the recent tasks UI to not display them.

Change-Id: I1495ca217b4292fd56f537459b44c0624262c292
ctivityManager.java
cdb45b0edbf86d027f162b07e71b38a4bc80dddf 14-Apr-2010 Christopher Tate <ctate@google.com> am c2b8b5f8: am 0162c3c7: am 3643dc8c: am 3069a6da: Merge "SDK: last of the backup/restore docs content" into froyo
90a36726b7553a1e7efd2f4ecbe01d7e1b3e7a67 12-Apr-2010 Vasu Nori <vnori@google.com> let apps set statement-cache size.

1. we should let apps set their statement-cache size. right n ow it is 250
is the statement-cache size for all apps and that is wasting
a lot of memory. each prepared statement is averaging about 1k-5K,
depending upon the complexity of sql and schema.
mnake default 25 and let apps increase the size, if they need to.

2. in "adb bugreport" info, print stats on the statement-cache hits/missies
and size (in number of statement cached). this will help us understand
how statement-cache is being used

Change-Id: Ic53a2842ef75823757492778158fcb8d5b4a28bb
ctivityThread.java
7cc088232d20a63d24dd1f79f529ddad1b792cde 13-Apr-2010 Christopher Tate <ctate@google.com> SDK: last of the backup/restore docs content

There is probably still some editing and cleanup to do, but this takes care
of the last of the "need this documented by the time we ship!" material.

Bug #2465360

Change-Id: Ic4ce9e5a07c79aa2b584a18012a2e8fe199c19fd
ackup/BackupAgentHelper.java
ackup/BackupDataInputStream.java
ackup/BackupHelper.java
4e14a829129feee14ebe453f61a124784c870610 08-Apr-2010 Christopher Tate <ctate@google.com> SDK: more backup/restore documentation work

Still not complete, but here's a lot more of the necessary documentation.
Submitting a checkpoint seems prudent.

Bug #2465360

Change-Id: Ifff60d57e4b24cee21f3a34f5f50e290d377c386
ackup/BackupAgent.java
ackup/BackupAgentHelper.java
ackup/BackupDataInput.java
ackup/BackupDataOutput.java
ackup/BackupHelper.java
ackup/BackupManager.java
ackup/FileBackupHelper.java
ackup/SharedPreferencesBackupHelper.java
fc922f115325371aaadd4e423472476303039a72 09-Apr-2010 Christopher Tate <ctate@google.com> API CHANGE: remove obsolete constants and hide some methods

This change removes some unused constants from BackupDataOutput
and hides a few methods that do not actually need to be exposed.

Change-Id: I47a9a107a5b58f4d53b5a2fcf9b73a765b1c5dd8
ackup/BackupDataOutput.java
f5c5d22c471f399f215662a8e471bf02b5b6bcfa 09-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2581524: Car home icon should always go to car home

Rework how switching between modes work so the caller can tell us
whether they want to go to home. (So car home launcher can now
tell us they always want to go home.)

Change-Id: Id4a8129027d6d162b4bae6f983911f1f4bf2578f
UiModeManager.aidl
iModeManager.java
c9b6851af68bdc20c4903b16c344e9f116647219 08-Apr-2010 Irfan Sheriff <isheriff@google.com> Throttling framework addins

Add ThrottleManager in getSystemService
Add API for URL fetch

Bug: 2576057
Change-Id: Icd25c8b91ea4beea15c74e8ad7292ab48c962253
ontextImpl.java
559a78753165f20d5973b958791056154baecc43 08-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2549955: Moving the application fails -Activity Manager Crash on launching the app

mResources will be null if we failed loading them because the app
is on external storage that has been unmounted.

Change-Id: If0dbbdc0c3441fa10d0ab074568361524db1c8db
ontextImpl.java
e7501c17e6a926505eaf347252c644da44369235 31-Mar-2010 Leon Scroggins <scroggo@google.com> Show the microphone when the search box is opened from browser

Fix for http://b/issue?id=2549036

Also required moving the call to updateWidgetState to after the
update of mUserQuery so mUserQuery could be used as a comparison.

Change-Id: I4996f09c02751a6d74e8f517669025e4bdd709d8
earchDialog.java
cae57d6205a8ebc8599ff89629307ecb8cabb3b8 07-Apr-2010 Wu-cheng Li <wuchengli@google.com> Fix SDK build.

Change-Id: I2d816f8e765678fa1dc07c1f50cef51026e66a10
ntentService.java
6e3d9884e4d4e202c9b3b9a5539dd22ffac6467b 07-Apr-2010 Dan Egnor <egnor@google.com> Comment-only change to clarify the role and use of IntentService

Change-Id: I0adb26daccc8d1559f96892cc31694fbf6ab4583
ntentService.java
28fe20930e4749a7d34bb438047c0647f775cf67 06-Apr-2010 Bjorn Bringert <bringert@android.com> Guard against NPE in SearchManagerService

Bug http://b/issue?id=2570569

Change-Id: I72395f847b3dbc699c73358e14421d624f40fcf3
earchableInfo.java
d0635d51bc8a71e7dcc7dda39862f18aca5bd135 02-Apr-2010 Mike LeBeau <mlebeau@android.com> Use flattenToShortString instead of toShortString on ComponentNames to
be sent in RecognizerIntent.EXTRA_CALLING_PACKAGE. This never should have
been using toShortString because that includes curly braces and is not
correctly parsed by ComponentName.unflattenFromString.

This was needed as part of http://b/2546173

Change-Id: If34a9273cbcae13a75347be0b6b7ef307134ed40
earchDialog.java
e134279ffa3d5a3871fd39e9e9328b3ab1fec88d 02-Apr-2010 Mike LeBeau <mlebeau@android.com> Merge "Also send EXTRA_CALLING_PACKAGE for voice search intents that do web search (not just for in-app search). Needed as part of http://b/2546173" into froyo
6af5ad5e618e773e629a490f1ed268b1bc155d59 01-Apr-2010 Mike LeBeau <mlebeau@android.com> Also send EXTRA_CALLING_PACKAGE for voice search intents that do web
search (not just for in-app search). Needed as part of http://b/2546173

Change-Id: I661ff52bace754459651eacd369a19e97364c3c6
earchDialog.java
9c9c532d3625ba2485eb4ea6924ed0a0163fd958 31-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2560791: Expose API to go in to car mode.

Also fix bug where night mode was being used in desk dock.

Change-Id: I56c1cf3d6fe800a4f986d40cc4cb2e70b76ac261
iModeManager.java
07330791116513710d879c45b2f095cd314cbfd0 31-Mar-2010 Jeff Brown <jeffbrown@google.com> Show SD unavailable icon for apps on SD when ejected.

This change include a minor refactoring of PackageItemInfo and related
classes to eliminate code duplication and to avoid redundant work
searching for an ApplicationInfo instance we already have.

Bug: b/2537578
Change-Id: Id0794c3f055ea58b943028f7a84abc7dec9d0aac
ontextImpl.java
27a63583bfb8b4668911a819f3c7827ef0cc2ec8 30-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: @hide AbsoluteFileBackupHelper

We don't want to publish this, but for risk mitigation we are hiding it
rather than rewriting/expanding the FileBackupHelper to accomodate the
absolute-path use cases that the system uses internally.

Change-Id: I513c97ec54de8dd7d28b10868d447d94b82d4ec3
ackup/AbsoluteFileBackupHelper.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
ontextImpl.java
2d449afe3d075020bdd1115bcc15c9383cbce122 30-Mar-2010 Christopher Tate <ctate@google.com> Make RestoreSession.getAvailableRestoreSets() asynchronous

This transaction can involve the transport having to query a remote backend
over the wire, so it can take a Long Time(tm). Make it main-thread-safe by
making it asynchronous, with the results passed as a callback to the invoker's
RestoreObserver. We also make the IRestoreObserver callback interface
properly oneway.

Bug #2550665
Bug #2549422

Change-Id: If18a233a0a3d54c7b55101715c9e6195b762c5a0
ackup/IRestoreObserver.aidl
ackup/IRestoreSession.aidl
ackup/RestoreObserver.java
ackup/RestoreSession.java
fef8cebcdcf0cbd4a0dafba87e33e3b500fb1321 29-Mar-2010 Bjorn Bringert <bringert@android.com> Clean up SearchableInfo API, JavaDoc and formatting

This change cleans up the JavaDoc in SearchableInfo,
removes trailing whitespace, fixes an if-statement
style violoation, and re-hides some things that were
exposed for Froyo that query deprecated or discouraged
attributes:

SearchableInfo.getSearchButtonText()
SearchableInfo.getLabelId()
SearchableInfo.getIconlId()
class SearchableInfo.ActionKeyInfo
SearchableInfo.findActionKey()

Bug http://b/issue?id=2553524

Change-Id: Iee5521c844f74137166730e523d29ba07ef1856b
earchableInfo.java
03aa34f50d7e8deefeb5e29f96425469c07c281d 30-Mar-2010 Amith Yamasani <yamasani@google.com> Fix preloaded classes for API rename of BackupAgentHelper

Change-Id: Ica6301b2aac6879702b98edfcf67fc7bc62002db
ackup/package.html
cc84c69726507a85116f5664e20e2ebfac76edbe 29-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council

Part of bug #2545514

Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
ackup/BackupAgent.java
ackup/BackupAgentHelper.java
ackup/BackupHelper.java
ackup/BackupHelperAgent.java
ackup/BackupManager.java
ackup/FileBackupHelper.java
ackup/SharedPreferencesBackupHelper.java
7eec2bcf6fd6c0072d8523c459f305c178f83ee7 29-Mar-2010 Romain Guy <romainguy@google.com> Tame the monkey.
Bug #2547546

Change-Id: I2a41f53dbd71a166ddce70f3fbec24cfedaa514a
ialog.java
9c3cee9824026764275e4d84ba9b5d9fdc5da690 26-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: Backup/restore API changes requested by the API Council

* @hide the android.app.backup.RestoreSession class and functionality

* Provide a public method on android.app.backup.BackupManager that apps
can use to request a restore pass of their last-known-good dataset.
The new method is called requestRestore().

* Provide the name of the package being restored, not just its ordinal,
in the RestoreObserver's onUpdate() callback.

Part of bug #2545514

Change-Id: I9689bf8d6e2b808b4ee412424a36a835be0a5ca8
ackup/BackupManager.java
ackup/IRestoreObserver.aidl
ackup/RestoreObserver.java
ackup/RestoreSession.java
d49258fed489bcd72a2b2a6ce3a3c38d4b2531e6 26-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83

There was a really dumb bug that was causing us to not always apply
the new configuration. As a result of fixing this, there were new
glithes in the transition between car and regular mode, so further
work here to fix that. And since I was actually working during the
night and seeing night mode, I noticed how obnoxiously bright the
status bar is compared to the car home at night, so it now nicely
dims itself when we switch to the night config. Oh and in doing
that I also found and fixed a bug in dispatching config changes to
a window (where they wouldn't get dispatched if the window didn't
resize).

FINALLY... tweak the wallpaper enter/exit animations a bit to
make them a little smoother.

Change-Id: I4e062093cbcfbc919307799a794846db2920216f
UiModeManager.aidl
iModeManager.java
b43bdf41f1adf34a05625b59d4bf8c8bc24f88df 24-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Add new activity manager method to get list of running applications installed on sdcard. Use new method in UsbStorageActivity. Fix moving dex files. moveDex should be suffixed with LI since it uses Installer"
eb9e9ec06167b0caa459f2fb3f3fae094bb8d8f7 24-Mar-2010 Christopher Tate <ctate@google.com> Return the right thing from Context.getApplicationContext()

Previously, this would always return the app context for the first application
ever instantiated in the process. Usually this is fine, since usually there
will be one process per application, but in the case of shared-process apps,
it causes activities/views to try to access the wrong set of resources, be
unable to access their proper derived-class Application objects, etc.

Fixes bug #2513901

Change-Id: Ie19f2a86583c5d927db4d84a4262077450e37539
ctivityThread.java
ontextImpl.java
f7f5dda5e54da53b98f1504672a422a484496531 23-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new activity manager method to get list of running applications installed on sdcard.
Use new method in UsbStorageActivity.
Fix moving dex files.
moveDex should be suffixed with LI since it uses Installer

Change-Id: Id5ef0254578e84b9aae2c2ac44f722eb5a0fda1c
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
9818d7506e69ac30d614edf0379a2ea486115c19 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Improve switching to car mode, retain night mode option."
85f2c9ce5a0e074df2429a5d66e1754e368a0430 22-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be persisted

Also fixes how the quality vs. mode is handled to be more consistent, which also
required introducing a new "alphabetic" quality since it is possible for the user
to enter such a password.

The current password quality and length is stored in the DPM, since at boot it
couldn't figure this out from the stored password.

Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
dmin/DevicePolicyManager.java
2ccda4dc8d800c3592b4bd4d1d70a064d98dd4fe 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Improve switching to car mode, retain night mode option.

Fiddle with how we go into car mode to try to ensure we get a clean
transition. Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
ctivityManagerNative.java
ActivityManager.java
e99bb5f10b90736d10cee9729b56cba156fc0921 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
ctivityManagerNative.java
ActivityManager.java
1afd1c90ebe789b8d3a137004127a50d2db7e3b5 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt68127

No steps to repro, but makes the code more robust by using the standard
JournaledFile class and doing sanity checks on the input it reads.

This required moving the JournaledFile class in to the framework (and
we really should get rid of either it or AtomicFile, but they have
different recovery semantics so that is tough). Also went through and
cleaned up the file management in various places.

Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e
ontextImpl.java
a0d6b59d875edb54b1c820fd4573552989c3869b 18-Mar-2010 Adam Powell <adamp@google.com> Merge "Fix bug 2523989"
c9006872800fceb1a5fef5e8f0470eb79953e79a 18-Mar-2010 Adam Powell <adamp@google.com> Fix bug 2523989

AlertDialog's docs now refer to the id android.R.id.custom, the
correct method addView, and android.R.id.custom has been exported as a
public id.

Change-Id: Ide43a03b702f0b36326130909f9a864872ec93fb
lertDialog.java
ae07816a3fcae73fbbc4b23ec3f647d4bee473ce 18-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix problem with calling onConfigurationChanged() too much.

We now return the initial configuration for a window when it is
added to the window manager. The view hierarchy would check to
see if it was different than the last one, and not dispatch a
configuration change down itself if not. However, when
ActivityThread received it, it would always dispatch a config
change even if it is the same.

The solution is to only do this in ActivityThread if the config
is actually different; otherwise, we continue to rely only on
the activity manager explicitly telling us when to do a config
change.

Change-Id: I8a6e3565776dd2723c8b791496bb6041463d4b67
ctivityThread.java
81a291440be651d3d954aefca516bd77abf104dd 18-Mar-2010 Amith Yamasani <yamasani@google.com> Merge "Fix window leak and receiver leak. Bug: 2520143 and Bug: 2517390"
694f79b5d1196640d1beb680b7d1fc68e6e77cbd 18-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2519590: Lock screen stuck in landscape mode

Well, mostly. There is still a problem here where the first time
you show the lock screen it just doesn't draw itself. I assume
this is something breaking in the view hierarchy as it floounders
around removing and adding new views as it is first being shown...
but no idea at this point what is the actual case.

Change-Id: Iba99ae3242931c8673b17b106c86fc99e2c52abe
ctivityThread.java
4986044fd3bce877247e425374b47967775081a8 18-Mar-2010 Amith Yamasani <yamasani@google.com> Fix window leak and receiver leak. Bug: 2520143 and Bug: 2517390

In Activity.onDestroy close any open SearchDialog to avoid a window leak.

Register/unregister broadcast receiver in onStart/onStop of the dialog.
ctivity.java
earchDialog.java
8ad6465ca4a54bf124ea65389132fd1084ac291f 17-Mar-2010 Scott Main <smain@google.com> docs: remove documenation about the search dialog from SearchManager
and point to the new developer guide. Also update the searchable config
doc with a few comments about action keys because they're not documented
anywhere else.

Change-Id: I66d43881daf03a3ffe30b3e5aa6857c8829a6d72
earchManager.java
a03d4ce5b4dfcf5d1bdbae085fc5f51da982ff9a 17-Mar-2010 Leon Scroggins <scroggo@google.com> Make browser search consistent with QSB.

Use the arrow icon for the browser search.

Fixes http://b/issue?id=2520802

Change-Id: I5ebc7de2b5df5fe80be730a46da32fee35d5deff
earchDialog.java
46704571c6d11c982bcd3ca350c56b29e357cd00 16-Mar-2010 Bjorn Bringert <bringert@android.com> Merge "Set SOURCE to app package name when starting QSB (if not set)"
08a4ac3999f54860fb242eae3f19e15583f8d681 16-Mar-2010 Romain Guy <romainguy@android.com> Dismiss a dialog if dimissed right after calling show().
Bug #2508607

Change-Id: Id1b3afcaabf700386f70a46bc2401154575149aa
ialog.java
3c24cb77e7c2ab641b9147a02ce997f3356b7b69 16-Mar-2010 Bjorn Bringert <bringert@android.com> Set SOURCE to app package name when starting QSB (if not set)

If QSB is started by SearchManager.startSearch(globalSearch=true)
from some app that doesn't set SOURCE, it will be set to the
package name of that app.

Bug: http://b/issue?id=2315234
Change-Id: Ic07a143b27b658dea8b081b973ac24349a18b9f1
earchManager.java
24217d8e4dad2a99d7db6f51e89945421a6e7da8 14-Mar-2010 Amith Yamasani <yamasani@google.com> Merge "Use a Go button instead of a magnifying glass in the keyboard for in-app search."
38af4c36fc2636d7dfe6ec3cfe91f406dd1b2803 13-Mar-2010 Christopher Tate <ctate@google.com> Merge "API CHANGE: expose the backup-related ApplicationInfo flag masks"
3de55bcd34afd5871816526294f9514d1adf3fe5 13-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: expose the backup-related ApplicationInfo flag masks

Fixes bug #2507582 by doing the following:

- Un-@hide the FLAG_ALLOW_BACKUP, FLAG_KILL_AFTER_RESTORE, and
FLAG_RESTORE_ANY_VERSION mask constants in ApplicationInfo. These
correspond, respectively, to the <application> manifest tag's
android:allowBackup, android:killAfterRestore, and
android:restoreAnyVersion attributes.

- Remove the android:restoreNeedsApplication attribute and the
corresponding FLAG_RESTORE_NEEDS_APPLICATION constant [which was still
marked @hide]. We now always use the application's own Application
class when performing a normal restore. In the future when we support
an externalized full-filesystem backup/restore operation, we will use
an OS-defined agent class with a base-class Application instance, but
this will not happen until a future release.

Also expands real documentation on the above ApplicationInfo constants;
that work is part of bug #2465360

Change-Id: I735d07a963ae80a01343637d83bef84e4c23fdcc
ackup/BackupManager.java
9627c36a32b124e865e78467ab4b0aad71948840 13-Mar-2010 Nicolas Catania <niko@google.com> Merge "ListActivity.onDestroy, remove any pending callbacks."
747d2d4b9e779ce3903a2b010a26f94adbde9ab3 13-Mar-2010 Amith Yamasani <yamasani@google.com> Use a Go button instead of a magnifying glass in the keyboard for in-app search.

bug: 2197781
earchableInfo.java
061d58a10122b2ef56d4c2ed46090add16fb5b17 13-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix problem with starting a translucent activity in onCreate().

Fixes issue #2437252: Starting activity by means of startActivityForResult
causes 5 seconds delay if "android:windowIsTranslucent" is true

The optimization to avoid showing an activity window when a new
activity is being started was a little too aggressive. Now it
avoids doing this if there is not actually a fullscreen activity
on top to cover it.

Change-Id: I630e37a1f1d3b874b5a25572cbf887cebc2e3e91
ctivityManagerNative.java
ctivityThread.java
ActivityManager.java
f767e7521257110e5ae4289ded42e1deeb972e16 13-Mar-2010 Nicolas Catania <niko@google.com> ListActivity.onDestroy, remove any pending callbacks.

Added a onDestroy method to do the callbacks cleanup.

Apologies for the line end whitespaces my editor removed
automatically.

Bug:2090959
Change-Id: Id3ea4b8fc38e55c1b1ef78b3ec5b81cb02ab5b69
istActivity.java
e1748c67143f3bd2187cdafa8788790c8e33dbe5 12-Mar-2010 Amith Yamasani <yamasani@google.com> Merge "Fix for 2175289 : Can't get keyboard in search dialog after switching to landscape"
c9421ba1f46d9f9aeee833e1fde2cc263b058411 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2492387: system server crash in WallpaperManagerService

Also move some of the important framework error logs over to Slog.

Change-Id: If6697c3e4f18498612ebd7b0e4e4f042fd713372
ctivityThread.java
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
ullBackupAgent.java
ntentService.java
iModeManager.java
d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c 12-Mar-2010 Romain Guy <romainguy@android.com> Preserve widgets on upgrade.
Bug #2464545

Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
ialog.java
d25eb35b6b80b6f8065ab39b1cf1abb1fd801234 11-Mar-2010 Amith Yamasani <yamasani@google.com> Fix for 2175289 : Can't get keyboard in search dialog after switching to landscape

The auto complete drop down was obscuring the keyboard. This fix checks if the
screen is in landscape mode and forces the keyboard in front when necessary.
earchDialog.java
4bfe7879a459f8addf4ffcaa9181217192bd7071 11-Mar-2010 Daniel Sandler <dsandler@google.com> Merge "Javadoc fix."
b999abc3595dc6b06572cce19d4cfa839e83f29c 11-Mar-2010 Daniel Sandler <dsandler@google.com> Javadoc fix.

Change-Id: I8f5acb2f824ff0e94755a9c482286b119d124734
iModeManager.java
06ea4c7c6b8b7a10f41bf99a336242144788598e 11-Mar-2010 Vasu Nori <vnori@google.com> Merge "add more debug info to SQL section in bugreport"
c3849200fa60b22ea583ba2a6f902d6a632a5e7e 09-Mar-2010 Vasu Nori <vnori@google.com> add more debug info to SQL section in bugreport

after this CL, adb bugreport will the following info (under SQL section
of each app's meminfo dump)

SQL
heap: 344 memoryUsed: 344
pageCacheOverflo: 67 largestMemAlloc: 50

DATABASES
Pagesize Dbsize Lookaside Dbname
1024 7 24 googlesettings.db
1024 26 110 talk.db
1024 11 0 (attached) transient_talk_db
1024 11 32 subscribedfeeds.db
1024 20 27 gservices.db

Change-Id: Iabd13be9793d9794137c60a045b84fa632f13498
ctivityThread.java
84eb8d2a7de0a2cec02516b9fb2a61fde536b59c 11-Mar-2010 Mike LeBeau <mlebeau@android.com> Merge "Fix a variable name reference in Activity docs."
305de9dbda4e40d60ca99dda307ccd5e3c23e0a0 11-Mar-2010 Mike LeBeau <mlebeau@android.com> Fix a variable name reference in Activity docs.

Change-Id: Ib0fd1c6b75f73a4470d2cb790884490a3efa8716
ctivity.java
4f22a545552d308377e178d5df5557cfe15252f9 09-Mar-2010 Leon Scroggins <scroggo@google.com> When context is voice, show the microphone.

Part of fix for http://b/issue?id=2501400

Change-Id: Ibdf364942bcdc8ec837fb8bb30a33c1af2ba5b06
earchDialog.java
earchManager.java
d1b21ff09a4bba5f6d38a608a78efe927b6ce670 08-Mar-2010 Bjorn Bringert <bringert@android.com> Merge "Hide Go button in browser when no text is entered"
f49501eec5c5c51487e3ec271d5c0dbe1ca9a639 06-Mar-2010 Christopher Tate <ctate@google.com> Fix doc references to "android.backup" to the new "android.app.backup"

Change-Id: Ia347590a374f7e0b8928b0673dc10d55fe785e73
ackup/package.html
4528186e0d65fc68ef0dd1941aa2ac8aefcd55a3 06-Mar-2010 Christopher Tate <ctate@google.com> Refactor android.backup => android.app.backup

Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
ctivityThread.java
ackupAgent.java
ullBackupAgent.java
BackupAgent.aidl
ackup/AbsoluteFileBackupHelper.java
ackup/BackupAgent.java
ackup/BackupDataInput.java
ackup/BackupDataInputStream.java
ackup/BackupDataOutput.java
ackup/BackupHelper.java
ackup/BackupHelperAgent.java
ackup/BackupHelperDispatcher.java
ackup/BackupManager.java
ackup/FileBackupHelper.java
ackup/FileBackupHelperBase.java
ackup/IBackupManager.aidl
ackup/IRestoreObserver.aidl
ackup/IRestoreSession.aidl
ackup/RestoreObserver.java
ackup/RestoreSession.java
ackup/RestoreSet.aidl
ackup/RestoreSet.java
ackup/SharedPreferencesBackupHelper.java
ackup/package.html
9277c6d97214c96548cdcf4c822c88d5d331b2aa 05-Mar-2010 Mark Wagner <mxw@google.com> Merge "don't assume Cursor.getExtras returns non-null"
7299c41630935a2b106e73e5603579a7747f7535 05-Mar-2010 Dianne Hackborn <hackbod@google.com> Refactor car mode.

Extract all UI behavior from dock observer and ACTION_DOCK_EVENT.

Also introduce a desk type to go along with the car type all through
the resource system, since we now need to have corresponding high-level
broadcasts for desk dock mode. As part of that I also reworked some
of the logic for switching modes to all funnel through a single
update() call that looks all of the current state to decide what to
do next, and fixed various locking issues.

In addition I found there were bugs in the configuration change
handling causing us to only switch into the car mode config and
then never get out of it. Unfortunately now that we are actually
changing the configuration for each mode change, the transitions
between them are really crummy as we restart all kinds of
activities. :(
UiModeManager.aidl
iModeManager.java
4d891d173a760393c5225a5d274a4c04a88ef669 05-Mar-2010 Mark Wagner <mxw@google.com> don't assume Cursor.getExtras returns non-null
uggestionsAdapter.java
33b167be343aa6b635113159f9901e9cc48d085e 05-Mar-2010 Bjorn Bringert <bringert@android.com> Hide Go button in browser when no text is entered

Fixes http://b/issue?id=2485438

Change-Id: If3d6106eebb22d8b4a2d9aed8d3118c14fdbedde
earchDialog.java
f87900361e1f6895cfd6b04de538bbffe03745b7 04-Mar-2010 Amith Yamasani <yamasani@google.com> Merge "Show AutoCompleteTextView dropdown in Search dialog when cursor updates. Fixes b/2426929"
defb1df520ce2e642dc42e8fc1082562294cf741 04-Mar-2010 Amith Yamasani <yamasani@google.com> Show AutoCompleteTextView dropdown in Search dialog when cursor updates. Fixes b/2426929

Calls onFilterComplete when the data set changes, so that it can recompute whether
the dropdown should be shown or not.
earchDialog.java
uggestionsAdapter.java
20cb56e26e91df91bd64d4251222e0d421cdbe47 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix some bugs.

Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
allpaperInfo.java
dmin/DeviceAdminInfo.java
c37cb2469578f7d240615affb042e808b32ba5b2 25-Feb-2010 Amith Yamasani <yamasani@google.com> Feature to return an extra in the cursor that keeps the spinny going.

If a search provider returns an extra in the cursor with the key
SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, and the value true, then
the spinny in the search dialog will not stop, but the cursor
contents will still be used to update the results. This way, partial
search results can be sent while the user is informed that the search
is still in progress.
earchManager.java
uggestionsAdapter.java
22b23a1bea61df3988daf2c5b7d6fe2f60b80aab 03-Mar-2010 Bjorn Bringert <bringert@android.com> Use "play" icon for search dialog button in Browser

Fixes http://b/issue?id=2485462

Change-Id: Ibc8843b236aa0a063d91fbd37a2c09cebd21163e
earchDialog.java
0b49ab5cae98d5f27b490b6de35d92e7a63a2e64 02-Mar-2010 Bjorn Bringert <bringert@android.com> Add SearchManager.SUGGEST_COLUMN_TEXT_2_URL

This column overrides SUGGEST_COLUMN_TEXT_2. SearchDialog
and QuickSearchBox render the value of this column as a URL in
green.

Part of the fix for http://b/issue?id=2380681

Change-Id: I6735e0eba90e24c81f9e72520f257e5e61796d7a
earchManager.java
uggestionsAdapter.java
7883c975dd0db021fa3a01226d6cb09c28764c98 02-Mar-2010 Romain Guy <romainguy@android.com> Prevent crash in Dialog.
Bug #2249637
ialog.java
b71c6164ef1b09521bc6e14f18de75be80381887 27-Feb-2010 Jacek Surazski <jaceks@google.com> Merge "Add BatteryInfo to ApplicationErrorReport."
87bba1ee14279bb14a28d42e27c4ef66d9967bf8 27-Feb-2010 Dianne Hackborn <hackbod@google.com> Move DeviceAdmin APIs to android.app.admin.

Also add ability for admins to hide themselves when not in use,
a facility for admins to not allow other admins to reset
their password, and debug dumping.
ontextImpl.java
eviceAdminInfo.java
eviceAdminReceiver.java
evicePolicyManager.java
DevicePolicyManager.aidl
dmin/DeviceAdminInfo.java
dmin/DeviceAdminReceiver.java
dmin/DevicePolicyManager.java
dmin/IDevicePolicyManager.aidl
8f7f35e0ccd91c964b9d3eeef81ff829622dfa74 26-Feb-2010 Dianne Hackborn <hackbod@google.com> Add new -W option to Am to wait for the start to complete.
ctivityManagerNative.java
ActivityManager.java
151de3d9df60cf0340e06a3aa1e7a31691fd9bf9 26-Feb-2010 Jacek Surazski <jaceks@google.com> Add BatteryInfo to ApplicationErrorReport.
pplicationErrorReport.java
82fe564267f276151063b2aa0d26075c3210d75f 24-Feb-2010 Carl Shapiro <cshapiro@google.com> Comment out the finalize() methods defined on the Activity,
ContextImpl, View and ViewRoot classes. This allows instances of
subclasses to be collected without the additional latency of
finalization.
ctivity.java
ontextImpl.java
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common. Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
liasActivity.java
ontextImpl.java
earchDialog.java
d368572f8e0c9bd851aacb71ea57adecfbd5d1a4 25-Feb-2010 Amith Yamasani <yamasani@google.com> Fix for voice search crash in maps and youtube. Bug 2453182

No need to nullify the context variable.

Also fix 2463128 : No voice icon when text is present in text field
earchDialog.java
846ebf38abe78b1d9790d8005a011836be03edcc 24-Feb-2010 Kenny Root <kroot@google.com> Merge "Add some backup Javadoc and clean imports"
5a20ea16d7e5b70dc7bad8700f54170e4f220d12 24-Feb-2010 Kenny Root <kroot@google.com> Add some backup Javadoc and clean imports

Add a bit more Javadoc to the backup infrastructure and clean up unused
imports.

Change-Id: I8ab7c3fb887ae2e8d2f1bfac42f03cb4b42685ef
ackupAgent.java
778ce486656a00c21ae9b51cda1f504fc11004f6 09-Feb-2010 Brian Carlstrom <bdc@google.com> Issue 5697: getContextClassLoader returns a non-application classloader

ActivityThread should try to set the value for Java
Thread.getContextClassLoader to the PathClassLoader that loaded the
APK's classes so that Java frameworks that use the Java context class
loader, which is not to be confused with the
android.content.Context.getClassLoader which serves a similar purpose
in the Android framework.

However, we avoid setting the Java context ClassLoader to the APK's
PathClassLoader if there is a static indication that multiple packages
may share the VM, since they could load in an unpredictable order
leading to different values for the thread local Java context
ClassLoader. In this case, we instead use a specially created
WarningContextClassLoader that warns the user the first time the Java
context ClassLoader.

Currently the static indications that a package might share a VM with
other packages are the presence in the AndroidManifest of a
sharedUserId or requesting a non-default application process name.
ctivityThread.java
6cf7a325e6e9e70d9858e21fbb438341332ed254 23-Feb-2010 Bjorn Bringert <bringert@android.com> Clean up global search and web search activity finding

This removes the '*' value for android.app.searchable and
android.app.default_searchable that was previously used by apps to say
that they want global search as their search. I think the only
activity that this will affect is the wallpaper chooser in the
launcher, which doesn't seem like it matters. It could mean that some
third party code will stop invoking global search, but all they would
need to do is call startSearch() with globalSearch=true instead.

Fixes http://b/issue?id=2377433 and http://b/issue?id=2377429

Change-Id: I0252952b44ae85dab31221b598ed79cc24e2b580
SearchManager.aidl
earchDialog.java
earchManager.java
9e0f5d9a63ba88c2bf69df0557f8c9696db370c4 23-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix some random bugs.

2185256: After open &close of device keyboard shortcut does not added to Home desktop.

ActivityThread was losing the last saved state when restarting or launching into
a paused state.

2366174: defaults not cleared when they should be

PackageManagerService now removes any preferred activity records for a package
when it is uninstalled.

2154556: Battery stats can have an unbounded number of wake locks

We now start combining wake locks into one shared record when we hit a
maximum limit (currently 20).

2442519: Foreground services can have no notification by providing a bogus one.

If the notification manager rejects our notification, the service is forced to
no longer be in the foreground.

2442383: Finalization issues in com.android.server.am.PendingIntentRecord.java

Cleaned up finalization to call super class and avoid the big activity manager
lock (we still need to use the locks inside of the message system, but these
are much less likely to be a problem).

2284190: Cannot call a phone number using adb

We weren't getting the calling uid/pid in startActivity() if the caller did not
supply an application record.
ctivityThread.java
2f6a01858bea6c669039b0b1e10aa65fc73c7256 22-Feb-2010 Makoto Onuki <omakoto@google.com> Fix bug 2183276: Synchronize all mManagedCursors accesses.
ctivity.java
29274dc363229a3a4f18c7341f90bd04e39c2c07 22-Feb-2010 Tobias Haamel <haamel@google.com> Also fix the API description file after UI_MODE_SERVICE rename.
iModeManager.java
299102f8c340f3cd11bfddb46ad31ec352bd49cb 22-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix missing UI_MODE_SERVICE rename."
da576e8c8406d4337cae9a51658a20f79449c3f5 22-Feb-2010 Bjorn Bringert <bringert@android.com> Merge "Don't start global search from system dialogs"
69fb574e294ed07404d515a66fccd046e974d32f 22-Feb-2010 Tobias Haamel <haamel@google.com> Fix missing UI_MODE_SERVICE rename.
ontextImpl.java
b8144a9c18f23c91b836736a2fcea30917153002 22-Feb-2010 Bjorn Bringert <bringert@android.com> Don't start global search from system dialogs

Also, set FLAG_ACTIVITY_NEW_TASK to allow launching
global search from non-activity contexts.

Fixes http://b/issue?id=2460991

Change-Id: I833d5b851f0127fb69165fbfc7d1ee190b320401
ialog.java
earchManager.java
53332883543868fb83e111a07306368b7772b340 19-Feb-2010 Tobias Haamel <haamel@google.com> Manager for controlling the UI modes.

The ui modes can be controlled with the UiModeManager class, which
is can be retrieved as a system service via getSytemService(Context.UIMODE_SERVICE).

The class is necessary so that CarHome can be unbundled and other apps can
disable the car mode. Its currently a hidden class, since I'm not sure if this
is the best way to provide this functionality to the user.
ontextImpl.java
iModeManager.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa 20-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2438980: Implement package watcher for voice recognizer service setting

I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs. I am still playing around with just what this
thing is to figure out what makes sense and how people will use it. It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it. All services have been updated to support
this. There is also new infrastructure for reporting battery usage as an
applicatin error report.
pplicationErrorReport.java
ontextImpl.java
eviceAdminInfo.java
evicePolicyManager.java
DevicePolicyManager.aidl
8946dd3355fc1dcbad872c0546e356474d4cc5de 19-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move package from internal to external and vice versa.
ontextImpl.java
75288fa1a4ee4886959af7243995d8afd9c3c905 17-Feb-2010 Dianne Hackborn <hackbod@google.com> Improve Service documentation with some samples.

Also some small tweaks to the Message API to improve its
use in the MessengerService sample.
ervice.java
e36d6e277e49475076b7872d36ea6a5c5b996e9d 18-Feb-2010 Dianne Hackborn <hackbod@google.com> Work on issue #2263557: PMF3000 showing hybrid of portrait and landscape modes

This is a bunch of reworking of how configuration changes are handled:

- When orientation is changing (for whatever reason), the window manager no
longer tries to pre-emptively compute a new configuration. Instead, it
just determines change is happening and tells the window manager.
- The activity manager is now responsible for giving the window manager the
final configuration it is using. This is both so it knows whem the
activity manager is done with its configuration updates, and so the window
manager can use the "real" configuration.
- When an orientation or other configuration change is happening, freeze the
screen and keep it frozen until the activity manager has given us the
final configuration.
- The window manager can now send new configurations to its clients during
its layout pass, as part of a resize, if it has determined that it has
changed. This allows for a new View.onConfigurationChanged() API for any
view to easily find out when the configuration has changed.
- ViewRoot now also works with the activity thread to make sure the process's
current resources are updated to the new configuration when it receives one
from a window. This ensures that at the time onConfigurationChanged() and
other view callbacks are happening, the correct configuration is in force.
- There is now a sequence number associated with Configuration, which
ActivityThread uses to avoid using stale configurations. This is needed now
that it can receive configurations asynchronously from both the window
manager and activity manager.
- The hack for keeping the locale has been removed, and underlying problem
fixed by having Configuration initialize its locale to "unknown" instead of
a valid default value.
ctivityThread.java
ea125f45ebf25494ae190b2f338f359f830674df 18-Feb-2010 Bjorn Bringert <bringert@android.com> Add SearchManager.getWebSearchActivity()

The Browser needs this to know where to get web suggestions from.

Change-Id: Ia7ce75609135e7cdf3b385a29a3f47e3458fa61e
earchManager.java
479ae0a28099eb77299fe0f44d4dfabce3115fb6 04-Feb-2010 Amith Yamasani <yamasani@google.com> Cleanup of global search references in SearchDialog and SearchManager.
ialog.java
earchDialog.java
earchManager.java
uggestionsAdapter.java
a3639da4f2301223c6126963e41874f826b4bfe1 17-Feb-2010 Kenny Root <kroot@google.com> Fix cast to String[] in FullBackupAgent

obj.toArray() can't return anything more specific than Object[], so use
obj.toArray(new String[obj.size()]) to do this instead.

Change-Id: I87a0a2bb10206a37b28a535652a8f81f94c1f06f
ullBackupAgent.java
ef6b22fc04a8d5ab26e13efac8069c097e0da7c9 17-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2420412: API review: DeviceAdmin API changes

Note in docs that callbacks are on main thread.
Rename to DeviceAdminReceiver?
Document resetPassword is the device's password.

Also hide android.R.attr.neverEncrypt.
eviceAdmin.java
eviceAdminInfo.java
eviceAdminReceiver.java
evicePolicyManager.java
cff1ae56e88d369021b25bedde500037129c5516 17-Feb-2010 Chris Tate <ctate@android.com> Merge "API CHANGE: expose backup/restore to the SDK"
e28290e21f908b4e917099ff2aa41e3aab9310c2 17-Feb-2010 Christopher Tate <ctate@google.com> API CHANGE: expose backup/restore to the SDK

The core backup/restore classes [BackupManager, BackupAgent, RestoreSession, and
RestoreObserver] are now published for 3rd party developers, as well as the suite
of helper classes that exist so far to aid authorship of backup/restore agents.

In conjunction with the API change, the restore-time automatic data wipe has now
been removed: applications are responsible for managing the logic of wipe vs
merge themselves. If the app's agent onRestore() callback throws, the data
is presumed to be incoherent and a wipe is issued via the Activity Manager;
otherwise, no automatic action is ever taken.

Change-Id: I0b3418b829d4689b58b88be3d9c4ace37a8583a9
ackupAgent.java
4b71fc0fa8dee98764b55aefc176599bd982f53e 17-Feb-2010 Mike LeBeau <mlebeau@android.com> Merge "Add constant to android-common for voice search's EXTRA_CALLING_PACKAGE, and use it from SearchDialog."
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.
ontextImpl.java
c2fd9adf0e804edf530d1cfc805d0c20e8d42c8e 13-Feb-2010 Mike LeBeau <mlebeau@android.com> Add constant to android-common for voice search's EXTRA_CALLING_PACKAGE,
and use it from SearchDialog.
earchDialog.java
60d21566fcfe1bb9d84e745c1ddc537555094acd 13-Feb-2010 Mike LeBeau <mlebeau@android.com> Merge "Really fix the build - one more change to SearchDialog which shouldn't have been submitted."
0ffc570598b3f1503b5b7299db07da975e8264c4 13-Feb-2010 Mike LeBeau <mlebeau@android.com> Really fix the build - one more change to SearchDialog which shouldn't have
been submitted.
earchDialog.java
80eeeb70955a13e481facf5bac862155ec6f1fad 12-Feb-2010 Mike LeBeau <mlebeau@android.com> Merge "Make the corresponding frameworks change to add VoiceRecognitionService to the list of SDK sample apps."
9c57aca188665916cc1dafbbe23dbe8cfd98883d 12-Feb-2010 Mike LeBeau <mlebeau@android.com> Make the corresponding frameworks change to add VoiceRecognitionService to
the list of SDK sample apps.
earchDialog.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.
ontextImpl.java
dc2df328b3c854c7b787bf5298df0c686584125d 12-Feb-2010 Raphael <raphael@google.com> Fix build.

Change-Id: Ica616f038436e3639d12064327ddd0a9fa49af8b
eviceAdminInfo.java
315ada7fbb9e967c22e87b4921bec720ceb2c73c 11-Feb-2010 Dianne Hackborn <hackbod@google.com> Get rid of the limit-unlock policy control.

This is merged with force-lock. These both allow effectively the same thing,
so there is no reason to junk up the user experience with them as separate
entities.
eviceAdminInfo.java
evicePolicyManager.java
27b28b3f62bd3b54fa13acd5d035940b9be464f3 09-Feb-2010 Tobias Haamel <haamel@google.com> Introduce special UI modes for night and car usage.

The device mode is now called ui mode. Furthermore is the order of
precedence for the resources now in such a way that the ui mode needs
to be specified after the orientation and before the density.

The ui mode can be set, like it is done for the locale, as follows:

IActivityManager am = ActivityManagerNative.getDefault();
Configuration config = am.getConfiguration();
config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY;
am.updateConfiguration(config);

To allow users to disable the car mode and set the night mode the IUiModeManager
interface is used.

The automatic night mode switching will be added in a separate change.
UiModeManager.aidl
5e2c81dca659aaf392e99574f15768caea24c002 11-Feb-2010 Amith Yamasani <yamasani@google.com> Remove in-app to global search toggle. Bug: 2436539

Quick fix to ignore the search key in SearchDialog. Need to
cleanup related code.
earchDialog.java
e4e82f2782e61658256ecb85066e273c22a37951 10-Feb-2010 Bjorn Bringert <bringert@android.com> Unhide SearchManager.INTENT_ACTION_SEARCH_SETTINGS

This intent action is needed by Settings to start the search settings
activity which lives in QuickSearchBox / GoogleQuickSearchBox.

Fixes http://b/issue?id=2394530

Change-Id: Iea2a7d9df0092459e5618986f4f789f9257f912a
earchManager.java
23897c16a603748db83c59a280b6e6079bf57175 10-Feb-2010 Bjorn Bringert <bringert@android.com> Use resource ID for searchable description

Before, SearchableInfo read and cached the localized
searchable description, which meant that it was not updated
on locale changes. Now SearchableInfo only holds the resource
ID.

SearchableInfo is a new API in Froyo, so it's ok to change.

Part of http://b/issue?id=2175247

Change-Id: I1898f7895b9172f58419d906ad741cb7dd1e7252
earchableInfo.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.
ontextImpl.java
ced72c8cf50ca67440562cc9ab05855c8bb3bad0 10-Feb-2010 Bjorn Bringert <bringert@android.com> Remove SearchManager.SOURCE

Part of http://b/issue?id=2429556

Change-Id: I08a95a844b74cb50a740c0c155c6ad79f2c9cbcc
earchManager.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.
ontextImpl.java
ntentService.java
b104340496e3a531e26c8f428c808eca0e039f50 05-Feb-2010 San Mehat <san@google.com> Framework: Clean up / Refactor Mount APIs

- Move android.storage.* -> android.os.storage.* and refactor users
- Refactor generic shares back to explicit ums enable/disable/isEnabled
- Remove media insert/removed event callbacks (not ready for Froyo)
- Remove 'label' from volume state change callbacks
- Add public API functions for enabling/disabling USB mass storage (permissions enforced
in MountSevice)
- Remove some stray un-needed import lines
- Move android.os.IMountService / android.os.IMountServiceListener -> android.os.storage
- Improve code comments

Updated:
MountService: Add dup state check and move debugging behind a conditional
UsbStorageActivity: Fix review comments + a TODO
StorageNotification: Add @Override tags
StorageManager: Don't use a static Listener list
MountService: Reduce bloat and fix == where I meant .equals()
PackageManagerTests: Update for new API

Signed-off-by: San Mehat <san@google.com>
ontextImpl.java
88209d15dd5fcb883403525a6455857566e3aee7 09-Feb-2010 Andrew Stadler <stadler@android.com> Fixes to DeviceAdmin & DevicePolicyManager Javadoc

1. Fix build break caused by renaming of sample app files
2. Rewrote JavaDoc for setMaximumFailedPasswords()
eviceAdmin.java
evicePolicyManager.java
b56ae20b22fd7283df32072a431ab6d4965f3c1b 05-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Rename media resource broadcasts
Add checks for fwdlocked and updated system apps
add more tests
remove duplicate adds
ontextImpl.java
97e44947282b3918ee0bed2d16b33b983f882580 05-Feb-2010 Dan Egnor <egnor@google.com> Add an AlarmManager API to set the system time (with the proper permissions).
larmManager.java
AlarmManager.aidl
50929f089b04b84f432d94438c34252e753d8042 05-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Rename ApplicationContext to ContextImpl."
2155637d0028e87ebaaf71b9a77f3c43853e8f2f 05-Feb-2010 Dianne Hackborn <hackbod@google.com> Rename ApplicationContext to ContextImpl.

I've been wanting to do this for a long long time.
ctivityThread.java
pplicationContext.java
ontextImpl.java
64226a49b75b44da56740a21b38ce6cc710796d8 05-Feb-2010 Daniel Sandler <dsandler@android.com> Merge "Add support in StatusBarManager for disabling ticker text."
91e1d0cddaaec5e077ca689744463901f9d5d580 05-Feb-2010 Daniel Sandler <dsandler@google.com> Add support in StatusBarManager for disabling ticker text.

The new flag, DISABLE_NOTIFICATION_TICKER, will be used by
the car dock app (in conjunction with DISABLE_EXPAND) to
minimize distractions to the driver.

It may also be used by the secure lockscreen to avoid
leaking personal information when the screen is on but the
device is locked (e.g. when the desk dock app is running).

Change-Id: Ibc8efde7da7501767163ae0a75f7c369b824e2a2
tatusBarManager.java
7b4030dbe7c814c78a761d221d18eaaacfe1431e 04-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Framework part of issue #2391576: Add method to start the Jit and call it"
2a9094d07915a077026a651a7773f94322bf7d23 04-Feb-2010 Dianne Hackborn <hackbod@google.com> Framework part of issue #2391576: Add method to start the Jit and call it
ctivityThread.java
da5c1bd4443b5b569a0d392cd53b476b4e160c47 04-Feb-2010 Bjorn Bringert <bringert@android.com> Remove source selector from SearchDialog

Fixes http://b/issue?id=2419208

This reverts commit 32d580c360da0a0f15e7a080f4ebd0b7b514fe4c.

Change-Id: I5d8821d52badf3e0347230b86671f8ceb65a663d
earchDialog.java
earchManager.java
earchSourceSelector.java
08675a3376819a82aa5ab344bc3e7b1635c30b05 28-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Apps on sdcard: Add new broadcasts

Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and
ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by
PackageManagerService when sdcard gets mounted/unmounted
by MountService so that packages on sdcard get recognized by
various system services as being installed/available or
removed/unavailable by the system.
The broadcasts are sent before the actual package cleanup which includes
mounting/unmounting the packages and we force a gc right after so
that any lingering file references to resources on sdcard get
released.
pplicationContext.java
556d350a4d68be72c74b30ca9cd87a152f8512c2 02-Feb-2010 San Mehat <san@google.com> StorageManager: API_CHANGE: Move StorageManager into android.storage

Signed-off-by: San Mehat <san@google.com>
pplicationContext.java
c9d8175f40691228e25f0dd924cc2453a6f08e10 01-Feb-2010 San Mehat <san@google.com> Context: API_CHANGE: Add support for retrieving StorageManager

Signed-off-by: San Mehat <san@google.com>
pplicationContext.java
504e07134ef4c999241eac988183e1344bec0f3f 01-Feb-2010 Amith Yamasani <yamasani@google.com> Merge "Fix an NPE in SearchDialog when clicking on Mic button. Bug: 2410605"
0f55b197aabf6e2a902c33217e9ed7fe58cdf9d4 01-Feb-2010 Amith Yamasani <yamasani@google.com> Fix an NPE in SearchDialog when clicking on Mic button. Bug: 2410605
earchDialog.java
ab8a8ed2eb068b696f6b5519c55a03546a5927ef 30-Jan-2010 Dianne Hackborn <hackbod@google.com> Fix sample code insertion.
eviceAdmin.java
ervice.java
364f6e3d44c27cd17fe0f3fca844465e9a502636 30-Jan-2010 Dianne Hackborn <hackbod@google.com> Fix SDK build.
evicePolicyManager.java
9327f4f671de3cbb795612bf4f314ceff88de865 29-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
ctivityManager.java
ctivityManagerNative.java
eviceAdminInfo.java
evicePolicyManager.java
ActivityManager.java
DevicePolicyManager.aidl
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.
pplicationContext.java
44a2790374bf27116cbd91060d4f096ca5999709 28-Jan-2010 Christopher Tate <ctate@google.com> Make backup/restore asynchronous and enforce timeouts

Callouts to app backup agents are now asynchronous, and timeouts are applied if
they take too long, hang, etc. The initial timeouts are set to 15 seconds on
backup, 60 seconds on restore. These operations typically run at background
priority, so it's necessary to give them ample time to run.

As part of setting up this asynchronicity, the Backup Manager's internal thread
management has been overhauled. It now spins off a single HandlerThread at
startup, and runs backup/restore/etc operations *synchronously* in that thread,
applying timeouts as appropriate. This means we're no longer spinning up new
threads all the time, and furthermore it ensures that we can never have more
than one operation in flight at once. Later CLs will remove the now-redundant
logic that previously ensured that operations didn't stomp on each other.

Bug: 2053560
Change-Id: Ie4315c219c7ff6dd8f51f2ad6c0872595b18cff1
ackupAgent.java
BackupAgent.aidl
254cb446faa7cb13699d8150eb4cc4f44cb61a2d 28-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin.

- Clean up device policy manager APIs.
- Implement lockNow(). For now this just turns the screen off to lock the device.
eviceAdmin.java
eviceAdminInfo.java
evicePolicyManager.java
DevicePolicyManager.aidl
d47c6ed4a9f2b5bd31f6c806b74701428efe458b 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Bite the bullet and add support for multiple device admins.
ctivity.java
evicePolicyManager.java
DevicePolicyManager.aidl
8ea138cbf12b140d43fd81f4f12fe1a9234f1f25 27-Jan-2010 Dianne Hackborn <hackbod@google.com> More work on device admins:

- You can now show a dynamic message to the user when asking to
have your DeviceAdmin added.
- A DeviceAdmin can now provide a warning message that is displayed
before a user disables it.
- Better ordering (and text) of the policy warnings.
- New API to set the maximum failed password attempts before the device
wipes itself.
- We now store the number of failed unlock attempts in persistent
storage.
- New managed dialog APIs that will be used by the settings app.

Also a little bit of cleanup as I was working on this - removed the
long unused MailboxNotAvailableException, fixed a java doc in Messenger.
ctivity.java
eviceAdmin.java
eviceAdminInfo.java
evicePolicyManager.java
DevicePolicyManager.aidl
e9ce3f01d42769f03f10e70c3244500e92d7eee1 25-Jan-2010 Amith Yamasani <yamasani@google.com> Move Search dialog out of system process into current activity.

SearchManager now manages the SearchDialog, in-process.
Nuked SearchDialogWrapper
SearchManagerService now just holds the Searchables information.
Hitting Search when in the local Search dialog will launch the QSB.
ctivity.java
SearchManager.aidl
earchDialog.java
earchManager.java
8aa2e8939c61d788cbc192098465e79f584e173a 22-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin work: description, policy control.

There is now a description attribute associated with all components,
that can supply user-visible information about what the component does.
We use this to show such information about device admins, and wallpapers
are also updated to be able to show this in addition to the existing
description in their meta-data.

This also defines security control for admins, requiring that they
declare the policies they will touch, and enforcing that they do
so to be able to use various APIs.
eviceAdmin.java
eviceAdminInfo.java
evicePolicyManager.java
allpaperInfo.java
1902492420825874b12962a10712e653901d120d 23-Jan-2010 Christopher Tate <ctate@google.com> Make sure to downgrade to app permissions when invoking callbacks

The [private] binder interface is called from the system process, so make sure
we downgrade to the app's proper identity & permissions before allowing
execution to continue into app code.
ackupAgent.java
aa6a2aad03c84e3e1fd429a82e41df1068abebeb 22-Jan-2010 Wink Saville <wink@google.com> Fix build, incorrect link/see tags.

Change-Id: Ia1c13ddb198721234323f1944ea3537ea6f34820
eviceAdmin.java
df83afaf299666e99c519aa86e7e082b7c116e95 20-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy manager / admin work.

Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
evicePolicyManager.java
DevicePolicyManager.aidl
e0ee6efb1e5bc6cf219555e333635ce98531bc85 07-Jan-2010 Jacek Surazski <jaceks@google.com> Add systemApp field to ApplicationErrorReport
pplicationErrorReport.java
fd24feaf796f51866c7354a02d4d8febe255b115 20-Jan-2010 Joe Onorato <joeo@google.com> Merge "Add DateTimeView, a widget that shows a time or the date depending on the current time. Use that for notifications instead of a TextView that doesn't ever update."
c83bb730ec0333e52990a40edf6d54bb66b1d5ba 20-Jan-2010 Joe Onorato <joeo@android.com> Add DateTimeView, a widget that shows a time or the date depending on the
current time. Use that for notifications instead of a TextView that
doesn't ever update.

BUG 1563917
otification.java
97d1195832829905b07b7680b73bed8af959f430 19-Jan-2010 Bjorn Bringert <bringert@android.com> Merge "Make SearchManager.getGlobalSearchActivity() public but hidden"
d68478467e3f837511196c80891d7245d0e163df 13-Jan-2010 Dianne Hackborn <hackbod@google.com> First pass at new device policy and administration APIs.

This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes.
See the java docs for each on documentation on them. Basically: a DeviceAdmin
is what you derive from to administer a device; DevicePolicyManager is what you
use to apply and check your policy requirements and perform other administration
tasks.
pplicationContext.java
eviceAdmin.java
eviceAdminInfo.java
evicePolicyManager.java
DevicePolicyManager.aidl
allpaperInfo.java
130a8b71bbfb93c1cbe0642e7f2cb97322f899d1 15-Jan-2010 Ficus Kirkpatrick <ficus@android.com> Add Dialog.setOnShowListener() to the public API.
ialog.java
38015f3663dcf3765d0998f8f5398b3068dfc326 14-Jan-2010 Bjorn Bringert <bringert@android.com> Make SearchManager.getGlobalSearchActivity() public but hidden

Launcher/Launcher2 will need this to find the search appwidget
provider.

Change-Id: I2789ea5a11f168126d798a763983752442a6a80b
earchManager.java
55f3ac5f293e78618995202274f8555f2481994d 14-Jan-2010 Bjorn Bringert <bringert@android.com> Expose SearchManager constants for global search

This change exposes some constants that are needed for
starting the global search activity (QuickSearchBox):

- SearchManager.INTENT_ACTION_GLOBAL_SEARCH
- SearchManager.EXTRA_SELECT_QUERY

Change-Id: I2f1f10070f502a8d5b644e78c03837d5d8b43486
earchManager.java
a94e7afb28c6bd9af6f2b0142a577086399066b2 13-Jan-2010 Bjorn Bringert <bringert@android.com> Remove Intent.ACTION_GLOBAL_SEARCH

I added Intent.ACTION_GLOBAL_SEARCH a little while ago, since
I thought we needed it to be different from the old
SearchManager.INTENT_ACTION_GLOBAL_SEARCH. Since GlobalSearch is
no longer built, reusing SearchManager.INTENT_ACTION_GLOBAL_SEARCH
should be fine.

Change-Id: If3a11a77a8e1d9940cf2b20817a60888cdd9d69f
earchManager.java
0408675d8770fc55c40631cdfa87d79fc00f0a3c 12-Jan-2010 Bjorn Bringert <bringert@android.com> Add and expose SearchManager.getSearchableInfo()

This method is needed by QuickSearchBox to get the searchability
meta-data for an activity.

Change-Id: I1b7a72d4dde1ff15410288cfdc33c043738be977
earchManager.java
32d580c360da0a0f15e7a080f4ebd0b7b514fe4c 06-Jan-2010 Bjorn Bringert <bringert@android.com> Copy SearchSourceSelector from QuickSearchBox

The widget shows the icon for a search source, and when clicked
fires an intent that shows a search source selection activity.
That intent is handled by the QuickSearchBox app.

This change also adds the source selector to the in-app
search dialog.

An upcoming change to QuickSearchBox will add the search source
selector to the home screen search widget and to the Quick Search Box
activity.

TODO: Add assets for selected and pressed states to the search selector.
TODO: The SearchDialog hides when the soruce selection activity
appears. This will be fixed when SearchDialog is changed from a
system window to a normal app window.

Change-Id: I91eadd60682577614e274ecf5b995b927c70a48a
earchDialog.java
earchManager.java
earchSourceSelector.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
ctivity.java
lertDialog.java
ialog.java
xpandableListActivity.java
istActivity.java
earchDialog.java
6e70912bd53aaa5264259e160eb2b4d2eb0f302c 07-Jan-2010 Dan Egnor <egnor@google.com> Bumper un-@hide (un-@pending actually) of previously reviewed APIs:

- new Log methods for reportable conditions
- EventLog publication, EventLogTags deprecation
- a new stackTrace field in ProcessErrorStateInfo
ctivityManager.java
03abb8179f0d912e6dabfc0e2b0f129d85066d17 05-Jan-2010 Dianne Hackborn <hackbod@google.com> Kill the task killers.

The ActivityManager.restartPackage() API is now deprecated, and no longer
allows applications to mess up the state of other applications. This was
being abused by task killers, causing users to think their other applications
had bugs.

A new API is introduced for task killers,
ActivityManager.killBackgroundProcesses(), which allows these applications
to kill processes but only the same amount that the out of memory
killer does, thus causing no permanent damage. The old restartPackage()
API is now a wrapper for calling this new API.

There is also a new private forceStopPackage() API that is used for the
system's force stop UI which does what the old restartPackage() API did.
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
f0108cda21bec61418b24aa6217406072780b5d5 22-Dec-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of ad2fa35d to master

Change-Id: Ia4362cd48ac0689b91003943a4cd9660da72ff90
60d8762413e8daba5f73559786312a9ec5e3b827 17-Dec-2009 Dan Egnor <egnor@google.com> DropBox logging of app & system server crashes.

The crashes are also reported to the event log (and of course the
main logcat, like they always have been). Ordinary Log.e(t,m,e) isn't dropboxed
but there's a new Log.wtf() which always is. (Still @pending in this change.)

Add a hook to IPowerManager to crash the system server on demand
(only for apps with REBOOT permission, since it's basically a restart).
This is not exposed in PowerManager, must be invoked directly -- mostly
this is there so "Bad Behavior" in dev tools can do it.
ctivityManager.java
ctivityManagerNative.java
pplicationErrorReport.java
ActivityController.aidl
ActivityManager.java
ad2fa35d888e0763bfef0fc060775bec5d169479 22-Dec-2009 Tom Taylor <tomtaylor@google.com> am d4a4729c: Update imports to android-common

Merge commit 'd4a4729c0cac582a2dcec7c8cfb316b81885a0f0' into eclair-mr2-plus-aosp

* commit 'd4a4729c0cac582a2dcec7c8cfb316b81885a0f0':
Update imports to android-common
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
liasActivity.java
pplicationContext.java
e143bc92b2dfa205ea6af80855132bf52e018688 14-Dec-2009 Paul Westbrook <pwestbro@google.com> resolved conflicts for merge of 15d3bb2c to master
15d3bb2ce6b3e48608148d56b2ba1555ad63dff8 14-Dec-2009 Paul Westbrook <pwestbro@google.com> am 7762d936: Unbundling work

Merge commit '7762d93621f508f4410fd37b5bbdfec0071b0420' into eclair-mr2-plus-aosp

* commit '7762d93621f508f4410fd37b5bbdfec0071b0420':
Unbundling work
7762d93621f508f4410fd37b5bbdfec0071b0420 11-Dec-2009 Paul Westbrook <pwestbro@google.com> Unbundling work

Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator
NumberPicker, NumberPickerButton to android-common
---
ctivityThread.java
bd2e6de7e34f4d4d3d31c924b1218ec007c1ea88 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am c1e6b91d: am c9ca93fb: am 474731d5: Merge change I2ffe306f into eclair

Merge commit 'c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673'

* commit 'c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am c9ca93fb: am 474731d5: Merge change I2ffe306f into eclair

Merge commit 'c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659' into eclair-mr2-plus-aosp

* commit 'c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am 474731d5: Merge change I2ffe306f into eclair

Merge commit '474731d5efb30c1e9184f998610054747eb8e764' into eclair-mr2

* commit '474731d5efb30c1e9184f998610054747eb8e764':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
e9b86b542198d5499b2da7e9031c7200c25098c6 12-Dec-2009 Dianne Hackborn <hackbod@google.com> am 474731d5: Merge change I2ffe306f into eclair

Merge commit '474731d5efb30c1e9184f998610054747eb8e764' into eclair-plus-aosp

* commit '474731d5efb30c1e9184f998610054747eb8e764':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
871ecdce67fb59a2603c1b93db657fe8b65695bd 12-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2304284: contacts/dialer/recentcalls constantly flashing

Make sure the application is always given the most recent configuration
when launcher. Use the current configuration, instead of whatever happens
to be set by the app, for reporting what it was launched with.

Change-Id: I2ffe306f56cc9092b640546dd0a28d2c29b9c0b3
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
d021302134460efbb596f4a4a2951e75b83d0ede 11-Dec-2009 Dan Egnor <egnor@google.com> resolved conflicts for merge of f6bb01b0 to master
f6bb01b0d81943a00a42e56f2e65549ca03c386d 11-Dec-2009 Dan Egnor <egnor@google.com> am b7f0367c: Eliminate CrashData and friends.

Merge commit 'b7f0367cec1c744aa66ef397b0244e25d507491c' into eclair-mr2-plus-aosp

* commit 'b7f0367cec1c744aa66ef397b0244e25d507491c':
Eliminate CrashData and friends.
b7f0367cec1c744aa66ef397b0244e25d507491c 10-Dec-2009 Dan Egnor <egnor@google.com> Eliminate CrashData and friends.

(CrashData was a custom-marshalled crash-info class used for a server crash
reporting system I am deprecating). Use ApplicationErrorReport.CrashInfo
instead to report crash details (mostly the stack trace) from RuntimeInfo to
ActivityManagerService, since we're likely to need the crash information in
that form anyway.

Remove the (long-disabled) flags and support for the "Debug" button
in the crash dialog.

Further gut the ICheckinService interface by removing the crash-reporting
APIs (and everything that calls them), plus the synchronous checkin()
method (which has been stubbed out for a while now).

A new dropbox-based crash reporting system is in the works, but not part
of this change.
ctivityManager.java
ctivityManagerNative.java
pplicationErrorReport.java
ActivityController.aidl
ActivityManager.java
e11a00111977103a6549916e585819bb32e4f21a 10-Dec-2009 Bjorn Bringert <bringert@android.com> am c0c7b32e: am 45e77ce3: Merge change I154386b1 into eclair-mr2

Merge commit 'c0c7b32e0b5ab6af749db638a7f08d8a3767d167'

* commit 'c0c7b32e0b5ab6af749db638a7f08d8a3767d167':
Use unbundled QSB for global search
d1879255c29a8f91418d5d8bcdc4344c59b920b7 10-Dec-2009 Christopher Tate <ctate@android.com> am 3a0a9e25: am a5ba0a78: am 767eb427: Merge change If990cab0 into eclair

Merge commit '3a0a9e25a8331e4fb7ea3b7bf7a436db1a155523'

* commit '3a0a9e25a8331e4fb7ea3b7bf7a436db1a155523':
Make sure to acknowledge stale broadcasts
507ecd530613f04fec670b1312c43c2c15b74b69 10-Dec-2009 Bjorn Bringert <bringert@android.com> am c99f154b: am dcd8bad3: Merge change Ia28d9547 into eclair-mr2

Merge commit 'c99f154b549ff0bae84b082dc4d80351b341494e'

* commit 'c99f154b549ff0bae84b082dc4d80351b341494e':
Expose SearchableInfo and getSearchablesInGlobalSearch()
b2909dbb87d3c2ee8eb14915415ffc787c8fb982 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am aeabdf32: am 0766b2d0: Update service example code.

Merge commit 'aeabdf32a2a38c1627102b90628b7261447d3a5c'

* commit 'aeabdf32a2a38c1627102b90628b7261447d3a5c':
Update service example code.
c0c7b32e0b5ab6af749db638a7f08d8a3767d167 10-Dec-2009 Bjorn Bringert <bringert@android.com> am 45e77ce3: Merge change I154386b1 into eclair-mr2

Merge commit '45e77ce36ae1d26bcf35afb1f7662d7b6fb08212' into eclair-mr2-plus-aosp

* commit '45e77ce36ae1d26bcf35afb1f7662d7b6fb08212':
Use unbundled QSB for global search
3a0a9e25a8331e4fb7ea3b7bf7a436db1a155523 10-Dec-2009 Christopher Tate <ctate@android.com> am a5ba0a78: am 767eb427: Merge change If990cab0 into eclair

Merge commit 'a5ba0a78811fcd5d3470bfa09df3e0106b77567e' into eclair-mr2-plus-aosp

* commit 'a5ba0a78811fcd5d3470bfa09df3e0106b77567e':
Make sure to acknowledge stale broadcasts
c99f154b549ff0bae84b082dc4d80351b341494e 10-Dec-2009 Bjorn Bringert <bringert@android.com> am dcd8bad3: Merge change Ia28d9547 into eclair-mr2

Merge commit 'dcd8bad3aad8e4af6654ecd1776ebe5a18de94e3' into eclair-mr2-plus-aosp

* commit 'dcd8bad3aad8e4af6654ecd1776ebe5a18de94e3':
Expose SearchableInfo and getSearchablesInGlobalSearch()
aeabdf32a2a38c1627102b90628b7261447d3a5c 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 0766b2d0: Update service example code.

Merge commit '0766b2d0f398dcad10e332b695bbc0cbe5011882' into eclair-mr2-plus-aosp

* commit '0766b2d0f398dcad10e332b695bbc0cbe5011882':
Update service example code.
3c50ef6f665ab22cdb50c76bb31283e6bac47fc6 09-Dec-2009 Bjorn Bringert <bringert@android.com> Use unbundled QSB for global search

This obsoletes the following:
- The need to run SearchDialog in the system process.
- The global search mode code in SearchDialog.
- The GlobalSearch package.
- The search widget built into Launcher.

I will remove these in future changes.

Change-Id: I154386b1d6be73cfeab8376b6959a1dc5483e5f0
earchManager.java
a5ba0a78811fcd5d3470bfa09df3e0106b77567e 08-Dec-2009 Christopher Tate <ctate@android.com> am 767eb427: Merge change If990cab0 into eclair

Merge commit '767eb427fa8eca6c842c629cd4bfbf3551692148' into eclair-mr2

* commit '767eb427fa8eca6c842c629cd4bfbf3551692148':
Make sure to acknowledge stale broadcasts
d81262e3e73dbc75f389ed205a327ee251acb18c 08-Dec-2009 Christopher Tate <ctate@android.com> am 767eb427: Merge change If990cab0 into eclair

Merge commit '767eb427fa8eca6c842c629cd4bfbf3551692148' into eclair-plus-aosp

* commit '767eb427fa8eca6c842c629cd4bfbf3551692148':
Make sure to acknowledge stale broadcasts
08a462524a81bda336b17e25e3b178448880d448 08-Dec-2009 Christopher Tate <ctate@android.com> Make sure to acknowledge stale broadcasts

If a broadcast arrives at a process but the receiver has been unregistered in
the interval between dispatch and its arrival on the receiving process's side,
we were simply dropping the broadcast entirely, leading to spurious ANRs and
potentially issues involving future broadcasts being timed out incorrectly. Fix
this by making sure to correctly 'finish' a broadcast even when the recipient
app no longer has any receiver that matches the broadcast's profile.

Change-Id: If990cab021a26668052cb536753f6c308d80a5b4
ctivityThread.java
13107bb186d72bc80dc5609b20c71b7e77a9784d 07-Dec-2009 Bjorn Bringert <bringert@android.com> Expose SearchableInfo and getSearchablesInGlobalSearch()

This is needed for search unbundling.

Fixes http://b/issue?id=2270838

Change-Id: Ia28d954736c9afd68da22a38da966ed780d797c2
earchManager.java
earchableInfo.java
0766b2d0f398dcad10e332b695bbc0cbe5011882 05-Dec-2009 Dianne Hackborn <hackbod@google.com> Update service example code.

Switch aidl sample to match the change in ApiDemos, add sample code
to the Service class.
ervice.java
c5303c3a55a08336ec416a3d80550f464f817429 07-Dec-2009 Bjorn Bringert <bringert@android.com> am 8d962613: am 6dba0680: Merge change I9589f9c2 into eclair-mr2

Merge commit '8d962613464b206f4c0b2323607c5e248543ad24'

* commit '8d962613464b206f4c0b2323607c5e248543ad24':
Move android.server.search.SearchableInfo to android.app
8d962613464b206f4c0b2323607c5e248543ad24 05-Dec-2009 Bjorn Bringert <bringert@android.com> am 6dba0680: Merge change I9589f9c2 into eclair-mr2

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

* commit '6dba0680cd3bc0bd987a3d01fc49421897528f20':
Move android.server.search.SearchableInfo to android.app
2126aac7f992b57fc52141a8bd09fa7a45ac2509 03-Dec-2009 Bjorn Bringert <bringert@android.com> Move android.server.search.SearchableInfo to android.app

We need to expose SearchableInfo in the SDK in order to unbundle
Quick Search Box. Since the android.server.search package is
hidden, I'm moving SearchableInfo to android.app, where
SearchManager lives.

This change doesn't actually expose SearchableInfo. I'll do
that in a separate change to keep the change that
api-council needs to review small.

This is part of the fix for: http://b/issue?id=2270838

Change-Id: I9589f9c2c11d36c958beedff8245fe0c3319c6ba
SearchManager.aidl
earchDialog.java
earchManager.java
earchableInfo.aidl
earchableInfo.java
uggestionsAdapter.java
a8529f68671a8a118751cb6ad577f44eaf076b96 18-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
pplicationContext.java
a82e7e24ea0a4ae367bb765a9337a28729892a3c 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am 2b38a09f: am 23ef7b48: Fix most of issue #2271640: Fix wallpaper etc docs

Merge commit '2b38a09f044ad0bb14db7360b352fcca612f49ac' into eclair-mr2-plus-aosp

* commit '2b38a09f044ad0bb14db7360b352fcca612f49ac':
Fix most of issue #2271640: Fix wallpaper etc docs
2b38a09f044ad0bb14db7360b352fcca612f49ac 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am 23ef7b48: Fix most of issue #2271640: Fix wallpaper etc docs

Merge commit '23ef7b4836d66d31430fedee2aac36275bb30d4b' into eclair-mr2

* commit '23ef7b4836d66d31430fedee2aac36275bb30d4b':
Fix most of issue #2271640: Fix wallpaper etc docs
da511167ca3e5b24b6de49160894493d1be6b69b 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am 23ef7b48: Fix most of issue #2271640: Fix wallpaper etc docs

Merge commit '23ef7b4836d66d31430fedee2aac36275bb30d4b' into eclair-plus-aosp

* commit '23ef7b4836d66d31430fedee2aac36275bb30d4b':
Fix most of issue #2271640: Fix wallpaper etc docs
23ef7b4836d66d31430fedee2aac36275bb30d4b 19-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix most of issue #2271640: Fix wallpaper etc docs

Only thing remaining is the live wallpaper feature.

Change-Id: I8854c7978999d759bf618307f4f984c9c89d3fc8
allpaperInfo.java
allpaperManager.java
822d8f67ebcdab61fa513d6d9401476e12143386 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am bdcd30ac: am dfc066e7: Merge change I5ad37324 into eclair

Merge commit 'bdcd30acb3a1ce617f67becd69a7c5bc1037c428' into eclair-mr2-plus-aosp

* commit 'bdcd30acb3a1ce617f67becd69a7c5bc1037c428':
Fix issue #2262563: 40 ANR reports from com.android.settings in dogfooding sholes running ERD43
4393822e60ac98d797fb0159f09b2f6c5a919915 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am dfc066e7: Merge change I5ad37324 into eclair

Merge commit 'dfc066e769ec227b4dbf0e2e5097973c20c2b34f' into eclair-plus-aosp

* commit 'dfc066e769ec227b4dbf0e2e5097973c20c2b34f':
Fix issue #2262563: 40 ANR reports from com.android.settings in dogfooding sholes running ERD43
bdcd30acb3a1ce617f67becd69a7c5bc1037c428 19-Nov-2009 Dianne Hackborn <hackbod@google.com> am dfc066e7: Merge change I5ad37324 into eclair

Merge commit 'dfc066e769ec227b4dbf0e2e5097973c20c2b34f' into eclair-mr2

* commit 'dfc066e769ec227b4dbf0e2e5097973c20c2b34f':
Fix issue #2262563: 40 ANR reports from com.android.settings in dogfooding sholes running ERD43
a351b7f0c6a2f8240f6426cfdd3499ac0618bc8f 18-Nov-2009 Dan Egnor <egnor@google.com> am 8c7d9eab: Merge change Icb1674f1 into eclair-mr2

Merge commit '8c7d9eab8aa297f5ee3a171c6fa63fcf94e2b330' into eclair-mr2-plus-aosp

* commit '8c7d9eab8aa297f5ee3a171c6fa63fcf94e2b330':
Create android-common static library which gets included in frameworks.jar,
ded0e6447ed6e0f200dbca13e43c6cf4efc16a1d 18-Nov-2009 Dan Egnor <egnor@google.com> Create android-common static library which gets included in frameworks.jar,
but can also be used by unbundled apps. Move android.text.util.Regex there as
a starting example, renamed to a more sensible (?) com.android.common.Patterns.
Set up a corresponding test package, and move RegexTest (to PatternsTest).
Update clients.
earchDialog.java
f93152028726f75c26fa960ef6a5bc87ce867eea 18-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2262563: 40 ANR reports from com.android.settings in dogfooding sholes running ERD43

Don't hold the global package log while instantiated an AssetManager+Resources, since
this is a fairly heavy-weight operation, and if done in the background can starve the
foreground.

Change-Id: I5ad37324fb7c27ffdbf28e1498ca0ad667479580
ctivityThread.java
fd13fb7a9cbda152c25f28989cb3ce2e316406d3 13-Nov-2009 Scott Main <smain@google.com> am b0d2313e: am d05fd6c3: am dbc7e27e: docs: document the \'showSearchIconAsBadge" flag and "icon" attribute as deprecated. bug 2105329

Merge commit 'b0d2313ea49194b8ab6caa987aaa680a45dd38b2' into eclair-mr2-plus-aosp

* commit 'b0d2313ea49194b8ab6caa987aaa680a45dd38b2':
docs: document the 'showSearchIconAsBadge" flag and
7c8fcc19db4e75a6a5b19fee501573db2035cd84 13-Nov-2009 Scott Main <smain@google.com> am d05fd6c3: am dbc7e27e: docs: document the \'showSearchIconAsBadge" flag and "icon" attribute as deprecated. bug 2105329

Merge commit 'd05fd6c33518e60664ffdf1bb6cb425f36c2b82f' into eclair-plus-aosp

* commit 'd05fd6c33518e60664ffdf1bb6cb425f36c2b82f':
docs: document the 'showSearchIconAsBadge" flag and
b0d2313ea49194b8ab6caa987aaa680a45dd38b2 13-Nov-2009 Scott Main <smain@google.com> am d05fd6c3: am dbc7e27e: docs: document the \'showSearchIconAsBadge" flag and "icon" attribute as deprecated. bug 2105329

Merge commit 'd05fd6c33518e60664ffdf1bb6cb425f36c2b82f' into eclair-mr2

* commit 'd05fd6c33518e60664ffdf1bb6cb425f36c2b82f':
docs: document the 'showSearchIconAsBadge" flag and
d05fd6c33518e60664ffdf1bb6cb425f36c2b82f 13-Nov-2009 Scott Main <smain@google.com> am dbc7e27e: docs: document the \'showSearchIconAsBadge" flag and "icon" attribute as deprecated. bug 2105329

Merge commit 'dbc7e27ef10349f11ac940d59ff4f812319fce51' into eclair

* commit 'dbc7e27ef10349f11ac940d59ff4f812319fce51':
docs: document the 'showSearchIconAsBadge" flag and
00556831f7503a922a5402c525b4387ebdd1a4bb 12-Nov-2009 Dan Egnor <egnor@google.com> am f18a01c7: Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Merge commit 'f18a01c77e78209b74e34d05cfb352fa4a92db5f' into eclair-mr2-plus-aosp

* commit 'f18a01c77e78209b74e34d05cfb352fa4a92db5f':
Rename [I]DropBox[Service] to [I]DropBoxManager[Service].
f18a01c77e78209b74e34d05cfb352fa4a92db5f 12-Nov-2009 Dan Egnor <egnor@google.com> Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Un-hide the DropBoxManager interface, and update the public API accordingly.
pplicationContext.java
897223a1040ce29edc9c2fd500071ab7f559e5fe 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am d669d488: am 34d723d8: Merge change I32371166 into eclair

Merge commit 'd669d48888fdefab4907f4de5b296fc366b59eaf' into eclair-mr2-plus-aosp

* commit 'd669d48888fdefab4907f4de5b296fc366b59eaf':
Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
d669d48888fdefab4907f4de5b296fc366b59eaf 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 34d723d8: Merge change I32371166 into eclair

Merge commit '34d723d8fa75e8f97401311e03b3839246143018' into eclair-mr2

* commit '34d723d8fa75e8f97401311e03b3839246143018':
Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
f91984a1e13a2d000248b177ad841c291d541780 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 34d723d8: Merge change I32371166 into eclair

Merge commit '34d723d8fa75e8f97401311e03b3839246143018' into eclair-plus-aosp

* commit '34d723d8fa75e8f97401311e03b3839246143018':
Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
c9dbbe28f7879bd377114587ed1f40235a2d37ca 12-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral

Try really really hard not to crash, for any reason.

Change-Id: I32371166229825f13fc8d12d5cf3a6531cdb345e
allpaperManager.java
dbc7e27ef10349f11ac940d59ff4f812319fce51 11-Nov-2009 Scott Main <smain@google.com> docs: document the 'showSearchIconAsBadge" flag and
"icon" attribute as deprecated.
bug 2105329
earchManager.java
7377ac4fa5922f29f18c9584effe41ccd48cb641 10-Nov-2009 Dianne Hackborn <hackbod@google.com> am a3006256: am 119a7675: Merge change I83ba96fe into eclair

Merge commit 'a300625625feae9f7eb28694e4a31335442c420b' into eclair-mr2-plus-aosp

* commit 'a300625625feae9f7eb28694e4a31335442c420b':
Fix issue #2246723: Only one Application object gets onCreate called
c58fb84a49406cdeea951a40f00d75b56440b360 10-Nov-2009 Dianne Hackborn <hackbod@google.com> am 119a7675: Merge change I83ba96fe into eclair

Merge commit '119a767565399809d222ddda6392e5e58942d5e6' into eclair-plus-aosp

* commit '119a767565399809d222ddda6392e5e58942d5e6':
Fix issue #2246723: Only one Application object gets onCreate called
a300625625feae9f7eb28694e4a31335442c420b 10-Nov-2009 Dianne Hackborn <hackbod@google.com> am 119a7675: Merge change I83ba96fe into eclair

Merge commit '119a767565399809d222ddda6392e5e58942d5e6' into eclair-mr2

* commit '119a767565399809d222ddda6392e5e58942d5e6':
Fix issue #2246723: Only one Application object gets onCreate called
119a767565399809d222ddda6392e5e58942d5e6 10-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I83ba96fe into eclair

* changes:
Fix issue #2246723: Only one Application object gets onCreate called
eac4222f7f30bf1df14b223cf62e594914dd32d4 10-Nov-2009 Marco Nelissen <marcone@google.com> am 949ffa3d: am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '949ffa3da5231772425c3bde50caeab6c4d08ec5' into eclair-mr2-plus-aosp

* commit '949ffa3da5231772425c3bde50caeab6c4d08ec5':
Add a way for wallpapers to know the delta between virtual screens.
949ffa3da5231772425c3bde50caeab6c4d08ec5 10-Nov-2009 Marco Nelissen <marcone@google.com> am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '11cff8cd30f03b5adb137e985532543da5e960c4' into eclair-mr2

* commit '11cff8cd30f03b5adb137e985532543da5e960c4':
Add a way for wallpapers to know the delta between virtual screens.
47fc5e2a43af7cf42d535d6e3c2dba3507d6a543 10-Nov-2009 Marco Nelissen <marcone@google.com> am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '11cff8cd30f03b5adb137e985532543da5e960c4' into eclair-plus-aosp

* commit '11cff8cd30f03b5adb137e985532543da5e960c4':
Add a way for wallpapers to know the delta between virtual screens.
bf6956b1d95442e9d9c483894d578fe6b7044cbb 10-Nov-2009 Marco Nelissen <marcone@google.com> Add a way for wallpapers to know the delta between virtual screens.
allpaperManager.java
0be1f78c97ba6f38b315ab3ab28b44cdc883abec 09-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2246723: Only one Application object gets onCreate called

Change-Id: I83ba96fe81ad04258099d6f94a667dc7d9dd4fd3
ctivityThread.java
ac94fbd081450ae7f208e4525b23b36d90d382e0 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
bcd20496e0d976ac73c6949f931fc41577e9449c 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
4d88cbd98e3398e9f8db48c4a054fba467a242ba 08-Nov-2009 Android Code Review <code-review@android.com> Merge change Ia01d5fe8

* changes:
Fix documentation example, per issue 895 on android.googlecode.com
087c06039faeac54aa3063b643c5a6aafe51aa30 06-Nov-2009 Evan Millar <emillar@google.com> am 2b3970a2: Merge change Idc1396c8 into eclair

Merge commit '2b3970a2956152a508254aa2675b68df363d46c1' into eclair-mr2

* commit '2b3970a2956152a508254aa2675b68df363d46c1':
Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.
2b3970a2956152a508254aa2675b68df363d46c1 06-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Idc1396c8 into eclair

* changes:
Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.
307fbbf2b6dbdbc9249c492d5569e874207de5b1 06-Nov-2009 Christopher Tate <ctate@android.com> am 49fa9e00: Merge change Ibf6e51b7 into eclair

Merge commit '49fa9e00986993f5cf05f1092c30479cb98eb254' into eclair-mr2

* commit '49fa9e00986993f5cf05f1092c30479cb98eb254':
Set argv[0] from the main thread of an app, not a random binder thread
49fa9e00986993f5cf05f1092c30479cb98eb254 06-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibf6e51b7 into eclair

* changes:
Set argv[0] from the main thread of an app, not a random binder thread
dc1396c881b80074c99d171aee02d3a5486180ca 06-Nov-2009 Evan Millar <emillar@google.com> Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.

Fixes http://b/issue?id=2178591
earchDialog.java
8ee038d9265cb4da0e65475610a1a88c51761bb5 06-Nov-2009 Christopher Tate <ctate@android.com> Set argv[0] from the main thread of an app, not a random binder thread

Change-Id: Ibf6e51b7975cdb5e6aa97591a571c599ecf84020
ctivityThread.java
237cc15c171511e8c8ffe903c5d6f473593477b8 06-Nov-2009 Dianne Hackborn <hackbod@google.com> am 274b120f: Fix issue #2243096: Need to expose live wallpaper APIs in SDK

Merge commit '274b120f3975c8db6daeeab51a5fe08d6dede479' into eclair-mr2

* commit '274b120f3975c8db6daeeab51a5fe08d6dede479':
Fix issue #2243096: Need to expose live wallpaper APIs in SDK
274b120f3975c8db6daeeab51a5fe08d6dede479 06-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2243096: Need to expose live wallpaper APIs in SDK

Change-Id: I7e996bf549922c1bb8e8c00d051650ffe12d818c
allpaperInfo.java
allpaperManager.java
1bca7612dfeb78bba91f3985fb6f3567daf13a57 05-Nov-2009 Daniel Sandler <dsandler@google.com> am eca41b31: Merge change Id1458b01 into eclair

Merge commit 'eca41b31fb9a5202f755bfd9dbc4849dbb486137' into eclair-mr2

* commit 'eca41b31fb9a5202f755bfd9dbc4849dbb486137':
New live wallpaper API to expose author and description strings.
18a509d8fa3ff31aeb8a503f1f2a3dd63bd359d7 05-Nov-2009 Daniel Sandler <dsandler@google.com> New live wallpaper API to expose author and description strings.

First in a sequence of CLs to address
http://b/issue?id=2235307 .

Change-Id: Id1458b01c8a7918f345823b45e5726e02285d8b5
allpaperInfo.java
21cbd52b7acb8f3fbcbd256a62f27f1476e9c89e 03-Nov-2009 Dirk Dougherty <ddougherty@google.com> am 483d29c0: am 671c61d6: Merge change Iaf5d2cc2 into eclair-sdk

Merge commit '483d29c0ddc9f4c110a8a8788ccd978010d55aa4' into eclair-mr2

* commit '483d29c0ddc9f4c110a8a8788ccd978010d55aa4':
doc change: misc doc fixes.
483d29c0ddc9f4c110a8a8788ccd978010d55aa4 03-Nov-2009 Dirk Dougherty <ddougherty@google.com> am 671c61d6: Merge change Iaf5d2cc2 into eclair-sdk

Merge commit '671c61d66f8d556f206d167d0f3c3bbe037ed86b' into eclair

* commit '671c61d66f8d556f206d167d0f3c3bbe037ed86b':
doc change: misc doc fixes.
6b13bc043e715b5415b701e93141daa0d49fa364 31-Oct-2009 Dirk Dougherty <ddougherty@google.com> doc change: misc doc fixes.

Bug:2160782
Change-Id: Iaf5d2cc2e3c657700469e8b7394a95bc03fc26f3
earchManager.java
b5868caa8cfe4b3fb14c04f64a71c20a172faaef 31-Oct-2009 Mike LeBeau <mlebeau@android.com> am d3e4dab9: Merge change I7df84618 into eclair

Merge commit 'd3e4dab962109c634196bc38fb9830c7b8cc1d0a' into eclair-mr2

* commit 'd3e4dab962109c634196bc38fb9830c7b8cc1d0a':
Add a privateImeOption to represent that the IME should not show
7df846186d29ddfa4a567deddd04ad1043d32fd8 31-Oct-2009 Mike LeBeau <mlebeau@android.com> Add a privateImeOption to represent that the IME should not show
the voice input microphone, if it otherwise would, whenever the
search dialog is planning on showing a voice search button (as
specified by the current searchable).

The IME will respect this shortly.

http://b/2228562
earchDialog.java
952402704a175ba27f6c89dff1ada634c5ce5626 28-Oct-2009 Dan Egnor <egnor@google.com> Instead of a raw AIDL interface, give DropBox a Java
interface (android.os.DropBox); move the Binder interface
behind the scenes. Make DropBoxEntry into DropBox.Entry.
Make it possible to get a dropbox from an (Application)Context
with the usual getSystemService(DROPBOX_SERVICE) type thing.
Update the tests accordingly.
pplicationContext.java
7580493b014a2c7ea883cd291255798dc72ebbff 21-Oct-2009 Dianne Hackborn <hackbod@google.com> Implement feature #2117336: Create event communication APIs for live wallpaper

Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
allpaperManager.java
2c6c5e6e49795e6e24cd089c9018377d837ba931 09-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2176944: Need API so browser, others can determine memory size of device

Change-Id: I65d91cdb70df91b67fe84297dd6a94d26a785131
ctivityManager.java
f81ecc1fb7cad523b62c7f2662f4aab3ea0dee54 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I29232f2a into eclair

* changes:
Only dismiss search dialog after launching intent.
f242b7b931898856bcbcb7ec36cacf43098ba544 08-Oct-2009 Nick Pelly <npelly@google.com> Introduce BluetoothAdapter.getDefaultAdapter().

This is the main entry point to the Bluetooth APIs, and returns the default
local Bluetooth adapter.

It replaces context.getSystemService(Context.BLUETOOTH_SERVICE). This was
never in a public SDK release.

DrNo: eastham
Bug: 2158765
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
Change-Id: Ieed8be009ee5aba621cb69090ee8c8a9c19c840d
pplicationContext.java
0c3154d3fc54a1b3d8358a2932042cca729327b9 07-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2163654: deadlock, runtime restart

Don't hold a lock when the activity thread is telling the activity manager
to release a provider.

This requires that the activity manager now keep a reference count on the
providers, because without the lock it is possible for activity thread to
call in to request the provider again before it has finished telling
about the release.

Change-Id: I5f912903891f4edae85e28819d4e6f14b8f2e688
ctivityThread.java
214b6b9ef91320cd7b2eab592fbe0eec1614f3cb 07-Oct-2009 Bryan Mawhinney <bryanmawhinney@google.com> Only dismiss search dialog after launching intent.

This fixes an NPE that occurs when launching the intent
tries to access state cleared by onStop.

Bug: 2171752
Change-Id: I29232f2a44d8dfa27b2c79933093c0c8983b2e92
earchDialog.java
68d881cf2d2b252f6f795cd64d43e316a1d736e5 05-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log. So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
endingIntent.java
11f09bb5cd45a76ae7757b6f20807e836c3692f8 05-Oct-2009 Bjorn Bringert <bringert@android.com> Don't reinflate search bar when dialog is already showing

Change https://android-git.corp.google.com/g/27729 started reinflating
the entire search bar every time the search source was changed, to get
around problems with bad state in AutoCompleteTextView
(http://b/issue?id=2132686). This had some side-effects if the
search dialog was already visible, as it is when selecting a
source in "More results" or when presing the search key to go to
QSB from in-app search.

This change changes the reinflation to only happen if the dialog is
not already showing.

Fixes:

http://b/issue?id=2166640
"After selecting More results from suggestions, the search box is no longer visible."

http://b/issue?id=2166675
"Calling QSB with the hardware key does not place focus in the search tab."

http://b/issue?id=2166712
"back key has unexpected behaviour in QSB after selecting "More results" from suggestions."

Change-Id: I8d48149c3e9ad97ec11c49ec7efb356f27dfe4f6
earchDialog.java
a6309c30722ad3aee88ddc2394cea2a499168d99 01-Oct-2009 Bjorn Bringert <bringert@android.com> On BACK in search, hide just IME if IME is fullscreen

Since a fullscreen IME covers the entire search dialog, there was
no discoverable way to get back to the search dialog.
Now, on BACK presses when the IME is fullscreen (e.g. in landscape
mode without hard keyboard), we dismiss only the IME.
A second BACK press will dismiss the search dialog.

Fixes http://b/issue?id=2159132

Change-Id: I8e5736d83d7c35936a718929017ea04c6214700b
earchDialog.java
b782a2f4f0a3072f2677f6f10fb255c77468ae66 01-Oct-2009 Bjorn Bringert <bringert@android.com> Remove globalSearch argument from triggerSearch()

API council says:

"In reviewing the new triggerSearch API, we are concerned that
applications could use the option to perform a global search to spam
the user with frequent searches. We would like the global search
option to be removed for now (not just hidden, but removed from the
internal IPC API so that nobody can find this and abuse it). The rest
of the API should be fine as long as it is restricted to local
searches."

Fixes http://b/editIssue?id=2158785

Change-Id: Ie69a9c0ab6373cc4427aab50606885bdede40585
ctivity.java
SearchManager.aidl
earchManager.java
e88846eeaf70f9f4299af9e3d54ba5dacede42b6 01-Oct-2009 Dianne Hackborn <hackbod@google.com> Semi-workaround for #2027266: app drawer showing up on the side of the screen

(when booted while docked)

This isn't really a fix, but we now have the activity report the configuration
it actually launched in, so the activity manager will later adjust it if
needed. Should help us recover from hitting the race in this particular case.

Change-Id: I3bb83a48c2d692b4cb1822d8ae7d924cfa9187b2
ctivityManagerNative.java
ctivityThread.java
ActivityManager.java
29e4a3c566f435c32f0b95e4ac8e8b33cac6faba 01-Oct-2009 Dianne Hackborn <hackbod@google.com> Update from API review.

Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
ervice.java
436344ae12c819f58306ceb94241a266141e1218 01-Oct-2009 Christopher Tate <ctate@android.com> Turn off most of the backup-related debug logging

The core logging in BackupManagerService and in the Google backup transport are
still enabled at this point.

Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
ctivityThread.java
ackupAgent.java
8550f255232eb4e4852466c5297fdc125887f5af 30-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Check if rename of backed up file fails before persisting new changes.
If not these system services will end up with inconsistent settings files
when the device runs out of storage.
Delete mangled settings file in PackageManager if the current write fails
so that we don't end up overwriting the backed up version with the
mangled version
Include null check when retrieving fwd locked resource for an existing package
pplicationContext.java
935cbda0df2d55247c30d65534ecf31b1ee164b5 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I174d16a3 into eclair

* changes:
Debugging for #2027266: app drawer showing up on the side
d2c494d9be366aed081742c097b97816a6ed9d44 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8b2e000c into eclair

* changes:
add class description and revise descriptions for get*Drawable and peek*Drawable methods for clarity. also fix some links.
dc6b635cfa440454985461444c3cf1da8078cee1 30-Sep-2009 Dianne Hackborn <hackbod@google.com> Debugging for #2027266: app drawer showing up on the side

Nothing fixed, but this tells us what is going on.

Change-Id: I174d16a3864af2fa235e8cc7b1e74d32a375fb42
ctivityThread.java
8b2e000c43f5a93209be269a0b9e08943fad8d3c 30-Sep-2009 Scott Main <smain@google.com> add class description and revise descriptions for
get*Drawable and peek*Drawable methods for clarity.
also fix some links.
allpaperManager.java
f36740b2e4a9a187bf688c632c1d0a7ae926c96a 30-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Recreate search dialog view each time it's shown.

This is slower, but less vulnerable to problems in TextField, for example.

Change-Id: I3bb6220f30d8231cedde97fc5e0c4db993660d27
earchDialog.java
86917dbb9554e3e05be4ca8845a409b730120022 28-Sep-2009 Bjorn Bringert <bringert@android.com> Unhide SearchManager.SUGGEST_PARAMETER_LIMIT

Both GlobalSearch and the search dialog now pass
SearchManager.SUGGEST_PARAMETER_LIMIT as a query parameter to all
suggestion sources. Exposing this allows suggestion sources
to return only the number of results that the client requires.

Fixes http://b/issue?id=2150992

Change-Id: I17f45d35e8f302b11812f4bb6fee40b31dc15707
earchManager.java
2dfa6edcd086bb9ce4fbb3b979f3afec93f6cddc 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ida50e915 into eclair

* changes:
Pass limit=50 to all suggestion sources.
3fc7c67de192a5baee2b4510fdb464b0fec72dca 28-Sep-2009 Bjorn Bringert <bringert@android.com> Pass limit=50 to all suggestion sources.

Should mitigate http://b/issue?id=2149158
"Bad suggestions behavior within contacts app
search for 10k contact db"

Change-Id: Ida50e9157c3ce46fc7892ef09a67da9f4008e665
earchManager.java
uggestionsAdapter.java
5b6b41241d97ca6c08b610a421b758815a451803 28-Sep-2009 Bjorn Bringert <bringert@android.com> Don't crash search when getKeyDispatcherState() is null

Fixes http://b/editIssue?id=2150672

Change-Id: I6fb87c1a59b4b3a945822932047a66c4116e6391
earchDialog.java
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
pplicationContext.java
05eeeacee6fc69d184cd4cc1146cf5d5ccdb6b45 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27178 into eclair

* changes:
Fix issue #2136448: googleapps crashes while adding 2nd gmail account
c1e605eff4a940d749bab6c854810038c1485ec7 26-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2136448: googleapps crashes while adding 2nd gmail account

Change-Id: I1dc27959650643bf0c7fd0564719856d7b3efeb1
ctivityThread.java
48c84052e25c1ac1cdb6c86ac2d231d40a7801af 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27162 into eclair

* changes:
Fix Activity.overridePendingTransition().
8b571a817cc953ce96750f440645f104c7f55157 26-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix Activity.overridePendingTransition().

Change-Id: I4ce995bd58efbbedbe4d0d1e9e0d0f4a8e261843
ctivity.java
6ecaff15836581336b1e8fad6ac42f3ff4a13544 25-Sep-2009 Fred Quintana <fredq@google.com> add a optional String to the key of notifications to allow users
to scope them
NotificationManager.aidl
otificationManager.java
82e62668d0d3e09f27629c7aff6425faacdfa7f8 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27038 into eclair

* changes:
Redraw search autocomplete dropdown after config change.
29d52e120f36b46d7ef596b1c182db52d3476be7 25-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Redraw search autocomplete dropdown after config change.

This ensures the dropdown is redrawn after changing
from landscape to portrait mode, for example.

Change-Id: I71f4425d1df789faf34d20dd30b3a5c64b5caec3
earchDialog.java
81d84c0cb244290a58bf8e78a3d638750cf7dd3f 25-Sep-2009 Bjorn Bringert <bringert@android.com> am 6266e40a: Better JavaDoc for Activity.onSearchRequested().

Merge commit '6266e40a754d82afa717ef068898c8418a0bb5c3' into eclair

* commit '6266e40a754d82afa717ef068898c8418a0bb5c3':
Better JavaDoc for Activity.onSearchRequested().
6266e40a754d82afa717ef068898c8418a0bb5c3 25-Sep-2009 Bjorn Bringert <bringert@android.com> Better JavaDoc for Activity.onSearchRequested().

Fixes http://b/issue?id=1248721
ctivity.java
42b7af57c59d8b7cb9be3fea713478424b53b7fc 25-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Dismiss QSB dialog when doing an in-app global search.

This prevents QSB from obscuring the results when they are handled
by the current application.

Bug: 2141208
Change-Id: I6f848aa2003c75b97effe1d3d2af5316ad4fbf92
earchDialog.java
3b3e145d3c41fd68974e08f799b1fd1f8f060cf0 25-Sep-2009 Dianne Hackborn <hackbod@google.com> A variety of work on animations.

- The lock screen now fades in and out.
- Fixed a bug where we would accidentally freeze the screen when switching
to an activity with a different orientation than the current (but
the screen itself is in the current orientation). This would mess up
the animations on the car dock.
- New API to force a particular animation for an activity transition
(untested).
- New wallpaper animations.
- Resources now uses the next API version when in a development build,
to help applications being developed against such builds.

Change-Id: I2d9998f8400967ff09a04d693dc4ce55f0dbef5b
ctivity.java
ctivityManagerNative.java
ActivityManager.java
432b713c9442a4c0e1e4d400fada0c44dc17e786 25-Sep-2009 Mike Cleron <mcleron@google.com> Fix bug 2129190
The context used by the status bar (i.e., the system context) was
not properly initialized to have the right ApplicationInfo inside
its PackageInfo. This eventually caused it to believe that it
was running at 160dpi.

Kudos to Dianne for figuring this out.
ctivityThread.java
dbce92ab0bc874420f237cc06f615470080ebc6a 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26587 into eclair

* changes:
Back button in search always goes back or closes search
077357ccf0c8b35094a69c3fc8bddd9ee605cf78 23-Sep-2009 Bjorn Bringert <bringert@android.com> Back button in search always goes back or closes search

Before, the back button had different behavior depending on
which part of the search dialog had focus, and depending on
whether there were more suggestions than could fit in the
visible space in the drop-down.

This change makes the behavior of the BACK button more
predictable, by always going back to QSB when pivoted
into a source, and closing the search dialog when in
QSB.

Fixes http://b/issue?id=2126526
"One tap of back button when entering text to search
should always take you back to previous page"

Change-Id: I7b3553122eaa1a5d87ac966d5ab2a9f432063cc9
earchDialog.java
fed534ee5d47a96c1d104f9bd303e9480102813c 23-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix bug where onStartCommand() was never called with a null intent.

Also clean up some of the service java docs.

Change-Id: I40e7d713e2393f7ee1db9822da8f07fb6304a9e4
ervice.java
3de07024c80fb8a983d4a804ff6d14a49b3f7979 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26456 into eclair

* changes:
- make an AccountManager per context, not one per process - enhance the comment for addOnAccountsUpdatedListener()
465ccb8a4083f5fdda429336f7f093c818eb78e5 16-Sep-2009 Daniel Sandler <dsandler@google.com> Add support for thumbnails to WallpaperInfo.

Clean up the Gallery to show thumbnails appropriately; still using FPO artwork
for wallpapers without thumbnails.

This change introduces a new "thumbnail" attribute to the API (used
in wallpaper metadata to point to the thumbnail drawable resource).
allpaperInfo.java
e00a31155b95686eecc6e1999e904472f8f300ca 23-Sep-2009 Fred Quintana <fredq@google.com> - make an AccountManager per context, not one per process
- enhance the comment for addOnAccountsUpdatedListener()
pplicationContext.java
9bfb707597898f54722460b48588007b682f3e2a 22-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixes and improvements to window, activity.

- New meta-data you can add to a dock activity to have it launched by the
home key when the device is in that dock.

- Fix a deadlock involving ActivityThread's internal content provider lock.

- New window flag to have a non-secure keyguard entirely dismissed when a
window is displayed.

- New WindowManagerPolicy APIs to allow the policy to tell the system when
a change it makes during layout may cause the wall paper or
overall configuration to change.

- Fix a bug where an application token removed while one of its windows is
animating could cause the animating window to get stuck on screen.

Change-Id: I6d33fd39edd796bb9bdfd9dd7e077b84ca62ea08
ctivityThread.java
442da48b24f75e6075763b89943b513197a0bfe9 22-Sep-2009 Bjorn Bringert <bringert@android.com> Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.

Fixes http://b/issue?id=2118143
"Sometimes clicking a contact suggestion opens the
wrong activity in Contacts"

Change-Id: Ie4c150e91e455949e9f17245920850cfe7e6599e
earchDialog.java
976e363fe8206fcac5f2342ed3a0c3e0df66d32d 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26260 into eclair

* changes:
Add search_mode flag to intents launched by QSB suggestions
bfe319e06aa56c081d0d94d64a8181291d7f7388 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn animations on by default.

Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
ctivity.java
be5b73c5926cbebd508d8323bdeaafa2e048a93c 22-Sep-2009 Bjorn Bringert <bringert@android.com> Add search_mode flag to intents launched by QSB suggestions

This lets recipents determine whether an intent was launched
by a global search suggestion. This will for example
be used when deciding how to log clicks on web search suggestions.

Needed for http://b/issue?id=2097469

Change-Id: Ifc25ec3477a63be8bad094951bfffa7a5e703e7c
earchDialog.java
earchManager.java
2f2daf8ed4d45ff68a0aeffcd0b284c45e5a5d82 19-Sep-2009 Bjorn Bringert <bringert@android.com> Fix search intent component bug DO NOT MERGE

This is the Donut version of the fix for http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"

This fix is already in Eclair, so it should not be automerged.
earchDialog.java
6d318b4330a93bd407b298278ea1ab98ee98f449 21-Sep-2009 Bjorn Bringert <bringert@android.com> Use icon URI as icon cache key in search dialog

Fixes http://b/issue?id=2131078
"Incorrect icons shown in in-app search"

Change-Id: I88282d6323333796e66ca704390ad16016b846eb
uggestionsAdapter.java
5417f09c141713c62be697fe10fe149d6d3d0eb4 17-Sep-2009 Bjorn Bringert <bringert@android.com> Send action key and msg with GlobalSearch clicks

Needed for QSB logging, http://b/issue?id=2097469

Change-Id: I817e5b26c9739ab05bd873675854478ce601d234
earchDialog.java
earchManager.java
uggestionsAdapter.java
3c5767d8fea785ec8d4ad6de96032cdfe752f5da 18-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Track search KeyEvents in SearchDialog.

This fixes the bug preventing switching between global and in-app search,
and also enables long press for voice search (I think).

Bug: 2127442
Change-Id: I045a0f7b2c797c016191709a3983b6b33fc6186e
earchDialog.java
0e62e2df369b1f5a8e8ed38d3a6af6f568caf5e4 19-Sep-2009 Bjorn Bringert <bringert@android.com> Set intent_component of in-app shortcuts to app itself

Fixes http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"

Change-Id: I702fe39348b762393ed08ce9905771eb892bf782
earchDialog.java
efa199f016985b0a9d0471e42c803ee9f7941f0e 19-Sep-2009 Dianne Hackborn <hackbod@google.com> Add API to send an ordered sticky broadcast.

Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
pplicationContext.java
dfcbc046d7fcd74c8aacd9f26bd48084900d3b4a 17-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Reserve space for the searchbox spinner, even when stopped.

Make the searchbox spinner invisible (transparent) when it's not active. This prevents the size of the text field from varying depending on whether the spinner is spinning or not, which can cause an annoying flicker.

Bug: 2084293
Change-Id: Idd63a296d1f07c5bd47884040f21e4880038f424
earchDialog.java
ae22c05b91d1e7a458066792eb5cfc0974c1be9e 18-Sep-2009 Dianne Hackborn <hackbod@google.com> Try to fix docs build.

Change-Id: I331e128fa95c3bc0b8bc4ab2537cc2ea92e310e7
ctivity.java
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
ctivity.java
ctivityManagerNative.java
pplicationContext.java
ActivityManager.java
4f21c4cf077cfee5b35a56703618115614bc40f2 17-Sep-2009 Dianne Hackborn <hackbod@google.com> Add API to retrieve memory used by running processes.

Change-Id: I9c1935c2ef3c78bd67ec4dfd811a1caaab4514c3
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
76f0111845f0886f522cfe1eb5ec1dee34181f7c 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25362 into eclair

* changes:
Handle BACK key with focus in search ACTV correctly
87d61f22e13e81550559c92f6cf6fb795a39d37f 17-Sep-2009 Bjorn Bringert <bringert@android.com> Handle BACK key with focus in search ACTV correctly

Fixes http://b/issue?id=2124700
"Back key kills pivoted-in search, should go back to QSB"

Change-Id: Ib54c5de158fc362faa3f0fef553ee403437635ae
earchDialog.java
4c87a3f26a7c0c75fa371024a8726b59a108fd0f 16-Sep-2009 Bjorn Bringert <bringert@android.com> Use Resources to load search icons with android.resource URIs

Before, all icon URIs were opened with
ContentResolver.openInputStream(Uri), but that does not
include the density information from the source
application.

Now, if the URI uses the android.resource scheme,
we resolve the URI to a Resources and a resource ID,
and load it with Resources.getDrawable(int).
This requires making OpenResourceIdResult and getResourceId()
in ContentResolver public (but hidden).

This change also caches icons that were specified using just a
resource ID.

Since loading a Drawable from a URI is a generally useful operation,
it would be good to make it easy for apps to do it in the proper
density-independent way. We could add a getDrawable(Uri)
method to the framework. The question is where.

It would be easiest to add it to ContentResolver, but that may be a
bit odd since there is no other code for dealing with Drawables in
ContentResolver. Another alternative is in Resources, since
getDrawable(int) is there, but that class deals with the resources
for a single app, whereas getDrawable(Uri) can open a drawable
from any app. Putting it in Context may be the best choice,
since that's in android.content, and can thus access package
private members in ContentResolver, and since it's already
a dumping place for random useful high-level methods.
Opinions?

Fixes http://b/issue?id=2034526
"Icons on search do not scale for wide VGA"

Change-Id: I44de0b74826e5560141a3174bcbba991ba6264ac
uggestionsAdapter.java
8d37426c754e9822feaa8c6cc0b7c13e8523e217 15-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixed for back key handling.

My last change was far from perfect. Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
ctivity.java
earchDialog.java
83fe3f559249451706957b1a5f660b2b8272f114 13-Sep-2009 Dianne Hackborn <hackbod@google.com> Last big work on #1991910: Make swipes work with capacitive keys

This takes care of allowing us to cancel the back button. The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog. There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses. This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases. (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager. This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
ctivity.java
ialog.java
earchDialog.java
c2974809373697147cbe5754835cc871fb93aef1 14-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2116977: buttons are huge and bent

Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
uggestionsAdapter.java
19382ac1a4e4e7c23a1346d299368763f149de9c 12-Sep-2009 Dianne Hackborn <hackbod@google.com> Some optizations to wallpaper drawing/scrolling.

First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off. We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable. As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset. This ensures
that the wallpaper better tracks the application. Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
allpaperManager.java
6cb1330d26d2fe8a01c33ab3fbaee2bfebb6f47e 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24683 into eclair

* changes:
Tell GlobalSearch about searches without a suggestion
93f00def4b63511be91057b2bc69f1dda6f038e9 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24509 into eclair

* changes:
Addressed reviewer comments.
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
nstrumentation.java
2fcaf79a1856186e3823390c488e806c5955c8a6 11-Sep-2009 Bjorn Bringert <bringert@android.com> Tell GlobalSearch about searches without a suggestion

This is the framework part of http://b/issue?id=2099399
"executing a search in QSB should create a shortcut (like
when you click on a search suggestion)"

Change-Id: I2d07d9bfc808112948629ca16b24bc870fbd5fa6
earchDialog.java
earchManager.java
uggestionsAdapter.java
f65bc1823a8c09caab8237bf96323cf05df02287 11-Sep-2009 Scott Main <smain@google.com> am d27b1083: docs only. add Searchable resource information to the Available Resources doc and update some some of the attribute documentation to indicate that the icon label is not recommended. and fixing merge issue...

Merge commit 'd27b10837525f341eee7d46013e2177b0bad3c60' into eclair

* commit 'd27b10837525f341eee7d46013e2177b0bad3c60':
docs only.
d27b10837525f341eee7d46013e2177b0bad3c60 11-Sep-2009 Scott Main <smain@google.com> docs only.
add Searchable resource information to the Available Resources doc
and update some some of the attribute documentation to indicate
that the icon label is not recommended.
and fixing merge issue...

Change-Id: I1b1a62aa9804f4a0bf2f93328dde90b9f7aec50a
earchManager.java
bcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac 10-Sep-2009 Dianne Hackborn <hackbod@google.com> Wallpapers, animations, pending intent.

Some more tweaks and fixes to wallpapers. Make sure wallpapers are
told they are not visible when the screen is off. Add some new animations
for transitions across tasks, and fiddle with many of the existing
animations. Clean up the relationship between translucent activities
and animations. Add new API to start a PendingIntent from an
activity.

Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
ctivity.java
ctivityManagerNative.java
ActivityManager.java
nstrumentation.java
endingIntent.java
eec2f41d607c3eacba4f7d9cc098b335c7310d23 10-Sep-2009 Bob Lee <crazybob@google.com> Addressed reviewer comments.
ctivityThread.java
eb034652c2037a47ebfd99779e8383bb8bb528af 07-Sep-2009 Dianne Hackborn <hackbod@google.com> Implement all of the infrastructure for configuring wallpapers.

Actually being able to configure a wallpaper relies on additional
work in the launcher and wallpapers that will be in another change.
Also note that this breaks all existing wallpapers, since they now
need to include a meta-data item about themselves. This also
will be fixed in another change.

Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
ctivityManager.java
WallpaperManager.aidl
auncherActivity.java
allpaperInfo.aidl
allpaperInfo.java
allpaperManager.java
e540833fdff4d58e37c9ba859388e24e2945ed45 05-Sep-2009 Bob Lee <crazybob@crazybob.org> Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
system property is set. Saves snapshots to the SD card.
ctivityThread.java
96836e1e8a79563b84b21bf73a359cfde4042dff 04-Sep-2009 Karl Rosaen <krosaen@android.com> Don't toggle between in app and global search on repeat key events.

Fixes http://b/issue?id=2019231.
earchDialog.java
7bafed8623d6835d0c9092ac2b852bb244a13fcf 04-Sep-2009 Karl Rosaen <krosaen@android.com> Do a better job at finding the activity associated with a dialog when triggering search.

It first looks to see if there is an activity that is managing the dialog, and if not,
follows the context / contextwrapper chain to find an activity if possible.

Fixes http://b/issue?id=2064772.
ialog.java
be8e36e32b9cb2bb37e28e4c0d414ee0e46c84a2 04-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
dd9b82c283815747b75fe4434c65e4b6c9c9b54f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Add better service reporting.

This will be used elsewhere.

Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
ctivityManager.java
ctivityManagerNative.java
ActivityManager.java
85644d78894b66fa2903fb012b5122185767d1c5 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Really fix issue #:2097189 can't set custom wallpaper

Change-Id: Id0775b6c6716775c5da6f4fadf696571019279cc
allpaperManager.java
5e802fbb895a0ff4d9be1a72390f51c134a5ba0f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2097189: can't set custom wallpaper

My deadlock fix was only half done.

Change-Id: If9f286030894a60cd71851fb784bb61045f08185
allpaperManager.java
840c3a2b7e29cd75c13418a90cce5e311415c843 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix deadlock in wallpaper.

Change-Id: I9ab5681ebf325a9e33ca4b59a8581e535e4dde54
allpaperManager.java
a34f1ad7c3a68d971e6332aa2fb1c16d083920b3 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Fiddle system boot ordering.

This makes the system a little more careful to not start third party
code until it is ready to.

Also fix a little bug in SyncManager that would cause it to crash
during boot if sync was in a failure state.

Change-Id: Ib2d287d8441d155d393fe740a5f98690895fd358
ctivityManagerNative.java
ActivityManager.java
8f4b5a561813ee8c22d2b8e73c33299471d4a3f3 02-Sep-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
earchManager.java
5e1ab335e6e8fbfa19c64d53880a22f472010953 02-Sep-2009 Christopher Tate <ctate@android.com> Expand apps' control over the settings restore process

Applications can now specify two more aspects of the restore process: whether
they need to run with their own custom Application subclass rather than being
launched in the usual restricted mode during restore, and whether it's okay for
the backup manager to kill the app process once restore has completed. The new
manifest attributes for these are, respectively, android:restoreNeedsApplication
and android:killAfterRestore.

If unspecified in the manifest, restoreNeedsApplication is false, and
killAfterRestore is true.

In order to support kill-after-restore cleanly, this change also adds a new
system-process-only interface to the Activity Manager, which will schedule a
"commit suicide" event on the target app's main thread looper.

The framework backup agents have been given the appropriate new backup
attributes as well.
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
3025ef332c29e255388f74b2afefe05f64bce07c 01-Sep-2009 Dianne Hackborn <hackbod@google.com> Various infrastructure to support a running services UI.

Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
72b1f379d5c97c8ff31d2201e78215af777d6bda 31-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ctivity.java
ctivityThread.java
earchDialog.java
earchManager.java
uggestionsAdapter.java
284ac93aa30642fda87d5c40263a1263677c21cd 28-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers: animations, lifecycle, scaling, etc.

Yet more work on improving the behavior of wallpapers. This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
WallpaperManager.aidl
allpaperManager.java
cc927375cea38f44d810d9dd5ba87abb624d7e0c 29-Aug-2009 Mike LeBeau <mlebeau@android.com> am af0b780a: Merge change 23198 into donut

Merge commit 'af0b780ac6305eb6b6795cb8139ae051e13dd7ff' into eclair

* commit 'af0b780ac6305eb6b6795cb8139ae051e13dd7ff':
Update SearchManager documentation to reflect latest behavior.
05b775e0b7180e33df0303b9e132931f4895357c 29-Aug-2009 Mike LeBeau <mlebeau@android.com> Update SearchManager documentation to reflect latest behavior.
earchManager.java
e9df3cf79c2084391d5af140680cb4a18feca2e2 28-Aug-2009 Mike LeBeau <mlebeau@android.com> resolved conflicts for merge of 1e348378 to eclair
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
pplicationContext.java
1e3483780ce4eda729cb2984470fd6964006e4fb 28-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23043 into donut

* changes:
Revert "Remove third party support for Quick Search Box (aka global search)."
590f63433ce786722d263c7e913a88d3101e5cbc 28-Aug-2009 Karl Rosaen <krosaen@google.com> Revert "Remove third party support for Quick Search Box (aka global search)."

This reverts commit a647b7f29d65a7792cede74284e714b591337992.
earchManager.java
98d8858890227861c5dc28bc7acee9b1adedda45 26-Aug-2009 Bjorn Bringert <bringert@android.com> am ba223760: Close suggestion cursors that arrive after adapter is closed

Merge commit 'ba223760895e62ad2fcb85476984cb29018860c9' into eclair

* commit 'ba223760895e62ad2fcb85476984cb29018860c9':
Close suggestion cursors that arrive after adapter is closed
ba223760895e62ad2fcb85476984cb29018860c9 26-Aug-2009 Bjorn Bringert <bringert@android.com> Close suggestion cursors that arrive after adapter is closed

Before, after using the Browser, memory-hungry apps could
become very sluggish. This was because the search dialog in the
system process had the BrowserProvider open, which in turn had
EnhancedGoogleSearch open. Since EhancedGoogleSearch runs in acore,
the system would keep both the Browser process and acore to stay
around forever.

The cause (or at least one common cause) for this was that
if the user types quickly, and clicks on a suggestion before
the displayed suggestions have caught up, some suggestion cursors
are not be closed.

This change solves this problem by adding a close() method to
SuggestionsAdapter. SuggestionsAdapter now closes any cursors
that are passed to it after close() is called.

Fixes http://b/issue?id=2078226
"global search holding reference to browser: system -> browser -> acore = :("
earchDialog.java
uggestionsAdapter.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
earchManager.java
f6f9f2d0256930ce0bb4913b2260b8480914edc2 22-Aug-2009 Dianne Hackborn <hackbod@google.com> Add more control over a service's start state.

One of the problems I have been noticing is background services
sitting around running and using resources. Some times this is
due to the app developer doing this when they shouldn't, but there
are also a number of issues with the current Service interaction
model that make it very difficult (or impossible) to avoid
getting services stuck in the started state. This is a
change/enhancement to the Service API to try to address this.

The main change is that Service.onStart() has been deprecated,
replaced with a new Service.onStartCommand() that allows the
service to better control how the system should manage it. The
key part here is a new result code returned by the function, telling
the system what it should do with the service afterwards:

- START_STICKY is basically the same as the previous behavior,
where we usually leave the service running. The only difference
is that it if it gets restarted because its process is killed,
onStartCommand() will be called on the new service with a null
Intent instead of not being called at all.

- START_NOT_STICKY says that, upon returning to the system, if
its process is killed with no remaining start commands to
deliver, then the service will be stopped instead of restarted.
This makes a lot more sense for services that are intended to
only run while executing commands sent to them.

- START_REDELIVER_INTENT is like START_NOT_STICKY, except if
the service's process is killed before it calls stopSelf()
for a given intent, that intent will be re-delivered to it
until it completes (unless after 4 or more tries it still
can't complete, at which point we give up).

Change-Id: I978f5ca420d70023d1b5e7f97de639d09381f8ad
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
ntentService.java
ervice.java
dd03c6135f91df6d5d9e71de1487520dc3345742 21-Aug-2009 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 081a136d to eclair
081a136d259c02b2ab8ba773c38e404f7b3c3de4 21-Aug-2009 Anonymous Coward <nobody@android.com> Remove third party support for Quick Search Box (aka global search).

- @hides relevant APIs
- removes relevant javadoc
- enforces that only system apps can participate

note: general support is still there, will be easy to reenable when we are ready.
earchManager.java
3be63c09309b21c01b535271625d4c39045690e5 21-Aug-2009 Dianne Hackborn <hackbod@google.com> Infrastructure for supporting wallpaper previews.

Various things that will allow us to show previews of wallpapers.
Also some fixes to animations across wallpapers.
ctivity.java
ialog.java
auncherActivity.java
1066cbcac08268e2254ed6818181949d83e9ba1c 19-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix build.
ervice.java
d8a43f61680bacf0d4b52a03ff3c7a07307377fc 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2047139: Remove Service.setForeground()

This API is becoming seriously abused, so now it is deprecated and has
become a no-op.

As an alternative, there is now a new API that allows you to make a service
be in the foreground but requires providing a persistent notification to
go along with this state, allowing the user to know about and control it.
ctivityManagerNative.java
ActivityManager.java
otification.java
otificationManager.java
ervice.java
93df578638418ef2f05efdf58331d847f41b17b5 18-Aug-2009 Mike LeBeau <mlebeau@android.com> am cfa419b7: Correct comments for startSearch in Activity and SearchManager to explain Donut behavior correctly.

Merge commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb' into eclair

* commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb':
Correct comments for startSearch in Activity and SearchManager to explain
d2d6014f715f12f6263f61ba3eeb6f8cba6d0fa6 17-Aug-2009 krosaen <krosaen@android.com> NEW API for SearchManager and Activity to 'triggerSearch'.

This is pretty much the same thing as startSearch, except it also launches the
query. We enforce that this can only be done for the package of the app that is
associated with the search mananger (e.g you can't trigger a contacts search
from anywhere).
ctivity.java
SearchManager.aidl
earchDialog.java
earchManager.java
bd022f423a33f0794bb53e5b0720da2d67e4631c 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
pplicationContext.java
cfa419b754332e12f8cd45244c2f3bee9d6a74bb 17-Aug-2009 Mike LeBeau <mlebeau@android.com> Correct comments for startSearch in Activity and SearchManager to explain
Donut behavior correctly.
ctivity.java
earchManager.java
7341d7a104b47996445d069a695e155a07184606 14-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers.

- Do better about figuring out when to stop them and other related window
management.
- Fix problem where we were not redrawing the surface when the orientation
changed. This was the cause of the device hang.
allpaperManager.java
766cbfe44be3c5013a6a22bd6cd8ad1055a37256 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Add new API to compare certs of two UIDs.
pplicationContext.java
72c82ab9923025a91bbabb32e56bfea27bfd083b 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Report wallpaper offset to the wallpaper, use this in the image wallpaper.

Wallpapers can now be just the size of the screen, and get told when their
scroll position should change to do the updating on their own.
allpaperManager.java
90f77218a24ac66bea52faef79c30d45420ce135 12-Aug-2009 Dianne Hackborn <hackbod@google.com> am b8546001: Merge change 20878 into donut

Merge commit 'b8546001701405a76dad7e6235046e592296fac2'

* commit 'b8546001701405a76dad7e6235046e592296fac2':
Fix issue #2048263: More debugging information
f57a1a51171148466fa5f05b9d452d5bc522c0d9 12-Aug-2009 Karl Rosaen <krosaen@google.com> am b3fa1084: Merge change 20768 into donut

Merge commit 'b3fa1084ba31698fa5c58150a713d7abbadb1cd2'

* commit 'b3fa1084ba31698fa5c58150a713d7abbadb1cd2':
Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.
82e1ee93eece8fb0aec6acc3ef4ee7b1c86feec7 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2048263: More debugging information

We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
ctivityThread.java
d47fddc5d73f22830a5e557a8e8707b29c28e471 12-Aug-2009 Karl Rosaen <krosaen@google.com> am abf44279: Fix NPE in SearchDialog (and thereby fix bug 2045398).

Merge commit 'abf44279add64c6f22a40592895225779b8481ea'

* commit 'abf44279add64c6f22a40592895225779b8481ea':
Fix NPE in SearchDialog (and thereby fix bug 2045398).
6f82aa3f4d0731dbf03eee56a155b7387eed75e9 12-Aug-2009 Mike LeBeau <mlebeau@android.com> am 021fa3fa: Merge change 20665 into donut

Merge commit '021fa3fa6fe88c33ad11a3139ebcd3a5be8eb953'

* commit '021fa3fa6fe88c33ad11a3139ebcd3a5be8eb953':
First update of SearchManager docs to reflect the new Donut Quick Search Box feature.
b5041368524045b6714081d14ff3c6b22598aab1 11-Aug-2009 Karl Rosaen <krosaen@google.com> Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.

Includes:
- an overview section on including search suggestions in quick search box
- additional table of searchable metadata attributes related to quick search box
- additional column descriptions that we've added for quick search box.
- description of how to expose your content provider's search suggestions to
the search infrastructure if you have permissions guarding your content provider.
earchManager.java
ac1e59d887651220f5367cc7fa4207b34eab774d 11-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
earchDialog.java
uggestionsAdapter.java
c8a0a75e1c61d1ab24bd46a8243041c107e738ac 11-Aug-2009 Dianne Hackborn <hackbod@google.com> Implement support for scrolling a wallpaper.

This currently only works for a wallpaper that is larger than the
screen. Set the scroll position with the new wallpaper API. Right
now only does jump scrolls.
allpaperManager.java
abf44279add64c6f22a40592895225779b8481ea 11-Aug-2009 Karl Rosaen <krosaen@google.com> Fix NPE in SearchDialog (and thereby fix bug 2045398).
earchDialog.java
8c91dd7ec8b3d277a42bccab075241468c9f980d 11-Aug-2009 Mike LeBeau <mlebeau@android.com> First update of SearchManager docs to reflect the new Donut Quick Search Box feature.
This simply cleans up any inconsistencies or weirdnesses, we still need to add the new
info for QSB.
earchManager.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 09-Aug-2009 Dianne Hackborn <hackbod@google.com> Very primitive wallpapers in a surface.

This is all of the basic pieces:

- The WallpaperService now creates a surface with the window manager for its
contents.
- There is a simple service that displays a bitmap.
- The wallpaper manager takes care of starting and stopping the service.
- The window manager knows about wallpaper windows and how to layer them with
the windows that want to be shown on top of wallpaper.

Lots and lots of issues remain, but at this point you can actually write a
wallpaper service, select it in the UI, and see it behind an activity.
pplicationContext.java
WallpaperManager.aidl
allpaperManager.java
332aaaf92fb0bae521006907db9559b8e14f1b96 07-Aug-2009 Karl Rosaen <krosaen@google.com> am a7a3b6ef: Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.

Merge commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077'

* commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077':
Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
a7a3b6ef0fdaf6b17993642b76baf90a03ae0077 07-Aug-2009 Karl Rosaen <krosaen@google.com> Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.

Fixes bug 2039508. This makes backing out of the search dialog easier when dismissing the soft keyboard doesn't really
add any value.
earchDialog.java
597543c5e750bc5373855a8643aa18759625a2a3 06-Aug-2009 Mike LeBeau <mlebeau@android.com> am e303d2cf: Send a special respond to the cursor in SuggestionsAdapter to tell it to close itself directly because it may not happen correctly for some cursors currently. This fixes http://b/2036290, which is being caused by http://b/2015069 which we are not fixing f

Merge commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295'

* commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295':
Send a special respond to the cursor in SuggestionsAdapter to tell it to
e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295 06-Aug-2009 Mike LeBeau <mlebeau@android.com> Send a special respond to the cursor in SuggestionsAdapter to tell it to
close itself directly because it may not happen correctly for some cursors
currently. This fixes http://b/2036290, which is being caused by
http://b/2015069 which we are not fixing for Donut, so this is a hack around
that for the time being.
uggestionsAdapter.java
73cf55d96372415e3ddedf23bd44cdb0dc641aea 06-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix build.
allpaperManager.java
8cc6a5026aeb5cf9cc36529426fe0cc66714f5fb 06-Aug-2009 Dianne Hackborn <hackbod@google.com> First bit of wallpaper work.

This is mostly refactoring, adding a new WallpaperManager class that takes care
of the old wallpaper APIs on Context, so we don't need to pollute Context with
various new wallpaper APIs as they are needed. Also adds the first little
definition of a wallpaper service, which is not yet used or useful.
pplicationContext.java
WallpaperManager.aidl
WallpaperManagerCallback.aidl
WallpaperService.aidl
WallpaperServiceCallback.aidl
allpaperManager.java
9d1a3149f35b716caeda89dad53c0d8c45c6ca4b 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am d4543c51: Merge change 20108 into donut

Merge commit 'd4543c519b7724841eb77bb57ff360e6c40cd69a'

* commit 'd4543c519b7724841eb77bb57ff360e6c40cd69a':
Guard against remote process dying when retrieving column from cursor.
cbd7fa57eeb5b3bfe9d78cd7d8bf82c1629041e8 05-Aug-2009 Karl Rosaen <krosaen@google.com> am 69423302: Remove the menu from the search dialog since there are a couple of issues with it we don\'t have time to fix for donut.

Merge commit '6942330251cd778f85169c6265c584648b42428d'

* commit '6942330251cd778f85169c6265c584648b42428d':
Remove the menu from the search dialog since there are a couple of issues with it we don't have time to fix for donut.
d4543c519b7724841eb77bb57ff360e6c40cd69a 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20108 into donut

* changes:
Guard against remote process dying when retrieving column from cursor.
a02d0d60204b94f88da4896f7dcfa8d58dca5c43 05-Aug-2009 Karl Rosaen <krosaen@google.com> Guard against remote process dying when retrieving column from cursor.

Fixes bug 2035791.
uggestionsAdapter.java
6942330251cd778f85169c6265c584648b42428d 05-Aug-2009 Karl Rosaen <krosaen@google.com> Remove the menu from the search dialog since there are a couple of issues with it we don't have time to fix for donut.

Fixes bugs 2034242 and 2034216 (the issues with the menu showing up above the ime, and triggering the ime to reshow
when closed).
earchDialog.java
fc0e17fc42c38f40c8641d31082f02186c144395 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am cd540294: Merge change 9704 into donut

Merge commit 'cd540294db39d6dd2b2c228ac190684c3970fe0a'

* commit 'cd540294db39d6dd2b2c228ac190684c3970fe0a':
Close the search dialog before starting voice search in all cases, i.e.,
c5e7fe36fbb79ea888da636779318d3e430aa24c 04-Aug-2009 Mike LeBeau <mlebeau@android.com> Close the search dialog before starting voice search in all cases, i.e.,
also when launching web search, not just when it's using the intent API.
earchDialog.java
0391107e13e1e6388a3175399d15b246d726b88f 03-Aug-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
3161d6dc2e1141bff233e8238d29c68b21c216cc 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9430

* changes:
Update docs.
37296dc4edae8d1383179e956dff2ecf806ac166 01-Aug-2009 Joe Onorato <joeo@android.com> Update docs.
ctivity.java
5c1207be90fdf296c1b83034b7c68915e1749284 01-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
ActivityManager.java
ActivityWatcher.aidl
auncherActivity.java
endingIntent.java
earchDialog.java
earchManager.java
uggestionsAdapter.java
0185fc570b8ce162e8a4d8576ca94960bf5b7e92 31-Jul-2009 Mike LeBeau <mlebeau@android.com> am c2e06072: Tell the SearchManager to stopSearch before starting an in-app voice search. Without this, because of the recent changes to how the search dialog hides and resumes, we end up re-showing the search dialog after returning to the app from voice search, obscu

Merge commit 'c2e06072051e319bc609df66f4c72b77716f4fa4'

* commit 'c2e06072051e319bc609df66f4c72b77716f4fa4':
Tell the SearchManager to stopSearch before starting an in-app voice
bb2e26c57c1af0ae3ad754a011b221f962d297d6 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 67fb5728: Merge change 9147 into donut

Merge commit '67fb5728332f7e3f8c11245fb9cb9d1cfe2b5607'

* commit '67fb5728332f7e3f8c11245fb9cb9d1cfe2b5607':
Fix in-app search shortcut icons
c2e06072051e319bc609df66f4c72b77716f4fa4 31-Jul-2009 Mike LeBeau <mlebeau@android.com> Tell the SearchManager to stopSearch before starting an in-app voice
search. Without this, because of the recent changes to how the search
dialog hides and resumes, we end up re-showing the search dialog after
returning to the app from voice search, obscuring the new voice search
results behind.

Fixes http://b/2025364
earchDialog.java
dcfc5c231867848ba2a010751a9d47a4fa642e43 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am b91e2b02: Merge change 9073 into donut

Merge commit 'b91e2b0292f9f4f76175a18e6e3cf392f3967ae8'

* commit 'b91e2b0292f9f4f76175a18e6e3cf392f3967ae8':
Special-case search within the browser to not show the app icon
83dba19a8e9d5be6f18a4c9e2e254386c25c66fe 30-Jul-2009 Bjorn Bringert <bringert@android.com> Fix in-app search shortcut icons

When the suggstion provider is in a different package from the searchable
activity, the icons stored for shortcuts used the package of the
activity instead of the provider.

Fixes http://b/issue?id=2023993
earchDialog.java
5a7d752b65edc83abc1eeef462b8bf01038ebdff 30-Jul-2009 Mike LeBeau <mlebeau@android.com> Special-case search within the browser to not show the app icon
to the left of the search field. Also, because this removes context
about whether you're in browser search or global search, we make
sure to clear any entered text if you jump out to global search from
within browser search.

This is a really ugly hack, but was required by the UI team. We will
find a better way to reconcile in Eclair.
earchDialog.java
977e67bb5039c7a87968d8ebe72fe410d47544e2 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0869f7ef: Merge change 8962 into donut

Merge commit '0869f7ef1efa9fe2e26b20e525952ad611d379aa'

* commit '0869f7ef1efa9fe2e26b20e525952ad611d379aa':
Log uid and package name when launching intents from search
cda5ad5b70e705d4b371cd32ececfcf919b3b3a1 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9b91d78a: Merge change 8911 into donut

Merge commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8'

* commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8':
Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
61e4248f8f6ae8a8f40550cc0800e5190cd1dc09 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
a8675f67e33bc7337d148358783b0fd138b501ff 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
pplicationThreadNative.java
ialog.java
ActivityController.aidl
ActivityManager.java
ActivityWatcher.aidl
ApplicationThread.java
SearchManager.aidl
earchDialog.java
earchManager.java
uggestionsAdapter.java
9bb8fd77c8dc177aab9ac96bed4f55972dcda70a 29-Jul-2009 Joe Onorato <joeo@android.com> Only restore the bits for wallpapers that aren't built in.
pplicationContext.java
WallpaperService.aidl
725d8ff6c5b4e27c8b7f2969ce1ddf6ec715ea6d 29-Jul-2009 Bjorn Bringert <bringert@android.com> Log uid and package name when launching intents from search

This is to help debug http://b/issue?id=2020252
where the WEB_SEARCH intent is sometimes not handled.
earchDialog.java
9b91d78a21f6e66f571169f2c6f2f94e638511e8 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8911 into donut

* changes:
Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
a6ddc8af22af6bce879c5bf906aad16c0b3d6b01 29-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden

Re-arrange various things to ensure that the search dialog is told about system windows being
closed before it is told about the navigation back to home.
ctivityManagerNative.java
ActivityManager.java
ActivityWatcher.aidl
02f5228c3c224dc8804cbedd40899fa0c42bfd4a 29-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f0d83fd9 to master
b2fe1fd4ae31df7a0366c59c4a1393fb281c4fde 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 40c0de64: Merge change 8836 into donut

Merge commit '40c0de641a64ed4db4f0a08448a7b58bc50a5425'

* commit '40c0de641a64ed4db4f0a08448a7b58bc50a5425':
Add menu with search settings to search dialog.
f0d83fd907e0d2a0b2fe563cea9ffa830ecfd33f 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8752 into donut

* changes:
Updates from API review.
f4acf39d99d105e1e4fc7c43fa54377bb2f262ae 28-Jul-2009 Bjorn Bringert <bringert@android.com> Add menu with search settings to search dialog.

Fixes http://b/issue?id=2018143
earchDialog.java
48000fe23a339322429d6eb306bad0a30a49f62d 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am c6590d6f: Merge change 8759 into donut

Merge commit 'c6590d6f390fc69fe15a9a565327a8f8c97f107b'

* commit 'c6590d6f390fc69fe15a9a565327a8f8c97f107b':
Cancel search on BACK if IME is obscured.
c6590d6f390fc69fe15a9a565327a8f8c97f107b 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8759 into donut

* changes:
Cancel search on BACK if IME is obscured.
b3c82efb4725e959a50dca3f7ff50d1d99a059b4 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 1dd6936a: Merge change 8728 into donut

Merge commit '1dd6936a862be97efca02e4b7582a9fca1fcc269'

* commit '1dd6936a862be97efca02e4b7582a9fca1fcc269':
Fix resource code and version attributes
1dd6936a862be97efca02e4b7582a9fca1fcc269 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8728 into donut

* changes:
Fix resource code and version attributes Create a new package setting object for updated system apps rather than moving around the same setting. This updates the resource, code and version correctly. For updating system packages, disable the package first which removes the entry from internal structures, create a new package setting, add it to list of user id's then rest of installation steps, kill the process if needed via ActivityManager then add this setting if everything was successful. This also fixes issues with updating values prematurely.
261e66acd1963d9c404fd2d3ddc6ef99ccd745cf 28-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix resource code and version attributes
Create a new package setting object for updated system apps rather than moving
around the same setting. This updates the resource, code and version correctly.
For updating system packages, disable the package first which removes the entry
from internal structures, create a new package setting, add it to list of user id's
then rest of installation steps, kill the process if needed via ActivityManager
then add this setting if everything was successful. This also fixes issues with
updating values prematurely.

When a new version of system package is available via OTA, just physically remove
entries for pkg. Note that the component and other info will be eventually updated
later on when scanning the package.
Also move certificate verification slightly ahead before scanning packages.

Some null checks

New api's in ActivityManager to kill an application pkg before finishing installation
ctivityManagerNative.java
ActivityManager.java
003ad48380fe90556da408fedba7dfc1a37790b9 28-Jul-2009 Bjorn Bringert <bringert@android.com> Cancel search on BACK if IME is obscured.

This adds a hidden method AutoCompleteTextView.isImeHidden(),
and uses that in SearchDialog to cancel the search dialog
when BACK is pressed, if there is no previous search component
to return to.

mlebeau says:
If we fill the whole screen then it makes the issue of the back
button a little more important. Specifically, right now if you have
the list expanded and you press back, the keyboard hides but it's not
really showing any more anyway so it seems like pressing the button
does nothing. We rationalized this by saying "part of the keyboard
will be showing so it won't be completely non-obvious that it was
hidden". But since really the right UX is to fill the screen, as part
of this we should probably also add logic to the back button such
that if it is pressed when the list is obscuring the keyboard
(i.e. softInputMode on the PopupWindow is INPUT_METHOD_NOT_NEEDED)
then we should hide the dialog entirely rather than closing the
keyboard.

This is part of the fix for http://b/issue?id=2014450
earchDialog.java
a6b281d2b9604c80eaba9ec87c46444899e2aad8 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 738b4c00: Merge change 8773 into donut

Merge commit '738b4c000bab8414fa2969db489d7abce20e0af6'

* commit '738b4c000bab8414fa2969db489d7abce20e0af6':
Only dismiss search on suggestion click in in-app search
da1f4b669ead7813079643b43301f100127aaeed 28-Jul-2009 Bjorn Bringert <bringert@android.com> Only dismiss search on suggestion click in in-app search

We now distinguish between in-app search (pivoted in from GlobalSearch)
and real in-app search mode. Only the latter dismisses the search
dialog when a suggestion is clicked. Also, the drop-down
is now always visible except in real in-app search mode.

Fixes http://b/issue?id=2014626
earchDialog.java
dfe673a591a33661657fe26639ba2478c88631d3 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am d0021dca: Merge change 8740 into donut

Merge commit 'd0021dcae7f474c062f23a449bdd18be5e882d7e'

* commit 'd0021dcae7f474c062f23a449bdd18be5e882d7e':
Fix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation change
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
endingIntent.java
0d907fa00bd9b20e69f2a95a71fbaf9fffeb8c94 28-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation change
ctivityThread.java
2c3fc83ac5b267d6a551deb36b30064a2e617944 27-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ef9fd18d: Merge change 8616 into donut

Merge commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c'

* commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c':
Fiddle with default densities to try to sanitize the API.
ef9fd18d90829ecbd37769cc05a8d5288aff821c 27-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8616 into donut

* changes:
Fiddle with default densities to try to sanitize the API.
2201bd1713562f35db318f35bddbdf31bc4d651d 27-Jul-2009 Bjorn Bringert <bringert@android.com> am 5b11a0f3: DPAD_DOWN moves from search/voice search key to drop-down

Merge commit '5b11a0f3e1d8e2681cfd3326b6808b894bb9c2c3'

* commit '5b11a0f3e1d8e2681cfd3326b6808b894bb9c2c3':
DPAD_DOWN moves from search/voice search key to drop-down
0d289e5b6302d5c7f6f26b49abf3521cf3e9c713 27-Jul-2009 Bjorn Bringert <bringert@android.com> am 9377738c: Remove search dialog PRE_CLOSE event

Merge commit '9377738cdbb7eb0a1267cb536443cbed700ff5e9'

* commit '9377738cdbb7eb0a1267cb536443cbed700ff5e9':
Remove search dialog PRE_CLOSE event
d0b1faa441802fa133c03daf9d3a6466bb7f16d8 27-Jul-2009 Bjorn Bringert <bringert@android.com> am 6ddaa349: Send max displayed position in search dialog click event

Merge commit '6ddaa3497ce7af2c303771365449501e2be52511'

* commit '6ddaa3497ce7af2c303771365449501e2be52511':
Send max displayed position in search dialog click event
5b11a0f3e1d8e2681cfd3326b6808b894bb9c2c3 27-Jul-2009 Bjorn Bringert <bringert@android.com> DPAD_DOWN moves from search/voice search key to drop-down

Fixes http://b/issue?id=2014688
earchDialog.java
9377738cdbb7eb0a1267cb536443cbed700ff5e9 27-Jul-2009 Bjorn Bringert <bringert@android.com> Remove search dialog PRE_CLOSE event

This is part of the fix for http://b/issue?id=2000655
earchManager.java
uggestionsAdapter.java
6ddaa3497ce7af2c303771365449501e2be52511 27-Jul-2009 Bjorn Bringert <bringert@android.com> Send max displayed position in search dialog click event

This is part of the fix for http://b/issue?id=2000655
earchManager.java
uggestionsAdapter.java
96e240f25a97c10bba863df328ed73a82c34ff61 27-Jul-2009 Dianne Hackborn <hackbod@google.com> Fiddle with default densities to try to sanitize the API.

An issue with the density API is that bitmaps assumed the old default density,
so new programs would have to explicitly set the correct density for every bitmap
they create.

This is an attempt to fix that situation, by define the default density of bitmaps
to be the main screen's density, except for old apps where it is the original default
density.

Actually implementing this is not so great, though, because the Bitmap constructors
can't really know anything about who is calling them to know which density to use.
So at this level the compatibility mode is defined per-process -- meaning the initial
package loaded into a process defines the default bitmap density, and everyone else
loaded in later on has to live with that.

In practice this shouldn't be much of a problem, there shouldn't be much mixing of
old vs. new apps in a process. It does mean that, going forward, if a developer is
going to use shared user IDs for this, they will need to make sure either that all of
their apps are in the same compatibility mode, or that their code explicitly sets the
density of bitmaps it receives. This isn't all that great, but I think it is worth
the benefit of allowing people who write modern apps to not have to deal with bitmap
densities.

This change also does some cleanup of the density management (making sure to always
copy over bitmap densities, etc) and adds java docs to explain the various ways
density is set and used by the system.
ctivityThread.java
2af1b3db3d4f687d008db74b150f149e956b4bc6 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge korg/donut into korg/master
e2dba02441b42afbae725109ac779877a4b72aa0 25-Jul-2009 Dianne Hackborn <hackbod@google.com> am 11ea3347: Allow for screen density drawables in compatibility mode.

Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
Allow for screen density drawables in compatibility mode.
ff899e40900bdec86d3835ebe5eecd430cd3ffe3 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0a4730f8: Merge change 8443 into donut

Merge commit '0a4730f8889bd98e272bd5e7e0fedb6a69d33f54'

* commit '0a4730f8889bd98e272bd5e7e0fedb6a69d33f54':
add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
11ea33471e1a14a8594f0b2cd012d86340dd3bd8 23-Jul-2009 Dianne Hackborn <hackbod@google.com> Allow for screen density drawables in compatibility mode.

This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode. In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable. For
the small rare chance of them breaking, it worth getting the correct
graphics. Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
ctivityThread.java
pplicationContext.java
auncherActivity.java
0a4730f8889bd98e272bd5e7e0fedb6a69d33f54 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8443 into donut

* changes:
add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
92f461ea66d0c326ea6705cce9932b753954c690 24-Jul-2009 Karl Rosaen <krosaen@google.com> add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
uggestionsAdapter.java
a01d5fe8794974a18408897744675e1c59af1ed4 24-Jul-2009 Joe LaPenna <joe@joelapenna.com> Fix documentation example, per issue 895 on android.googlecode.com
istActivity.java
b3167dc3e1f9c6d80863cee4a6808fd853f15ee2 23-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8399

* changes:
BackupAgent-related lifecycle APIs need to be oneway
d884f43ffa47f1966e9c63d1ac4722994e037c0b 23-Jul-2009 Christopher Tate <ctate@android.com> BackupAgent-related lifecycle APIs need to be oneway

Bad Things(tm) happen if some of the lifecycle interfaces on IActivityThread are
oneway but others are not [notably, out-of-order method delivery, i.e.
catastrophe]. This change makes the methods added for backup-agent management
oneway like the rest of the API.
pplicationThreadNative.java
e39900ca7aa73a7a484cc0cff79188940df64cdb 23-Jul-2009 Mike LeBeau <mlebeau@android.com> Merge commit '4182e684' into manualmerge

Conflicts:
core/java/android/widget/AutoCompleteTextView.java
d4760d77e7e8ab66af0307dcae39e0a8e9d90a14 23-Jul-2009 Mike LeBeau <mlebeau@android.com> Add new hidden API setForceIgnoreOutsideTouch to AutoCompleteTextView for
use by SearchDialog. SearchDialog wants to be able to say a dropdown should
not always be visible but still let it ignore outside touch when it does
show.

Fixes http://b/1997170
earchDialog.java
1193965757623fa767562ee06e5764735b9429ee 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0b1a255f: Merge change 8228 into donut

Merge commit '0b1a255f736851342016e657ba6ccf096a9497ea'

* commit '0b1a255f736851342016e657ba6ccf096a9497ea':
Remove background padding workaround from SuggestionsAdapter
0b1a255f736851342016e657ba6ccf096a9497ea 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8228 into donut

* changes:
Remove background padding workaround from SuggestionsAdapter
6aaeba20d21adf1973af153fb15753801097e62a 22-Jul-2009 Bjorn Bringert <bringert@android.com> Remove background padding workaround from SuggestionsAdapter

Romain has checked in a framework fix,
https://android-git.corp.google.com/g/8218
so the workaround added in
https://android-git.corp.google.com/g/8209
is no longer needed.

Fixes http://b/issue?id=1996635
uggestionsAdapter.java
c58c78de2fc410bdd081b5824228b32596db4ee3 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am e94b2877: Merge change 8186 into donut

Merge commit 'e94b28773de2b2c9a0d0909841b2d3126048c888'

* commit 'e94b28773de2b2c9a0d0909841b2d3126048c888':
Move global search intent launching to search dialog
e94b28773de2b2c9a0d0909841b2d3126048c888 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8186 into donut

* changes:
Move global search intent launching to search dialog
9d06da8324122455c14e4ef3d3c0aaf14f44e270 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 5e21a11f: Merge change 8209 into donut

Merge commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2'

* commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2':
Work around StateListDrawable padding in search suggestions
8051172a285a4b5926186e40d1c7942a93c4eb15 22-Jul-2009 Bjorn Bringert <bringert@android.com> Work around StateListDrawable padding in search suggestions

Sometimes when searching, some of the suggestions had no left padding.
The left-hand side icons were flush with the left edge of the screen.
The problems was that setting a StateListDrawable as a background
will always set the padding of a View, because of a problem in
DrawableContainer.

DrawableContainer.DrawableContainerState.getConstantPadding()
will always return a Rect if mVariablePadding is false, which
makes DrawableContainer.getPadding() return true, which
causes View to change the padding.

As a workaround, we use setVariablePadding(true) on the background
that we create.

Fixes http://b/editIssue?id=1984813
uggestionsAdapter.java
4899e386ff9541e066a37cb5e9449844ded5ae4e 22-Jul-2009 Bjorn Bringert <bringert@android.com> Move global search intent launching to search dialog

Fixes http://b/issue?id=1969032
earchDialog.java
fff89ca293a0257ed7f82e9090349d326707cdf1 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7e71fb28: Merge change 8111 into donut

Merge commit '7e71fb284d5997bff7e359edc8e1b19cbfb1c9ca'

* commit '7e71fb284d5997bff7e359edc8e1b19cbfb1c9ca':
Don't start search from a dialog if there is no activity associated with
ec0a12cf199659a749ff1fe7b788626eddc095eb 22-Jul-2009 Karl Rosaen <krosaen@google.com> Don't start search from a dialog if there is no activity associated with
the search manager at that point.

Still works:
- hitting search when a managed dialog of an app is showing will dismiss
the dialog and start in-app search (if it supports it), falling back
on global search
- hitting search when a dialog of an app (not managed by the activity) will
dismiss the dialog and start global search
- hitting search when a system dialog is showing will just dismiss the dialog.
ialog.java
earchManager.java
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
pplicationErrorReport.java
pplicationThreadNative.java
ackupAgent.java
atePickerDialog.java
ialog.java
ullBackupAgent.java
ActivityManager.java
ApplicationThread.java
BackupAgent.aidl
IntentReceiver.aidl
IntentSender.aidl
SearchManager.aidl
SearchManagerCallback.aidl
nstrumentation.java
auncherActivity.java
endingIntent.java
earchDialog.java
earchManager.java
uggestionsAdapter.java
6f3512b1606521581724f9688dd57bcb368c62e0 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a1aa6ac: Merge change 7970 into donut

Merge commit '2a1aa6acbba5a3a9142d3e8bd6fe6e19d5fae6be'

* commit '2a1aa6acbba5a3a9142d3e8bd6fe6e19d5fae6be':
Define a broadcast intent for the web search provider changing. Unhide
4a38246b7a9d8900fcb80bd7848f489539147320 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 890231f1: Merge change 7934 into donut

Merge commit '890231f1d5912f5b71371e73f44df2db2e741b1b'

* commit '890231f1d5912f5b71371e73f44df2db2e741b1b':
Unhide new SearchManager APIs for Donut.
d4fb7a0d90b16e360b7a7b64cb7a6fd94f084c27 21-Jul-2009 Mike LeBeau <mlebeau@android.com> Define a broadcast intent for the web search provider changing. Unhide
the broadcast intent for searchables changing.
earchManager.java
131234c6f134c586208ec94bfe4ae021b057cf66 20-Jul-2009 Mike LeBeau <mlebeau@android.com> Unhide new SearchManager APIs for Donut.
earchManager.java
02077c4b4660528ba2a1563f79e227317f8842ca 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 2acbec49: Merge change 7941 into donut

Merge commit '2acbec4918db4ab6eca32cf427ffd771c9efe35f'

* commit '2acbec4918db4ab6eca32cf427ffd771c9efe35f':
add comment to illuminate why we only dismiss the dialog when launching an intent for in app search
e6327ea3e412e921bb0efd7eda96abf94b8c3d0a 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9ff71d38: Merge change 7940 into donut

Merge commit '9ff71d38a060476ba19deacf12ddaeef3cbac00d'

* commit '9ff71d38a060476ba19deacf12ddaeef3cbac00d':
whoops, still need to dismiss when launching an intent for in-app search
5d22f9bbee623dfdf543365489f559da57838d24 20-Jul-2009 Karl Rosaen <krosaen@google.com> add comment to illuminate why we only dismiss the dialog when launching an intent for in app search
earchDialog.java
876627d8c52300608c8c716f980a8686f43bf476 20-Jul-2009 Karl Rosaen <krosaen@google.com> whoops, still need to dismiss when launching an intent for in-app search
earchDialog.java
91aa1ad300b732ef0a16ef213a0038c2e1dd05dd 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am d5b6b4b7: Merge change 7903 into donut

Merge commit 'd5b6b4b75ef928d02e0d728bebbfe543cae154bc'

* commit 'd5b6b4b75ef928d02e0d728bebbfe543cae154bc':
Fix back key handling for search dialog.
ea52d29bc46c306f3607d121aa1ad84f0e9eb473 20-Jul-2009 Karl Rosaen <krosaen@google.com> Fix back key handling for search dialog.

Now that the search manager service handles hiding (not dismissing) and reshowing it
when the user hits back after launching a result, search manager can't cache
"mShowing". Also noticed a few other minor problems that was hosing the handling
of pause / resume to reshow the dialog, like moving some logic to onHide instead
of onDismiss.
SearchManager.aidl
earchDialog.java
earchManager.java
469b4c67adc77a87eb2c9ed9217edf1778002828 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am aad0fcc9: Merge change 7783 into donut

Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54'

* commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54':
Add "nodpi" density, and expose a bunch of density-related APIs.
a53b828635fce8b6b2d3e3377d74d72070056623 17-Jul-2009 Dianne Hackborn <hackbod@google.com> Add "nodpi" density, and expose a bunch of density-related APIs.

Also update the DpiTest app to use nodpi images, and try to have a mode
where it turns off compatibility though it's not quite working.
ctivityThread.java
1007bf2e50ab6d8bfe96479c1e44d7a1f9cb4e7a 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0e230c57: Merge change 7688 into donut

Merge commit '0e230c574bdbf096994f6b658a19c19585907f11'

* commit '0e230c574bdbf096994f6b658a19c19585907f11':
Copy cached drawables in search dialog.
9ae8b097567da74c790a23019526f3674a3ed8df 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am f32f746b: Merge change 7645 into donut

Merge commit 'f32f746b83826303350417ff9937a6f9e5488f24'

* commit 'f32f746b83826303350417ff9937a6f9e5488f24':
Make the SearchDialog's AutoCompleteTextView dropdown respect the
dfefa3e915938aa1eeeaa7c0910a882bded7bcf7 17-Jul-2009 Bjorn Bringert <bringert@android.com> Copy cached drawables in search dialog.

Before, Drawables for cached icons were reused. This is not good,
since they can then share mutable state information. This change
copies all Drawables when getting them from the cache, storing
only the constant state in the cache.

Hopefully fixes http://b/issue?id=1984813
earchDialog.java
uggestionsAdapter.java
ffe3ecf2b1ee04288008758c0f60ae22238797c1 17-Jul-2009 Mike LeBeau <mlebeau@android.com> Make the SearchDialog's AutoCompleteTextView dropdown respect the
IME again when the user presses right or left from a query-jammed
suggestion to continue editing. Previously we required the user
to press on the text field again in order to get the IME to show.

We accomplish this by factoring out the code to 'ensureImeVisible'
into a separate method and calling that from SearchDialog.

Fixes http://b/1976338
earchDialog.java
b2536b0b5cbb263a0c48c6cf838b18d1f3563ab9 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9ce081aa: Merge change 7551 into donut

Merge commit '9ce081aa2493dc163a42decfd4e1756b5c55a834'

* commit '9ce081aa2493dc163a42decfd4e1756b5c55a834':
Add ability to delay messages in Filter based on constraint. Use this to delay 500ms for delete keys in the search dialog.
019de98b84b2be6fec2ede91017061784327ed7f 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am eb09c6a0: Merge change 7568 into donut

Merge commit 'eb09c6a07abf58b4da2c4baf3800a1f96e3b0731'

* commit 'eb09c6a07abf58b4da2c4baf3800a1f96e3b0731':
Issue #1969025: need api for launching intent as if it were coming from another component
53245df9c1c2ec52f8d39db77dae890b63b51aa2 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 8e3c3f64: Merge change 7514 into donut

Merge commit '8e3c3f6461b53dc587ba92b3fe8cfbeb985f8514'

* commit '8e3c3f6461b53dc587ba92b3fe8cfbeb985f8514':
Only parse search suggestions that look like HTML
991e986bed225501cc4fc67f3b25278b6f5f03ee 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 5380aa29: Merge change 7512 into donut

Merge commit '5380aa29470274de5b3e445d577ef0834cfacb71'

* commit '5380aa29470274de5b3e445d577ef0834cfacb71':
Get rid of drawing hacks for search dialog suggestions
8145c35fdb0856313971dbf43c5e9f80e5b511a8 17-Jul-2009 Bjorn Bringert <bringert@android.com> am ee716fa2: Make sure SearchDialog.mSearchable != null in key handlers

Merge commit 'ee716fa2b03666622a73f8cc54dae4afd091353d'

* commit 'ee716fa2b03666622a73f8cc54dae4afd091353d':
Make sure SearchDialog.mSearchable != null in key handlers
9ce081aa2493dc163a42decfd4e1756b5c55a834 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7551 into donut

* changes:
Add ability to delay messages in Filter based on constraint. Use this to delay 500ms for delete keys in the search dialog.
8bf92e003d89be00c7cb9209b3ffba2658523734 16-Jul-2009 Karl Rosaen <krosaen@google.com> Add ability to delay messages in Filter based on constraint. Use this to delay 500ms for delete keys in the search dialog.

Holding down delete is nice and zippy in the browser now :)
uggestionsAdapter.java
2d91af06082d10759793a79d17afdfbdc65a37ed 16-Jul-2009 Dianne Hackborn <hackbod@google.com> Issue #1969025: need api for launching intent as if it were coming from another component

And now there is.
ctivityManagerNative.java
ActivityManager.java
8e3c3f6461b53dc587ba92b3fe8cfbeb985f8514 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7514 into donut

* changes:
Only parse search suggestions that look like HTML
84ee74335ffae80c304224b9d40792b9b95a987c 16-Jul-2009 Bjorn Bringert <bringert@android.com> Only parse search suggestions that look like HTML

HTML parsing of search suggestions is still a major
CPU hog in the search dialog. This change first
checks if the text contains any HTML markup
(by looking for < and &) before bothering to
treat it as HTML.
uggestionsAdapter.java
5380aa29470274de5b3e445d577ef0834cfacb71 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7512 into donut

* changes:
Get rid of drawing hacks for search dialog suggestions
391eaa3ba8c9883c9c0d6bf3b5ab742c9cb38594 16-Jul-2009 Bjorn Bringert <bringert@android.com> Get rid of drawing hacks for search dialog suggestions

Before, SuggestionsAdapter parsed every HTML formatted
string three times, to support state-dependent colors
in <font> tags. Now that there is support in Html
for color resources (added in
https://android-git.corp.google.com/g/7441),
we can get rid of this code.

Also, SuggestionsAdapter had a special purpose view
for drawing background colors when suggestion items
were not selected or pressed. This change replaces that
code with a StateListDrawable of ColorDrawables.

Before this change, HTML parsing used ~17% (uncontrolled benchmark,
just did some random searching) of the system_process CPU.
This change should reduce that by 2/3, i.e. about ~11% total
system_process reduction.
uggestionsAdapter.java
ee716fa2b03666622a73f8cc54dae4afd091353d 16-Jul-2009 Bjorn Bringert <bringert@android.com> Make sure SearchDialog.mSearchable != null in key handlers

This change adds checking that the searchdialog is initialized
properly to a few key event listeners where it was missing
before.

Also makes sure that the search dialog is not shown if the
global search is requested but the global search provider
cannot be found.

Should fix http://b/issue?id=1982128
"Device rebooting after search results"
where SearchDialog.onKeyDown() threw an NPE
earchDialog.java
c3350ab5b2ce01411c9a1b304e4462aa9e759dd8 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 82b283a9: Merge change 7451 into donut

Merge commit '82b283a9bf8e3508e1b5c6d4b6b8cae04597b83c'

* commit '82b283a9bf8e3508e1b5c6d4b6b8cae04597b83c':
Include 'calling_package' extra for uses of in-app voice search so that
260dfb5716eab1dfe9dcb93b3e658cefaad197f9 16-Jul-2009 Mike LeBeau <mlebeau@android.com> Include 'calling_package' extra for uses of in-app voice search so that
the server can tailor recognition to an individual app.
earchDialog.java
6d54c172c3273c2e78d150c5049ca3dc15e26a1f 15-Jul-2009 Mike LeBeau <mlebeau@android.com> am 1fffbd97: Fix keyboard not showing for global search on Dream. Rather than trying to call the hidden showSoftInputUnchecked method to show the IME in SearchDialog#show(), override onWindowFocusChanged in our subclass of AutoCompleteTextView so that whenever it gets

Merge commit '1fffbd97fa756ef7d3e7e885a5c1c8bb64380c20'

* commit '1fffbd97fa756ef7d3e7e885a5c1c8bb64380c20':
Fix keyboard not showing for global search on Dream. Rather than trying to
1fffbd97fa756ef7d3e7e885a5c1c8bb64380c20 15-Jul-2009 Mike LeBeau <mlebeau@android.com> Fix keyboard not showing for global search on Dream. Rather than trying to
call the hidden showSoftInputUnchecked method to show the IME in SearchDialog#show(),
override onWindowFocusChanged in our subclass of AutoCompleteTextView so that whenever
it gets focus, we call the public showSoftInput method, passing in the ACTV, which is
the correct way to do this.

This fixes http://b/1930989.
earchDialog.java
ce63850ff0bbea1a4b418fee272436c47d60e67a 15-Jul-2009 Karl Rosaen <krosaen@google.com> am 53d24af7: Respect onSearchRequested in Dialog and actually launch search. Also dismiss self.

Merge commit '53d24af774ad943ff26ef529c949f9c433806421'

* commit '53d24af774ad943ff26ef529c949f9c433806421':
Respect onSearchRequested in Dialog and actually launch search. Also dismiss self.
53d24af774ad943ff26ef529c949f9c433806421 14-Jul-2009 Karl Rosaen <krosaen@google.com> Respect onSearchRequested in Dialog and actually launch search. Also dismiss self.
ialog.java
c66c0abbb8015c3b9ced5f520a8803d5a8d35cb9 14-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 83a066c6: Merge change 7135 into donut

Merge commit '83a066c6d8ed953c3f5a1a44316509c9a9b0c6c2'

* commit '83a066c6d8ed953c3f5a1a44316509c9a9b0c6c2':
Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog
83a066c6d8ed953c3f5a1a44316509c9a9b0c6c2 14-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7135 into donut

* changes:
Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog shows.
045163ac16d5fba694a3b46d0cecb3d84863eaed 14-Jul-2009 Romain Guy <romainguy@android.com> Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog
shows.
ialog.java
dace230043314d6fab1c5ced4b031eaccd814c25 14-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of b06ea706 to master
b06ea706530e6d19eb2a1a9a7ae6c5dd77d80af0 13-Jul-2009 Dianne Hackborn <hackbod@google.com> Add reporting of activity movement for search manager.

This adds a new API with the activity manager to find out about movement between
activities. For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityController.aidl
ActivityManager.java
ActivityWatcher.aidl
ApplicationThread.java
SearchManager.aidl
earchDialog.java
earchManager.java
cc916aa6918c6c8addc5426c2512b087f83ad831 14-Jul-2009 Bjorn Bringert <bringert@android.com> am c1d82e68: Use activity icon when search suggestion icon is missing

Merge commit 'c1d82e68eb4aae1b575e82b08e71a87670cc1532'

* commit 'c1d82e68eb4aae1b575e82b08e71a87670cc1532':
Use activity icon when search suggestion icon is missing
c1d82e68eb4aae1b575e82b08e71a87670cc1532 14-Jul-2009 Bjorn Bringert <bringert@android.com> Use activity icon when search suggestion icon is missing

New left-hand side icon fallback logic in search dialog:

1. If the search dialog gets no icon column, it shows no
icon (like before). This would handle the case of in-app
search where the provider does not include icons.
2. If the icon column is empty, or there is an error converting
the icon id or URI to a drawable, the search dialog identifies
the suggestion source by looking at the
SUGGEST_COLUMN_INTENT_COMPONENT_NAME.
3. If SUGGEST_COLUMN_INTENT_COMPONENT_NAME is empty or not set,
the current searchable activity is considered the suggestion source.
4. Try to get the activity icon of the suggestion source.
5. Fall back to the application icon of the suggestion source
if there is no activity icon.
6. Fall back to some generic icon if there is no application icon.

Fixes http://b/issue?id=1905757
uggestionsAdapter.java
a62e3e4d0f4d18f4b8d31876e035d3ae57f88f40 13-Jul-2009 Mitsuru Oshima <oshima@google.com> am ba3ba579: * Use cached resources for widgets

Merge commit 'ba3ba57921dedaaef669719c0359c0caf60e008b'

* commit 'ba3ba57921dedaaef669719c0359c0caf60e008b':
* Use cached resources for widgets
17596e3adc6476388c5d4cca2adab96c554ceb4f 12-Jul-2009 Satish Sampath <satish@android.com> am b1665f2e: Fix regression in handling the \'Go\' button

Merge commit 'b1665f2e15439f693b1ef75cb1c07593f99edde7'

* commit 'b1665f2e15439f693b1ef75cb1c07593f99edde7':
Fix regression in handling the 'Go' button
ba3ba57921dedaaef669719c0359c0caf60e008b 09-Jul-2009 Mitsuru Oshima <oshima@google.com> * Use cached resources for widgets
ctivityThread.java
pplicationContext.java
b1665f2e15439f693b1ef75cb1c07593f99edde7 10-Jul-2009 Satish Sampath <satish@android.com> Fix regression in handling the 'Go' button

This was introduced in CL https://android-git.corp.google.com/g/6460.
Bug: http://b/issue?id=1970776
earchDialog.java
88588d137baeaa657d95d9c00b1680f386b1ae83 10-Jul-2009 Bjorn Bringert <bringert@android.com> am 0e01ea41: Deprecate DialogInterface methods in SearchManager

Merge commit '0e01ea41b215941128a4ea8dee454e6b35a4e798'

* commit '0e01ea41b215941128a4ea8dee454e6b35a4e798':
Deprecate DialogInterface methods in SearchManager
0e01ea41b215941128a4ea8dee454e6b35a4e798 08-Jul-2009 Bjorn Bringert <bringert@android.com> Deprecate DialogInterface methods in SearchManager

android.app.SearchManager implements
DialogInterface.OnDismissListener and DialogInterface.OnCancelListener
and thus exposes the methods onCancel(DialogInterface dialog) and
onDismiss(DialogInterface dialog). This was used by the SearchManager
to register itself as a listener on the search dialog, but is no
longer used.

This was an implementation detail that leaked into the public
API. Removing them would change the API, so they are deprecated instead.

Fixes http://b/issue?id=1962203
earchManager.java
13725324a7a1c270fdc50f37829f9dd35941ffaa 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am dded214e: Merge change 6689 into donut

Merge commit 'dded214eb92cebdd7fb2e6405173ffc1932e795a'

* commit 'dded214eb92cebdd7fb2e6405173ffc1932e795a':
Don't crash the app when restore agent bringup throws
d1475e0375cbf1ebd5010c6ce96bbdc1de6c1b57 10-Jul-2009 Christopher Tate <ctate@google.com> Don't crash the app when restore agent bringup throws

Restore runs during the SetupWizard, before the phone is usable per se, so we
want to avoid presenting the usual "Application whatever has crashed..." dialog
to the user in the middle of that process. This change modifies the exception
handling around agent bringup so that agent-originated exceptions are caught and
a null agent binder reported to the backup manager.

There are three points during this code sequence at which an exception can be
thrown due to application-code error:

+ the app's manifest can name a nonexistent or malformed BackupAgent class,
incurring a VM-level exception like ClassNotFound or BadCast.
- the agent's onCreate() method could crash/throw.
- the agent's onBind() method could crash/throw.

The new code arrangement here puts a try/catch around all of these possible
failure points. When the code is invoked for backup, any caught exception is
merely rethrown. During restore, however, execution is allowed to proceed
through reporting the app's agent binder back to the activity manager. If any
exception was thrown, this reported binder will be null, i.e. a clean failure
notification to the backup manager.

What this code does *not* do at present is tear down the app when an exception
has been thrown. This is happens if the exception is allowed to propagate.
Doing so cleanly is problematic, however, in circumstances where mutiple apps
and agents share a process. Leaving the background process around until it is
torn down by the usual policies is probably the safer course at present.
ctivityThread.java
97b3ed69db6f84a3f06a50b95e0426849f488018 09-Jul-2009 Satish Sampath <satish@android.com> am 313ea433: Make suggestion text color change based on the item state.

Merge commit '313ea433d18e7fd5438b94c0606c496fcc7a2f88'

* commit '313ea433d18e7fd5438b94c0606c496fcc7a2f88':
Make suggestion text color change based on the item state.
bda4584bf6ce5ddad0bff1b0ae32607552e0a2fc 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am f9b7faee: Merge change 6503 into donut

Merge commit 'f9b7faee88313c4daf3e3fb34203978de20b7ce0'

* commit 'f9b7faee88313c4daf3e3fb34203978de20b7ce0':
Hide soft keyboard in SearchDialog.dismiss()
313ea433d18e7fd5438b94c0606c496fcc7a2f88 09-Jul-2009 Satish Sampath <satish@android.com> Make suggestion text color change based on the item state.

We support a ColorStateList reference now as a valid font color value
in the given html and manage html strings for all supported states
which we dynamically set while drawing the items.

This will get checked in along with changes to GlobalSearch,
EnhancedGoogleSearchProvider and Browser to make them use the new
model.

Bug: http://b/issue?id=1865037
uggestionsAdapter.java
f9b7faee88313c4daf3e3fb34203978de20b7ce0 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6503 into donut

* changes:
Hide soft keyboard in SearchDialog.dismiss()
125cfce09d53b911e80cca4e3eb1a081123ab098 08-Jul-2009 Romain Guy <romainguy@android.com> am 6de4aed1: Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished.

Merge commit '6de4aed1c67263269f83f579ec5b06263d173ef3'

* commit '6de4aed1c67263269f83f579ec5b06263d173ef3':
Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished.
6de4aed1c67263269f83f579ec5b06263d173ef3 08-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished.
ctivity.java
ialog.java
cd964761dc4daf61f35bee67c9c8d1e14509af55 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 91b0a701: Merge change 6284 into donut

Merge commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b'

* commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b':
Run search UI on its own thread.
ec8ee34e06f7d3f55f284da48585a8eecaa9b4b4 08-Jul-2009 Bjorn Bringert <bringert@android.com> Hide soft keyboard in SearchDialog.dismiss()

Before it was hidden in cancel(), which does not get
called when the search dialog is dismissed by clicking
on a suggestion.

Fixes http://b/issue?id=1967633
earchDialog.java
444c727e0eecf83e9d0b9c4e7af5cbf5fc4135f8 06-Jul-2009 Bjorn Bringert <bringert@android.com> Run search UI on its own thread.

Details:

- Add a new SearchDialogWrapper class that makes sure
all access to the SearchDialog is run one a single thread
other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
This resulted in lots of calls to the SearchManager
throughout the life cycle of all activities, for
the questionable benefit of restoring the search dialog
in a few cases.
- Remove search UI state save/restore, and the isVisible()
method from SearchManagerService. They are no longer used,
and were tricky to implement since they return values from
the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
of calling through from Activity.

Fixes http://b/issue?id=1938101

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
until the new activity has been started. If the new activity starts a
search immediately, this search could be cancelled by the old activity's
call top stopSearch().
ctivity.java
SearchManager.aidl
earchDialog.java
earchManager.java
f1d0b7cd100313b51ac4143f0b19f573050f248b 08-Jul-2009 Satish Sampath <satish@android.com> am d21572cd: NEW_API: Expose autoUrlDetect searchable attribute.

Merge commit 'd21572cd446e56efe94689324107927ac2bffd2a'

* commit 'd21572cd446e56efe94689324107927ac2bffd2a':
NEW_API: Expose autoUrlDetect searchable attribute.
d21572cd446e56efe94689324107927ac2bffd2a 08-Jul-2009 Satish Sampath <satish@android.com> NEW_API: Expose autoUrlDetect searchable attribute.

If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity). If set to false any URLs entered are treated as normal query text.
The default value is false. This is an optional attribute.
earchDialog.java
8cf97d9982aae6197e48aabf2a3ada79fb39a041 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Removed usage of tabs for indention
otification.java
d45c9f4ceb5228912fe51c31fa7554a8e9bbfd6f 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null)
example: notification.vibrate = new long[0];
otification.java
ce3082e745144f11239f1263eceeaa40b1c215fa 07-Jul-2009 Mitsuru Oshima <oshima@google.com> am 569076c9: widgets scaling fix. Use container\'s compatibility info and display metrics when container and widgets disagree.

Merge commit '569076c9f6bdadb4d3285a26e069634a839b5b87'

* commit '569076c9f6bdadb4d3285a26e069634a839b5b87':
widgets scaling fix. Use container's compatibility info and display metrics when container and widgets disagree.
569076c9f6bdadb4d3285a26e069634a839b5b87 03-Jul-2009 Mitsuru Oshima <oshima@google.com> widgets scaling fix. Use container's compatibility info and display metrics when container and widgets disagree.
pplicationContext.java
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.
pplicationContext.java
ace82fbabd9eaab8729a51f2d5c5be4b47f7d4da 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 21509240: Merge change 6283 into donut

Merge commit '21509240b0ba00675ffc69038f20726bf8666c57'

* commit '21509240b0ba00675ffc69038f20726bf8666c57':
Fix a bug where clicking the "more results" suggestion with the trackball
617202a53a26d1b38a41ce69c40b1fffd784c178 06-Jul-2009 Mike LeBeau <mlebeau@android.com> Fix a bug where clicking the "more results" suggestion with the trackball
did not seem to expand to show the corpus selectors. (http://b/1906643)

It turns out that when the trackball was used to select this item, onItemClick
was getting called on the listener twice in AutoCompleteTextView#onKeyUp:
once when we call onKeyUp on the DropDownListView, and once a little further
down when we call performCompletion(). In our case, performCompletion() is
useless since it was intended for normal AutoCompleteTextViews which populate
text into the TextView when an item in the list is clicked, but we do not
rely on this. So the easiest fix is just to make performCompletion() do nothing
in our SearchAutoComplete subclass.
earchDialog.java
0d0012ef1617170701b9cd7492ef04ac47bfb5ca 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 54af78a3: Merge change 5950 into donut

Merge commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c'

* commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c':
Fix memory leaks in system_server
ed9f4c4c2fb764de14660432a9f04539b4373726 03-Jul-2009 Satish Sampath <satish@android.com> am fef8d3e4: Make search UI open up quicker to the user.

Merge commit 'fef8d3e4d8f6f46c098d04b3a57409c947ec1c75'

* commit 'fef8d3e4d8f6f46c098d04b3a57409c947ec1c75':
Make search UI open up quicker to the user.
0901c82336c79ca3e3d67b1df8a5cb7ee45ec13e 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 91c91b74: Merge change 5817 into donut

Merge commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58'

* commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58':
Replace indeterminate progress animated asset with new ones
54af78a3f7064e04d7ebd64c985d4149f9f7b05c 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5950 into donut

* changes:
Fix memory leaks in system_server unlink DeathRecipients in a whole bunch of places to avoid memory leaks
fff2fda0199dedbf1079454dca98a81190dce765 01-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix memory leaks in system_server
unlink DeathRecipients in a whole bunch of places to avoid memory leaks
ctivityThread.java
fef8d3e4d8f6f46c098d04b3a57409c947ec1c75 01-Jul-2009 Satish Sampath <satish@android.com> Make search UI open up quicker to the user.

On invoking the search UI, the drop down list box with past queries and shortcut items
appears after a few hundreds of milliseconds on screen. This was because we were
displaying the drop down within the onFilterCompleted callback after the list box filtered
the items based on the given query text. While that code path is necessary, for the first
invocation of the search dialog with an empty query we can show the list box before the
text stuff happens. This change does that, issuing an async request to show the drop
down after pending events have been processed.

Without this change, on an average it took 350ms for the code to show the drop down.
With this change, on an average it takes 150ms.
earchDialog.java
b5537c452271634b6ff3981b0624fa65384abd5b 30-Jun-2009 Romain Guy <romainguy@android.com> Replace indeterminate progress animated asset with new ones
earchDialog.java
4658e8ece61f5f1eb8734850f18eb6438e4ebc80 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 05ebcb51: Merge change 5609 into donut

Merge commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0'

* commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0':
Update spinner's drawables. Clean up resources, pave the way for new animation.
f4f7046183f0daedd17703fa16cf9026442bdaee 27-Jun-2009 Romain Guy <romainguy@android.com> Update spinner's drawables. Clean up resources, pave the way for new animation.
earchDialog.java
2df7c15aa0e8f5afc804fd20250316f9e50fdb59 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b505ae41: Merge change 5459 into donut

Merge commit 'b505ae4195d9b8a93c71b1f9da6d7d8c3aaa3c08'

* commit 'b505ae4195d9b8a93c71b1f9da6d7d8c3aaa3c08':
Make the BackupHelperDispatcher properly handle multiple helpers.
4ababd922eac5931e0222862ff082dc29e012816 26-Jun-2009 Joe Onorato <joeo@android.com> Make the BackupHelperDispatcher properly handle multiple helpers.
ackupAgent.java
9c71fc972ea77e726bb75918ec89516e15613336 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am a7251991: Merge change 5288 into donut

Merge commit 'a7251991ffb6a26e4cf23e60633c8250c78bd9df'

* commit 'a7251991ffb6a26e4cf23e60633c8250c78bd9df':
Invoke getSystem.updateConfiguration when binding an application to
c984329d30ba23be90f0e407684ad2410a9bbfe0 25-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Invoke getSystem.updateConfiguration when binding an application to
update config changes in Resources.mSystem
Since Resources is preloaded in the zygote, system resources in Resources
need to be updated with config changes every time an application is started
ctivityThread.java
8e5916b20fe2c084c2a1266acecf19200bb561d1 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 83b8678d: Merge change 5319 into donut

Merge commit '83b8678dd4cc78dc89fe853161bd470ef28561c8'

* commit '83b8678dd4cc78dc89fe853161bd470ef28561c8':
Add new APIs to LauncherActivity to be used elsewhere.
83b8678dd4cc78dc89fe853161bd470ef28561c8 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5319 into donut

* changes:
Add new APIs to LauncherActivity to be used elsewhere.
2bacbdfb519b2bfe8d4baca88da64e0f3b686e19 25-Jun-2009 Dianne Hackborn <hackbod@google.com> Add new APIs to LauncherActivity to be used elsewhere.
auncherActivity.java
afed82bca9e173cabe2c2f25314b202e5c1ccbca 25-Jun-2009 Dianne Hackborn <hackbod@google.com> am 9c8dd55a: Fix bug 1829561 ("am profile" with bad filename kills process).

Merge commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516'

* commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516':
Fix bug 1829561 ("am profile" with bad filename kills process).
9c8dd55a9d829c29a3feee9469d8c2f27a9f5516 24-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix bug 1829561 ("am profile" with bad filename kills process).

The am command is now the one that takes care of opening the target file,
handling the opened file descriptor to the process that will be profiled.
This allows you to send profile data to anywhere the shell can access, and
avoids any problems coming up from the target process trying to open the
file.
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
c317703f6bec689adbf42a245c0ec75146343508 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2cf6f5df: Merge change 5238 into donut

Merge commit '2cf6f5df59d466a729cc10b7688e17cd548a2fda'

* commit '2cf6f5df59d466a729cc10b7688e17cd548a2fda':
Fix the weird anchoring of the search dropdown when pivoting into an
f364595d443f92c5bd340cfcf442934df3ecd071 25-Jun-2009 Mike LeBeau <mlebeau@android.com> am 6f8e5923: Move to a single dropdown background for the search dialog. This one is full-screen width but has rounded corners on the bottom so it doesn\'t look crappy if the list is not full-screen height. This was already being used for in-app search, so I just got r

Merge commit '6f8e592347d463044b7dd8999588840cec6e956e'

* commit '6f8e592347d463044b7dd8999588840cec6e956e':
Move to a single dropdown background for the search dialog. This one
ffcdad9faaa03c116bacc5ac88a5aa2e015dc6d1 24-Jun-2009 Bjorn Bringert <bringert@android.com> am 544450b4: Fix NPE in SuggestionsAdapter when cursor is null.

Merge commit '544450b4eee175c78a1ca8647a3bfaca4aecf47a'

* commit '544450b4eee175c78a1ca8647a3bfaca4aecf47a':
Fix NPE in SuggestionsAdapter when cursor is null.
43cc2bac7eeba3a3af1fa491024cdd46871514df 24-Jun-2009 Bjorn Bringert <bringert@android.com> am 5f80605a: Include user query in search intents

Merge commit '5f80605a0b866f34c74955e190909bd6ab5d992e'

* commit '5f80605a0b866f34c74955e190909bd6ab5d992e':
Include user query in search intents
35df87c6319863beed9fd95d0a279e34ff94e92e 24-Jun-2009 Mike LeBeau <mlebeau@android.com> Fix the weird anchoring of the search dropdown when pivoting into an
app for search. (This started when we moved to system process, not sure
why then, but we should be getting the dropdown to update at this point
regardless.)
earchDialog.java
6f8e592347d463044b7dd8999588840cec6e956e 24-Jun-2009 Mike LeBeau <mlebeau@android.com> Move to a single dropdown background for the search dialog. This one
is full-screen width but has rounded corners on the bottom so it doesn't
look crappy if the list is not full-screen height. This was already
being used for in-app search, so I just got rid of the old global search
background and use the in-app one for everything.

By removing the lines in SearchDialog, I'm causing it to rely on the
value specified for the dropdown background in
frameworks/base/core/res/res/layout/search_bar.xml.
earchDialog.java
544450b4eee175c78a1ca8647a3bfaca4aecf47a 24-Jun-2009 Bjorn Bringert <bringert@android.com> Fix NPE in SuggestionsAdapter when cursor is null.

Fixes http://b/issue?id=1940013
uggestionsAdapter.java
5a12373277f6ce14101f08580bc4f08f9a3d7c50 23-Jun-2009 Jacek Surazski <jaceks@google.com> Add exception line number to ApplicationErrorReport
pplicationErrorReport.java
5f80605a0b866f34c74955e190909bd6ab5d992e 24-Jun-2009 Bjorn Bringert <bringert@android.com> Include user query in search intents

This change adds a new intent extra field USER_QUERY set in intents
launched by the search dialog. It contains the query as typed by
the user, unaffected by query jamming or search suggestions.

Fixes http://b/issue?id=1939592
earchDialog.java
earchManager.java
e85fbcb3cdebda079db08778ada7a6b9c62466e2 23-Jun-2009 Bjorn Bringert <bringert@android.com> am b0ae27f4: Store correct state in SearchDialog.onSaveInstanceState()

Merge commit 'b0ae27f4e10a9e5fe56b9ca549718051fe342bba'

* commit 'b0ae27f4e10a9e5fe56b9ca549718051fe342bba':
Store correct state in SearchDialog.onSaveInstanceState()
b0ae27f4e10a9e5fe56b9ca549718051fe342bba 23-Jun-2009 Bjorn Bringert <bringert@android.com> Store correct state in SearchDialog.onSaveInstanceState()

Adds this to the instance state bundle:
- mStoredComponentName
- mStoredAppSearchData
- mPreviousComponents

All the UI selection fields that were previously saved were removed.
It's not necessarily useful to restore the
selection, and it's hard to get right. The old code was buggy
(see http://b/issue?id=1911660) and did not restore the
list selection because that's quite hard.

Fixes http://b/issue?id=1926174
earchDialog.java
3edc89fc5777e1c34f9a7fa072a562af6968ef88 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 54f156c7: Merge change 5006 into donut

Merge commit '54f156c7c47bd5b5f2c9675f56bddaaa43ad162e'

* commit '54f156c7c47bd5b5f2c9675f56bddaaa43ad162e':
Pass the originating app's versionCode along with a restore set
54f156c7c47bd5b5f2c9675f56bddaaa43ad162e 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5006 into donut

* changes:
Pass the originating app's versionCode along with a restore set
5cbbf5652a78902ac3382dc4a3583bc5b0351027 23-Jun-2009 Christopher Tate <ctate@google.com> Pass the originating app's versionCode along with a restore set

This change amends the doRestore() / onRestore() interface to backup agents to
provide the integer android:versionCode of the app that stored the backup set.
This should help agents figure out how to handle whatever historical data set
they're handed at restore time.
ackupAgent.java
ullBackupAgent.java
BackupAgent.aidl
f50020b34ce994de1e0ba7710cc54a7ef13095fe 23-Jun-2009 Satish Sampath <satish@android.com> am 662df0b9: Launch user-entered URLs directly without a web search.

Merge commit '662df0b9630fd685a7cf86bbfec15ac6b6c286c6'

* commit '662df0b9630fd685a7cf86bbfec15ac6b6c286c6':
Launch user-entered URLs directly without a web search.
662df0b9630fd685a7cf86bbfec15ac6b6c286c6 23-Jun-2009 Satish Sampath <satish@android.com> Launch user-entered URLs directly without a web search.

This is to fix bug http://b/issue?id=1931983

Instead of changing the keyboard button from search to carriage return,
I have changed it from search to 'Go' which I find more useful since
it indicates that the user can now go to that URL.
earchDialog.java
4527acb0c39258792ae55604cb4d71006bf8d938 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 856dd8a6: Merge change 4952 into donut

Merge commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60'

* commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60':
Helper API cleanup. Allows multiple helpers to function,
06290a4bb9b280fa14a2bbeb2d3ceb09396a78c3 19-Jun-2009 Joe Onorato <joeo@android.com> Helper API cleanup. Allows multiple helpers to function,
because they'll always go in the same order, and this lets
us not have to write headers to keep them paired.
ullBackupAgent.java
2b31fec39c89aeac3ee8fd1154499e84e16d909a 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2c10b5f4: Merge change 4914 into donut

Merge commit '2c10b5f483f832523305c11d44035fc7f5d9a54b'

* commit '2c10b5f483f832523305c11d44035fc7f5d9a54b':
Make all static methods in SearchManager non-static.
fe74d4637676f71c231d7f4e3a8ce74c7003c6d6 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 7306d248: Merge change 4913 into donut

Merge commit '7306d248feb2e52593e51944bcaf98c11974e988'

* commit '7306d248feb2e52593e51944bcaf98c11974e988':
Add non-static version of SearchManager.getSuggestions().
8d1538237847baf381787b881141f8c0478bef5b 22-Jun-2009 Bjorn Bringert <bringert@android.com> Make all static methods in SearchManager non-static.

They were only static because of a now removed restriction that
only activity contexts could instantiate SearchManager.
This only changes hidden APIs, but all users of the changed methods
must be updated to use them non-statically before this is submitted.
earchDialog.java
earchManager.java
uggestionsAdapter.java
97325db8565ad503b86d9a0f602b2d001b5cee13 22-Jun-2009 Bjorn Bringert <bringert@android.com> Add non-static version of SearchManager.getSuggestions().
earchManager.java
792f4be7f3610ad73e4e6e463ce4fdfde6458279 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9c1b1872: Merge change 4908 into donut

Merge commit '9c1b1872faf028bcd70fb3e17eeb29d86ce6bd9a'

* commit '9c1b1872faf028bcd70fb3e17eeb29d86ce6bd9a':
Remove checks for Activity Context when creating SearchManager
a68ca641e61f85ab9fffa7b782f693b7305df66c 22-Jun-2009 Bjorn Bringert <bringert@android.com> Remove checks for Activity Context when creating SearchManager

Since https://android-git.corp.google.com/g/3880
all activities create a SearchManager object, to handle
saving and restoring the search dialog. This broke
ActivityUnitTestCase, since ApplicationContext.getSearchManager()
threw an exception in non-activity contexts.
This change removes the activity context check from
getSearchManager(). Since SearchManager is now just a thin
wrapper for SearchManagerService, there shouldn't be anything
activity-specific in it.

Fixes http://b/issue?id=1926254
pplicationContext.java
47e4d45cb67f23666de4691d23dbcc31b63667a6 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b4e456bf: Merge change 4785 into donut

Merge commit 'b4e456bf1823e2dd8c975ae02451b7b72541c236'

* commit 'b4e456bf1823e2dd8c975ae02451b7b72541c236':
Fix issue #1753079: running instrumentation in shared processes.
9c07cab32d13c2505f02caeb520b0d2c77fe0050 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 4d1b5bd1: Merge change 4808 into donut

Merge commit '4d1b5bd148d0830d2acc03bafbe58dfd17e5b3f8'

* commit '4d1b5bd148d0830d2acc03bafbe58dfd17e5b3f8':
Fixes #1928566. Prevents runtime restart upon configuration change.
b4e456bf1823e2dd8c975ae02451b7b72541c236 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4785 into donut

* changes:
Fix issue #1753079: running instrumentation in shared processes.
4d1b5bd148d0830d2acc03bafbe58dfd17e5b3f8 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4808 into donut

* changes:
Fixes #1928566. Prevents runtime restart upon configuration change.
e35c23514592efe07d54fdbed7e7ec0b717e8bbe 19-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1928566. Prevents runtime restart upon configuration change.

Managed dialogs could cause dispatchOnCreate() to be called twice, which
would cause an exception.
ctivity.java
d97c7adfc2d6e885826e40694a116cf3f9225025 19-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1753079: running instrumentation in shared processes.

The check for allowing the start of an activity was broken, it was
comparing the process of that activity's application vs. the current
instrumentation target package name. Okay it was utterly insane.

Now this check is that the target activity will be running in the
same process as the instrumentation, which is really what we want.
ctivityThread.java
nstrumentation.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.
pplicationContext.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.
63e7155c7d1d0c3f0027400aa09e9a45f648a80d 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4696 into donut

* changes:
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.
ctivityThread.java
pplicationContext.java
349569b285ccd2fabd581758cf940915596a4c5c 18-Jun-2009 Mike LeBeau <mlebeau@android.com> am cce7dbc3: Re-enable query jamming.

Merge commit 'cce7dbc31ed100b39c3e1174dd3d9a01de648e5b'

* commit 'cce7dbc31ed100b39c3e1174dd3d9a01de648e5b':
Re-enable query jamming.
cce7dbc31ed100b39c3e1174dd3d9a01de648e5b 18-Jun-2009 Mike LeBeau <mlebeau@android.com> Re-enable query jamming.
earchDialog.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
72dcea1eed882123c3f9285f2ab908f530993609 18-Jun-2009 Joe Onorato <joeo@android.com> am 83248c43: backup fixes:

Merge commit '83248c432ffe2e2a17abbc8e4960c26574b46bca'

* commit '83248c432ffe2e2a17abbc8e4960c26574b46bca':
backup fixes:
d206fb4fea2c5d9d02177a03503dc03c94c9b412 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 6ce1983a: Merge change 4532 into donut

Merge commit '6ce1983a2b5e9f5e735ac09b270b400084edb7db'

* commit '6ce1983a2b5e9f5e735ac09b270b400084edb7db':
Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog.
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.
pplicationContext.java
2420186c891bf8aa33ed5e710bfea9e1cd963c84 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5553f152: Merge change 3936 into donut

Merge commit '5553f1528e94377ae5adf423e91331f5eb57dd44'

* commit '5553f1528e94377ae5adf423e91331f5eb57dd44':
add exception message to ApplicationErrorReport
e1fae30e20b1515eeb036a7c103e1e70de130bdd 18-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Merge commit '0781df94' into manualmerge

Conflicts:
Android.mk
api/current.xml
83248c432ffe2e2a17abbc8e4960c26574b46bca 18-Jun-2009 Joe Onorato <joeo@android.com> backup fixes:

- BackupTestAgent calls the DispatchHelper
- Make BackupAgent.onRestore take a BackupDataInput, not just a
generic ParcelFileDescriptor.
ackupAgent.java
ullBackupAgent.java
764d5331d15c19162c938e617777b4bf15a6314d 18-Jun-2009 Romain Guy <romainguy@android.com> Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog.
ctivity.java
dd34fb0529d54c6c4d5438e136f6ca1d9a45de63 18-Jun-2009 Satish Sampath <satish@android.com> am bf23fe06: Prepare SearchManager framework for adding Genie logging.

Merge commit 'bf23fe062ab4321143717c21827d329e087cc72f'

* commit 'bf23fe062ab4321143717c21827d329e087cc72f':
Prepare SearchManager framework for adding Genie logging.
a06a9267fd6f5b87c758319c5d94c142db50bfa0 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 528a29f8: Merge change 4326 into donut

Merge commit '528a29f886f9cb9266e1fda2d2c9e0ea7ea88faf'

* commit '528a29f886f9cb9266e1fda2d2c9e0ea7ea88faf':
Don't get location in search dialog.
2fc22e4f7c50a146a7100e2d265f86b0359254c3 18-Jun-2009 Mitsuru Oshima <oshima@google.com> am d9aef73f: Squashed commit of the following:

Merge commit 'd9aef73f72cb11ba7f278a0ef13c6d02ffc95851'

* commit 'd9aef73f72cb11ba7f278a0ef13c6d02ffc95851':
Squashed commit of the following:
f829a78f6c78141d2cf8074f00fcded37fbf9007 11-Jun-2009 Jacek Surazski <jaceks@google.com> add exception message to ApplicationErrorReport

useful signal for clustering
pplicationErrorReport.java
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.
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
IntentReceiver.aidl
IntentSender.aidl
endingIntent.java
bf23fe062ab4321143717c21827d329e087cc72f 16-Jun-2009 Satish Sampath <satish@android.com> Prepare SearchManager framework for adding Genie logging.

- Instead of passing the suggest provider component name as the field
EXTRA_DATA, we now pass via the field COMPONENT_NAME
- Kept EXTRA_DATA field as is so we can use it for real extra data.
earchDialog.java
earchManager.java
528a29f886f9cb9266e1fda2d2c9e0ea7ea88faf 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4326 into donut

* changes:
Don't get location in search dialog.
d9aef73f72cb11ba7f278a0ef13c6d02ffc95851 17-Jun-2009 Mitsuru Oshima <oshima@google.com> Squashed commit of the following:

commit 9798cd23605c96c1d6a29202f4d31f5454079b61
Author: Mitsuru Oshima <oshima@google.com>
Date: Tue Jun 16 13:50:44 2009 -0700

Made other toShortString in performDestroyActivity safe.

commit 19bf973df81d9d01210effb39c99e5236f2229c1
Author: Mitsuru Oshima <oshima@google.com>
Date: Fri Jun 12 15:50:03 2009 -0700

* component can be null after destory?
This was causing NPE in catch block, which hides the actual exception.

Conflicts:

core/java/android/app/ActivityThread.java
ctivityThread.java
dfd0363adac842340650d0c535e1da201815c32b 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5633034f: Merge change 4115 into donut

Merge commit '5633034f79bfa67c4219f16fd6d23e962e800be2'

* commit '5633034f79bfa67c4219f16fd6d23e962e800be2':
* component can be null after destory?
5633034f79bfa67c4219f16fd6d23e962e800be2 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4115 into donut

* changes:
* component can be null after destory? This was causing NPE in catch block, which hides the actual exception.
6d3d9892c2115bbb4a20229cf2a44cf809751dde 16-Jun-2009 Bjorn Bringert <bringert@android.com> Don't get location in search dialog.

This change removes all location code from the
system search dialog. The code was out of sync with
the EnhancedGoogleSearchprovider, and was possibly
responsible for some network location provider
crashes.

Instead we will try to make EnhancedGoogleSearch persistent, so that
it has a reasonable location most of the time.
earchDialog.java
a28547d03f09b8b78ce28404ecf7013130adca80 15-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 0fb46683: Merge change 3880 into donut

Merge commit '0fb466836bb654524683152371ecc32142cdf5de'

* commit '0fb466836bb654524683152371ecc32142cdf5de':
Run search dialog in the system process.
8d17f3f24bbda9a9cd7ea08c5925508dc2c011be 05-Jun-2009 Bjorn Bringert <bringert@android.com> Run search dialog in the system process.

Fixes http://b/issue?id=1905863

This is needed to address two security issues with global search:
http://b/issue?id=1871088 (Apps can read content providers through GlobalSearch)
http://b/issue?id=1819627 (Apps can use GlobalSearch to launch arbirtrary intents)

This also fixes http://b/issue?id=1693153 (SearchManager.OnDismissListener
never gets called)

To fix the security issues, GlobalSearch also needs to require
a non-app permission to access its content provider and launch intents.
ctivity.java
SearchManager.aidl
SearchManagerCallback.aidl
earchDialog.java
earchManager.java
daf701fa6250ae89ad93e2e41127e0f676a322a5 15-Jun-2009 Christopher Tate <ctate@google.com> am 2fdd428e: Fix some backup reader/writer issues; make local transport do backup

Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2'

* commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2':
Fix some backup reader/writer issues; make local transport do backup
Fix the jni initializer.
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
Fix bug #1812041: activity manager crash with bad args.
Journal backup requests so that they won't be lost in a crash
Fix data connection issues.
1cf587496fcb1d652bab9fc6792fb106b6fefaa4 12-Jun-2009 Joe Onorato <joeo@android.com> Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
ullBackupAgent.java
12172baa6b72a8996b3f043f18067c9b43ed3bc8 13-Jun-2009 Mitsuru Oshima <oshima@google.com> * component can be null after destory?
This was causing NPE in catch block, which hides the actual exception.
ctivityThread.java
64420d4f17b94adca197b7ae66bc6fa8cd0ef0e2 12-Jun-2009 Satish Sampath <satish@android.com> am 7f50c08f: Show proper suggestion item hilite on selection.

Merge commit '7f50c08fb998786a2963e979cd5b4347e64808e3'

* commit '7f50c08fb998786a2963e979cd5b4347e64808e3':
Show proper suggestion item hilite on selection.
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.
7f50c08fb998786a2963e979cd5b4347e64808e3 12-Jun-2009 Satish Sampath <satish@android.com> Show proper suggestion item hilite on selection.

With the new implementation of using a SuggestionItemView, we no longer need to draw a solid background for all items in the suggestion listview. Hence removing the code to draw a default white background, and make the item transparent so the listview-drawn selection hilite shows through.
uggestionsAdapter.java
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.
pplicationContext.java
b596dd07691e28a8d9aa5399de01af460b5d27a8 11-Jun-2009 Satish Sampath <satish@android.com> am aba34d96: Fix display of the selection background for search results.

Merge commit 'aba34d96fda75cbaaae19ce6296266feb24ce365'

* commit 'aba34d96fda75cbaaae19ce6296266feb24ce365':
Fix display of the selection background for search results.
aba34d96fda75cbaaae19ce6296266feb24ce365 11-Jun-2009 Satish Sampath <satish@android.com> Fix display of the selection background for search results.

I've used a simple approach of not drawing the solid background color for the selected item, thereby letting the default selection background to show through properly. This works by using the item's 'pressed' state and redraw code which are used by the listview during the tapping operation.
uggestionsAdapter.java
4ceb232e1958bb472101c13b5f0eae99a2b449bb 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am a05487dd: Merge change 3800 into donut

Merge commit 'a05487dd856222bacf57a41f2dfe1194d3776f05'

* commit 'a05487dd856222bacf57a41f2dfe1194d3776f05':
Add SUGGEST_SPINNER_WHILE_REFRESHING column constant to the SearchManager
ce0959df5ca49cf8f726adddb65978da83e42544 11-Jun-2009 Mike LeBeau <mlebeau@android.com> Add SUGGEST_SPINNER_WHILE_REFRESHING column constant to the SearchManager
for use in implementing Google suggestion refreshing in global search.
earchManager.java
a4a309027c57bfc7a3ad5992ba0e34f24dafd9b3 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Removed usage of tabs for indention
otification.java
bdf78247d69936b10f81f7254a24ca443e3a4285 10-Jun-2009 Simon Schoar <schoar@googlemail.com> Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null)
example: notification.vibrate = new long[0];
otification.java
64266658b627a41f084bcd0d0b56ffa20289629d 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 09ea1e9c: Merge change 3715 into donut

Merge commit '09ea1e9cce29435282eb4c671cf6cebe26414e41'

* commit '09ea1e9cce29435282eb4c671cf6cebe26414e41':
Show progress spinner while waiting for results in in app search.
048d1a4821114330c5ab7728f69ff853f1684f0a 10-Jun-2009 Karl Rosaen <krosaen@android.com> Show progress spinner while waiting for results in in app search.
uggestionsAdapter.java
7c2cfd50a20cce8bc9a75336365540509259a015 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9d19fdb2: Merge change 3576 into donut

Merge commit '9d19fdb231592904b6f8940355d89745719a1ea1'

* commit '9d19fdb231592904b6f8940355d89745719a1ea1':
Track clicks that occur after pivoting into an app from global search.
d4c98c4c450a95b67fe9746675984333b7653713 09-Jun-2009 Karl Rosaen <krosaen@android.com> Track clicks that occur after pivoting into an app from global search.

(framework portion).

Global search has a write-only content provider for reporting clicks that SearchDialog
makes use of.

update: addressed code review feedback
earchDialog.java
earchManager.java
8762e0ac78ad87471176fbe6b461c8aedbf43bc4 09-Jun-2009 Satish Sampath <satish@android.com> am 1c5fa0f3: Adds UI support for custom search widget item backgrounds.

Merge commit '1c5fa0f31009502c539c65de99010b63cb617aac'

* commit '1c5fa0f31009502c539c65de99010b63cb617aac':
Adds UI support for custom search widget item backgrounds.
1c5fa0f31009502c539c65de99010b63cb617aac 09-Jun-2009 Satish Sampath <satish@android.com> Adds UI support for custom search widget item backgrounds.

- A new column was added to SearchManager cursors to specify background color (optional)
- Two new colour references added to the theme for normal and search widget corpus items (we need both to be opaque for the items to render properly)
- SuggestionAdapter was updated to choose the right theme colour for each item
earchManager.java
uggestionsAdapter.java
5e23cbc660e33c5e176f89ecdc6a1f81352e292e 05-Jun-2009 Satish Sampath <satish@android.com> am f9acde27: Include web search providers in Searchables.

Merge commit 'f9acde27486bcc6eea1092073f7b47c31749efd6'

* commit 'f9acde27486bcc6eea1092073f7b47c31749efd6':
Include web search providers in Searchables.
f9acde27486bcc6eea1092073f7b47c31749efd6 04-Jun-2009 Satish Sampath <satish@android.com> Include web search providers in Searchables.

- Along with ACTION_SEARCH we now enumate ACTION_WEB_SEARCH as well so web search providers are covered in the searchables list. This fixes a broken unit test.
- Moved get/setPreferredWebSearchActivity and get-all-web-search-providers implementation to this module when the searchables list gets updated, so that it happens on boot and on package add/remove events and remains up to date. The duplicate code in WebSearchProvider will be removed in a separate change.
- Also made Searchables broadcast an intent when the searchables list got rebuilt, so components such as GlobalSearch/SuggestionSources no longer need to do this on their own.
SearchManager.aidl
earchManager.java
9c4125e268d10eb2c4f26ce5c1ac32bf90181c51 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 54de9063: Merge change 3243 into donut

Merge commit '54de90635e1d0628c396d65e6c948bf4a1529229'

* commit '54de90635e1d0628c396d65e6c948bf4a1529229':
Fix backup agent unbind
d0c3a61b072995dac92b83adce1a06deb84994c4 05-Jun-2009 Karl Rosaen <krosaen@android.com> am 320b2eee: SearchDialog should only do DialogCursorProtocol stuff when in global search mode.

Merge commit '320b2eeeea426dc06f7bb7f37c3d795babeb6adb'

* commit '320b2eeeea426dc06f7bb7f37c3d795babeb6adb':
SearchDialog should only do DialogCursorProtocol stuff when in global search mode.
1885b37913181230c36d6485bdd389f89fa90f43 05-Jun-2009 Christopher Tate <ctate@google.com> Fix backup agent unbind

The handwritten binder transaction passing wasn't propagating the agent-destroy
transaction to the client side. Oops.

Also, remove obsolete run-one-agent code from the backup manager service.
pplicationThreadNative.java
320b2eeeea426dc06f7bb7f37c3d795babeb6adb 04-Jun-2009 Karl Rosaen <krosaen@android.com> SearchDialog should only do DialogCursorProtocol stuff when in global search mode.
uggestionsAdapter.java
ebb03a78ce55708bdb9bfea685363f1d4651e6d9 04-Jun-2009 Karl Rosaen <krosaen@android.com> Detect impressions, and cleanup the SearchDialog / SuggestionCursor communication.

(framework portion)

There are now 4 times the search dialog will check with the cursor:
- after data set changed
- when an item is clicked
- when the cursor is about to be closed
- when an item at a particular position is detected as showing

these are now the points where we can add data in either direction, which we use to accomplish:
- finding out whether there are any pending results
- find out if there is a position at which to notify when it is displayed (the "more results" triggering)
- toggling the "more results" button
- sending the max position that was displayed when the cursor is done

the new behavior (in addition to the refactoring) is improved detection of "more results" to trigger the additional sources
(it is now precise), and detection of which items were displayed to the user.
earchDialog.java
earchManager.java
uggestionsAdapter.java
c2c0bc6a904f3c9820afc81dba9cccdc8a48de34 03-Jun-2009 Bjorn Bringert <bringert@android.com> Remove support for bitmap icons in search suggestions.

This is no longer needed, since content providers can now return
AssetFileDescriptors for in-memory data.
Bitmaps in the suggestion cursor was resopnsible for lots of
unnecessary copying, since all rows are copied out of the database
regardless of how many are displayed in the UI.
earchManager.java
uggestionsAdapter.java
20cd73ea54c998eab692fa708bc23480e8c68709 04-Jun-2009 Mike LeBeau <mlebeau@android.com> Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
earchManager.java
1c54cf0903cd81467ca41ec6733c459e10b22763 04-Jun-2009 Karl Rosaen <krosaen@android.com> Detect impressions, and cleanup the SearchDialog / SuggestionCursor communication.

(framework portion)

There are now 4 times the search dialog will check with the cursor:
- after data set changed
- when an item is clicked
- when the cursor is about to be closed
- when an item at a particular position is detected as showing

these are now the points where we can add data in either direction, which we use to accomplish:
- finding out whether there are any pending results
- find out if there is a position at which to notify when it is displayed (the "more results" triggering)
- toggling the "more results" button
- sending the max position that was displayed when the cursor is done

the new behavior (in addition to the refactoring) is improved detection of "more results" to trigger the additional sources
(it is now precise), and detection of which items were displayed to the user.
earchDialog.java
earchManager.java
uggestionsAdapter.java
3250fa73711537d42a9711eba6315f24d89dee0f 03-Jun-2009 Bjorn Bringert <bringert@android.com> Remove support for bitmap icons in search suggestions.

This is no longer needed, since content providers can now return
AssetFileDescriptors for in-memory data.
Bitmaps in the suggestion cursor was resopnsible for lots of
unnecessary copying, since all rows are copied out of the database
regardless of how many are displayed in the UI.
earchManager.java
uggestionsAdapter.java
f762589d1fb2b0c191cfcd96de4fbe6044d7f52a 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3145 into donut

* changes:
Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
3a27803b29dc739685e1e2465a0ca697e4b60d14 04-Jun-2009 Mike LeBeau <mlebeau@android.com> Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
earchManager.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.
ctivityThread.java
pplicationContext.java
868443a947ab97d83edfd3e5e6759c2d2ecedc47 03-Jun-2009 Bjorn Bringert <bringert@android.com> am 33a22dc9: Close icon input stream in SuggestionsAdapter.

Merge commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284'

* commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284':
Close icon input stream in SuggestionsAdapter.
33a22dc9c84ef12006b0c12f6d169d2a74c15284 02-Jun-2009 Bjorn Bringert <bringert@android.com> Close icon input stream in SuggestionsAdapter.

Before, SuggestionsAdapter would not close input streams after
reading icons from them. This leaks file descriptors and,
in the case of MemoryFiles, virtual address space.
uggestionsAdapter.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.
pplicationContext.java
ba90ed49e5e294facbf4da1ffcacea2c8a504ca2 02-Jun-2009 Karl Rosaen <krosaen@android.com> am a058f02b: progress towards impression and click stats on all sources, plus some internal cleanup

Merge commit 'a058f02b591d971a829cb1e28d48a992e46ad85e'

* commit 'a058f02b591d971a829cb1e28d48a992e46ad85e':
progress towards impression and click stats on all sources, plus some internal cleanup
a058f02b591d971a829cb1e28d48a992e46ad85e 02-Jun-2009 Karl Rosaen <krosaen@android.com> progress towards impression and click stats on all sources, plus some internal cleanup

(framework portion)

suggestionCursor has new callbacks for impressions and clicks
- impressions now used to trigger "more" UI, cleanup apis around that

search dialog reports which position was clicked on via cursor#respond
- can now detect when sources under "more results" are clicked
- also used to simplify existing stuff:
- can detect when "more results" entry is clicked and toggle base on that (no longer need INTENT_ACTION_CURSOR_RESPOND one off)
- use response from click reporting to instruct which position should be selected
earchDialog.java
earchManager.java
uggestionsAdapter.java
8eff8420667aefc282ac07ffff5f52378066b106 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b3c3778e: Merge change 2844 into donut

Merge commit 'b3c3778edbc26affed9dc694f80412a85fe58d7b'

* commit 'b3c3778edbc26affed9dc694f80412a85fe58d7b':
Added some icon debug logging to SuggestionsAdapter.
b791f344744d39475925e480488c828e6b02999a 01-Jun-2009 Bjorn Bringert <bringert@android.com> Added some icon debug logging to SuggestionsAdapter.

Good for checking that lazy contact photos works.
uggestionsAdapter.java
93a7fb0753a6a88f5726ca314498de3212e1ce9e 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am f5df8303: Merge change 2879 into donut

Merge commit 'f5df83035a45173f9ecdeaef03b68abc8a940ace'

* commit 'f5df83035a45173f9ecdeaef03b68abc8a940ace':
Add backup side of new FullBackupAgent class
f5df83035a45173f9ecdeaef03b68abc8a940ace 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2879 into donut

* changes:
Add backup side of new FullBackupAgent class
93e7e22ec91dbc641d10ca6d70423e1357a95bba 02-Jun-2009 Christopher Tate <ctate@google.com> Add backup side of new FullBackupAgent class

This class backs up an app's entire data directory tree. Intended for use
by the backup-through-adb full mirroring facility, etc. @hide because
it's not really something end apps will need to use.
ullBackupAgent.java
4dad4a3c3cc7287c7b6be90e1816af1832d6c2c0 01-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am c17f16e3: Merge change 2851 into donut

Merge commit 'c17f16e33a0fca7efa10e758a526cd8d5d3a31f3'

* commit 'c17f16e33a0fca7efa10e758a526cd8d5d3a31f3':
Change comment for SUGGEST_COLUMN_INTENT_EXTRA_DATA to clarify that
c17f16e33a0fca7efa10e758a526cd8d5d3a31f3 01-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2851 into donut

* changes:
Change comment for SUGGEST_COLUMN_INTENT_EXTRA_DATA to clarify that this column is for use by global search only.
21fd5f144a3e6919ff6b4e8a1a733c940d5dd6df 01-Jun-2009 Mike LeBeau <mlebeau@android.com> Change comment for SUGGEST_COLUMN_INTENT_EXTRA_DATA to clarify that
this column is for use by global search only.
earchManager.java
1f4c2951f1d448b91dba76fdaad09fe8aefeed04 01-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b249890b: Merge change 2835 into donut

Merge commit 'b249890bc6740531898d94aaecac34d5736106bc'

* commit 'b249890bc6740531898d94aaecac34d5736106bc':
Add framework support for scrolling to the "More results..." list item
b249890bc6740531898d94aaecac34d5736106bc 01-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2835 into donut

* changes:
Add framework support for scrolling to the "More results..." list item when it is clicked.
ae9760b62c400e3e7009d4a7b85e9524a5cd44fc 01-Jun-2009 Mike LeBeau <mlebeau@android.com> Add framework support for scrolling to the "More results..." list item
when it is clicked.
earchDialog.java
uggestionsAdapter.java
ad6042aa2342d0a869f84772774b47ae87346ccf 01-Jun-2009 Christopher Tate <ctate@google.com> am 181fafaf: Retool the backup process to use a new \'BackupAgent\' class

Merge commit '181fafaf48208978b8ba2022683ffa78aaeddde1'

* commit '181fafaf48208978b8ba2022683ffa78aaeddde1':
Retool the backup process to use a new 'BackupAgent' class
181fafaf48208978b8ba2022683ffa78aaeddde1 14-May-2009 Christopher Tate <ctate@google.com> Retool the backup process to use a new 'BackupAgent' class

Backups will be handled by launching the application in a special
mode under which no activities or services will be started, only
the BackupAgent subclass named in the app's android:backupAgent
manifest property. This takes the place of the BackupService class
used earlier during development.

In the cases of *full* backup or restore, an application that does
not supply its own BackupAgent will be launched in a restricted
manner; in particular, it will be using the default Application
class rather than any manifest-declared one. This ensures that the
app is not running any code that may try to manipulate its data
while the backup system reads/writes its data set.
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ackupAgent.java
ActivityManager.java
ApplicationThread.java
BackupAgent.aidl
0098ab97d6f908aa421f2dacd37ec5781b152bdd 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f0e7e4a9: Merge change 2520 into donut

Merge commit 'f0e7e4a9461ab3daf57ecfec3d25be583380d0d2'

* commit 'f0e7e4a9461ab3daf57ecfec3d25be583380d0d2':
Cause the icon drawables to animate automatically by calling setVisible
f0e7e4a9461ab3daf57ecfec3d25be583380d0d2 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2520 into donut

* changes:
Cause the icon drawables to animate automatically by calling setVisible false and then true on the drawables. For an AnimationDrawable, this will trigger the desired behavior of 'automatically' starting the animation, which should have been working to begin with according to the intended design of AnimationDrawable (see http://b/1878430 for my description of my correspondence with Romain). For Donut we'll just do this to work around it, but for a later release we need to decide a better story.
b53bfd25f5f8801c14a516eae8ccb6ff0db7e40a 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am ed6e0b92: Merge change 2522 into donut

Merge commit 'ed6e0b92dd8a42a67d0ffd5cb62d69a65dfcd051'

* commit 'ed6e0b92dd8a42a67d0ffd5cb62d69a65dfcd051':
This function should be public
fd0bdcc344488df468ae6d7e89a32febd4bfe300 27-May-2009 Jacek Surazski <jaceks@google.com> This function should be public
pplicationErrorReport.java
c563beac062f433fc93b9a68c28df926f4c3d2f9 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 298784cd: Merge change 2420 into donut

Merge commit '298784cd8a7ed77923bdb51de38c15e4c246a037'

* commit '298784cd8a7ed77923bdb51de38c15e4c246a037':
This just makes it easier to derive from ApplicationErrorReport.
298784cd8a7ed77923bdb51de38c15e4c246a037 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2420 into donut

* changes:
This just makes it easier to derive from ApplicationErrorReport.
91bc6f2c57efb0faf8871f885667a451e091cdc5 27-May-2009 Mike LeBeau <mlebeau@android.com> Cause the icon drawables to animate automatically by calling setVisible
false and then true on the drawables. For an AnimationDrawable, this will
trigger the desired behavior of 'automatically' starting the animation,
which should have been working to begin with according to the intended
design of AnimationDrawable (see http://b/1878430 for my description of
my correspondence with Romain). For Donut we'll just do this to work
around it, but for a later release we need to decide a better story.
uggestionsAdapter.java
ecd53112c5f03ed067f1c82a25bdae844f1d8caf 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a4daf06: Merge change 2508 into donut

Merge commit '2a4daf06fb36ff932f9d52962284ba369cee1ce0'

* commit '2a4daf06fb36ff932f9d52962284ba369cee1ce0':
Activity Manager changes the scheduling group of processes.
06de2ea752171f52a4e6e6872cb3a0689e591dcb 21-May-2009 Dianne Hackborn <hackbod@google.com> Activity Manager changes the scheduling group of processes.

The algorithm for this is currently very simple: all persistent processes are
always in the normal scheduling group, all other processes are normal if their
oom_adj is as good or better than VISIBLE, otherwise they are in the background
group.

Note that this currently results in a fair number of log messages about not
being able to change the group, since the system process does not have
permission to do so. Once a kernel fix is in, these will go away and the code
will start working.
ctivityThread.java
pplicationThreadNative.java
ApplicationThread.java
8a86c79b5bb6cc7c047bc40ffeb9129fd8106f66 23-May-2009 Mike LeBeau <mlebeau@android.com> Remove dimmed background (and accompanying animation) for global
search, since we should never really see that background anyway,
and I suspect the animation is using a significant amount of CPU.
earchDialog.java
28b0e5d06a04f6fa13edbb28de1dd226a158f724 25-May-2009 Jacek Surazski <jaceks@google.com> This just makes it easier to derive from ApplicationErrorReport.
pplicationErrorReport.java
a97f4a117415fd877bc63d6c90a6775ca04eb3fe 23-May-2009 Mike LeBeau <mlebeau@android.com> Remove dimmed background (and accompanying animation) for global
search, since we should never really see that background anyway,
and I suspect the animation is using a significant amount of CPU.
earchDialog.java
62857dc05e98d758a0d9603422b816852ef6c457 21-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 6dd1bb71: Merge change 2170 into donut

Merge commit '6dd1bb71dbafbacd87e46b736888cb1371ddd53a'

* commit '6dd1bb71dbafbacd87e46b736888cb1371ddd53a':
Trigger the LocationManager whenever the SearchDialog is shown
cd7bd8cd81653587301a17ed00e04d4ddfefd727 21-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f9c7d9a7: Merge change 2147 into donut

Merge commit 'f9c7d9a75b2355d8ad8282d9b4cf817c77ea8b10'

* commit 'f9c7d9a75b2355d8ad8282d9b4cf817c77ea8b10':
Add support to SuggestionsAdapter to query the 'working' status
1c6907515134c8a2e086d2eed4427f909d301935 21-May-2009 Mike LeBeau <mlebeau@android.com> Trigger the LocationManager whenever the SearchDialog is shown
(and stop when the SearchDialog is stopped). This way we get a
network-based location quickly so that by the time any location-
based suggestion provider wants to do suggestions, it's likely
to have a good fresh location.
earchDialog.java
1480eb27f5321ef5fc2faeee87c7464e279a4912 21-May-2009 Mike LeBeau <mlebeau@android.com> Add support to SuggestionsAdapter to query the 'working' status
of its underlying cursor and update a spinner in the search dialog
accordingly.
earchDialog.java
uggestionsAdapter.java
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ctivity.java
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
ActivityManager.java
SearchManager.aidl
otification.java
endingIntent.java
earchDialog.java
earchManager.java
uggestionsAdapter.java
cad616ff92ff67bcfbbaefd6407c0f7f5e7549e7 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 97dd7ac8: Merge change 1860 into donut

Merge commit '97dd7ac8ede4eec057977dd579f236519782be7c'

* commit '97dd7ac8ede4eec057977dd579f236519782be7c':
ActivityManagerService sends bug reports on crashes and ANRs
0bcad89a58ad49a0a836902ad41584777ca1f3f3 20-May-2009 Dianne Hackborn <hackbod@google.com> am 95fc68f2: Fix issue where apps could prevent the user from going home.

Merge commit '95fc68f24a2a93e5664e2234abcfe479d385cc05'

* commit '95fc68f24a2a93e5664e2234abcfe479d385cc05':
Fix issue where apps could prevent the user from going home.
f5b9c72022f574417862e064cc0fdd8ea2d846dc 18-May-2009 Jacek Surazski <jaceks@google.com> ActivityManagerService sends bug reports on crashes and ANRs

If an installerPackageName was specified when the app was installed,
looks for a receiver of ACTION_APP_ERROR in that package. If found,
this is the bug report receiver and the crash/ANR dialog will get a
"Report" button. If pressed, a bug report will be delivered.
pplicationErrorReport.java
95fc68f24a2a93e5664e2234abcfe479d385cc05 20-May-2009 Dianne Hackborn <hackbod@google.com> Fix issue where apps could prevent the user from going home.

Now we have a 5-second time after home is pressed, during which
only the home app (and the status bar) can switch to another app.
After that time, any start activity requests that occurred will
be executed, to allow things like alarms to be displayed. Also
if during that time the user launches another app, the pending
starts will be executed without resuming their activities and
the one they started placed at the top and executed.
ctivityManagerNative.java
ActivityManager.java
d2146d4a7c5d16fcab2c1537f618e0df32dbd8df 15-May-2009 Eric Fischer <enf@google.com> resolved conflicts w/ 5bd644caf73e76750feef1a82b8817d32f5367fc merge....
5bd644caf73e76750feef1a82b8817d32f5367fc 13-May-2009 Eric Fischer <enf@google.com> Start using CLDR for some date-and-time strings and formats.

Use java.text.DateFormat where possible, since that is already using
the CLDR data for the things it supports. Remove an unused date format
object from DatePickerDialog.

Add a new method for getting the standalone month names from applications,
although @hidden for now because it is an API change.

Pass the standalone month names down to native code in Time so that
tztime's strftime() can use them.

And then the bulk of the change: replace all the names for the months
and the days of the week, and AM and PM, and yesterday, today, and tomorrow,
with strings from CLDR. And replace several of the date format strings
with ones derived from CLDR, but reformatted to use strftime() style
instead of SimpleDateFormat style.

All these resource changes go into new donottranslate-cldr.xml files
and are removed from strings.xml so that they aren't part of the
normal translation process and the translators don't have to bother
with them (and risk messing them up).
atePickerDialog.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.
pplicationContext.java
76879bc2343779d4d2a870b7bd46b0544c0cc46c 15-May-2009 svetoslavganov <svetoslavganov@google.com> resolved conflicts w/ 75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec merge....
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
ctivity.java
pplicationContext.java
ialog.java
679bfc17735bfa228d6b83d54738699a8ae6fb42 14-May-2009 Marco Nelissen <marcone@google.com> am 1746d6fe: Fix a bug that findbugs found

Merge commit '1746d6fefcb1b4869f475a81f5aec35db4695603'

* commit '1746d6fefcb1b4869f475a81f5aec35db4695603':
Fix a bug that findbugs found
1746d6fefcb1b4869f475a81f5aec35db4695603 14-May-2009 Marco Nelissen <marcone@google.com> Fix a bug that findbugs found
earchDialog.java
d032b40292d01a7dea1d6b31e22ae715ea20af27 13-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 6063a9c: Merge change 1491 into donut

Merge commit '6063a9c9ee91a647680653a4520dfcad83985592'

* commit '6063a9c9ee91a647680653a4520dfcad83985592':
Make pressing the search button within an app that does not support
6063a9c9ee91a647680653a4520dfcad83985592 13-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1491 into donut

* changes:
Make pressing the search button within an app that does not support search bring up global search. This still respects the case where an app has chosen to disable search entirely by overriding onSearchRequested() to return false.
a59d7b0f2f9af672d48041b29e147fdce1218c08 13-May-2009 Mike LeBeau <mlebeau@android.com> Make pressing the search button within an app that does not support
search bring up global search. This still respects the case where an
app has chosen to disable search entirely by overriding
onSearchRequested() to return false.

I do not believe any changes to the SearchManager documentation
(http://developer.android.com/reference/android/app/SearchManager.html#HowSearchIsInvoked)
are necessary, because this documentation already indicates that
pressing the search button within an app that does nothing special with
regard to search can bring up global search.
earchDialog.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
pplicationContext.java
7378637dd36ff8f969b3d2a95433298508834052 12-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 7813767: Merge change 1441 into donut

Merge commit '7813767b3ab2a0db3847ef62274b51a3d394a5e8'

* commit '7813767b3ab2a0db3847ef62274b51a3d394a5e8':
removing log message checked in by acccident.
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
pplicationContext.java
a1565b934093e0fc29d2ff2104e279aad4a233d3 12-May-2009 Mitsuru Oshima <oshima@google.com> removing log message checked in by acccident.
ctivityThread.java
21fa8d31f4a686143090fb8597b6c4297081d7ca 12-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 7e3e04c: Merge change 1408 into donut

Merge commit '7e3e04c144182c6807c66646b3f988beaba1720e'

* commit '7e3e04c144182c6807c66646b3f988beaba1720e':
* update all metrics data when updating density.
58feea74b42bbaaa0552d76af23873bdd0b5dca2 12-May-2009 Mitsuru Oshima <oshima@google.com> * update all metrics data when updating density.
* Keyboard should use DisplayMetrics from Resource rather than getting it from WindowManager as
the display metrics can differ under compatibility mode.
ctivityThread.java
2f8782ddfcccb304c67b112377a671050cf2336c 11-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 82e61c9: Merge change 1316 into donut

Merge commit '82e61c947b909bcb373aca491fe1248f23764eaf'

* commit '82e61c947b909bcb373aca491fe1248f23764eaf':
Make in-app search have a different background resource which looks
837bcca25af14b009742a3256cc074a62481ba8f 09-May-2009 Android (Google) Code Review <android-gerrit@google.com> am ed3b804: Merge change 1276 into donut

Merge commit 'ed3b804f2cc61029cf2969cbfa499ea230c22bb0'

* commit 'ed3b804f2cc61029cf2969cbfa499ea230c22bb0':
Define mime type for shortcut validation path.
b059d90691e3ecd2d9843b537e9a08db983586e7 09-May-2009 Mike LeBeau <mlebeau@android.com> Make in-app search have a different background resource which looks
like a slide-out drawer, to provide app context and because it is not
full-screen.

Also fix a problem where bringing up global search sometimes still did
not size the dropdown correctly, because the keyboard was not yet showing.
earchDialog.java
ddf9856c7de043674d9ede006aefc7769879a4b8 09-May-2009 Mike LeBeau <mlebeau@android.com> merged 98acd54, resolved conflicts
ed3b804f2cc61029cf2969cbfa499ea230c22bb0 08-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1276 into donut

* changes:
Define mime type for shortcut validation path.
b619c9198efa0108a692d352b0e7eaa534f922f3 08-May-2009 Karl Rosaen <krosaen@google.com> Define mime type for shortcut validation path.
earchManager.java
98acd54fa6657e8131b3a2a957de7882a2f511ab 08-May-2009 Mike LeBeau <mlebeau@android.com> Make the search dialog's autocomplete dropdown behave correctly
with respect to the soft keyboard. getMaxAvailableHeight in
PopupWindow relies on View's getWindowVisibleDisplayFrame, which
always takes into account the IME, whereas in this case, because
we want the window to extend down to the bottom of the display
when it is being interacted with by the user, I added a new
boolean option 'ignoreBottomDecorations' to getMaxAvailableHeight.
If true, the method returns the height which will extend the
PopupWindow down to the bottom of the screen, rather than just
down to the IME.

Then in AutoCompleteTextView, I set this to true when the
dropDownAlwaysVisible attribute is true and the PopupWindow's
input method mode is INPUT_METHOD_NOT_NEEDED (which happens when
the list is dragged or otherwise interacted with).

Then, because the dropdown height is only calculated when we call
showDropDown(), I had to replace a couple calls to mPopup.update().

There are still a few remaining bugs here I'm tracking Still to do:
* Fix a strange re-placement of the window which happens
intermittently.
* Strange behavior when using the directional pad.
* In a few cases, the list does not correctly size itself to the IME.
This seems to be because the available height is calculated before
the IME is yet on screen, and thus is calculated as the entire screen.
earchDialog.java
3531fdb1d9a0ca536bd7a7a27d35b3e62c318ad9 08-May-2009 The Android Open Source Project <initial-contribution@android.com> merge 55280a9

Merge commit '55280a9'
55280a91884b9256e8db6af6a09f28b3feeaa9d8 08-May-2009 Dianne Hackborn <hackbod@google.com> Improve shutdown process to send broadcast for applications.

This introduces a new class in the base platform for performing a clean
shutdown (which was copied from the classes in the policies). It
includes new features to send a shutdown broadcast for applications
to do cleanup, and ot have the activity manager pause the current
activity before proceeding with the shutdown. These facilities are
also use to write at the most recent stat files for sync, battery
and user activity.
ctivityManagerNative.java
ActivityManager.java
cb4a3f36dfc81fa1172583f42aa26a1dfd5c225b 08-May-2009 The Android Open Source Project <initial-contribution@android.com> am 60f3eb5: Merge branch \'donut\' of ssh://android-git.corp.google.com:29

Merge commit '60f3eb54a01d30882dfab5e66318d8fdd9aab1dd'

* commit '60f3eb54a01d30882dfab5e66318d8fdd9aab1dd':
Define the URI path, columns and constants for shortcut validation.
3d73eeb7b3c1f83a7286f4dba40530088d21323e 08-May-2009 The Android Open Source Project <initial-contribution@android.com> am 8705a41: Merge branch \'donut\' of ssh://android-git.corp.google.com:29

Merge commit '8705a41a778bd0561737fd9b6fb2e1cdca0532b5'

* commit '8705a41a778bd0561737fd9b6fb2e1cdca0532b5':
* update density correctly when the configuration is changed.
b2a5011578d4a64df2f39bdeeedfe9f37e7aecc4 06-May-2009 Karl Rosaen <krosaen@google.com> Define the URI path, columns and constants for shortcut validation.
earchManager.java
2e3d3b9ce74cb9c906e5cc0e9898d757d45c4237 07-May-2009 Mitsuru Oshima <oshima@google.com> * update density correctly when the configuration is changed.
* Turns private sLcdDensity to public DEVICE_DENSITY to use it in ActivityThread
ctivityThread.java
34f97460bd518b69c1e3a4dc21d02a353510c69e 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f2331a6: Merge change 1063 into donut

Merge commit 'f2331a63c0e7f6ffeedf16185c92a0aeffa5512c'

* commit 'f2331a63c0e7f6ffeedf16185c92a0aeffa5512c':
Refactor SearchableInfo.
a92041306e4d73baa10fb711fb905b9590f06b26 05-May-2009 Bjorn Bringert <bringert@android.com> Refactor SearchableInfo.

- Removes the mSearchable field which was only
for communication between the constructor and
getActivityMetaData().
- Removes the badge and query rewriting fields,
since their values can be efficiently computed
on the fly.
- Makes all the other public fields private and adds getters
for them.
- Makes all fields final, except mActionKeys.
- Removes the DBG_INHIBIT_SUGGESTIONS_CONSTANT.
I don't see why we would every want that, and it
complicated making the fields final.
- Makes all fields in ActionKeyInfo final.
- Makes all fields in ActionKeyInfo private and adds getters.
- Removes the use of ActioKeyInfo.mKeyCode for failure
signalling. Uses IllegalArgumentException instead.
- Replaces the ad hoc linked list for looking up
action keys by a HashMap. This is needed to
make the fields in ActionkeyInfo final, and also avoids O(N)
lookup in the (unlikely) case that an activity
has lots of action keys.
- Don't throw exceptions when reading searchable
meta-data, since that could crash SearchManagerService.
- Adds debug logging.
earchDialog.java
earchManager.java
uggestionsAdapter.java
60c8b8e48b239b99cfc8760a63f096255c5b88c5 30-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am a039d46: Merge change 792 into donut

Merge commit 'a039d465a85e8a7dea1ec4b5814e1a6e84e676f8'

* commit 'a039d465a85e8a7dea1ec4b5814e1a6e84e676f8':
Allow access to global search by pressing the hard search button again
b3aab6958120ad8bc8d70c493ebf49dcb4fbc30e 30-Apr-2009 Mike LeBeau <mlebeau@android.com> Allow access to global search by pressing the hard search button again
within in-app search. If within in-app search and toggled out to global
search, pressing the hard search button will take the user *back* into
in-app search too.
earchDialog.java
e4ddb19acbfbad9981ea3b3c7b4a391af963a014 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am efae672: Merge change 725 into donut

Merge commit 'efae672d7303fb6682b2ae8704a62146297a0a5a'

* commit 'efae672d7303fb6682b2ae8704a62146297a0a5a':
Add 'includeInGlobalSearch' attribute to searchable meta-data.
6b8da4e1aa0b7e0bfe2e0b45df3a6219ec8fe10b 29-Apr-2009 Bjorn Bringert <bringert@android.com> am c1f4096: Remove menu from SearchDialog.

Merge commit 'c1f40960644b461b108480b6446c89963441492d'

* commit 'c1f40960644b461b108480b6446c89963441492d':
Remove menu from SearchDialog.
c6e3de9e09e539c72c40e29c247710eb1bf3db94 29-Apr-2009 The Android Open Source Project <initial-contribution@android.com> am 203464a: Add searchSuggestThreshold to searchable meta-data.
adf431b54ab7d40f8a181cc12a856f9aa621aa1f 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 493b00a: Merge change 640 into donut

Merge commit '493b00afbfd4f603939ee98540a4d8df084107fd'

* commit '493b00afbfd4f603939ee98540a4d8df084107fd':
Add GLOBAL_SEARCH intent for finding global search provider.
3813fdaa8f7317243209d8bb1e472a4e501ccb29 29-Apr-2009 Scott Main <> am 8419fcd: am b8b3645: AI 147803: add docs and images for docs on Toast

Merge commit '8419fcdfaf908aec4f8fa093ef1850616c7704b4'

* commit '8419fcdfaf908aec4f8fa093ef1850616c7704b4':
AI 147803: add docs and images for docs on Toast and Notification docs
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.
2f7e0447ac746e940db753178d513df914c20334 29-Apr-2009 Karl Rosaen <krosaen@google.com> am 98e333f: Fix back key and ime behavior for search dialog.

Merge commit '98e333f551a4bf2ebb50bb97a2a56b14bfdcd74b'

* commit '98e333f551a4bf2ebb50bb97a2a56b14bfdcd74b':
Fix back key and ime behavior for search dialog.
d3f78458ddd9ccd8179f5dfb47c3a4cc4e8c4d9b 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 6fcddb0: Merge change 629 into donut

Merge commit '6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f'

* commit '6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f':
Display the app icon to the left of the search field for search within apps.
a5a51e172495a3aa793903ce6c62b06f8c5d0b42 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 77c9990: Merge change 599 into donut

Merge commit '77c9990ae0806575ae7a2750459f3e74f0bec092'

* commit '77c9990ae0806575ae7a2750459f3e74f0bec092':
Add call to (new) Canvas.freeCaches() in response to low-memory
8b65d2c3584912fd356444d6d9472c0f3682899c 29-Apr-2009 Bjorn Bringert <> am 7fc4b28: Merge branch \'readonly-p4-donut\' into donut

Merge commit '7fc4b281750be2442a327e7aa9fb03c44096caf3'

* commit '7fc4b281750be2442a327e7aa9fb03c44096caf3':
AI 147681: Fix SearchDialog crash on missing FORMAT suggestion column.
8f080ec4292be02fad9896260bbd3cf5461f9399 29-Apr-2009 The Android Open Source Project <initial-contribution@android.com> am f3ccf8a: Merge branch \'readonly-p4-donut\' into donut
137b0c9d6430ccb519c82a1198048cf413e06c5e 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 0b8ffd1: Merge change 460 into donut

Merge commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82'

* commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82':
More optimization of dumpsys output.
efae672d7303fb6682b2ae8704a62146297a0a5a 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 725 into donut

* changes:
Add 'includeInGlobalSearch' attribute to searchable meta-data.
c1f40960644b461b108480b6446c89963441492d 29-Apr-2009 Bjorn Bringert <bringert@android.com> Remove menu from SearchDialog.

Before, pressing MENU with the SearchDialog open would show
a menu item that launched the search settings activity. Now that
the search settings are accessible from the Settings app, this is
no longer needed.

Fixes http://b/issue?id=1819469 and http://b/issue?id=1817823
earchDialog.java
6d72e029cb6e5a9cf26aa3314c3dca83614fc91b 29-Apr-2009 Bjorn Bringert <bringert@android.com> Add 'includeInGlobalSearch' attribute to searchable meta-data.

The attribute is not yet public.
Also adds a SearchManager method for listing all
searchables that can be included in global search.
This is the framework part of http://b/issue?id=1819651
SearchManager.aidl
earchManager.java
203464af9638e4d5aecd811452af67fff9aa3087 27-Apr-2009 Bjorn Bringert <bringert@android.com> Add searchSuggestThreshold to searchable meta-data.

This lets the searchable activity specify the number of
characters needed to trigger suggestions. Before, this was
hard-coded at 0. This caused unnecessary querying of the
suggestion provider in cases where the provider does not
return suggestions for empty or short queries.

The attribute is not yet public, pending API council approval.
earchDialog.java
493b00afbfd4f603939ee98540a4d8df084107fd 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 640 into donut

* changes:
Add GLOBAL_SEARCH intent for finding global search provider.
8419fcdfaf908aec4f8fa093ef1850616c7704b4 29-Apr-2009 Scott Main <> am b8b3645: AI 147803: add docs and images for docs on Toast and Notifi

Merge commit 'b8b3645a9799c38ad68549316ebbf7a4849f2e0c' into donut

* commit 'b8b3645a9799c38ad68549316ebbf7a4849f2e0c':
AI 147803: add docs and images for docs on Toast and Notification docs
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
ctivityThread.java
pplicationContext.java
98e333f551a4bf2ebb50bb97a2a56b14bfdcd74b 28-Apr-2009 Karl Rosaen <krosaen@google.com> Fix back key and ime behavior for search dialog.

The back key now dismisses the soft keyboard, and then the dialog.

The soft keyboard behavior is improved by having ACTV do the following when 'mDropdownAlwaysShowing' is true:
- touching outside of the drop down doesn't dismiss it
- touching the text field ensures the imei is brought in front of the drop down
earchDialog.java
6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f 28-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 629 into donut

* changes:
Display the app icon to the left of the search field for search within apps.
74708bbdf8d6f172b08343bdc578a20aa4b39148 28-Apr-2009 Bjorn Bringert <bringert@android.com> Add GLOBAL_SEARCH intent for finding global search provider.
earchManager.java
1fd73239dcd2f17603e0819ca9963e04c8267bb2 28-Apr-2009 Mike LeBeau <mlebeau@android.com> Display the app icon to the left of the search field for search within apps.
earchDialog.java
caf0df1b7f99736aed1a0b923ef278fc4fd0fcca 27-Apr-2009 Mike Reed <reed@google.com> Add call to (new) Canvas.freeCaches() in response to low-memory

This is in conjunction with removing a similar call made by the browser.
Now it will be centralized, and the browser's call site will be removed.
ctivityThread.java
b8b3645a9799c38ad68549316ebbf7a4849f2e0c 27-Apr-2009 Scott Main <> AI 147803: add docs and images for docs on Toast and Notification docs
also edit the Notification class doc
BUG=1800118

Automated import of CL 147803
otification.java
7fc4b281750be2442a327e7aa9fb03c44096caf3 24-Apr-2009 Bjorn Bringert <> Merge branch 'readonly-p4-donut' into donut
4369397d0697810241f7a7ab22891930067166dd 24-Apr-2009 Bjorn Bringert <> AI 147681: Fix SearchDialog crash on missing FORMAT suggestion column.
CL 147456 introduced support for HTML formatted search suggestions.
This is triggered by the value "html" in the SUGGEST_COLUMN_FORMAT
column. However, the code failed to check that the
SUGGEST_COLUMN_FORMAT column was present before trying to read it.
This resulted in an IllegalStateException being thrown when searching
with a suggestion provider that does not include the SUGGEST_COLUMN_FORMAT
column. This broke search at least in the Contacts and Music apps.

Automated import of CL 147681
uggestionsAdapter.java
f3ccf8a5a5a3f6e46781538358bddca992a70e3d 24-Apr-2009 Karl Rosaen <> Merge branch 'readonly-p4-donut' into donut
875d50a4b9294b2be33cff6493cae7acd1d07ea7 24-Apr-2009 Karl Rosaen <> AI 147564: Merge back from search branch to donut. Notes:
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy)
- all new public apis are @hidden; they will still get reviewed by api council once we're in git
- other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks
to the contacts provider that was reviewed by jham

Automated import of CL 147564
earchDialog.java
earchManager.java
uggestionsAdapter.java
0b8ffd17bc6641fc522db3e842a868b6cdbf6d82 23-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 460 into donut

* changes:
More optimization of dumpsys output.
1d442e0d990b581357f33f5463c7c5cb49b551e8 21-Apr-2009 Dianne Hackborn <hackbod@google.com> More optimization of dumpsys output.

There are three major classes of changes here:

- Avoid writing lines where their values are often empty, false, or some other typical thing.
- Use partial writes to the PrintWriter to avoid creating temporary strings.
- Use StringBuilder where we need to generate real String objects (and where possible cache the result).
endingIntent.java
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
a0cce9b1205d2b0a0e7b1ab8b3710b02de6fad75 21-Apr-2009 Andy Stadler <> AI 147170: am: CL 147168 am: CL 147163 Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java. Add
a (brief - no time for more) description about how to add search
by voice to apps.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 147170
earchManager.java
407784ccacfaddb443f2f7b44d7a4616272c473d 21-Apr-2009 Andy Stadler <> Merge branch 'readonly-p4-donut' into donut
4c156ec6ec9adcb407189ee57e0c205039b60148 21-Apr-2009 Andy Stadler <> AI 147168: am: CL 147163 Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java. Add
a (brief - no time for more) description about how to add search
by voice to apps.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...

Automated import of CL 147168
earchManager.java
a1cde99f322693e1f12fc224e98bc5340ebfdf1b 21-Apr-2009 Andy Stadler <> AI 147163: Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java. Add
a (brief - no time for more) description about how to add search
by voice to apps.
JAVADOC ONLY - should be safe change for cupcake sdk.
BUG=1554704

Automated import of CL 147163
earchManager.java
935ae463d495d41155e27feb849768ad2b8b16db 14-Apr-2009 Dianne Hackborn <> AI 145994: Integrate #145778 from Donut.

Automated import of CL 145994
lertDialog.java
5f05afeeb6dd88a4f16b0a279afa3b4d0b631213 11-Apr-2009 Andy Stadler <> Merge branch 'readonly-p4-donut' into donut
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
lertDialog.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
lertDialog.java
b70f3dff01e7e1e85f77cf0b0b2eaba8200eb82c 08-Apr-2009 Christopher Tate <ctate@google.com> Preserve an Activity's setIntent() state across relaunches

Previously any Intent designated by setIntent() would be lost when
the Activity was shut down and restarted due to orientation change.
Now the custom intent is preserved across the relaunch.

Bug: b/1743425
ctivity.java
ctivityThread.java
a34df8a2ba450b2c2ad83ccbbac30b80e2706bb2 03-Apr-2009 Chris Tate <> AI 144405: am: CL 144307 am: CL 144306 Fix SDK issue 1716562 - Broadcast mechanism documentation should be improved.
Original author: ctate
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 144405
larmManager.java
a919486d934286e81f55917627423daaaa59c8b1 03-Apr-2009 Chris Tate <> AI 144307: am: CL 144306 Fix SDK issue 1716562 - Broadcast mechanism documentation should be improved.
Original author: ctate
Merged from: //branches/cupcake/...

Automated import of CL 144307
larmManager.java
a48875a7d709b66ebb8a3167e227a4c76065f3f1 02-Apr-2009 Chris Tate <> AI 144306: Fix SDK issue 1716562 - Broadcast mechanism documentation should be improved.
BUG=1716562

Automated import of CL 144306
larmManager.java
eb3e3e368a5093768b44b415a85a3d0bcce92583 02-Apr-2009 Daisuke Miyakawa <> AI 144210: am: CL 144182 am: CL 144181 Modify ProgressDialog class and its xml so that it follows the
Android's UI guide line. This modification is based on leland's mock.
See http://b/issue?id=1748136 for more information.
Put ProgressNumber left side, next to ProgressPercentage.
Make ProgressPercentage Bold.
Put ProgressNumber and ProgressPercentage near to the ProgressBar
above. This is same as the design of Market application.
Enable ProgressDialog change the ProgressNumber format. This is hidden
since the interface is premature.
Original author: dmiyakawa
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144210
rogressDialog.java
e9c08056fafab720856ab8516ea0e623a5c0e360 02-Apr-2009 Daisuke Miyakawa <> AI 144182: am: CL 144181 Modify ProgressDialog class and its xml so that it follows the
Android's UI guide line. This modification is based on leland's mock.
See http://b/issue?id=1748136 for more information.
Put ProgressNumber left side, next to ProgressPercentage.
Make ProgressPercentage Bold.
Put ProgressNumber and ProgressPercentage near to the ProgressBar
above. This is same as the design of Market application.
Enable ProgressDialog change the ProgressNumber format. This is hidden
since the interface is premature.
Original author: dmiyakawa
Merged from: //branches/cupcake/...

Automated import of CL 144182
rogressDialog.java
196677cf8caf9830760c4ea1e2d3afc42b09cf36 02-Apr-2009 Daisuke Miyakawa <> AI 144181: Modify ProgressDialog class and its xml so that it follows the
Android's UI guide line. This modification is based on leland's mock.
See http://b/issue?id=1748136 for more information.
Put ProgressNumber left side, next to ProgressPercentage.
Make ProgressPercentage Bold.
Put ProgressNumber and ProgressPercentage near to the ProgressBar
above. This is same as the design of Market application.
Enable ProgressDialog change the ProgressNumber format. This is hidden
since the interface is premature.
BUG=1748136,1612476

Automated import of CL 144181
rogressDialog.java
ce229059e25066b36c99208a04e8e5696a76abf3 26-Mar-2009 Chris Tate <> Automated import from //branches/donutburger/...@142714,142714
ctivityThread.java
a7f7dee1e24b1e33c1a198b5b7843ca72344da0c 26-Mar-2009 Chris Tate <> Automated import from //branches/master/...@142751,142751
ctivityThread.java
76eef491e1a453174f6372d18cf500d13521fb23 25-Mar-2009 Chris Tate <> Automated import from //branches/cupcake/...@142614,142614
ctivityThread.java
9c802c1e95befbd8de30ea4ebc48ae05cb948b2b 25-Mar-2009 Romain Guy <> Automated import from //branches/master/...@142575,142575
lertDialog.java
603073430bbcb1bd29db7afb9b14e2732ad589fb 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
pplicationContext.java
870a2b015645ef5086af6a5de31dc482e7193214 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@142470,142470
lertDialog.java
f85f081ded685dd9a0391f4e71a52fb8f9e72358 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@141727,141727
earchDialog.java
a8f556ee8cee24674663fd73c7a5b5a919b2d5bb 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@141726,141726
earchDialog.java
8a7dc17790b7f24e8e819eca46d14c4471230eba 25-Mar-2009 Chris Tate <> Automated import from //branches/donutburger/...@141391,141391
ctivityThread.java
8f91d2b5c93017330264f71afc17848295250bf6 25-Mar-2009 Chris Tate <> Automated import from //branches/master/...@141392,141392
ctivityThread.java
edbabeb7fabfb3c7793b565cdaaf656e5e332efe 25-Mar-2009 Romain Guy <> Automated import from //branches/cupcake/...@142469,142469
lertDialog.java
1bf5e22da72b477c8b7a45ed85a4dba94be39db5 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@141001,141001
pplicationContext.java
51bf077883df4f5cc816fbfec6d19eedffc26d70 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@141004,141004
pplicationContext.java
c36bde662fd679d4cd74d786655ae39d097daf1c 25-Mar-2009 Eric Fischer <> Automated import from //branches/donutburger/...@140780,140780
atePickerDialog.java
e55255bf9b51997f75b954126093c1074e981c48 25-Mar-2009 Eric Fischer <> Automated import from //branches/master/...@140785,140785
atePickerDialog.java
5ba90a0c4cb0b1683651b6f191332eece7735f6a 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@141723,141723
earchDialog.java
c2ad241504fcaa12d4579d3b0b4038d1ca8d08c9 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
ctivityThread.java
pplicationContext.java
atePickerDialog.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
ctivityThread.java
pplicationContext.java
auncherActivity.java
ervice.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
earchDialog.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
earchDialog.java
f5b4b98fada53d91c4c2ebeb5a1d33ccc95c94d2 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
ctivityManagerNative.java
ctivityThread.java
pplicationThreadNative.java
ActivityManager.java
ApplicationThread.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ctivity.java
ctivityGroup.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
larmManager.java
lertDialog.java
liasActivity.java
pplication.java
pplicationContext.java
pplicationLoaders.java
pplicationThreadNative.java
atePickerDialog.java
ialog.java
xpandableListActivity.java
ActivityManager.java
ActivityPendingResult.aidl
ActivityWatcher.aidl
AlarmManager.aidl
ApplicationThread.java
InstrumentationWatcher.aidl
IntentReceiver.aidl
IntentSender.aidl
NotificationManager.aidl
SearchManager.aidl
ServiceConnection.aidl
StatusBar.aidl
ThumbnailReceiver.aidl
TransientNotification.aidl
WallpaperService.aidl
WallpaperServiceCallback.aidl
nstrumentation.java
ntentService.java
eyguardManager.java
auncherActivity.java
istActivity.java
ocalActivityManager.java
otification.aidl
otification.java
otificationManager.java
endingIntent.aidl
endingIntent.java
rogressDialog.java
esultInfo.java
earchDialog.java
earchManager.java
ervice.java
tatusBarManager.java
abActivity.java
imePickerDialog.java
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ctivity.java
ctivityGroup.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
larmManager.java
lertDialog.java
liasActivity.java
pplication.java
pplicationContext.java
pplicationLoaders.java
pplicationThreadNative.java
atePickerDialog.java
ialog.java
xpandableListActivity.java
ActivityManager.java
ActivityPendingResult.aidl
ActivityWatcher.aidl
AlarmManager.aidl
ApplicationThread.java
InstrumentationWatcher.aidl
IntentReceiver.aidl
IntentSender.aidl
NotificationManager.aidl
SearchManager.aidl
ServiceConnection.aidl
StatusBar.aidl
ThumbnailReceiver.aidl
TransientNotification.aidl
WallpaperService.aidl
WallpaperServiceCallback.aidl
nstrumentation.java
eyguardManager.java
auncherActivity.java
istActivity.java
ocalActivityManager.java
otification.aidl
otification.java
otificationManager.java
endingIntent.aidl
endingIntent.java
rogressDialog.java
esultInfo.java
earchDialog.java
earchManager.java
ervice.java
tatusBarManager.java
abActivity.java
imePickerDialog.java
ackage.html
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
pplicationContext.java
xpandableListActivity.java
ntentService.java
istActivity.java
otificationManager.java
earchDialog.java
earchManager.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
pplicationContext.java
xpandableListActivity.java
ntentService.java
istActivity.java
otificationManager.java
earchDialog.java
earchManager.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
ctivity.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
endingIntent.java
earchDialog.java
ervice.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
auncherActivity.java
earchDialog.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ctivity.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
pplicationContext.java
ialog.java
ActivityManager.java
nstrumentation.java
auncherActivity.java
otification.java
earchDialog.java
earchManager.java
ervice.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
ctivity.java
ctivityThread.java
pplicationContext.java
pplicationThreadNative.java
ApplicationThread.java
nstrumentation.java
earchDialog.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
earchDialog.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
ctivityThread.java
lertDialog.java
pplicationThreadNative.java
ialog.java
ApplicationThread.java
earchDialog.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
ctivity.java
earchDialog.java
earchManager.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ctivity.java
ctivityGroup.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
larmManager.java
lertDialog.java
pplicationContext.java
atePickerDialog.java
ActivityManager.java
AlarmManager.aidl
nstrumentation.java
ocalActivityManager.java
otification.java
endingIntent.java
rogressDialog.java
earchDialog.java
earchManager.java
ervice.java
imePickerDialog.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ctivity.java
ctivityGroup.java
ctivityManager.java
ctivityManagerNative.java
ctivityThread.java
larmManager.java
lertDialog.java
liasActivity.java
pplication.java
pplicationContext.java
pplicationLoaders.java
pplicationThreadNative.java
atePickerDialog.java
ialog.java
xpandableListActivity.java
ActivityManager.java
ActivityPendingResult.aidl
ActivityWatcher.aidl
AlarmManager.aidl
ApplicationThread.java
InstrumentationWatcher.aidl
IntentReceiver.aidl
IntentSender.aidl
NotificationManager.aidl
SearchManager.aidl
ServiceConnection.aidl
StatusBar.aidl
ThumbnailReceiver.aidl
TransientNotification.aidl
WallpaperService.aidl
WallpaperServiceCallback.aidl
nstrumentation.java
eyguardManager.java
auncherActivity.java
istActivity.java
ocalActivityManager.java
otification.aidl
otification.java
otificationManager.java
endingIntent.aidl
endingIntent.java
rogressDialog.java
esultInfo.java
earchDialog.java
earchManager.java
ervice.java
tatusBarManager.java
abActivity.java
imePickerDialog.java
ackage.html