• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/com/android/internal/app/
History log of /frameworks/base/core/java/com/android/internal/app/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cea3743499f4bb8e5f28a2e57686d7af313169c5 18-Oct-2012 Kenny Root <kroot@google.com> Try to free cache before giving up on install

Try to get installd to free up cache before giving up when there is too
little space free.

Bug: 7232123
Change-Id: Ie3c8ca8dfc190abbb9a29a7baee31f32e9de7d69
MediaContainerService.aidl
203a2f464cef0d873ba8a6193e288fd25b6dc907 04-Oct-2012 Amith Yamasani <yamasani@google.com> Fix launching home when there are multiple launchers installed

Bug: 7283782

Since ResolverActivity now runs in the correct user, it doesn't need to explicitly
pass in the calling userId. In fact, for the Home case, since ActivityManager is
the one requesting resolution of Home activity, Resolver is running as user 0
instead of the current user.

Removing explicit calls based on the launchingUid fixes the problem.

Change-Id: I4676c155aafaa0dd5cefb1acefa0e7e9c1e20f25
esolverActivity.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
ediaRouteChooserDialogFragment.java
4d5c2b03172747843d0549eeea890150a705b86b 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7238170: Edit picture option is not available for the secondary user.

Change-Id: Icb3229f543f286afb4a31e267099eceaa0cca11d
esolverActivity.java
10bd4106efc22efd57875a2fb914110475c91856 19-Sep-2012 Adam Powell <adamp@android.com> am baed0a8f: am 56fd88d8: am ab12f0f7: Merge "Implement resolving of icon attributes to resIds in AlertController"

* commit 'baed0a8f0b43191c8f001e064ff42cf27a305d87':
Implement resolving of icon attributes to resIds in AlertController
576e1dff3d40610377a763db6c9e6bf999e00987 10-Sep-2012 blunden <blunden2@gmail.com> Implement resolving of icon attributes to resIds in AlertController

Platform code using AlertController directly currently has
no way to set the correct theme-specific dialog icon in a
generic way. This adds code to handle such usage.

Change-Id: I48beafa1183e4edf6d5378b3985a7f9be5fcda8b
lertController.java
035ce2ca92742894f7f906c93d7d217c647aa19a 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for "-rtl" in resources" 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
lertController.java
5f7979993979466c79ab4f38d83c6f2aca361662 16-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Add support for "-rtl" in resources

- fix bug #7035019 Need to have "-rtl" support for Resource

Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
ocalePicker.java
0203341a0bbfefb97a91d54613a556f524c94a5c 21-Aug-2012 Victoria Lease <violets@google.com> Set text locale in language settings panel.

This results in the CJK locales displaying locale-appropriate glyphs
regardless of the device's locale.

Change-Id: I1564b0b63597f068f4680d0a59fc82dea2dbbba3
ocalePicker.java
14e883b25e0998e3bc4e574a0df3db252d6e987f 18-Aug-2012 Amith Yamasani <yamasani@google.com> Fix merge error

Didn't apply the recent API change from another CL.

Change-Id: I65ac6108909eca7ac48beabb4a8b7bbedda84249
esolverActivity.java
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
esolverActivity.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
esolverActivity.java
bdda4e74d447812beb92504dc426c9385b3072d1 20-Jul-2012 Adam Powell <adamp@google.com> Fix condition bug in ResolverActivity

Bug 6854356

Change-Id: I3cd060fb78876e80bdfa311cf80d0ad8a696bfad
esolverActivity.java
d81cc4ab5a07f4a6c5e553cb67c3aa4fe1dc8b6e 19-Jul-2012 Adam Powell <adamp@google.com> Easy "Just once" launches from ResolverActivity

Allow a second tap of a selected item in ResolverActivity to launch
the target as "just once" for sloppier/quicker choices.

Change-Id: If05fc7c1ac622195f6253e6ca0868fd87954dd46
esolverActivity.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
esolverActivity.java
c32e190ea6da8c9acd8dc1a29a6e8794ecf7d857 30-Jun-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of a9c38461 to master

Change-Id: Ie7044c4f9f15384c3edd328fa8e2932c731d9d5c
183ce028f10442dd6ada59de8fa531d690134663 30-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6761130: Clearing app data in settings does not clear app's USB storage

The package manager calls to clear data / clear cache were not also
having default container service clear the data on external storage. Now
they do.

Change-Id: Ib5e5eb6adf2cac5a4cc094cc1a02ac8cfb6a2edf
MediaContainerService.aidl
f681e74064096f19e9022b8ca69aed62a8679bc6 23-Jun-2012 Adam Powell <adamp@google.com> am 56fbd14f: am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog

* commit '56fbd14f3d02220eb3b35b3d62750d12ae402c6e':
Sanity check while updating volume in MediaRouteChooserDialog
1b4ea7eff50545f4673ca01b664e5edccc784688 23-Jun-2012 Adam Powell <adamp@google.com> Sanity check while updating volume in MediaRouteChooserDialog

Bug 6720224

When a window dies it's possible to receive a lingering ACTION_CANCEL
event to the SeekBar for volume. Be sure that we don't try to mess
with something that's already gone by that point.

Change-Id: I4f6119718fc21204d9013d591bc984b785b698b4
ediaRouteChooserDialogFragment.java
3f765f783d264ec7e2034516d431b2bf49826e0d 22-Jun-2012 Adam Powell <adamp@google.com> am 9b5cdf4f: am 4dd21c8e: Volume changes in MediaRouteChooserDialog

* commit '9b5cdf4f14557f644b913cf654159389a251bfb4':
Volume changes in MediaRouteChooserDialog
4dd21c8e77c0d369ee835f50cba1701e76aa18c4 22-Jun-2012 Adam Powell <adamp@google.com> Volume changes in MediaRouteChooserDialog

Use the max volume reported by the selected route as the max value to set.

Change-Id: I9848dfb201387843e7ed398ac61e2d13e14e3f51
ediaRouteChooserDialogFragment.java
a08e6881c58c56aba2ac1f6e02db1529e10f9e6e 21-Jun-2012 Adam Powell <adamp@google.com> am ed044cda: am 09829b71: Merge "Expand volume APIs for MediaRouter" into jb-dev

* commit 'ed044cda8f6a7600923eecdec682c449f86e0429':
Expand volume APIs for MediaRouter
8e37a85bf3dc39519942698dc90a3951306b934b 21-Jun-2012 Adam Powell <adamp@google.com> Expand volume APIs for MediaRouter

Allow applications to set a requested volume level on RouteInfo
objects. If requested for a user route, the app-supplied callback will
be invoked to perform actual volume adjustment.

Change-Id: I856990a0da7292492aa15e6562dbc3d055b848a0
ediaRouteChooserDialogFragment.java
0be17da62000996318ecc50e2563bfd9be3fd052 18-Jun-2012 Adam Powell <adamp@google.com> am c92aa2e7: am 1b4dc0fe: Merge "Volume control in MediaRouter dialogs" into jb-dev

* commit 'c92aa2e7c9112adafc5283921efe25574a95b7a4':
Volume control in MediaRouter dialogs
4599696591f745b3a546197d2ba7e5cfc5562484 16-Jun-2012 Adam Powell <adamp@google.com> Volume control in MediaRouter dialogs

MediaRouter dialogs now intercept the volume keys for altering the
current volume. The status icon indicates if the slider/buttons are
currently controlling the local device volume or a remote device's
volume.

Group volume for user routes is handled by using the
RemoteControlClient supplied by the first route in the group.

Change-Id: I40a0d054847ed5acce7a4c3b669487841b4dca15
ediaRouteChooserDialogFragment.java
10c45b6965baf9e0fbadd8b0b5742290689c6319 16-Jun-2012 Nick Pelly <npelly@google.com> Merge "Include WIFI scan's in Battery Stats."
6ccaa540a18a69e5343e3e4d507f341880fcde5a 16-Jun-2012 Nick Pelly <npelly@google.com> Include WIFI scan's in Battery Stats.

Call noteWifiScanStartedFromSource() when a scan is started.
Call noteWifiScanStoppedFromSource() when a scan is finished.

The current implementation tracks to UID that requested the scan, and
correctly tracks the duration of the scan. It ignores scan requests
that occur when a scan is already in progress. It does not distinguish
between active and passive scans.

Repurpose all the noteScanWifiLockAcquired/Released() plumbing
for WIFI scan tracking. The WIFI scan locks were never reported
to the user. Use noteFullWifiLock() when WIFI scan locks are used -
this makes sense because the power draw for a WIFI scan lock
should be about the same as for a full WIFI lock.

Bug: 6642581
Change-Id: Ida6e87992853698545b89f875c973a239218317d
BatteryStats.aidl
b5e2af5919351486a385effe77409d2a91ae9c19 15-Jun-2012 Adam Powell <adamp@google.com> Update MediaRouteChooserDialog grouping UI

Move UserRouteInfo tag support to RouteInfo

Change-Id: Ia753924f8613462d5f74736be93a8d748689eef1
ediaRouteChooserDialogFragment.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
ediaRouteChooserDialogFragment.java
d6d0bddee363e0c7fe61f63bd9d9864a71d887d6 14-Jun-2012 Adam Powell <adamp@google.com> Support route grouping in the MediaRouter dialog UI.

Change-Id: Idcae12cedfb7ca13950e7fa45441fba2029a9f68
ediaRouteChooserDialogFragment.java
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
ediaRouteChooserDialogFragment.java
e8118e17b2f088f2ebecfbe050c4ffa80f686abf 30-May-2012 Chet Haase <chet@google.com> Sped up ActionBar and StatusBar animations

Animations to show/hide the ActionBar and StatusBar were very slow, given
the size of the objects and the distances covered by the sliding animations.
Also, the ActionBar animation was sometimes hiccuppy as it faded in/out.
This change eliminates the ActionBar fade (which is unnecessary) and speeds
up the animations (smaller durations and steeper interpolation curves). Also,
it eliminates the startDelay on the ActionBar show animation.

Issue #6564089 Options menu should slide in much quicker (nakasi/JB)

Change-Id: I2c8298301f7bf26bbbc94444e715420a2c029ba0
ctionBarImpl.java
aa0a3b692337ec8b6431e8d046ea01f042157334 23-May-2012 Daniel Sandler <dsandler@android.com> Stop animating when not showing.

We were eating too many jelly beans even when the screen was
off.

Also clean up touch offsets, rotation on fling, and main
platlogo asset.

Bug: 6541052
Change-Id: I34e49b8b7a95ce6daab929885130426a5ae58dc4
latLogoActivity.java
80d55065b1577db732c259e0e4d745617b6f1bff 23-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6521829: Sometimes action bar disappears in gallery

Change-Id: Ieb1f1fd0ebb87037cda94e1e1d6e2ca9a9c0754e
ctionBarImpl.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
esolverActivity.java
f89d5079e4e483baab1ce0bfc25e487cd920f58f 12-May-2012 Daniel Sandler <dsandler@android.com> Test new fonts and use correct OS version.

Bug: 6499146
Change-Id: I83d6298725fe1f3385d5bf0a34487658583141a4
latLogoActivity.java
7304c343821309dd15f769b18f1de2fa43751573 12-May-2012 Jeff Brown <jeffbrown@google.com> Move power HAL interactions to PowerManagerService.

This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server. Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
hutdownThread.java
1a0c9145dc32095acc250bdabc4a9b8f82d6bd3e 07-May-2012 Daniel Sandler <dsandler@android.com> Ice cream is SO over.

Change-Id: I4039b7fe41dc4a498d53e21dbcafb2bc2ac15b92
latLogoActivity.java
9bee4664f8bc615ad463af5317c77e98744c368a 08-May-2012 Adam Powell <adamp@google.com> Fix some oddities in ResolverActivity

* Fix layout for small-screen devices in landscape.

* Properly re-enable buttons after restoring instance state.

* Scroll to the currently selected item after restoring instance
state.

* Smooth scroll to the currently selected item if the user changes
selection to an item slightly out of view.

* Place grid scroll bar outside the grid's padding.

* Make the current text read a bit more naturally.

Bug 6460135

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

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
MediaContainerService.aidl
589e6f960db7f3c208a218b7d035f01d0c8460ab 07-May-2012 Adam Powell <adamp@google.com> Better screen size adaptation for ResolverActivity

Change-Id: I2c982c0b7c722ca7cad46cc23ac8d161bee3a1ff
esolverActivity.java
b2269d67c4786037f93bff396eeb9ff7f003164a 07-May-2012 Adam Powell <adamp@google.com> Merge "Revisions to ResolverActivity" into jb-dev
c587861fe8c59b7f112c333838630b54ab2b38af 05-May-2012 Adam Powell <adamp@google.com> Revisions to ResolverActivity

Bug 6428812

Change ResolverActivity to use a grid rather than a list, and present
buttons for "Use Always" and "Just Once". Use large launcher icons
when appropriate.

Change-Id: I177360a727cbc4b401ffbcea83d1b3dac1de5744
esolverActivity.java
139e5aa1da51b27231ab36344cf2d0dafab23f1e 06-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6404215: New ActionBar auto-hide can conflict with application

The action bar now maintains separate states for the things that can
impact its visibility (calls from the app, action mode, system UI) so
that the changes in these won't incorrectly mix together.

Also added a hack to force the status bar to be shown when showing
the action bar for an action mode, when the UI is in a state where
the action bar would be shown with a gap above where the status bar
is.

Change-Id: Ib0950a7f585c5d2c9e77d11b237ba6e150f15ebd
ctionBarImpl.java
1cc2bcedb50512d83f868a7453813a843188eeee 05-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6444627: New status bar/action bar interaction a bit disjoint

Make sure action bar animations use same duration as system dock animations.

Change-Id: Ie294d134177207499a05cc93db8f4b859f07ed0c
ctionBarImpl.java
785c447b2bc625209706fd128ce61781c3a4183b 03-May-2012 Adam Powell <adamp@google.com> JB API cleanup; ActionMode and View docs

Bugs 6435315, 6434937

Add ActionMode#getTitleOptionalHint() and extend documentation for
View#hasTransientState/setHasTransientState

Change-Id: I2049fb79864c33b34e3bbd13df32861e308c99ad
ctionBarImpl.java
d40423a7adff41463fb4a563becc0bd77fe9919c 02-May-2012 Adam Powell <adamp@google.com> Fix setting action bar home-as-up from AB style

Bug 6427860

Change-Id: I0052417a2c97560ade768509781b27b5e064660d
ctionBarImpl.java
d44713a63d51ba7f186c775c2a32f3c2ce018037 01-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6234928: android.app.IntentReceiverLeaked:

Activity com.android.internal.app.ChooserActivity has leaked IntentReceiver

Change-Id: I02488931d8c02ecbe0c6fc2f7ce708a9dc406f67
esolverActivity.java
1fa1de527e541c88fb3809279b67b0dc29419bac 26-Apr-2012 Kenny Root <kroot@google.com> Merge "Allow forward locked apps to be in ASECs" into jb-dev
6dcf382b1b1dde5e6303a51a27f8d3b928072415 18-Apr-2012 Jeff Sharkey <jsharkey@android.com> Move RINGTONE_PICKER to handle external storage.

To give RINGTONE_PICKER external storage access, move it from system
to MediaProvider. Fix OOBE when getRingtoneUri() kicked requery().

Bug: 6346701
Change-Id: I837002eef0580b8cdd8920a27b068c745995a8a3
ingtonePickerActivity.java
6dceb88f1c7c42c6ab43834af2c993d599895d82 12-Apr-2012 Kenny Root <kroot@google.com> Allow forward locked apps to be in ASECs

We couldn't put forward-locked apps in ASEC containers before since we
didn't have any permissioned filesystems. This adds the ability for
forward-locked applications to be in ASEC containers.

This means that forward locked applications will be able to be on the SD
card now.

This change also removes the old type of forward-locking that placed
parts of apps in /data/app-private. Now all forward-locked applications
will be in ASEC containers.

Change-Id: I17ae0b0d65a4a965ef33c0ac2c47e990e55707ad
MediaContainerService.aidl
9cbe986a446dffea2e9f59b86800f834b02d766a 23-Apr-2012 Jeff Sharkey <jsharkey@android.com> Expose statfs() through IMediaContainerService.

Bug: 6346248
Change-Id: I03ae02578f546fc9f19652cbdece56e2e0ab6a1c
MediaContainerService.aidl
19caadc08f09cc9f6665fbbb0d61e02861ce8562 21-Apr-2012 Dianne Hackborn <hackbod@google.com> You can now long press on the power off menu to reboot to safe mode.

Change-Id: I3aa575285058cf5a3d89486d6b944f6ea13d645c
hutdownThread.java
e1a996e99dc68b48efad989876c01ce05a7a58ac 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Move handling of package changes to a background thread."
e81e3a4f85147ada753100b8a78584ce008d9e63 20-Apr-2012 Martijn Coenen <maco@google.com> Merge "Added NFC disable during phone shutdown"
3bba8d0457408421a6468f03bbb36e9ff32b81cf 10-Apr-2012 Sunil Jogi <sunil.jogi@nxp.com> Added NFC disable during phone shutdown

NFC was not disabled/deinitialized when phone shutdown. This patch
add NFC disable on phone shutdown which can complete any pending
NFC transaction before phone shutdown.

Change-Id: Id1e604be7c34adec8623a1e526d8ff99e18bf74b
hutdownThread.java
d0d7503fd3e941113094532f28986f49b11b5fdb 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Move handling of package changes to a background thread.

Helps get rid of some jank when installing applications.

Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62
esolverActivity.java
b8139af3dcae80c0030afd0354dc424a7c72c3d9 19-Apr-2012 Adam Powell <adamp@google.com> Adjust action bar tab policies

Action bar tabs now stack in portrait mode on all screen sizes rather
than display embedded. This only affects apps with a targetSdkVersion
of JB or greater, as older apps may not be prepared for the different
measurement of the bar or have an appropriate stacked bar background
drawable.

Stacked action bar tabs now have a width limit. This prevents
super-wide tabs that can span the whole screen. The cluster of tabs
is centered if it does not span the full width.

Add ActionBarPolicy to give a single point to query for various action
bar measurements and behaviors that vary with configuration.

Change-Id: I01162ca009c14f6f0e712fc906b9db6382c738cd
ctionBarImpl.java
8eedb8bf603ed313e3c3b39292dfae908ff60af5 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Change dock animations to not use alpha, to make Mathias happy.

Also tweak the action bar animations to slide up/down like the
dock animations.

Change-Id: Id3c85ba76100639a6f6c77b7fd2a060c9d26f38c
ctionBarImpl.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
latLogoActivity.java
hutdownThread.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
ctionBarImpl.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
ctionBarImpl.java
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
eavyWeightSwitcherActivity.java
2d80962b2e93ae4e59d0197487bd0f6aad4cf26e 22-Mar-2012 Adam Powell <adamp@google.com> Let users reach app details from ResolverActivity

A long press on a list item in ResolverActivity (shown when users are
asked to choose an activity to complete an action) will now open
the app detail settings for the package providing that item.

This is a work in progress; awaiting more UX input on other changes
and better discoverability of this feature.

Change-Id: I2cc07c5520fdd23cf1a43f169b114295f5d9d0ac
esolverActivity.java
817d5fb864918c98c7019f8c503f8167ddf31adc 02-Mar-2012 Dianne Hackborn <hackbod@google.com> am 5d87d51f: am f65951bf: am 0dd9ec14: Merge "Make ResolverActivity update dynamically." into ics-mr1

* commit '5d87d51fab7e17793413c9095028963117e276b8':
Make ResolverActivity update dynamically.
e8f2c7ff5abe339061f1823362e12b912c430c1a 02-Mar-2012 Dianne Hackborn <hackbod@google.com> Make ResolverActivity update dynamically.

Watches for package changes so it can dynamically adjust
to reflect the actual list of available activities.

Change-Id: I3a2fef3dac4d13d1b2a7ed6fc117a7b814679669
esolverActivity.java
b98a81f86ab87f1d718f329f03256111fdabd8d1 24-Feb-2012 Adam Powell <adamp@google.com> Add support for optional titles in action modes

Optional titles will only be displayed in the CAB if they entirely fit
instead of ellipsizing.

Fixes bug 5821883

Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
ctionBarImpl.java
5f839f8ee426cc42af3ee0eaf5236f2f6930dd15 12-Oct-2011 Daniel Sandler <dsandler@android.com> Fix obsolete Honeycomb platlogo.

Bug: 5438131
Change-Id: I848bcc8e4d6cdd28c1ffaa08b7fcceb87242932a
latLogoActivity.java
04b81c713e88c056b430b326350359b4e8f1377f 11-Oct-2011 Amith Yamasani <yamasani@google.com> Don't show icon for power-off confirmation dialog.

Bug: 5380396
Change-Id: I57574b613d95885c829df729297b24be1c73b876
hutdownThread.java
d78a38cae2f041629326d475333f43fd81ae4137 10-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move battery stats to xt_qtaguid for data stats."
1059c3c30ad96a15695c1a92ae8896e078a6309f 05-Oct-2011 Jeff Sharkey <jsharkey@android.com> Move battery stats to xt_qtaguid for data stats.

Replace TrafficStats calls by reading values from xt_qtaguid kernel
module. To keep BatteryStatsImpl changes lightweight, cache recently
parsed stats. Tracks mobile ifaces from ConnectivityService.

Refactor xt_qtaguid parsing into factory outside of NMS. Add stats
grouping based on UID, and total based on limiting filters like iface
prefix and UID.

Bug: 4902271
Change-Id: I533f116c434b77f93355bf95b839e7478528505b
BatteryStats.aidl
5c18ac651415ce71f8cb078a3ce9f5b5802d70ec 08-Oct-2011 Amith Yamasani <yamasani@google.com> Save the click position and restore it on orientation change.

Bug: 5417556
Change-Id: I817890a3ff2910aa49ec44a30edb1a39d0d97095
ingtonePickerActivity.java
86ed436b83d6b71ff00d1c3db910f2952018489e 15-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5237737 - ActionBar should fire an accessibility event when
action mode is turned on/off

Fire AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED when action modes
come and go to give an indication of UI change on the level of a menu
or dialog opening/closing.

Change-Id: Id36c6153b0722b4b6927c8d36503e8ac57c2d2b2
ctionBarImpl.java
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
esolverActivity.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
ctionBarImpl.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
ctionBarImpl.java
67403e096e6f59b7cd18a90d0d3f5c3d17c31407 23-Aug-2011 Mathias Agopian <mathias@google.com> BLUR_BEHIND flag is not supported anymore

Bug: 5185650
Change-Id: I56541d4967b90b150a734be1bbeff696eb6a4fb3
hutdownThread.java
993a63abb9ffa95de16f2788fccb440805d1ecb7 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5186160 - ActionBar.hide() doesn't hide the split ActionBar if
called before onResume()

Change-Id: I2c21f2bfb3314426d9dfd3b874f593f375c7838a
ctionBarImpl.java
9cc07c3939581909bf7de42df0215a65fab7b472 11-Aug-2011 Adam Powell <adamp@google.com> Merge "More fun with action bars and themes!"
f242368f38b21479763d6e07174547c610a51c5c 11-Aug-2011 Adam Powell <adamp@google.com> More fun with action bars and themes!

Fix bug 5144738 - Allow user to define pressed state asset for action
bar. Added android:actionBarItemBackground theme attribute. This
allows themes to define item pressed states for the action bar
independent of the standard selectableItemBackground.

Fix bug 5145416 - Custom view in action bar should use themed context
when inflating resource ID. Also applies to tab custom views.

Fix bug 5135550 - Tab divider height / Color should match spec. Added
actionBarDivider theme attribute. Similar to actionBarItemBackground
above, this allows apps to maintain proper contrast when the bar has a
different contrast profile than the rest of the activity.

Fix bug 5154778 - Theme.Holo.Light.DarkActionBar in themes.xml and
search_bar.xml are still referencing the deprecated title_bar_shadow
when we should be pointing to ab_solid_shadow_holo

Change-Id: I5ef0084de28a7c2d2fa02ae1752884feab0f8523
ctionBarImpl.java
e342551e56e422a4409caaa51d225e750eb7c7b0 11-Aug-2011 Kenny Root <kroot@google.com> Merge "Better errors from copyResource"
f5645cbafe7eed33452d888f16726bee8a0cd9fe 11-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5122319 - When action bar tabs run out of space they should
collapse in to a spinner.

When tabs are not given the option of dropping to their own row,
collapse them into a spinner when they would measure too large to be
visible all at once.

Fix bug 5095167 - zombie tabs return when they shouldn't when activity
handles its own orientation changes

Change-Id: I074419d99a22aa5dd1cbc00a66e600ec5cb0b54a
ctionBarImpl.java
f5121a9b802c6ddd3661ed5cae602380dbe67090 11-Aug-2011 Kenny Root <kroot@google.com> Better errors from copyResource

Copy resource would fail without a good error code when the file
couldn't be found during copy.

Also destroy the target container ID during move operations since it
might exist. If the copy failed due to it existing, it would get
destroyed anyway. This way the user has a chance to have a good outcome
the first time.

Bug: 3375299
Bug: 5113898
Change-Id: I00559833f0801bc50e7cc031b462495e37a6b4ab
MediaContainerService.aidl
faa6ffa484f6f2a334c8bf2c7a9dc693a61608f3 08-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5116434 - Bookmark label is not highlighted.

Let the action bar tab strip handle its own height changes.

Change-Id: I9b79702c757c736ef7872a43316965cea1a5cc97
ctionBarImpl.java
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
ctionBarImpl.java
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
ctionBarImpl.java
5ea0bc1abccea067875d00dc9b9dde7c17c1efff 21-Jul-2011 Adam Powell <adamp@google.com> Bug 4948805 - fix custom title divider for dialogs

Change-Id: I1b4fc8da71deb6450b21def15570a18a6b7200e2
lertController.java
060e3cad11541bc534ead73dae5c23ef242060cd 20-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5045004 - onActionModeFinished happens well before the
ActionBar is actually gone

Defer calling onDestroyActionMode until the action bar UI has fully
transitioned out of the mode and any bar-hiding layout change is ready
to happen. This helps apps better respond to layout changes resulting
from action mode UI.

Change-Id: I8e560ec566f4c3fa4a701c4b3aeb531c16169168
ctionBarImpl.java
7adcdecf808fce832b8711aeeeb30b73371ee4ae 18-Jul-2011 Alexy Shin <alexy.shin@samsung.com> NetInitiatedActivity: support AUTO response feature for SUPL IOT

Change-Id: I38a9ed0b03cb7f9ce2b81e0742ef48508d8392af
Signed-off-by: Mike Lockwood <lockwood@android.com>
etInitiatedActivity.java
28fa07e15f7a7ee83be9e5555bbfdd25711b3517 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5021359 - show app icon for collapsible action views.

Also fix a bug with initial enabled state of the app-home button.

Change-Id: I7eac4932deeced3ac209ad899922ac90f40c87e6
ctionBarImpl.java
58c5dc1bd6e0600fab0c4e80ae1f4c4f8426ad6d 15-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5030341 - ActionBar.getHeight is inaccurate in 2-row mode

Measure the shared container instead.

Change-Id: Ib851f773a36add19c227b3ad64a8497f1b5ff9dd
ctionBarImpl.java
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
ctionBarImpl.java
f6ce6a9bacbb220c6ea7b552c481237f23e64ae7 29-Jun-2011 Adam Powell <adamp@google.com> Fix some issues with the action bar and action modes.

Fix bug 4976004 - bad title measurement for split action modes

Fix bug 4902960 - action modes leaving a hidden action bar in a bad state

Sync with design for the behavior of various permutations of action
bar configuration + modes.

Change-Id: Id75f6b5911b761fabc5fef2cc2600ce197cf9a92
ctionBarImpl.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
lertController.java
cc2e5bea7da9339a9c03a9616f22348978e8909c 10-Jun-2011 Adam Powell <adamp@google.com> Fix some measurement/sizing with split action bars

Change-Id: I5fded370d214eb0a50d06fd6a14446227d3b30ac
ctionBarImpl.java
1ab418a222e1834c4b1312fde355e41a1947af0d 10-Jun-2011 Adam Powell <adamp@google.com> Refine the behavior of split action bars.

Change-Id: I27212c7554025433ee366f0766971f0092b26d67
ctionBarImpl.java
5ee36c48be8d36c5f4025202e8ede561c9ad3aba 02-Jun-2011 Adam Powell <adamp@google.com> Handle action modes in the IME extract mode view.

This presents action modes (such as the one for text editing) in a
less screen-consuming way in the IME extract mode layout. The submit
button is replaced by an "Edit..." button that shows the action mode
menu when clicked.

Still needs UX design and tweaking.

Change-Id: Ia7b3f3446edced0ee5a9abc5e2f0ff16f4fa3ab1
ctionBarImpl.java
d21aa12e8eb9d46ee92bf408b4b48386c6bf062d 27-May-2011 Adam Powell <adamp@google.com> Action bar tab layout tweaks.

Let tabs consume the full action bar when the menu is empty and other
elements are disabled when the tab bar would normally split onto a
second row..

Fix bug 4489724 - bug in ActionBarImpl#cleanupTabs.

Change-Id: I28a235d339137add0b106c6e733a6767fa547810
ctionBarImpl.java
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
ctionBarImpl.java
0d8ec1d739e15c232c58a5a5de605685830c287e 03-May-2011 Adam Powell <adamp@google.com> Fix bug 4345702 - update action bar tab views when the Tab object is
updated

Also fix a bug with visibility of split action bar views.

Change-Id: Iadd63d5e9b6cb9debab0f7a777e424e4c4807a13
ctionBarImpl.java
640a66eac612b850b5dabd3b93bd94f83ed2d567 29-Apr-2011 Adam Powell <adamp@google.com> Refactoring of action bar internals

Split action bar implementation details. Factor out common components
into AbsActionBar. Layout rules for the lower half of split action
bars.

Change-Id: I6bc39ba6c343055597880a7d4663dd8f30aa4999
ctionBarImpl.java
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
ctionBarImpl.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
ctionBarImpl.java
45c515b0e962ee8ffc901872bcc9f25599ea0e78 22-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Tweak sizing and layouts for action bar on smaller devices. The action
bar's size is now partially dependent on form factor and orientation
to conserve screen space, especially in landscape mode.

Alter the max action menu items for smaller devices. Disallow text on
action menu items with a horizontal width of less than 480dp when an
icon is available.

Remove the "Done" text on the action mode close button. (TODO: get a
properly sized 9-patch resource for this - the current one has an
intrinsic width that is too large.)

When setting an action bar icon as a resource ID, the bar will attempt
to load a mipmapped resource that is the closest available for the
target size.

Change-Id: I2498c640666ade310fdd1d3a2078bd4000b392a2
ctionBarImpl.java
696cba573e651b0e4f18a4718627c8ccecb3bda0 29-Mar-2011 Adam Powell <adamp@google.com> Refactor menu internals.

In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.

In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.

BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.

Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.

Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.

Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
ctionBarImpl.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
esolverActivity.java
d814504979c989915888a777606c3c68c0bab316 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 3484000 - ActionBar visibility issue

Fix up action bar visibility state when shown without animation.

Change-Id: I51e56e2c983d7bb608bb6834d39ac2c5d926d63c
ctionBarImpl.java
07e1f988c053e37dcde2479052d8bedb9db5bec2 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4136071 - CAB causes the action bar to be shown, regardless of
previous state

Hide the action bar upon finishing a mode if it was hidden when the
mode started. If show() is called while the mode is active, the bar
will not hide when the mode finishes.

Change-Id: I7d9b593b9ecd9fa633251abebcdca0d85405252a
ctionBarImpl.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
ctionBarImpl.java
21c83b4d9f8b19a39f12dded617e727b0cb89e33 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> am f15b3db3: am 10221a22: am b02d3956: am e16a1bfa: Use system locale list.

* commit 'f15b3db3eb69683d23f379697cf86f8487845847':
Use system locale list.
b02d395650a9a5fb13812cefa0ada1501f5b6d62 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> am e16a1bfa: Use system locale list.

* commit 'e16a1bfa9cd9a9a0430e2fe890586ae451f0faaf':
Use system locale list.
e16a1bfa9cd9a9a0430e2fe890586ae451f0faaf 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use system locale list.

Context's assets may be different from system's. We should
prefer system's to reflect PRODUCT_LOCALE.

Bug: 4104675
Change-Id: I968c3baf6bfeb945f1b71ec709d5088332482319
ocalePicker.java
62e1b4e9d41a01db423b5e4684ecf529ed46106d 15-Mar-2011 Kenny Root <kroot@google.com> Revise free space checks for package installs

Change-Id: Ie72bbab77aa89a50ec096edc1f471eab74829e67
MediaContainerService.aidl
bce6f8f249ff2b65df9ed790cc460053ab8eccec 13-Mar-2011 Mike Lockwood <lockwood@android.com> Add a dialog to ask user to start an application for a USB device or accessory

This is used when there is only one application available and the user has
not chosen to start it by default.
If more than one application is available we continue to use UsbResolverActivity

Bug: 4074719

Change-Id: Id61f2ccc6de5b9ac70fb4670006ff1fee2028d55
Signed-off-by: Mike Lockwood <lockwood@android.com>
esolverActivity.java
02eb8746de2d60563ec2751a34d20923192e4293 27-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: Enhancements for managing USB devices and accessories

When a USB device or accessory is connected, the UsbService now asks the
user which application to associate with the device or accessory.
Applications interested in devices or accessories must specify the
devices they work with via meta-data attached to their manifest.
Permission to communicate with the device is assigned when the user chooses
the activity to use for the device.
The user has the option of clicking the "always use this application" checkbox
to make the assignment automatic in the future.
The user may later clear this preference and revoke permission for an application
to have permission to communicate with the device by clicking the "Clear defaults"
button for the activity in the Manage Applications panel in Settings.

Added class UsbResolveActivity (a subclass or ResolveActivity for choosing
an activity for a USB device or accessory)

Added UsbDeviceManager, which manages the mapping between USB devices/accessories
and applications, including default applications for devices and accessories,
and manages application permissions.

Add interface to allow Settings to clear device and accessory
preferences and permissions for an application.

Remove obsolete ACCESS_USB permission.

Add new signatureOrSystem MANAGE_USB permission to allow administrating
preferences and permissions.

Moved UsbService.java to a "usb" subdirectory, along with new classes
UsbResolveActivity and UsbDeviceManager.

Change-Id: I92554381e9779e68ce380daaee4e1401fb875703
Signed-off-by: Mike Lockwood <lockwood@android.com>
esolverActivity.java
01feaee3d9767ef1185783877e92244f14d7d4ba 11-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3372468 - ActionBar menu shouldn't be clickable after
ActionBar.hide() is called

Action bar will capture touch events and prevent focus from passing to
its children while animating out.

Change-Id: I4501f785ead2afa34f020f9bc1a1121932f3c047
ctionBarImpl.java
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
ctionBarImpl.java
d76cee2b09866c5a22c1de45becc03677be52e95 01-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3408834 - actionbar stays gone when leaving reader in
lightsout mode

Fix an opportunity for race conditions when the action bar is
shown/hidden rapidly.

Change-Id: I91c0666cad3afd8a4d870d642f971949fba0d333
ctionBarImpl.java
962d556a12b60b04f3c8b0bdfda84165bb4ba062 29-Jan-2011 Jean-Baptiste Queru <jbq@google.com> Merge f126ad3b from gingerbread

Change-Id: I13a79033239d306fcf9291ca7fad7445f2cd1f47
d88e9aa575eb3a9d20cdb0e8918d54993e1ce1e0 24-Jan-2011 Jeff Hamilton <jham@android.com> Use classnames instead of ints for NFC techs.

This makes the system more flexible and allows
adding new technology types without having to
update the API.

Change-Id: Iaee6b633965e501a70e8afc3f1d54d9d94a4d05a
hooserActivity.java
esolverActivity.java
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
ctionBarImpl.java
7666ebd9f29df718f57354e0317db2ccbe6369b0 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Bee seeing you..." into honeycomb
3023afefd4cedcd7a8994b059c7d4d04a45edd44 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Bee seeing you...

Change-Id: I023425e1752b91fed36e6b005b7b03816f779d9c
latLogoActivity.java
661b6cfb2bcecdd335540db7059e5d8e22c2e79a 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Okay, new plan for dialogs." into honeycomb
ef57575887bde74ef09e9f21aae6b02f9c8163c7 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Okay, new plan for dialogs.

Don't dismiss by default when tapping outside, even for AlertDialog.

If AlertDialog doesn't have any buttons, tapping outside will dismiss it.

Applications can make their own dialogs (or activities looking like
dialogs) can use the existing and new APIs to control this behavior
themselves so that it does the right thing.

Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
lertController.java
hooserActivity.java
a1e6358a4c62c8b6de1f2428901e45b688bd9e9f 19-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing

Change-Id: I9e7ec4ab14c6008397d26c499ccf478f8875f918
ctionBarImpl.java
48e7b458694acdf3a4fc58e62437f1dbc4f29d83 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Start renaming FragmentTransaction.openTransaction() to beginTransaction().

Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
ctionBarImpl.java
48e8ac311bdb50a62717b95b40e556b3506068a3 14-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3347747 - Use a better context when fetching resources for
action modes

Change-Id: I0c6595c290a9d41f673944c127d2e9aaf7dc84ce
ctionBarImpl.java
32aa2c90ee6e12f6c53c7d572d5c02f1d795b8f7 12-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3338079 - Dialog styled activity decor

Fixed a bug in FastScroller that could cause a crash on an empty list
in always-show mode.

Fix holo light button text color

Change-Id: I7b50043d715b9b870eb34808017d743ba64d2e08
lertController.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
eavyWeightSwitcherActivity.java
hutdownThread.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
ctionBarImpl.java
7179dfd663cff9a4e885fcd59bdfd0154c6054cc 03-Jan-2011 Amith Yamasani <yamasani@google.com> Merge "Fix a layout alignment issue in RingtonePickerActivity."
fe7630e64828499a3566ea8030036e2b9555f815 29-Dec-2010 Amith Yamasani <yamasani@google.com> Fix a layout alignment issue in RingtonePickerActivity.

Bug: 3307324
ingtonePickerActivity.java
2b133574bbfd076ff7f8bfac27a0f1226e47abeb 20-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let callers replace layout for LocalePicker adapter.

Bug: 3298275
Change-Id: I9be5f4677ba553bfd2f35348d14d99e68fdd60f1
ocalePicker.java
73e371ff7a23d814c0da10edf40a5a4f31b26b33 18-Dec-2010 Adam Powell <adamp@google.com> Tweak action bar show/hide animations

Change-Id: I69a7b0f84b36ef6f22cc03036daab7e54e1ab74e
ctionBarImpl.java
e8c1e5c02d565aad7f8a8b14c9e351c26a3c8731 13-Dec-2010 Adam Powell <adamp@google.com> Update bg drawable properly on ActionBars based on earlier changes

Change-Id: I5e24ffb030d2c29620948114b9015c0c028a133e
ctionBarImpl.java
45f1e08c348ccb129bcc25e438c05421f7123f41 10-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3259354 - Handle ActionBar backgrounds better for interacting
with action modes.

Tweak ActionBar/mode transition animation to look better with a
variety of action bar styles.

Fix bug 3273773 - ActionBar disappearing while displaying
popupwindow. Some SurfaceFlinger optimizations require a relayout to
recalculate the bounds of overlaid views.

Fix bug 3266010 - Cancel animations properly when switching between
modes.

Change-Id: Ic431176b11115a2211bd0a46d09c8998aefe58d6
ctionBarImpl.java
d00e116293589fb258f8d153d65ffdea38e0b5ec 08-Dec-2010 Adam Powell <adamp@google.com> Merge "Add hide/show animations for action bar"
e6ec7329b9ee23eaa1183071c9660d66651f2404 08-Dec-2010 Adam Powell <adamp@google.com> Add hide/show animations for action bar

Change-Id: I204cc744573fe040b4d37791a8eef1a65c88ee88
ctionBarImpl.java
65dd62a306b733b4891aa455b2e099d9c15fffa8 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of ee27dd35 to master

Change-Id: Ia9f4ea86b8554ff04a3aa6b9e065239ae73740e7
12902d687fa1bd4bff3c2dfc079c71eacb00eedd 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 78742e01 to stage-korg-master

Change-Id: I0ce429afeb26184f075b4ed326fc4e1c0833e905
aa183e2c9a279cb6aef7dc77855facfae795b6f8 03-Dec-2010 Kenny Root <kroot@google.com> Add measurement API to DefaultContainerService

System applications that don't have "media_rw" access need some way to
measure the size of directories on the SD card and other internal media.
Add this API to DefaultContainerService so they can simply bind to the
service and make an RPC.

Bug: 3203974
Change-Id: I4e1bcd7a1b702b156c011ecc04f6915022cb258a
MediaContainerService.aidl
d8b3f2e8eee5f24de6653a918613674e9495f751 02-Dec-2010 Adam Powell <adamp@google.com> Action mode animations

Change-Id: I132791217a38257e4fe730f2dd364cf48069c75d
ctionBarImpl.java
dea74b0285ef946cceb4f56e576800cbedbc3a95 22-Nov-2010 Hakan Gustavsson <hakan.gustavsson@sonyericsson.com> Strings for NI position request are moved to resources

The strings used by the framework for network initiated position
requests are now string resources that can be properly localized.

Change-Id: If1cba89adb1bfcb9c8fdb59b9c5aa1107b11279e
etInitiatedActivity.java
fcca00accb923d3cbda4e0d6f5540b10e8279cd2 01-Dec-2010 Adam Powell <adamp@google.com> Update themes; dialogs, metrics

Add divider attributes to LinearLayout, plus styles for borderless
buttons. Update text field assets.

Change-Id: I673acab1692cc028a0327e8c154069253a4d52e8
lertController.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
ctionBarImpl.java
621e17de87f18003aba2dedb719a2941020a7902 23-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3221502: New APIs to support new back stack / task navigation

What this adds:

- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
that allows the caller to have the task moved to the front with the
current home task immediately behind it.

Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
eavyWeightSwitcherActivity.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
ctionBarImpl.java
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
ctionBarImpl.java
0458796f1401732b38660794148f4c5e5602f432 12-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3146938 - Menus spawned by ActionBar should hide when action
bar is hidden

Any popup spawned by the private class MenuPopupHelper will be hidden
if its anchor becomes hidden. ("hidden" == !View#isShown())

Fix a bug where ActionBar subtitle views were not going away when
subtitle text was set to null.

Fix a bug when switching out of ActionBar tabbed nav mode with no
active tabs.

Change-Id: I1f30c067156221f96905ac69ab876418ad2e94f8
ctionBarImpl.java
3320dcd049700481c744d499feeecd1454afd4d7 06-Nov-2010 Adam Powell <adamp@google.com> Fixed several dialog theming issues

Change-Id: I8e83e5a35acaae63a70bef48f543e3fd82ced354
lertController.java
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
ctionBarImpl.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
ctionBarImpl.java
9ab978713ce86fdaefed2407f4f3c998ab0e3178 27-Oct-2010 Adam Powell <adamp@google.com> Action bar API updates - new display options

Change-Id: I55e56cd7aafa53994990079e88ef85e4eb1a0b3f
ctionBarImpl.java
53daead5718a95953fc009782299bd5e544bf4e5 27-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Expose Adapter.

We sometimes want just an adapter object instead of Fragment,
so that it can be available from not-Fragment UI
(like Spinner and ListView).

See I5e3d7ee721d1f0ec81dc9825b0d05f8faa731b80 for example usage.

Bug: 3133251
Change-Id: Ief6f25e9bc51c739b5cd2f2ba0afec5d2c16dc5b
ocalePicker.java
c981465aac939399eb597f62efe42ce701c0310a 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am 2f1eee34: am e9dbf208: Merge "Fix issue #3117472: Format storage dialog still broken" into gingerbread

Merge commit '2f1eee34706cf42855541def5737c37a071d7293'

* commit '2f1eee34706cf42855541def5737c37a071d7293':
Fix issue #3117472: Format storage dialog still broken
2f1eee34706cf42855541def5737c37a071d7293 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am e9dbf208: Merge "Fix issue #3117472: Format storage dialog still broken" into gingerbread

Merge commit 'e9dbf208e4f72b41dc3961d9d4570d5b69126307' into gingerbread-plus-aosp

* commit 'e9dbf208e4f72b41dc3961d9d4570d5b69126307':
Fix issue #3117472: Format storage dialog still broken
4f6ee254bc53cb7e609205794f197e275f50030f 22-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3117472: Format storage dialog still broken

Change-Id: I19b3a04e33785a56cb14457e4e3cd9232f585bb1
xternalMediaFormatActivity.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
ctionBarImpl.java
6be063d8a998f1c529f69e4c1649bcdaf514562c 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 5a67749a: am 987e8d7f: Merge "Fix Vibrator permission CTS test broken earlier." into gingerbread

Merge commit '5a67749a35bcbb70bfcc5f4c18da6a196bda33c1'

* commit '5a67749a35bcbb70bfcc5f4c18da6a196bda33c1':
Fix Vibrator permission CTS test broken earlier.
5a67749a35bcbb70bfcc5f4c18da6a196bda33c1 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 987e8d7f: Merge "Fix Vibrator permission CTS test broken earlier." into gingerbread

Merge commit '987e8d7f9748018d3fee5778645b267a9ee06ff6' into gingerbread-plus-aosp

* commit '987e8d7f9748018d3fee5778645b267a9ee06ff6':
Fix Vibrator permission CTS test broken earlier.
26e9cf38b229b738b4e56c3e08be82a9c0f11e64 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Fix Vibrator permission CTS test broken earlier.

Bug: 3106964
Change-Id: I76138780ac64f761fe09ef8ba74382c7ee05d794
hutdownThread.java
da3fe88b2dbc1f731760162d1d9420afca9c19e6 16-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 33476b2d: am feebaf35: Merge "Don\'t crash on null Vibrator during reboot." into gingerbread

Merge commit '33476b2db82b5a7f025eb9625fa56f94290e97f4'

* commit '33476b2db82b5a7f025eb9625fa56f94290e97f4':
Don't crash on null Vibrator during reboot.
33476b2db82b5a7f025eb9625fa56f94290e97f4 15-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am feebaf35: Merge "Don\'t crash on null Vibrator during reboot." into gingerbread

Merge commit 'feebaf35c0edaed87edc6eb33a33ad9df1a209d6' into gingerbread-plus-aosp

* commit 'feebaf35c0edaed87edc6eb33a33ad9df1a209d6':
Don't crash on null Vibrator during reboot.
9456714cfb9eb5ba4882fdcc922b787d77ed4da4 15-Oct-2010 Kenny Root <kroot@google.com> am b4f26a9d: am e6ae5c39: Merge "Add shutdown assurance" into gingerbread

Merge commit 'b4f26a9d37caf7762b66b68d50825c5b075b42bd'

* commit 'b4f26a9d37caf7762b66b68d50825c5b075b42bd':
Add shutdown assurance
e331644cb570e74a8739cb21ffcc5875663ffa58 15-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Don't crash on null Vibrator during reboot.

Bug: 3099305
Change-Id: I9af126f7a719f36ae544f517a2fccd0d33339389
hutdownThread.java
b4f26a9d37caf7762b66b68d50825c5b075b42bd 13-Oct-2010 Kenny Root <kroot@google.com> am e6ae5c39: Merge "Add shutdown assurance" into gingerbread

Merge commit 'e6ae5c39848d2a3a6f3fb750811550969799e410' into gingerbread-plus-aosp

* commit 'e6ae5c39848d2a3a6f3fb750811550969799e410':
Add shutdown assurance
f547d679c058ed00de78a32146d04b75254df7ec 22-Sep-2010 Kenny Root <kroot@google.com> Add shutdown assurance

If something kills system_server before it completes its shutdown
action, the runtime will just restart giving the illusion that a reboot
for an OTA or something else has happened.

To prevent this, write a system property containing the reboot reason
before initiating the shutdown with all the services. If the
system_server is killed before it completes, the next time the main
thread of system_server starts up, it will immediately execute the
shutdown action.

Bug: 3022556
Change-Id: I81723bac333430f04205e7a7b799914d96f170eb
hutdownThread.java
057c13bcce4d6f6a35fe7a096e1d1774de003fad 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am c43189e7: am 2aaa1ce1: Merge "Hold partial wakelock during shutdown to avoid entering sleep"

Merge commit 'c43189e76964facad8bac6ee7a17ea1016bba4e3'

* commit 'c43189e76964facad8bac6ee7a17ea1016bba4e3':
Hold partial wakelock during shutdown to avoid entering sleep
c43189e76964facad8bac6ee7a17ea1016bba4e3 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 2aaa1ce1: Merge "Hold partial wakelock during shutdown to avoid entering sleep"

Merge commit '2aaa1ce1768d3425c07e55d43aaa400282424f8c' into gingerbread-plus-aosp

* commit '2aaa1ce1768d3425c07e55d43aaa400282424f8c':
Hold partial wakelock during shutdown to avoid entering sleep
d208e709267f8af77690cb38dba2ae8e30ab5241 08-Oct-2010 Joe Onorato <joeo@google.com> Get rid of the global actions menu on tablets.

We have the system tray for that stuff. Make long press on power
go directly to the shut down confirmation dialog. Make that dialog
auto dismiss when the screen goes off. Reword it when we're skipping
the global actions menu, because it feels too abrupt to say "The
phone will shut down" when they haven't clearly pressed a button
that says shut down.

Change-Id: I8c92a1362bd4ed242e6cd94c2dae6d9ff9c4c34d
hutdownThread.java
a4a01b5d6b68a7e25fc54f23c7332c22fe0761df 06-Oct-2010 Gilles Debunne <debunne@google.com> am 6f4f0106: am b621e203: Merge "Removed icon in Alert dialog header." into gingerbread

Merge commit '6f4f01062bc78ae765c970e8796b8dbef432f8a4'

* commit '6f4f01062bc78ae765c970e8796b8dbef432f8a4':
Removed icon in Alert dialog header.
6f4f01062bc78ae765c970e8796b8dbef432f8a4 05-Oct-2010 Gilles Debunne <debunne@google.com> am b621e203: Merge "Removed icon in Alert dialog header." into gingerbread

Merge commit 'b621e2030d86356af6e8f37e9aed339a5f2ea52b' into gingerbread-plus-aosp

* commit 'b621e2030d86356af6e8f37e9aed339a5f2ea52b':
Removed icon in Alert dialog header.
076c7fbeda5c4205e3e52fbc6110ab1c4b342afe 04-Oct-2010 Gilles Debunne <debunne@google.com> Removed icon in Alert dialog header.

Bug 3042419

I wanted to nuke this one for ages

Change-Id: I079bec9b31157d6b7887c4f22612e56ae9690e7c
lertController.java
cd4e4279804288a941c308b88df8bafa4f3f7458 28-Sep-2010 Mattias Larsson <mattias7.larsson@sonyericsson.com> Hold partial wakelock during shutdown to avoid entering sleep

The ShutdownThread can get suspended while in progress if the
device enters sleep by the user pressing the power-key, or if it is
started (in sleep) from the BatteryService upon a dead battery
notification. If the device is woken up before the battery is
drained, the ShutdownThread will resume and finally complete
the shutdown, but if not the phone will stay in sleep until the
battery level is so low that the power is ruthlessly cut.

Change-Id: If64429fd0c98a9136141942be6c337b5c79cf4f1
hutdownThread.java
03f3cb083d708d4d3226b80ed42c9d2876a56edc 18-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 1f377298 to master

Change-Id: I0d92abae3a86792b47777f795143acc0489adfe4
1f377298e2aaf6a1736295c0413d468eb1db5091 18-Sep-2010 Dianne Hackborn <hackbod@google.com> am 58e0eefe: Improve power tracking of WIFI use.

Merge commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5' into gingerbread-plus-aosp

* commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5':
Improve power tracking of WIFI use.
58e0eefeb5e2e270e2b04369bbf29fc22abda8d5 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve power tracking of WIFI use.

We now distribute "wifi started" time across all apps that are
holding WIFI locks that cause it to be started. But only when
WIFI would not normally be running. Also have a mechanism to
distribute other WIFI work that has happened across those processes
based on their use.

Also fixed a bug where we were not retaining the CPU speed step
stats across boots...!

Change-Id: I00e3153b98429166273750512cc37e7975211ab9
BatteryStats.aidl
88b7349125d26200c5b4ef3c143e2e1cceda5703 15-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Take apart LocalePicker#onListItemClick() into two

It takes some time when Locale is actually switched by the system,
which looks "system halt". Previous implementation doesn't allow
developers to cope with the situation and they just had to let
users wait for a moment.

This change allows the LocalePicker users (developers) to hook
the item change and delay the actual halt. If they don't want it,
calling updateLocale() immediately works fine.

Related
- I29685118467bd2a68b80abcf234f91098839be0b
- Iba7378e51e6d5318e901045ebeda63ea954a0647

Change-Id: I4062a70e11600d87e889b40d30796387c7069e21
ocalePicker.java
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
53686433a9790bcfe7211a661b26783ee12bb436 13-Sep-2010 Dianne Hackborn <hackbod@google.com> am 7e9f4eb2: Track client requests through location manager.

Merge commit '7e9f4eb2608148436cef36c9969bf8a599b39e72' into gingerbread-plus-aosp

* commit '7e9f4eb2608148436cef36c9969bf8a599b39e72':
Track client requests through location manager.
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

This fixes a problem where applications could ask the location
manager to do very heavy-weight things (like... say... update
location every minute), which would get accounted against the
system instead of the application because ultimately it is the
system making the heavy calls (wake locks, etc).

To solve this, we introduce a new class WorkSource representing
the source of some work. Wake locks and Wifi locks allow you
to set the source to use (but only if you are system code and thus
can get the permission to do so), which is what will be reported
to the battery stats until the actual caller.

For the initial implementation, the location manager keeps track
of all clients requesting periodic updates, and tells its providers
about them as a WorkSource param when setting their min update time.
The network location provider uses this to set the source on the
wake and wifi locks it acquires, when doing work because of the
update period.

This should also be used elsewhere, such as in the GPS provider,
but this is a good start.

Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
BatteryStats.aidl
2b6230e0de4bac2829ac27b19e95ba75c3da82b4 08-Sep-2010 Adam Powell <adamp@google.com> Reworking the ActionBar tab API

Change-Id: Ifbcdc61b4a24633cc1a329c73923b95b03e9ecf0
ctionBarImpl.java
a43b74a4ef3735e52d3fda348271b8e495d685a8 31-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add LocalePicker fragment as one of internal components.

LocalePicker is in Settings, but we want this in framework
so that we are able to use it from other Setting-like
applications.

Also brings two string-arrays for descripting Chinise locales, which
have been in Settings app.

See also I1364c4810a115958662ca5d6e6e7f29c0c9b2569, for example.

Change-Id: I8a398b9b77601cf88ea8a3840b92dcf7441e6103
ocalePicker.java
08f194bc011bc3d88934088a7ac67f52559a77a2 24-Aug-2010 Steve Block <steveblock@google.com> In ActionBarImpl, only use mActionView after we've checked that it's non-null

See https://android-git.corp.google.com/g/#change,61251

Change-Id: Ie11f446c10c096916642a34558a350512495234e
ctionBarImpl.java
46089bd1cb031c578735707712cf9574678032fe 24-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 02623128: resolved conflicts for merge of 1ffd753e to gingerbread-plus-aosp

Merge commit '026231284c44ca8cf789e0d5045c5ae6a91d7766'

* commit '026231284c44ca8cf789e0d5045c5ae6a91d7766':
Crash when powering off.
026231284c44ca8cf789e0d5045c5ae6a91d7766 23-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 1ffd753e to gingerbread-plus-aosp

Change-Id: I2741766c359bed3040fa3b787d72483eb028fb6d
4d9861e7ec8488634d316b20981464de2ab7b6fe 17-Aug-2010 Adam Powell <adamp@google.com> Bug 2923440 - ActionMode buttons show if room by default - different approach.

This enforces the new policy if menu items are created
programmatically instead of inflated from menu xml.

This reverts commit fbb72fdbe58142e0f1f7ffa17f009b0d829b33c3.

Change-Id: I102e93b80a3248634e98e0d7dc3321bf1d8b263b
ctionBarImpl.java
8534a8e438ff35511051cf74f8f73d52c8b3b1f4 17-Aug-2010 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Crash when powering off.

Fixing a race condition. If "confirm" is true and the shutdown
dialog is shown it may take some time before the user presses the
ok button. During this time a new call to shutdown may be made with
confirm=false. When this happens the shutdown thread is started by
the second call, and later when the users presses the ok button. This
results in ShutdownThread.beginShutdownSequence() being called
twice. I.e., the beginShutdownSequence lacks the proper protection
for this error case.

Change-Id: Ib9b01c5a43f4dc23de09057f3fc1507000317faf
hutdownThread.java
fbb72fdbe58142e0f1f7ffa17f009b0d829b33c3 17-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2923440 - ActionMode buttons show as action by default

The MenuInflater returned by ActionModes will set the default
showAsAction value to "ifRoom" if not otherwise specified.

Change-Id: I86045dc4e877a97a3464a1a5f44d8d1e2120b086
ctionBarImpl.java
a10382b67dc14ffe43cd6da56a5cffebfa470870 17-Aug-2010 Dianne Hackborn <hackbod@google.com> am 2e47052f: am 567722ee: Merge "Fix problems with determining when to kill apps for wake usage." into gingerbread

Merge commit '2e47052fc4ad3439adc2322fd953fd58a85d457c'

* commit '2e47052fc4ad3439adc2322fd953fd58a85d457c':
Fix problems with determining when to kill apps for wake usage.
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:
2e47052fc4ad3439adc2322fd953fd58a85d457c 16-Aug-2010 Dianne Hackborn <hackbod@google.com> am 567722ee: Merge "Fix problems with determining when to kill apps for wake usage." into gingerbread

Merge commit '567722eee190f7cf88dc7ea95167db76d5514842' into gingerbread-plus-aosp

* commit '567722eee190f7cf88dc7ea95167db76d5514842':
Fix problems with determining when to kill apps for wake usage.
1ebccf531d1049853b3b0630035434619682c016 15-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix problems with determining when to kill apps for wake usage.

Also improve debug printing of various times.

Change-Id: Ifcc288fd1bcbf44c069875ba97925b9e7ffe9a48
latLogoActivity.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
BatteryStats.aidl
e2194445b078932733a2d1a02fc084ea2f3c7360 13-Aug-2010 Adam Powell <adamp@google.com> Clean up some Action Bar style handling.

Action Bar now obeys the titleTextStyle/subtitleTextStyle attributes
and has a better way of handling custom sizes. Any attached Action
Mode bar will keep in sync with the Action Bar's height.

Change-Id: I7d16319f5609d4d6c80a3043dcb60303e6e903db
ctionBarImpl.java
f6148c53f93978af678cc0559a4417b608a33ae1 12-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2911311 and bug 2911700

Integrate the action bar overflow menu better with the options menu lifecycle.

Change-Id: I1e3fdba04b01718c3ee3367f92e5dabe7bc84b5c
ctionBarImpl.java
6b336f835d637853800b94689375a03f337139a4 11-Aug-2010 Adam Powell <adamp@google.com> ActionBar overlay mode, height fetching, show/hide

Change-Id: Ie931ed26ec885d891d6733132b517a53d95f8491
ctionBarImpl.java
bf0cb26a1c6305f2a7795c2498591b6189cc5b79 11-Aug-2010 Kenny Root <kroot@google.com> am f5ee5358: am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798'

* commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798':
Move OBB file reading to DefaultContainerService
f5ee5358c187107b2e5a1e1fbcb5a648d793c798 11-Aug-2010 Kenny Root <kroot@google.com> am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e' into gingerbread-plus-aosp

* commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e':
Move OBB file reading to DefaultContainerService
a02b8b05dd1e8b8cf169e1f89542ef835b11fc13 06-Aug-2010 Kenny Root <kroot@google.com> Move OBB file reading to DefaultContainerService

The system_server shouldn't touch files on the SD card. This change
moves the things that touch the SD card out to the
DefaultContainerService so that it will get killed if the SD card goes
away instead of the system_server.

Change-Id: I0aefa085be4b194768527195532ee6dddc801cfc
MediaContainerService.aidl
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
latLogoActivity.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
ctionBarImpl.java
9168f0b170c6a99371ae46e7d3f5d66c8c4c930d 03-Aug-2010 Adam Powell <adamp@google.com> Add ActionMode#getMenuInflater() for easier menu inflation in
ActionMode.Callback implementations

Change-Id: If9e7ab0d65598bab537add6c6a452a55c093064f
ctionBarImpl.java
a66c7b04567a584d73bc4dba2711f5d815e4932d 29-Jul-2010 Adam Powell <adamp@google.com> Add support for setting action bar title/subtitle by resource ID

Change-Id: I91b6f56bd3736fd7cc8b82cbbf0b7be2e1c718e5
ctionBarImpl.java
c9ae2a24dc1fa274ca0916c91a2e9a2764ba4bb3 28-Jul-2010 Adam Powell <adamp@google.com> Add support for setting action mode titles/subtitles by resource ID

Change-Id: Ia0d5234cc16f325eeb29127fb87e2616d67379ec
ctionBarImpl.java
5d27977f9da482627ceb19317a2cd70467aff046 28-Jul-2010 Adam Powell <adamp@google.com> Action modes without action bar

Change-Id: I0367ab35e598a17980bd373b30828175f6283acc
ctionBarImpl.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
ctionBarImpl.java
9765211b9031776b9bcdd64e141de11f50902599 26-Jul-2010 Mike Lockwood <lockwood@android.com> am 64f04a64: am 70736a6d: Merge "Avoid starting multiple threads in ShutdownThread" into gingerbread

Merge commit '64f04a645ea4fd81cfb41fba23d9ba9e1279d416'

* commit '64f04a645ea4fd81cfb41fba23d9ba9e1279d416':
Avoid starting multiple threads in ShutdownThread
bf23832accebcb4b8f7824842089b6b409a4c4dd 26-Jul-2010 Mathias Agopian <mathias@google.com> am fed3c364: am eab07e5c: Merge "Report sensor events to BatteryStats service" into gingerbread

Merge commit 'fed3c364e6fc6acc5e5836bd1370c3c278f8a248'

* commit 'fed3c364e6fc6acc5e5836bd1370c3c278f8a248':
Report sensor events to BatteryStats service
64f04a645ea4fd81cfb41fba23d9ba9e1279d416 26-Jul-2010 Mike Lockwood <lockwood@android.com> am 70736a6d: Merge "Avoid starting multiple threads in ShutdownThread" into gingerbread

Merge commit '70736a6d92767258543bb03ac22a705535d86341' into gingerbread-plus-aosp

* commit '70736a6d92767258543bb03ac22a705535d86341':
Avoid starting multiple threads in ShutdownThread
fed3c364e6fc6acc5e5836bd1370c3c278f8a248 26-Jul-2010 Mathias Agopian <mathias@google.com> am eab07e5c: Merge "Report sensor events to BatteryStats service" into gingerbread

Merge commit 'eab07e5c1d48d45f76ac2dd4a45c8a3457aa290d' into gingerbread-plus-aosp

* commit 'eab07e5c1d48d45f76ac2dd4a45c8a3457aa290d':
Report sensor events to BatteryStats service
d67b236497d87223e8373d96c274c97cfbcab0cb 26-Jul-2010 Mike Lockwood <lockwood@android.com> Avoid starting multiple threads in ShutdownThread

The previous code allowed this to happen if a second call to shutdown
happened while the dialog was being displayed.

BUG: 2563243

Change-Id: I93adc4ef316917a79002d580b17eda0dc354704c
Signed-off-by: Mike Lockwood <lockwood@android.com>
hutdownThread.java
32123fde1b82fc7f5d04f35e2b972364d4352ec9 23-Jul-2010 Mathias Agopian <mathias@google.com> Report sensor events to BatteryStats service

Change-Id: I9b83aa709887aa658bc474391573f2d45b6c4eb2
BatteryStats.aidl
93b6bc3d15180d3ff88fe769375717043b283e64 22-Jul-2010 Adam Powell <adamp@google.com> Make finish() a no-op on a context mode that is not active.

Change-Id: I2b3b304b7371a76ce67dcf197eaea2e77904399b
ctionBarImpl.java
2175f1370cbdd73c589b8e99ecfd07c38dffc690 21-Jul-2010 Adam Powell <adamp@google.com> Rename callback methods for contextual modes to match recent refactoring.

Change-Id: I9403f0c728143cd075827f21270b5468abc5271b
ctionBarImpl.java
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
ctionBarImpl.java
ac695c608ba620e2362f57126d7be453cf5b7e1b 21-Jul-2010 Adam Powell <adamp@google.com> Refactored contextual modes out of action bar.

Change-Id: I1fc1c9383e5ee90f135b92a5afa8eadbf1c13d20
ctionBarImpl.java
2c9c9fe806e51f29276e66b8ba40cb4b7a80c3f4 16-Jul-2010 Adam Powell <adamp@google.com> Action bar context mode support for overflow, submenus

Change-Id: I951ae179698b08b6aba5b174b3d47f0cf847352e
ctionBarImpl.java
94919a170fab66e7903bea0c10093234e5e6cd37 16-Jul-2010 Kenny Root <kroot@google.com> am f97b21b5: am bd623daf: Undo IMediaContainerService changes

Merge commit 'f97b21b54e2e35fdfcc8614dedd8692d5a535a5e'

* commit 'f97b21b54e2e35fdfcc8614dedd8692d5a535a5e':
Undo IMediaContainerService changes
fb4e1e24a93c7e6bc0fcdb3f5cfadfbc19503cd8 16-Jul-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 181bb0ab to master

Change-Id: I2284e7c671d127da0d124fbabae8d887727fd5bf
f97b21b54e2e35fdfcc8614dedd8692d5a535a5e 16-Jul-2010 Kenny Root <kroot@google.com> am bd623daf: Undo IMediaContainerService changes

Merge commit 'bd623daff1f261a0e794f059d90ba5907eb5a89a' into gingerbread-plus-aosp

* commit 'bd623daff1f261a0e794f059d90ba5907eb5a89a':
Undo IMediaContainerService changes
bd623daff1f261a0e794f059d90ba5907eb5a89a 16-Jul-2010 Kenny Root <kroot@google.com> Undo IMediaContainerService changes

These should be in the next commit and not the previous one.

Change-Id: I8d13fecf3b978ae2e796dc6e10ef3f969b27a0f4
MediaContainerService.aidl
181bb0ab461b1c8a6bf608f19c136fc0bbee7a3d 16-Jul-2010 Kenny Root <kroot@google.com> am 02c8730c: Add API to call to vold for mounting OBBs

Merge commit '02c8730c1bf19daf48bec8c6995df676a00a73b1' into gingerbread-plus-aosp

* commit '02c8730c1bf19daf48bec8c6995df676a00a73b1':
Add API to call to vold for mounting OBBs
02c8730c1bf19daf48bec8c6995df676a00a73b1 01-Jul-2010 Kenny Root <kroot@google.com> Add API to call to vold for mounting OBBs

* Unhide StorageService class; hide all the USB-related items

* Add application-visible API to StorageManager for OBB files

* Add class for parceling OBB info across binders (ObbInfo)

* Add a JNI glue class to libutils/ObbFile (ObbScanner)

* Add API to MountService to deal with calling into vold and checking
permissions

Change-Id: I33ecf9606b8ff535f3a2ada83931da6bbef41cfd
MediaContainerService.aidl
29ed7575c2129974a57ad77b3531bc5995940c6c 15-Jul-2010 Adam Powell <adamp@google.com> Bug 2841148 - Add accessors for action bar context mode state.

Change-Id: I04f3efce5a692b346756cc80c8d15f3abba10558
ctionBarImpl.java
3461b32a1c1fc844cdf5c9586dbadb354f449980 14-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2838426 - timing issue with starting/finishing action bar context modes

Change-Id: Ie29b0bea96be02675a2104f07c912700c2823abc
ctionBarImpl.java
72c37ff17ad04a199cceb41dec3d1c003fa17c89 13-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 10dde211: merge from open-source master

Merge commit '10dde211457417aa1392cc3a5457728c84ed0d2f'

* commit '10dde211457417aa1392cc3a5457728c84ed0d2f':
Remove top panel in alert dialog if empty.
10dde211457417aa1392cc3a5457728c84ed0d2f 13-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Id2ad46118e0ca957b65b911c52d7bbcf2a4649a2
e74e7e2a088cc9077e4ee98e01a48bb52e9cfd50 22-Jun-2010 Martin Sjolin <martin.sjolin@sonyericsson.com> Remove top panel in alert dialog if empty.

Remove the topPanel in the alert dialog if it is empty and
therefore invisible. This gives the dialog content more space, and it
makes dialog positioning on the screen correct.

Change-Id: I8ffd9bd9b2360b0ad4338c32c21ab69c055d66a0
lertController.java
661c908e4e26c99adc2cab7558a02129eaee059d 02-Jul-2010 Adam Powell <adamp@google.com> ActionBar tab mode using fragments; needs styles.

Change-Id: I8f931dae447e7b64de827d3c17766e5f8ad794e2
ctionBarImpl.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
ctionBarImpl.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
ctionBarImpl.java
plitActionBar.java
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
plitActionBar.java
e2e97ce1161e5bf89ef8b5ce6a12be0f16dea23e 17-Jun-2010 Dianne Hackborn <hackbod@google.com> am 9a1034aa: am 6b7b4845: Various improvements to battery stats collection

Merge commit '9a1034aa9746b94ecb659ea849765a160bdf747e'

* commit '9a1034aa9746b94ecb659ea849765a160bdf747e':
Various improvements to battery stats collection
6b7b4845212b3a439c527f2e1eca205b6b45fceb 15-Jun-2010 Dianne Hackborn <hackbod@google.com> Various improvements to battery stats collection

We now clear the battery stats when unplugging after the
battery is full. This allows us to use the "total" stats as
a new "since last charged" stat. Total is gone. I never used
it, it was worthless. Since last charged is a lot more
interesting.

The battery history now collects a lot more stats, and keeps
control over how much it can collect. Printing is now more
descriptive.

The kinds of stats have been renamed to SINCE_UNPLUGGED and
SINCE_DISCHARGED. The other two stats are still there, but
no longer printed; a future change will eliminate them
completely along with all of their state.

Change-Id: I4e9fcfcf8c30510092c76a8594f6021e9502fbc1
BatteryStats.aidl
a408291e22def5755559f42cde913706a6d628c0 05-Jun-2010 Adam Powell <adamp@google.com> Dropdown mode for ActionBar; style and API updates
plitActionBar.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
eavyWeightSwitcherActivity.java
39ccc0811fad542fdce8e8226d90c219dec7e451 19-May-2010 The Android Open Source Project <initial-contribution@android.com> am 56d4bcd8: am 627356ce: am d6c0bb0f: merge from open-source master
d6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa 19-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e
2b9a49a30d2ce1176cbd90741897705bec32d0bd 19-May-2010 Romain Guy <romainguy@android.com> Merge "Removed Calls to deprecated APIs"
f90fa1a04f80d30cd7e06441016a9364f8be75bd 18-May-2010 The Android Open Source Project <initial-contribution@android.com> am 75c1b73d: am 40090708: am 4547e528: merge from open-source master
400907086ac1a304daa50a72013ac27a9c63b26b 18-May-2010 The Android Open Source Project <initial-contribution@android.com> am 4547e528: merge from open-source master

Merge commit '4547e5284e79192373f3a6bb6c452501171bc1d6' into kraken

* commit '4547e5284e79192373f3a6bb6c452501171bc1d6':
Removed Calls to deprecated APIs and unused Imports
4547e5284e79192373f3a6bb6c452501171bc1d6 18-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I3607454a9257701855354c12ef1f36841c889aea
15d24708b1c33188c97e3be5be94131acd8e095d 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs and unused Imports

Change-Id: Ib26783ca1d6c345cc91aa3ab5b9654f5316c78a0
xternalMediaFormatActivity.java
ingtonePickerActivity.java
sbStorageActivity.java
sbStorageStopActivity.java
746a95ab7145a1c7583d1f2d6004a508cd7a31dc 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs

Change-Id: I3f9b6a8d3c8a050156a6cc7ea0eb9de33b82f79a
etInitiatedActivity.java
a1700783b52c3f4e6b52ea425cdce93c74936586 13-May-2010 Adam Powell <adamp@google.com> ActionBar - custom navigation views

Change-Id: Ibc98565816c713474eefd4e96fb51175abfb0187
plitActionBar.java
468202dd71e375a1f7f2038e094baffe204c4972 13-May-2010 Mike Lockwood <lockwood@android.com> am 702b8752: am 5a9cbb29: am a3d5549c: am 098e58da: Use SystemClock.elapsedRealtime in ShutdownThread timeout logic
5a9cbb291fa7505a6c51eba6f600009dfc17366d 13-May-2010 Mike Lockwood <lockwood@android.com> am a3d5549c: am 098e58da: Use SystemClock.elapsedRealtime in ShutdownThread timeout logic

Merge commit 'a3d5549c802bc4fbf1e1ca05bc3552db17212036' into kraken

* commit 'a3d5549c802bc4fbf1e1ca05bc3552db17212036':
Use SystemClock.elapsedRealtime in ShutdownThread timeout logic
098e58da93f304d7d7791f193c6237870b94989d 13-May-2010 Mike Lockwood <lockwood@android.com> Use SystemClock.elapsedRealtime in ShutdownThread timeout logic

This avoids problems if the time is reset while shutting down.

Change-Id: I54c7c787e55648ebf5a68e79056f92fbac0081ae
Signed-off-by: Mike Lockwood <lockwood@android.com>
hutdownThread.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
plitActionBar.java
79e642e8ed75033eacc461633a8f4cd5157d25df 18-Mar-2010 Mike Lockwood <lockwood@android.com> Call LocationManager.sendNiResponse() instead of calling directly to GpsLocationProvider

Change-Id: I6a5b47abb0519f5228d29bc3340bb2490564803e
Signed-off-by: Mike Lockwood <lockwood@android.com>
etInitiatedActivity.java
39f99a1ceeffdc45aa0baef4722eb563fd490073 02-Apr-2010 Mike Lockwood <lockwood@android.com> am dfcb20d1: am a9e1a131: am 87e72cd3: Merge "Vibrate before shutting down." into froyo
a717f64ddcdce44379b24616333a58a6df2fcca5 02-Apr-2010 Mike Lockwood <lockwood@android.com> Vibrate before shutting down.

BUG: 2439291

Change-Id: I0f5abba34a14f1dd1cbe2077122d6f3e940b4d90
Signed-off-by: Mike Lockwood <lockwood@android.com>
hutdownThread.java
31f805ac2fc2c7779ab347fb4f5cf20dacb9c75e 27-Mar-2010 Dianne Hackborn <hackbod@google.com> am 54ca402c: am 4c8a63ca: Merge "Fix issue #2538228: Intents targeting browsers constantly nagging" into froyo
5ef402baafc4818ccdf2aaec5da9cf25dd1c0e12 27-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2538228: Intents targeting browsers constantly nagging

Some applications are setting the MIME type field for an http:
intent, which is technically wrong because the recipient opening
the URI will get the MIME type from the header. This was hitting
a bug when we compute the intent filter when setting the
preferred activity, where we have to set both the MIME type and
data URI for the intent filter. (For file: and content: URIs
only the MIME type is needed, since these can be opened directly
through ContentResolver so everyone is presumed to be able to
handle them.)

Change-Id: Ia7025e6859e9c90997bf56c2c80f225fca7a2007
esolverActivity.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
isableCarModeActivity.java
ffc3f8f40c7eff0bc3bb43f74a1a0e9235acb258 18-Mar-2010 Mike Lockwood <lockwood@android.com> Call LocationManager.sendNiResponse() instead of calling directly to GpsLocationProvider

Change-Id: I190fb70a608539f77080db64be1bd5b8dc8519e3
Signed-off-by: Mike Lockwood <lockwood@android.com>
etInitiatedActivity.java
3d31bb111a5f4052e189722d73bbfc61bf474288 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: I234458f6081ec021311ee04c247931eabcf0447c
isableCarModeActivity.java
14b6abda1309631d49d4bebbb0317a7e1dfc0a50 17-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new install flag to install on internal flash only
Change default install location policy for new flag.
New error code for media unavailable.

Change-Id: I5a5d0828b067692b2b94a15a2bcc7534f796c1a2
MediaContainerService.aidl
8a9ab24a5c9b595ac0268fcade4b5bbfe7c45c2d 12-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Do storage checks before initiating a move.
Add new remote method to check for insufficient error conditions.
Some fixes in MountService when updating media status on PackageManagerService
Fix size calculation condition in installd.

Add new error code if media is unavailable.
New tests for testing error codes.
Some additional debugging statements in MountService.

Change-Id: Ibfe90d5ed6c71d57f9c1c67806f38b5ae9ecdfbf
MediaContainerService.aidl
17bc415ded862bc0a5f70ee2f7259f34d3491a17 09-Mar-2010 Mike Lockwood <lockwood@google.com> Merge "Add new shutdown observer for MountService. Use new observer before rebooting and shutting down. Add some unit tests for unmount and shutdown code paths Fix registering/unregistering part in MountService Use ShutdownThread in PowerManager.reboot() Add reboot support to ShutdownThread. Remove MountService code from PowerManagerService.java and Power.java. Clean shutdown/reboot is handled exclusively by ShutdownThread now."
6ffce2e9a3c57634bb73f8ff133ca680f8070d5d 08-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new shutdown observer for MountService.
Use new observer before rebooting and shutting down.
Add some unit tests for unmount and shutdown code paths
Fix registering/unregistering part in MountService
Use ShutdownThread in PowerManager.reboot()
Add reboot support to ShutdownThread.
Remove MountService code from PowerManagerService.java and Power.java.
Clean shutdown/reboot is handled exclusively by ShutdownThread now.

Change-Id: Iefb157451d3d9c426cb431707b870a873c09123d
hutdownThread.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 06-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add conditions to check for updated system applications. Restrict them
to internal flash only even before we copy.

Return error codes when install flag options mismatch.
Some conditions for existings apps
- install flags override existing location
- explicity manifest option install location overrides previous location
- if upgraded package's install location is unspecified or auto, fall
back to recommended install policy which considers user setting as well.

Check for sdcard status before finding available size on sdcard
Add light weight parsing for manifest attributes including package name and
install location only

Change-Id: I5143dda87c88c595f564b317326c926d0ec3ceb8
MediaContainerService.aidl
f99ae76533119f9fef111abef17a3a8fcb8f12a5 08-Mar-2010 Dianne Hackborn <hackbod@google.com> Hold wake lock while shutting down.

It is nicer to make sure the screen stays on while we are shutting
down, so the screen goes off when we are actually complete rather
than some time before.

Change-Id: I8725ac9884df6d21344f35288da3e375d9779b3b
hutdownThread.java
e7085e909d0c7f58a160b2730ff06aca085dfd6b 04-Mar-2010 Robert Greenwalt <robdroid@android.com> Update framework tethering UI

Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
etherActivity.java
5a73506cdd466f2b96686ced3ff0f7ca224d1143 03-Mar-2010 Robert Greenwalt <robdroid@android.com> Add error reporting for Tethering.

Also make the usb interface configuration more robust so retries are possible.

Makes all Tethering errors recoverable - no harm letting them try again anyway. Worst case
is they need to reboot.
etherActivity.java
370dd39132bf64f2a0703969a110c0d3b136c6eb 27-Feb-2010 Dave Sparks <davidsparks@android.com> Stop previous ringtone when silent is selected. Bug 2256593.
ingtonePickerActivity.java
d70a3d4e2d356aab4cac313f1f9d8272a5e3e8d0 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Tethering improvements.

Changes due to comments.
Fixing Tether teardown.

bug:2422545
etherActivity.java
6fe2b22085864b8f6bb6c59ecc0a12c6c4253309 22-Feb-2010 Romain Guy <romainguy@android.com> Fix bug where calling getButton(int) returns null.

Fixes external bug http://code.google.com/p/android/issues/detail?id=6360
lertController.java
154f7a1cc2d4f0468a7cc8dfa36e837c84cd9f7e 17-Feb-2010 Tobias Haamel <haamel@google.com> Show car mode notification in status bar.

The notification is an ongoing event and can be used to get out of car mode.
isableCarModeActivity.java
2a091d7aa0c174986387e5d56bf97a87fe075bdb 12-Feb-2010 Robert Greenwalt <robdroid@android.com> Update Tethering.

Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
etherActivity.java
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.
MediaContainerService.aidl
4154c07c5cabc74029a2df379075391d782a682c 10-Feb-2010 San Mehat <san@google.com> StorageNotification: Move notification / usb storage activity into StatusBarPolicy

Signed-off-by: San Mehat <san@google.com>
torageNotification.java
sbStorageActivity.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>
xternalMediaFormatActivity.java
etInitiatedActivity.java
hutdownThread.java
torageNotification.java
etherActivity.java
sbStorageActivity.java
64e6a45ed45e0d096a1490408ee1cab2a4626950 05-Feb-2010 San Mehat <san@google.com> StorageNotification: Add general storage notification for UMS/Storage events

Signed-off-by: San Mehat <san@google.com>
torageNotification.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
etherActivity.java
ec7f7e6378f87cdc826a8b5d836fff26f44b0b09 29-Jan-2010 San Mehat <san@google.com> UsbStorageActivity: Refactor for new MountService API

Signed-off-by: San Mehat <san@google.com>
sbStorageActivity.java
b94f795c257e32a1d7be1115568b5b6f576dec37 28-Jan-2010 Daniel Sandler <dsandler@google.com> New full-screen activity for USB mass storage interaction.

Still TODO: patch into forthcoming callbacks from
MountService so the USB storage activity always shows the
correct state of the device. (Right now it only refreshes
its display onResume.)

Bug: 2299129
sbStorageActivity.java
sbStorageStopActivity.java
c028be4f3b8c7476b46859f66c3f33d528adf181 25-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> AppsOnSd feature - Add default container

Add new remote interface to do temporary copies. The new
remote stub handling is done on mHandler thread and doesn't need locking
for now.
Add new InstallArgs class and subclasses to isolate cases for installation.
Move resource deletion for failed installs/upgrades to later on in installation
cycle.
Fix code path for forward locked apps when using scanPackageLI

TODO's
Fix installation paths to completely use InstallArgs based design later on.
Get rid of using flags in various install/uninstall code paths.
Ideally InstallArgs should be created using these flags and used in the
rest of the code.
Function renames.
Revisit mount api's.
MediaContainerService.aidl
22dd86e0556bf60f46bb92a4d90aef8c2d55da58 12-Jan-2010 San Mehat <san@google.com> MountService: Refactor to use NativeDaemonConnector and clean-up

Signed-off-by: San Mehat <san@google.com>
xternalMediaFormatActivity.java
7ebf017658070323ed1c2bbd80c46c7cd2390d87 12-Jan-2010 San Mehat <san@google.com> framework: storage: Ensure that filesystems are unmounted before shutdown/reboot

Signed-off-by: San Mehat <san@google.com>
hutdownThread.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
lertController.java
9f7f7cad0b1fd7b096d65faf4b2352204403257e 07-Jan-2010 San Mehat <san@google.com> ShutdownThread: Shutdown MountService before lowlevel shutdown

Signed-off-by: San Mehat <san@google.com>
hutdownThread.java
f37447bad3773b62176baa837908daf6edb44273 09-Oct-2009 Amith Yamasani <yamasani@google.com> Proper fix for zero signal strength and no_service. Fixes #2176141

Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
BatteryStats.aidl
568cae571a3d74d1992176a21722e07b44e9a3c4 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
hutdownThread.java
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
hutdownThread.java
de893f550301a60274e87aa8168225e7a7a42184 08-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE

Another round of Bluetooth API clean up, javadoc'ing and unhide'ing.

-- Symbols for getting/setting bluetooth state --
BluetoothAdapter.ACTION_STATE_CHANGED
BluetoothAdapter.EXTRA_STATE
BluetoothAdapter.EXTRA_PREVIOUS_STATE
BluetoothAdapter.STATE_OFF
BluetoothAdapter.STATE_TURNING_ON
BluetoothAdapter.STATE_ON
BluetoothAdapter.STATE_TURNING_OFF
BluetoothAdapter.isEnabled()
BluetoothAdapter.getState()
BluetoothAdapter.enable()
BluetoothAdapter.disable()

-- Symbols for getting/setting scan mode --
BluetoothAdapter.ACTION_SCAN_MODE_CHANGED
BluetoothAdapter.EXTRA_SCAN_MODE
BluetoothAdapter.EXTRA_PREVIOUS_SCAN_MODE
BluetoothAdapter.SCAN_MODE_NONE
BluetoothAdapter.SCAN_MODE_CONNECTABLE
BluetoothAdapter.SCAN_MODE_DISCOVERABLE
BluetoothAdapter.getScanMode()
BluetoothAdapter.setScanMode()

-- Symbols for getting address/names --
BluetoothAdapter.getAddress()
BluetoothAdapter.getName()
BluetoothAdapter.setName()
hutdownThread.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
hooserActivity.java
esolverActivity.java
22d1f9fb23015471de6af1a70e40fb5c82ecb665 19-Aug-2009 Danke Xie <dankex@qualcomm.com> gps: Network initiated SUPL

Initial contribution from Qualcomm.

Signed-off-by: Mike Lockwood <lockwood@android.com>
etInitiatedActivity.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
hutdownThread.java
32dbefda71c50bf848da21fb5d1255273439f90d 19-Jun-2009 Amith Yamasani <yamasani@google.com> Track native processes and airplane mode.

Turn signal strengths on/off when toggling airplane mode.
BatteryStats.aidl
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
BatteryStats.aidl
5347bd4cda2b6afc18f8acab48e52131f35ed13c 14-May-2009 Robert Greenwalt <robdroid@android.com> Add wifi multicast filter api (enable/disable).
Fixes 1833432. Automatically re-disables any request when the app
exits/crashes. Also hooked into Battery Stats for power managment analysis.
BatteryStats.aidl
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.
hutdownThread.java
6447ca30b8e41c22c7214f201120327057e356dc 08-Apr-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1769910 (Track activity launch times)

The usage stats service now collects per-activity launch time stats. There are a number of fixes and improvements to its statistics management and collection; it now operates its calendar in GMT and ensures that for checkin purposes it always reports one day and only one complete day to the checkin service.

Also change the checkin option from "-c" to "--checkin" since it is really a special thing.
UsageStats.aidl
633a1740ce5951ccb5d478ba2795f6f4fada1646 03-Apr-2009 Evan Millar <> AI 144333: Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last
2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us
what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could
be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug
event (end of the previous discharge cycle).
Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level".
During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During
a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle).
B=144249

Automated import of CL 144333
BatteryStats.aidl
617f877c06c82584a38f41bb60d836e08c5e3bda 01-Apr-2009 Dianne Hackborn <> AI 143800: am: CL 143748 Fix issue #1743326 (More battery stats)
Adds stats for:
- Number of raw user events that have happened in the system.
- Number of times user activity has been reported, dividied by UID and type of activity.
- Duration of screen brightness levels in 4 buckets.
- Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
Original author: hackbod
Merged from: //branches/cupcake/...

Automated import of CL 143800
BatteryStats.aidl
870a2b015645ef5086af6a5de31dc482e7193214 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@142470,142470
lertController.java
627bba736d022c39696b7c582a6af5592d2b8c33 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142347,142347
BatteryStats.aidl
d4c5f8919b0522bcaab41a5863c313fec52d3a79 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/donutburger/...@140679,140679
BatteryStats.aidl
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
lertController.java
BatteryStats.aidl
ingtonePickerActivity.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
lertActivity.java
lertController.java
hooserActivity.java
xternalMediaFormatActivity.java
BatteryStats.aidl
UsageStats.aidl
esolverActivity.java
ingtonePickerActivity.java
sbStorageActivity.java
sbStorageStopActivity.java
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
lertActivity.java
lertController.java
hooserActivity.java
xternalMediaFormatActivity.java
BatteryStats.aidl
UsageStats.aidl
esolverActivity.java
ingtonePickerActivity.java
sbStorageActivity.java
sbStorageStopActivity.java
ackage.html
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
BatteryStats.aidl
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
BatteryStats.aidl
sbStorageStopActivity.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
BatteryStats.aidl
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
xternalMediaFormatActivity.java
BatteryStats.aidl
UsageStats.aidl
sbStorageStopActivity.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
lertController.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
ingtonePickerActivity.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
lertController.java
BatteryStats.aidl
esolverActivity.java
ingtonePickerActivity.java
sbStorageActivity.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
lertActivity.java
lertController.java
hooserActivity.java
BatteryStats.aidl
esolverActivity.java
ingtonePickerActivity.java
sbStorageActivity.java
ackage.html